html,
body {
    margin: 0;
    padding: 0;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    font-family: var(--font-base);
    background-color: var(--color-primary);
    color: var(--color-quaternary);
    position: relative;
    min-height: 100vh;
    margin: 0;
}

/* Fixed background image behind everything */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image: url("/images/hero.webp"); /* desktop */
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    z-index: -1;
}

@media (max-width: 768px) {
    body::before {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: auto;

        height: 700px;
        aspect-ratio: 1;

        background-image: url("/images/main-mobile.webp");
        background-size: contain;
        background-position: top center;
        background-repeat: no-repeat;
    }
}

@media (max-width: 768px) {
    background-size: contain;
}

.section,
.hero {
    scroll-margin-top: 72px;
}

/* Generic layout helpers */

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding-inline: var(--page-padding-x);
    padding-top: 124px;
    padding-bottom: 124px;
}

.page__main {
    display: block;
}

.section {
    /*padding: 56px 0;*/
    background-color: var(--color-quaternary);
}

.section--dark {
    background-color: var(--color-primary);
    color: var(--color-quaternary);
}

.section--light {
    background-color: var(--color-secondary);
    color: var(--color-primary);
}

.section__inner {
    display: block;
}

.section__inner--split {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.section__intro {
    max-width: 420px;
}

.section__eyebrow {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    line-height: 24px;
    margin: 0 0 16px;
    font-weight: 500;
    color: var(--color-primary);
    border-bottom: 1px solid #0E0A0833;
    width: 100%;
}

.no-border {
    border: none;
}

.section--dark .section__eyebrow {
    color: rgba(255, 246, 235, 0.7);
    border-color: rgba(255, 246, 235, 0.12);
}

.section__title {
    font-size: clamp(28px, 4vw, 40px);
    line-height: 1.1;
    font-weight: 700;
    margin: 0;
}

.section__header {
    width: 100%;
    margin-bottom: 80px;
}

.section__lead {
    font-size: 24px;
    line-height: 1.5;
    margin: 0 0 32px;
}

.hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: flex-end;
    padding-top: 96px;
    padding-bottom: 80px;
}

/* Bottom gradient under the title only */
.hero::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 70%;
    background: linear-gradient(
            to bottom,
            rgba(14, 10, 8, 0) 0%,
            rgba(14, 10, 8, 0.05) 5%,
            rgba(14, 10, 8, 0.1) 10%,
            rgba(14, 10, 8, 0.15) 15%,
            rgba(14, 10, 8, 0.2) 20%,
            rgba(14, 10, 8, 0.25) 25%,
            rgba(14, 10, 8, 0.30) 30%,
            rgba(14, 10, 8, 0.35) 35%,
            rgba(14, 10, 8, 0.4) 40%,
            rgba(14, 10, 8, 0.5) 50%,
            rgba(14, 10, 8, 0.6) 60%,
            rgba(14, 10, 8, 0.7) 70%,
            rgba(14, 10, 8, 0.8) 80%,
            rgba(14, 10, 8, 0.9) 90%,
            rgba(14, 10, 8, 1) 100%
    );
    z-index: 0;
}

.hero__content {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding-inline: var(--page-padding-x);
    position: relative;
    z-index: 1;
    padding: 124px 16px;
}

@media (max-width: 768px) {
    .hero__content {
        padding-bottom: 0;
    }
}

.hero__eyebrow {
    font-weight: 400;
    max-width: 620px;
    font-size: 24px;
    line-height: 32px;
    margin-bottom: 24px;
}

.hero__title {
    font-size: clamp(40px, 9vw, 140px);
    line-height: 1.02;
    font-weight: 600;
    margin: 0;
}


.section--stages {
    /*border-top: 1px solid rgba(0, 0, 0, 0.06);*/
}

.stages {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0px;
    margin-bottom: 80px;
}

.stage-card {
    background-color: transparent;
    border-radius: 0;
    border: 1px solid rgba(0, 0, 0, 0.06);
    padding: 20px 20px 18px;
}

.stage-card__eyebrow {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0.7;
    margin: 0 0 72px;
}

.stage-card__period {
    font-size: 18px;
    margin: 0 0 4px;
}

.stage-card__year {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 10px;
}

.stage-card__note {
    font-size: 18px;
    margin: 0;
}

.stage-card__note span {
    font-weight: 600;
}

.stages__footer {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
}

.stages__tagline {
    font-size: 20px;
    font-weight: 500;
    margin: 0;
}

/* Buttons */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 22px;
    height: 48px;
    border-radius: 1px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background-color var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}

.button--primary {
    background-color: var(--color-primary);
    color: var(--color-quaternary);
}

.button--primary:hover {
    background-color: var(--color-tertiary);
    border-color: var(--color-tertiary);
    transform: translateY(-1px);
}

.button--light {
    background-color: var(--color-quaternary);
    color: var(--color-primary);
    border-color: var(--color-quaternary);
    transition: background-color var(--transition-fast),
    color var(--transition-fast),
    border-color var(--transition-fast);
}

.button--light:hover {
    background-color: var(--color-tertiary);
    color: var(--color-quaternary);
    border-color: transparent;
}

.button--small {
    height: 32px;
}

@media (min-width: 768px) {
    .hero {
        min-height: 100vh;
    }

    .hero__content {
        padding-bottom: 0;
    }

    .section {
        /*padding: 72px 0;*/
    }

    .section__inner--split {
        flex-direction: row;
        align-items: flex-start;
        justify-content: space-between;
    }

    .metrics {
        min-width: 340px;
        max-width: 520px;
    }

    .metrics__row {
        flex-direction: row;
    }

    .metric-card {
        flex: 1;
    }

    .gallery-small {
        display: flex;
        flex-direction: row;
    }

    .stages {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .stages__footer {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}


.align-start {
    align-items: flex-start;
}

.align-end {
    align-items: flex-end;
}

.big-val {
    font-size: 48px;
}

.big-unit {
    font-size: 32px;
}

.justify-between {
    display: flex;
    justify-content: space-between;
    width: 100%;
}


.hero--centered {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero__content--centered {
    padding-inline: 16px;
    max-width: 960px;
    margin: 0 auto;
}

.hero__note {
    margin: 0 0 16px;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    opacity: 0.8;
}

.hero__title--thankyou {
    font-size: clamp(32px, 5vw, 56px);
    line-height: 1.1;
    margin: 0 0 16px;
}

.hero__subtitle {
    margin: 0 0 32px;
    font-size: 18px;
    line-height: 1.5;
}

.hero__social {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.hero__social-btn {
    min-width: 160px;
}