@import url("https://fonts.googleapis.com/css2?family=Josefin+Sans:wght@500;600;700&family=Oswald:wght@400;500&display=swap");

:root {
    --yellow: #e6c000;
    --red: #e10600;
    --white: #ffffff;
    --count: #c8ccd2;
    --font-display: "Josefin Sans", "Century Gothic", sans-serif;
    --font-count: "Oswald", "Arial Narrow", sans-serif;
}

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

html {
    margin: 0;
    width: 100%;
    max-width: 100%;
    height: 100%;
    overflow-x: clip;
}

body {
    margin: 0;
    width: 100%;
    max-width: 100%;
    min-height: 100%;
    color: var(--white);
    background: #000;
    font-family: var(--font-display);
    overflow-x: clip;
}

.teaser {
    min-height: 100vh;
    min-height: 100dvh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 1.1rem;
    position: relative;
    overflow: hidden;
}

@media (min-width: 701px) {
    html, body {
        height: 100%;
    }
    .teaser {
        height: 100%;
        min-height: 100vh;
        min-height: 100dvh;
    }
    .teaser__logo {
        margin-top: 7vh;
    }
}

/* Screen split horizontally: bottom half of the photo stuck to the top. */
.teaser::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background-color: #000;
    background-image: url("../img/bg-bottom.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center top;
    -webkit-mask-image: linear-gradient(to bottom, #000 45%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 45%, transparent 100%);
    pointer-events: none;
    z-index: 0;
}

/* Top half of the photo stuck to the bottom. */
.teaser::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background-color: #000;
    background-image: url("../img/bg-top.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center bottom;
    -webkit-mask-image: linear-gradient(to top, #000 45%, transparent 100%);
    mask-image: linear-gradient(to top, #000 45%, transparent 100%);
    pointer-events: none;
    z-index: 0;
}

.teaser__logo,
.teaser__center,
.teaser__banner,
.teaser__foot {
    position: relative;
    z-index: 1;
}

.teaser__logo {
    width: min(420px, 78vw);
    margin: max(4.5vh, env(safe-area-inset-top, 0px)) auto 0;
}

.teaser__logo img {
    width: 100%;
    height: auto;
    display: block;
}

.teaser__center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 5vh 0 0;
}

.teaser__banner {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
}
.teaser__banner::before {
    content: "";
    flex: 1 1 0;
    pointer-events: none;
}
.teaser__banner::after {
    content: "";
    flex: 3 1 0;
    pointer-events: none;
}

.count {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: clamp(0.15rem, 1.4vw, 0.85rem);
    width: 100%;
    max-width: 920px;
}

.count__unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: clamp(3.4rem, 16vw, 8.5rem);
}

.count__num,
.count__colon {
    font-family: var(--font-count);
    font-weight: 400;
    font-size: clamp(3.1rem, 13vw, 7.6rem);
    line-height: 0.88;
    color: var(--count);
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.02em;
}

.count__colon {
    padding-top: 0;
    opacity: 0.95;
}

.count__label {
    margin-top: 0.85rem;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(0.52rem, 1.7vw, 0.82rem);
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--yellow);
}

.ribbon {
    margin-top: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    text-align: center;
    background: var(--red);
    color: var(--white);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(0.72rem, 2.1vw, 1.05rem);
    letter-spacing: 0.22em;
    text-transform: uppercase;
    line-height: 1.35;
    padding: 0.78rem 3.6rem;
    clip-path: polygon(0 0, 100% 0, calc(100% - 26px) 50%, 100% 100%, 0 100%, 26px 50%);
    max-width: min(680px, 94vw);
}

.ribbon__gap {
    display: inline-block;
    width: 0.35em;
    flex-shrink: 0;
}

.teaser__foot {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: end;
    gap: 0.6rem 1rem;
    padding: 0 0.4rem max(0.9rem, env(safe-area-inset-bottom, 0px));
}

.teaser__rte {
    width: min(105px, 22vw);
    justify-self: start;
}
.teaser__rte img,
.teaser__rte svg {
    width: 100%;
    height: auto;
    display: block;
}

.legal {
    font-size: clamp(0.42rem, 1.1vw, 0.58rem);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    opacity: 0.75;
    text-align: center;
    padding-bottom: 0.15rem;
}

.teaser__fm {
    width: min(55px, 13vw);
    justify-self: end;
    margin-bottom: 0.1rem;
}
.teaser__fm img {
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 700px) {
    :root { --count: #f3f4f6; }
    .teaser__logo { width: min(250px, 68vw); margin-top: 1.2vh; }
    .count__num, .count__colon { font-size: clamp(2.35rem, 10.5vw, 3.2rem); }
    .count__unit { min-width: clamp(2.8rem, 14vw, 4.5rem); }
    .count__label { letter-spacing: 0.18em; margin-top: 0.7rem; }
    .ribbon {
        flex-direction: column;
        gap: 0.02em;
        padding: 0.38rem 2.35rem 0.42rem;
        font-size: 0.95rem;
        letter-spacing: 0.14em;
        line-height: 1.08;
        clip-path: polygon(0 0, 100% 0, calc(100% - 20px) 50%, 100% 100%, 0 100%, 20px 50%);
    }
    .ribbon__gap {
        display: none;
    }
    .teaser__foot {
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "rte fm"
            "copy copy";
        padding-bottom: max(0.7rem, env(safe-area-inset-bottom, 0px));
    }
    .teaser__rte { grid-area: rte; width: min(90px, 24vw); }
    .teaser__fm { grid-area: fm; width: min(48px, 14vw); }
    .legal { grid-area: copy; font-size: 0.48rem; }
}

@media (max-width: 380px) {
    .count__num, .count__colon { font-size: 2.55rem; }
    .count__unit { min-width: 2.8rem; }
}
