﻿@font-face {
    font-family: 'Proxima-Nova-Extra-Condensed';
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url(../fonts/Proxima-Nova-Extra-Condensed-800.woff2) format('woff2');
}

@font-face {
    font-family: 'Proxima-Nova-Extra-Condensed';
    font-style: italic;
    font-weight: 800;
    font-display: swap;
    src: url(../fonts/Proxima-Nova-Extra-Condensed-800-italic.woff2) format('woff2');
}

@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(../fonts/Poppins-400.woff2) format('woff2');
}

@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url(../fonts/Poppins-500.woff2) format('woff2');
}

:root {
    --yellow: #fcbe00;
    --anthracite: #2f2f29;
    --anthracite-10: rgba(47, 47, 41, .1);
    --anthracite-60: rgba(47, 47, 41, .6);
    --white: #fff;
    --white-10: rgba(255, 255, 255, .1);
    --white-50: rgba(255, 255, 255, .5);
    --black: #000;
    --red: #ef413d;
    --fontbody: 'Poppins', sans-serif;
    --fontheader: 'Proxima-Nova-Extra-Condensed', sans-serif;
    --desktop-container: 1280px;
    --padding-grid: 2rem;
    --transition-default: all .3s linear;
}

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

::-webkit-scrollbar {
    display: none;
}

html {
    font-size: 62.5%;
    height: 100%;
}

body {
    font-family: var(--fontbody);
    font-size: 1.6rem;
    line-height: 1.6;
    font-weight: 400;
    color: var(--anthracite);
    -webkit-backface-visibility: visible !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: var(--white);
}

main {
    max-width: 100vw;
    overflow: hidden;
}

/* Header / Navbar */
header {
    background-color: var(--yellow);
    padding: 3rem 0;
}

.navbar {
    background-color: var(--yellow);
}

    .navbar .container {
        display: flex;
        justify-content: center;
        align-items: center;
    }

.navbar__brand {
    display: block;
}

    .navbar__brand svg {
        height: auto;
    }

.container {
    width: 100%;
    max-width: calc(100% - calc(2 * var(--padding-grid)));
    margin: 0 auto;
    padding: 0 var(--padding-grid);
    display: flex;
    flex-flow: column;
}

@media(min-width: 1400px) {
    .container {
        max-width: var(--desktop-container);
    }
}

h1, h2, h3 {
    font-family: var(--fontheader);
    font-weight: 500;
    line-height: 1;
    color: var(--anthracite);
}

h1 {
    display: flex;
    flex-flow: column;
    justify-content: center;
    align-items: center;
    font-size: 30vw; /* 45rem */
    line-height: 21.33vw; /* 32rem */
    text-transform: uppercase;
    letter-spacing: -.9vw; /* -1.35rem */
    color: var(--white);
    text-align: center;
}

@media(min-width: 1400px) {
    h1 {
        font-size: 45rem;
        line-height: 32rem;
        letter-spacing: -1.35rem;
    }
}

h1 span {
    display: block;
    opacity: 0;
}

