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

html, body {
    height: 100%;
    background-color: #000;
    color: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

a {
    color: #fff;
    text-decoration: none;
}

a:hover {
    opacity: 0.7;
}

/* DESKTOP */
.page {
    min-height: 100vh;
    padding: 40px;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Top 1/3: Three-column grid */
.top-section {
    flex: 0 0 auto;
    min-height: 33.333vh;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 50px;
    align-content: start;
    position: relative;
    z-index: 1;
}

.col-left {
    font-family: "neue-haas-grotesk-display", sans-serif;
    font-weight: 600;
    font-style: normal;
    font-size: 20px;
    line-height: 24px;
    text-wrap: pretty;
}

.col-center,
.col-right {
    font-family: 'Besley', Georgia, serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 20px;
    text-wrap: pretty;
}

/* Bottom 2/3: GIF centred */
.bottom-section {
    flex: 1 1 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
    z-index: 0;
}

.bottom-section img {
    max-width: 85%;
    max-height: 85%;
    object-fit: contain;
    margin-top: -150px;
}

/* Links — single element, repositioned per breakpoint */
.links {
    position: fixed;
    bottom: 40px;
    left: 40px;
    font-family: "neue-haas-grotesk-display", sans-serif;
    font-weight: 600;
    font-style: normal;
    font-size: 20px;
    line-height: 28px;
    display: flex;
    flex-direction: column;
    z-index: 10;
}

/* Support credit — inline within third column */
.credit {
    font-family: "neue-haas-grotesk-display", sans-serif;
    font-weight: 500;
    font-style: normal;
    font-size: 14px;
    line-height: 14px;
}

/* MOBILE */
@media (max-width: 768px) {
    .page {
        padding: 24px 40px 40px;
        min-height: auto;
        display: flex;
        flex-direction: column;
        gap: 32px;
    }

    .links {
        position: static;
        flex-direction: row;
        gap: 32px;
        font-size: 18px;
        line-height: 26px;
        order: -1;
    }

    .bottom-section {
        min-height: auto;
        flex: 0 0 auto;
        overflow: hidden;
        display: flex;
        justify-content: center;
        margin-left: -40px;
        margin-right: -40px;
    }

    .bottom-section img {
        width: 100%;
        max-width: 100%;
        max-height: none;
        height: auto;
        margin-top: 0;
        margin-bottom: 20px;
        margin-left: 0;
    }

    .top-section {
        order: 3;
        display: flex;
        flex-direction: column;
        gap: 40px;
        min-height: auto;
    }

    .col-left {
        font-size: 18px;
        line-height: 26px;
    }

    .col-center,
    .col-right {
        font-size: 15px;
        line-height: 19px;
    }

    .credit {
        font-size: 13px;
        line-height: 17px;
    }
}
