:root {
    --font-family: "Manrope", Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

figure {
    margin: 0;
}

body {
    font-family: var(--font-family);
    background: #fff;
    color: #101a38;
}

.packaging-hero {
    position: relative;
    isolation: isolate;
    display: grid;
    width: 100%;
    height: clamp(440px, 48vw, 690px);
    min-height: 440px;
    place-items: center;
    overflow: hidden;
    background: #75604f url("assets/packaging/kraft-hero.png") center / cover no-repeat;
}

.packaging-hero__overlay {
    position: absolute;
    z-index: -1;
    inset: 0;
    background: rgba(6, 12, 16, 0.32);
    box-shadow: inset 0 -180px 150px rgba(5, 10, 14, 0.2);
}

.packaging-hero__brand {
    display: flex;
    width: min(720px, 88vw);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.packaging-hero__brand span {
    margin-bottom: 20px;
    color: #fff;
    font-size: 32px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 6px;
}

.packaging-hero__brand img {
    display: block;
    width: min(640px, 72vw);
    height: auto;
    object-fit: contain;
}

.packaging-section {
    padding: clamp(76px, 8vw, 128px) 24px;
}

.packaging-section--soft {
    background: #fafafa;
}

.packaging-grid {
    display: grid;
    width: min(1240px, 100%);
    margin: 0 auto;
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
    align-items: center;
    gap: clamp(48px, 6vw, 94px);
}

.packaging-grid--reverse .packaging-copy {
    order: -1;
}

.packaging-copy {
    max-width: 570px;
}

.section-kicker {
    margin: 0 0 12px;
    color: #a88422;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 3px;
}

.packaging-copy h2,
.product-content h2 {
    margin: 0 0 24px;
    color: #111a38;
    font-size: clamp(30px, 3vw, 46px);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: 0;
}

.packaging-copy p,
.product-description p {
    margin: 0 0 18px;
    color: #343945;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.75;
    letter-spacing: 0;
}

.packaging-copy p:last-child,
.product-description p:last-child {
    margin-bottom: 0;
}

.packaging-media {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #e8e8e8;
}

.packaging-media--rounded {
    border-radius: 28px 4px 28px 4px;
}

.packaging-media img,
.packaging-media video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.packaging-media--facility img {
    object-position: center 42%;
}

.packaging-media--factory img {
    object-position: center 34%;
}

.packaging-media--facility,
.packaging-media--factory {
    aspect-ratio: 3 / 2;
}

.packaging-media--facility img,
.packaging-media--factory img {
    object-fit: contain;
    object-position: center;
}

.product-section {
    padding: clamp(70px, 7vw, 112px) 24px;
}

.product-section--last {
    padding-bottom: clamp(90px, 10vw, 160px);
}

.product-layout {
    position: relative;
    display: grid;
    width: min(1180px, 100%);
    min-height: 500px;
    margin: 0 auto;
    grid-template-columns: minmax(330px, 0.9fr) minmax(420px, 1.1fr);
    align-items: center;
    gap: clamp(54px, 7vw, 110px);
}

.product-layout::after {
    position: absolute;
    z-index: -1;
    right: 0;
    bottom: 0;
    width: 88%;
    height: 60%;
    background: #f0f0f0;
    content: "";
}

/* Keep product copy areas clean and white. */
.product-layout::after {
    display: none;
}

.product-visual {
    align-self: start;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.product-visual img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-content {
    align-self: stretch;
    display: flex;
    padding: 42px 46px 44px 0;
    flex-direction: column;
    justify-content: center;
}

.product-content h2 {
    margin-bottom: 28px;
}

.product-rule {
    display: block;
    width: 118px;
    height: 12px;
    margin-bottom: 58px;
    background: #3e4147;
}

.product-rule--red {
    background: #78151c;
}

@media (max-width: 900px) {
    .packaging-grid,
    .product-layout {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .packaging-grid--reverse .packaging-copy {
        order: initial;
    }

    .packaging-copy {
        max-width: none;
    }

    .packaging-grid--reverse .packaging-media {
        order: -1;
    }

    .product-layout {
        min-height: 0;
        padding-bottom: 34px;
    }

    .product-layout::after {
        width: 100%;
        height: 64%;
    }

    .product-visual {
        width: min(620px, 92%);
    }

    .product-content {
        padding: 0 28px 12px;
    }

    .product-rule {
        height: 8px;
        margin-bottom: 34px;
    }
}

@media (max-width: 700px) {
    .packaging-hero {
        height: 72svh;
        min-height: 540px;
        background-position: 58% center;
    }

    .packaging-hero__brand span {
        margin-bottom: 16px;
        font-size: 27px;
        letter-spacing: 4px;
    }

    .packaging-hero__brand img {
        width: min(430px, 82vw);
    }

    .packaging-section,
    .product-section {
        padding-right: 18px;
        padding-left: 18px;
    }

    .packaging-media--rounded {
        border-radius: 18px 3px 18px 3px;
    }

    .packaging-copy h2,
    .product-content h2 {
        font-size: 30px;
    }

    .packaging-copy p,
    .product-description p {
        font-size: 15px;
        line-height: 1.65;
    }

    .product-visual {
        width: 94%;
    }

    .product-content {
        padding-right: 18px;
        padding-left: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
    }
}