@keyframes slideInSpice {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInCream {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

h1 .animate-spice {
    animation: slideInSpice 0.8s ease-out forwards;
    animation-delay: .7s;
}

h1 .animate-cream {
    animation: slideInCream 0.8s ease-out 0.3s forwards;
    opacity: 0;
    animation-delay: 1s;
}

@media(max-width: 1023px) {
    h1 .animate-spice {
        animation-duration: .4s;
        animation-delay: .3s;
    }

    h1 .animate-cream {
        animation-duration: .4s;
        animation-delay: .6s;
    }
}

p {
    font-size: 2rem;
    font-weight: 500;
}

.button {
    height: 4.8rem;
    min-height: 4.8rem;
    padding: .9rem 2.5rem;
    border-radius: 10rem;
    background-color: var(--anthracite);
    color: var(--white);
    text-decoration: none;
    font-size: 1.8rem;
    line-height: 3rem;
    font-weight: 500;
}

@media(pointer: fine) {
    .button {
        transition: var(--transition-default);
    }

        .button:hover {
            background-color: var(--white);
            color: var(--anthracite);
        }
}

.hero {
    background-color: var(--yellow);
    padding: 2rem 0 0;
}

    .hero p {
        font-size: 3rem;
        line-height: 4rem;
        margin-bottom: 4.5rem;
        color: var(--white);
        text-align: center;
    }

        .hero p.hero__intro {
            max-width: 100rem;
            margin: 0 auto;
            opacity: 0;
            margin-bottom: 0;
        }

    .hero .stickerwrapper {
        margin-bottom: 30rem;
    }

.video {
    background-color: var(--yellow);
}

    .video .container {
        display: flex;
        flex-flow: column;
        justify-content: center;
        align-items: center;
    }

    .video .video__thumbnail {
        position: relative;
        aspect-ratio: 16 / 9;
        z-index: 1;
        display: block;
        width: 100vw;
        margin: 0 auto;
        transform-origin: center center;
        will-change: transform;
        overflow: hidden;
    }

        .video .video__thumbnail > div,
        .video .video__thumbnail video {
            width: 100%;
            height: 100%;
            overflow: hidden;
        }

        .video .video__thumbnail img {
            width: 100%;
            height: auto;
            aspect-ratio: 16 / 9;
            /*transform: rotate(-8deg);*/
        }

        .video .video__thumbnail .video__button {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 290px;
            height: 137px;
            background: transparent;
            border: none;
            cursor: pointer;
            z-index: 5;
            will-change: transform;
            transform-origin: center center;
        }

        .video .video__thumbnail.is-playing .video__button {
            display: none;
        }

    .video .video-placeholder {
        aspect-ratio: 16 / 9;
        font-size: 0;
    }

        .video .video-placeholder img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

.celebrate {
    padding: 6rem 0 8rem;
}

    .celebrate h2 {
        font-size: 15.5vw;
        line-height: 75%;
        text-transform: uppercase;
        color: var(--yellow);
        text-align: center;
        opacity: 0;
    }

    .celebrate .stickerwrapper {
        margin-bottom: 8rem;
    }

    .celebrate p {
        text-align: center;
        max-width: 90rem;
        margin: 0 auto;
    }

        .celebrate p:has(+p) {
            margin-bottom: 2rem;
        }

@media(min-width: 1400px) {
    .celebrate h2 {
        font-size: 22rem;
        line-height: 16.5rem;
    }
}

.try {
    background-color: var(--yellow);
    padding: 12rem 0 4rem;
}

    .try .container {
        flex-flow: row;
    }

        .try .container > div {
            flex: 0 0 50%;
        }

    .try .sticker.try--icecream {
        position: relative;
        opacity: 0;
    }

        .try .sticker.try--icecream img {
            transform: translate(7rem, -7rem);
        }

    .try h2 {
        font-size: 9vw;
        line-height: 80%;
        text-transform: uppercase;
        color: var(--white);
        opacity: 0;
    }

    .try .try__text {
        opacity: 0;
    }

    .try p {
        margin-top: 4rem;
        margin-bottom: 5rem;
    }

@media(min-width: 1400px) {
    .try h2 {
        font-size: 14rem;
        line-height: 11rem;
    }
}

.whats {
    background-color: var(--yellow);
    padding: 0 0 8rem;
}

    .whats h2 {
        font-size: 9vw;
        line-height: 75%;
        text-transform: uppercase;
        color: var(--white);
        text-align: center;
        margin-bottom: 8rem;
        opacity: 0;
    }

    .whats .whats__text {
        opacity: 0;
    }

    .whats p {
        text-align: center;
        max-width: 90rem;
        margin: 0 auto;
    }

@media(min-width: 1400px) {
    .whats h2 {
        font-size: 14rem;
        line-height: 11rem;
    }
}

.closer {
    background-color: var(--anthracite);
    padding: 8rem 0;
}

    .closer .container {
        display: flex;
        flex-flow: column;
        justify-content: center;
        align-items: center;
    }

    .closer svg {
        margin-bottom: 8rem;
    }

    .closer h2 {
        font-size: 15.5vw;
        line-height: 75%;
        text-transform: uppercase;
        color: var(--white);
        text-align: center;
        overflow: hidden;
    }

        .closer h2 span {
            display: inline-block;
            opacity: 0;
            transform: translateY(20px);
        }

@media(min-width: 1400px) {
    .closer h2 {
        font-size: 22rem;
        line-height: 16.5rem;
    }
}


footer {
    background-color: var(--anthracite);
    padding: 0 0 8rem 0;
}

    footer .container {
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 1.2rem;
        color: var(--white);
    }

    footer .socials ul {
        list-style: none;
        display: flex;
        justify-content: center;
        gap: 2rem;
        margin-bottom: 3.5rem;
    }

        footer .socials ul li a {
            display: flex;
            justify-content: center;
            align-items: center;
            background-color: var(--yellow);
            min-width: 4.8rem;
            min-height: 4.8rem;
            border-radius: 4.8rem;
            font-size: 1.8rem;
            color: var(--anthracite);
            font-weight: 500;
            text-decoration: none;
        }

            footer .socials ul li a:not(:has(svg)) {
                padding-left: 2.4rem;
                padding-right: 2.4rem;
            }

@media(pointer: fine) {
    footer .socials ul li a {
        transition: var(--transition-default);
    }

        footer .socials ul li a:hover {
            background-color: var(--white);
        }
}

.stickerwrapper {
    position: relative;
}

/* https://codepen.io/patrickkunka/pen/DeZQXw */

.sticker {
    display: block;
    position: absolute;
    margin: auto;
    z-index: 5;
    width: var(--width);
    height: var(--height);
    --duration: .5s;
}

    .sticker.js-sticker {
        border-radius: var(--borderradius);
        transition: 0.2s 0.2s;
        transform: translate3d(10px, 20px, 0) scale(1.5) rotate(0);
        opacity: 0;
    }

    .sticker .back,
    .sticker .front {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 100%;
        overflow: hidden;
        transition: var(--duration);
    }

        .sticker .back::before,
        .sticker .front::before {
            content: " ";
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            height: 100%;
            transition: var(--duration);
        }

    .sticker .front {
        height: 0;
    }

        .sticker .front .content {
            position: absolute;
            bottom: 0;
            left: 0;
            display: block;
            transform: rotate(0);
            background: transparent;
            color: #FFF;
            text-align: center;
            border-radius: 50%;
        }

    .sticker .back {
        top: 130px;
        overflow: hidden;
    }

        .sticker .back::before {
            background-color: var(--anthracite);
            box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.6);
            top: 0;
        }


    .sticker.active {
        transform: translate3d(0, 0, 0) scale(1) rotate(0);
        transition-delay: 0s;
        opacity: 1;
    }

        .sticker.active .front {
            height: 269px;
        }

        .sticker.active .back {
            top: 0;
        }

            .sticker.active .back::before {
                top: -269px;
                margin-top: -5px;
                opacity: 0;
            }

    /* vars */
    .sticker .back::before,
    .sticker .front::before {
        border-radius: var(--borderradius);
    }

    .sticker .front .content {
        width: var(--width);
        height: var(--height);
    }

    .sticker.active .front {
        height: var(--height);
    }

    .sticker.active .back::before {
        top: calc(var(--height) * -1);
    }


.hero--icecream {
    top: 23%;
    right: -3%;
    transform-origin: top right !important;
    --borderradius: 50% 50% 100% 100%;
    --width: 201px;
    --height: 342px;
}

.hero--smiley {
    top: 80%;
    left: -5%;
    transform-origin: top left !important;
    --borderradius: 50%;
    --width: 279px;
    --height: 269px;
}

    .hero--smiley .back {
        transform: rotate(-10deg);
        margin-top: 20px;
    }

.hero--hashtag {
    top: 91%;
    right: -5%;
    transform-origin: top right !important;
    --borderradius: 20px;
    --width: 454px;
    --height: 173px;
}

    .hero--hashtag .back {
        transform: rotate(-10deg);
        margin-top: 40px;
    }

.hero--image {
    top: 100%;
    left: 50%;
    transform-origin: top left;
}

    .hero--image img {
        transform: translateX(-50%);
    }

.video--play {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

.video--sticker {
    top: 60rem;
    right: 27%;
    z-index: 0;
    transform-origin: top right;
    --borderradius: 100%;
    --width: 248px;
    --height: 248px;
}

.celebrate--sticker {
    bottom: -22%;
    left: calc(50% - (579px / 2));
    transform: translate(-50%);
    transform-origin: bottom center;
    --borderradius: 30px;
    --width: 579px;
    --height: 299px;
}

    .celebrate--sticker img {
        width: 420px;
        height: auto;
    }

    .celebrate--sticker .back {
        transform: rotate(-3deg);
        margin-top: 10px;
    }

.try--warning {
    top: 31%;
    right: 18%;
    transform-origin: top right;
    --borderradius: 100% 100% 20px 20px;
    --width: 153px;
    --height: 159px;
}

    .try--warning .back {
        transform: rotate(20deg);
        margin-top: 10px;
    }

.whats--sticker {
    top: -16%;
    right: 22%;
    transform-origin: top right;
    --borderradius: 30px;
    --width: 356px;
    --height: 184px;
}

    .whats--sticker .back {
        transform: rotate(-3deg);
        margin-top: 10px;
    }

.closer--hashtag {
    bottom: 1%;
    right: 14.5%;
    transform-origin: bottom right;
    --borderradius: 20px;
    --width: 411px;
    --height: 130px;
}

    .closer--hashtag .back {
        transform: rotate(-8deg);
        margin-top: 20px;
    }

.body--video .hero {
    padding-bottom: 8rem;
}

.body--video .video--sticker {
    display: none !important;
}

.body--video .celebrate {
    padding-top: 8rem;
}

@media(max-width: 1023px) {
    .navbar__brand svg, .closer svg {
        width: 12rem;
    }

    h1 {
        font-size: 35vw;
        line-height: 27vw;
    }

    p {
        font-size: 1.6rem;
        line-height: 2.4rem;
    }

    .hero {
        padding-top: 0rem;
    }

        .hero .stickerwrapper {
            margin-bottom: 24rem;
        }

        .hero p {
            font-size: 1.8rem;
            line-height: 2.6rem;
            margin-bottom: 3.5rem;
        }

            .hero p.hero__intro {
                font-size: 1.6rem;
                line-height: 2.4rem;
            }

    .hero .hero--image {
        top: 120%;
        left: 50%;
    }

        .hero .hero--icecream {
            right: -10%;
        }

        .hero .hero--hashtag {
            right: -10%;
        }

        .celebrate {
            padding: 4rem 0;
        }

    .video .video--sticker {
        display: none !important;
    }

    .celebrate h2 {
        font-size: 18vw;
        line-height: 80%;
    }

    .celebrate .stickerwrapper {
        margin-bottom: 4rem;
    }

    .try {
        padding: 0 0 2rem 0;
    }

        .try .container {
            display: block;
        }

            .try .container > div {
                flex: 0 0 100%;
            }

        .try .sticker.try--icecream {
            --height: 500px;
        }

        .try .sticker.try--icecream img {
            transform: translate(-8rem, 3rem) scale(.8);
            transform-origin: center center;
        }

        .try h2 {
            font-size: 18vw;
            line-height: 80%;
            text-align: center;
        }

        .try p {
            margin-top: 2rem;
            margin-bottom: 3rem;
            text-align: center;
        }

        .try .button {
            display: flex;
            margin: 0 auto;
        }

    .try--warning {
        top: 31%;
        right: 0%;
    }

    .whats {
        padding: 4rem 0;
    }

    .whats h2 {
        font-size: 18vw;
        line-height: 80%;
        margin-bottom: 2rem;
    }

    .whats .whats--sticker {
        top: 40%;
        right: 30%;
    }

    .closer {
        padding: 4rem 0;
    }

        .closer svg {
            margin-bottom: 4rem;
        }

        .closer h2 {
            font-size: 16vw;
            line-height: 80%;
        }

    .closer .closer--hashtag  {
        right: 7%;
    }

    footer .socials ul {
        gap: 1rem;
    }

        footer .socials ul li a {
            font-size: 1.6rem;
        }

    .body--video .hero {
        padding-bottom: 4rem;
    }

    .body--video .celebrate {
        padding-top: 4rem;
    }
}
