:root {
    --ink: #123437;
    --muted: #5d7472;
    --taupe: #a2745d;
    --line: #d7dfda;
    --paper: #f6f4ed;
    --soft: #e8f0ec;
    --sea: #76cfc4;
    --sea-deep: #24585b;
    --sand: #d5c3ad;
    --sunset: #cf8f6f;
    --hero-text: #fffdf7;
    --serif: "EB Garamond", Georgia, serif;
    --sans: "Hanken Grotesk", Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.625;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

.shell {
    width: min(1152px, calc(100% - 128px));
    margin-inline: auto;
}

.serif {
    font-family: var(--serif);
    font-weight: 400;
}

.italic {
    font-style: italic;
}

.eyebrow {
    margin: 0;
    color: var(--taupe);
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 3.6px;
}

.site-header {
    position: absolute;
    z-index: 10;
    /* top: 24px; */
    left: 0;
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.24);
    background: linear-gradient(to bottom, rgba(8, 35, 37, 0.18), transparent);
    backdrop-filter: blur(3px);
}

.nav {
    position: relative;
    display: flex;
    align-items: center;
    height: 86px;
}

.brand {
    display: flex;
    width: 171px;
}

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

.nav-links {
    position: absolute;
    left: 50%;
    display: flex;
    align-items: center;
    gap: 32px;
    transform: translateX(-50%);
}

.nav-links a {
    color: rgba(255, 255, 255, 0.82);
    font-size: 16px;
    letter-spacing: 0.8px;
    white-space: nowrap;
}

.nav-links a:hover,
.nav-links a:focus-visible {
    color: var(--hero-text);
}

.nav-links .active {
    color: var(--hero-text);
    font-weight: 600;
    border-bottom: 1px solid;
}

.menu-toggle {
    display: none;
}

/* Hero */

.hero {
    position: relative;
    display: grid;
    place-items: center;
    height: 1600px;
    overflow: hidden;
    background:
        url("assets/background-desktop-poster.webp")
        center / cover no-repeat;
    text-align: center;
    isolation: isolate;
}

.hero-video {
    filter: brightness(1.05) saturate(0.92) contrast(1.03);
    position: absolute;
    z-index: 0;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    pointer-events: none;
}

.hero-video--desktop {
    display: block;
}

.hero-video--mobile {
    display: none;
}

.hero-overlay {
    position: absolute;
    z-index: 1;
    inset: 0;
    background:
        linear-gradient(
            to bottom,
            rgba(6, 31, 34, 0.30) 0%,
            rgba(6, 31, 34, 0.08) 42%,
            rgba(6, 31, 34, 0.16) 68%,
            rgba(6, 31, 34, 0.28) 100%
        );
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(100% - 40px, 1200px);
}

.hero h1 {
    margin: 0 0 48px;
    font: 400 96px / 1 var(--serif);
    color: var(--hero-text);
    letter-spacing: -2.4px;
    text-shadow: 0 3px 22px rgba(0, 24, 27, 0.34);
}

.outline-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 49px;
    border: 1px solid rgba(255, 255, 255, 0.88);
    color: var(--hero-text);
    background: rgba(8, 35, 37, 0.10);
    backdrop-filter: blur(3px);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.2px;
    transition:
        background-color 0.25s,
        color 0.25s;
}

.outline-button:hover,
.outline-button:focus-visible {
    background: var(--hero-text);
    color: var(--sea-deep);
}

.philosophy {
    display: grid;
    place-items: center;
    height: 545px;
    background: white;
    text-align: center;
}

.narrow {
    max-width: 672px;
    margin: auto;
}

.philosophy h2 {
    margin: 48px 0 47px;
    font-size: 48px;
    line-height: 60px;
    letter-spacing: -0.96px;
}

.divider {
    display: block;
    width: 48px;
    height: 1px;
    margin: 0 auto 47px;
    background: var(--line);
}

.philosophy .narrow > p:last-child {
    margin: 0;
    color: var(--muted);
    font-size: 18px;
    line-height: 29.25px;
}

.products {
    padding: 120px 0 118px;
}

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 64px;
}

.section-heading h2 {
    margin: 0;
    font-size: 32px;
    line-height: 39px;
}

.section-heading p {
    margin: 16px 0 0;
    color: var(--muted);
}

.filters {
    display: flex;
    gap: 16px;
}

.filter {
    padding: 0 0 5px;
    border: 0;
    background: none;
    color: var(--muted);
    opacity: 0.5;
    font-size: 12px;
    font-weight: 700;
    line-height: 12px;
    letter-spacing: 1.2px;
    cursor: pointer;
}

.filter.active {
    border-bottom: 1px solid var(--ink);
    color: var(--ink);
    opacity: 1;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.product-card {
    text-align: center;
    transition:
        opacity 0.25s,
        transform 0.25s;
}

.product-card.is-hidden {
    display: none;
}

.product-image {
    height: 460px;
    margin-bottom: 24px;
    overflow: hidden;
    background: #eee;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s;
}

.product-card:hover .product-image img {
    transform: scale(1.025);
}

.product-card h3 {
    margin: 0;
    font: 600 20px / 28px var(--serif);
    letter-spacing: -0.5px;
}

.product-card p {
    margin: 17px 16px 0;
    color: var(--muted);
    font-size: 16px;
    line-height: 26px;
}

.product-card .product-note {
    margin: 0;
    color: var(--taupe);
    font-size: 14px;
    font-style: italic;
    line-height: 20px;
}

.commitment {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 825px;
}

.commitment-image {
    background:
        url("assets/ingredients.png")
        center / cover no-repeat;
}

.commitment-copy {
    display: flex;
    align-items: center;
    padding: 120px;
    background: var(--ink);
    color: white;
}

.commitment-copy > div {
    max-width: 448px;
}

.commitment-copy .eyebrow {
    color: var(--line);
    letter-spacing: 1.2px;
    opacity: 0.8;
}

.commitment-copy h2 {
    margin: 37px 0 32px;
    font-size: 48px;
    line-height: 60px;
    letter-spacing: -0.96px;
}

.commitment-copy p:not(.eyebrow) {
    margin: 0;
    color: #8a8989;
    font-size: 18px;
    line-height: 29.25px;
}

.outline-button.light {
    margin-top: 64px;
    padding-inline: 41px;
    border-color: white;
    color: white;
}

.outline-button.light:hover,
.outline-button.light:focus-visible {
    background: white;
    color: var(--ink);
}

.inquiry {
    padding: 120px 20px;
    background: var(--soft);
}

.form-card {
    width: min(768px, 100%);
    margin: auto;
    padding: 80px;
    border: 1px solid rgba(226, 222, 208, 0.1);
    background: white;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
}

.form-heading {
    margin-bottom: 64px;
    text-align: center;
}

.form-heading h2 {
    margin: 0 0 16px;
    font-size: 48px;
    line-height: 53px;
    letter-spacing: -0.96px;
}

.form-heading p {
    margin: 0;
    color: var(--muted);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px 24px;
    margin-bottom: 48px;
}

form label {
    display: block;
    color: rgba(94, 95, 92, 0.6);
    font-size: 12px;
    font-weight: 700;
    line-height: 12px;
    letter-spacing: 1.2px;
}

input,
select,
textarea {
    display: block;
    width: 100%;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    outline: none;
    background: white;
    color: var(--ink);
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 0;
}

input,
select {
    height: 49px;
    padding: 12px;
}

textarea {
    height: 121px;
    padding: 12px;
    resize: vertical;
}

input::placeholder,
textarea::placeholder {
    color: #6b7280;
    opacity: 1;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--ink);
}

.submit-wrap {
    padding-top: 80px;
    text-align: center;
}

.submit-button {
    min-height: 52px;
    padding: 0 64px;
    border: 1px solid var(--ink);
    background: var(--ink);
    color: white;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2.4px;
    cursor: pointer;
    transition:
        background-color 0.2s,
        color 0.2s;
}

.submit-button:hover,
.submit-button:focus-visible {
    background: white;
    color: var(--ink);
}

.form-status {
    min-height: 24px;
    margin: 18px 0 -24px;
    color: var(--muted);
    font-size: 14px;
    text-align: center;
}

.site-footer {
    border-top: 1px solid var(--line);
    background: white;
}

.footer-main {
    display: flex;
    justify-content: space-between;
    min-height: 400px;
    padding-block: 120px;
}

.footer-brand > img {
    width: 187px;
    height: auto;
}

.footer-brand > p {
    margin: 24px 0;
    color: var(--muted);
    line-height: 24px;
}

.socials {
    display: flex;
    gap: 16px;
    padding-top: 8px;
    font-size: 20px;
}

.footer-links {
    display: flex;
    gap: 48px;
}

.footer-links > div {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 80px;
}

.footer-links h3 {
    margin: 0 0 8px;
    font-size: 12px;
    line-height: 12px;
    letter-spacing: 1.2px;
}

.footer-links a {
    color: var(--muted);
    line-height: 24px;
}

.footer-links a:hover,
.footer-links a:focus-visible {
    text-decoration: underline;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 85px;
    border-top: 1px solid rgba(226, 222, 208, 0.3);
    color: rgba(94, 95, 92, 0.6);
    font-size: 14px;
}

.footer-bottom p:last-child {
    letter-spacing: 1.4px;
}

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition:
        opacity 0.75s ease,
        transform 0.75s ease;
}

.reveal.visible {
    opacity: 1;
    transform: none;
}

@media (max-width: 900px) {
    .shell {
        width: min(100% - 48px, 720px);
    }

    .site-header {
        top: 0;
    }

    .nav {
        height: 78px;
    }

    .brand {
        width: 135px;
    }

    .menu-toggle {
        position: absolute;
        right: 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 6px;
        width: 40px;
        height: 40px;
        padding: 10px;
        border: 0;
        background: none;
        cursor: pointer;
    }

    .menu-toggle span {
        display: block;
        width: 20px;
        height: 1px;
        background: var(--hero-text);
        transition: transform 0.2s;
    }

    .menu-toggle[aria-expanded="true"] span:first-child {
        transform: translateY(3.5px) rotate(45deg);
    }

    .menu-toggle[aria-expanded="true"] span:last-child {
        transform: translateY(-3.5px) rotate(-45deg);
    }

    .nav-links {
        position: fixed;
        top: 78px;
        left: 0;
        display: none;
        flex-direction: column;
        gap: 20px;
        width: 100%;
        padding: 24px;
        background: rgba(14, 50, 52, 0.88);
        backdrop-filter: blur(12px);
        transform: none;
    }

    .nav-links.open {
        display: flex;
    }
    .nav-links a {
        color: rgba(255, 255, 255, 0.84);
    }

    .nav-links a:hover,
    .nav-links a:focus-visible,
    .nav-links .active {
        color: #ffffff;
    }


    .hero {
        height: 1000px;
        background:
            url("assets/background-mobile-poster.webp")
            center / cover no-repeat;
    }

    .hero-video--desktop {
        display: none;
    }

    .hero-video--mobile {
        display: block;
    }

    .hero h1 {
        font-size: 52px;
        line-height: 1.03;
        letter-spacing: -1px;
    }

    .philosophy {
        height: auto;
        padding: 100px 24px;
    }

    .philosophy h2 {
        font-size: 38px;
        line-height: 48px;
    }

    .products {
        padding: 90px 0;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 32px;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    .product-card {
        max-width: 520px;
        margin: auto;
    }

    .commitment {
        grid-template-columns: 1fr;
    }

    .commitment-image {
        min-height: 540px;
    }

    .commitment-copy {
        padding: 80px 48px;
    }

    .form-card {
        padding: 60px 40px;
    }

    .footer-main {
        flex-direction: column;
        gap: 72px;
        padding-block: 80px;
    }

    .footer-links {
        justify-content: space-between;
    }

    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
        height: auto;
        padding-block: 28px;
    }
}

@media (max-width: 560px) {
    .shell {
        width: calc(100% - 40px);
    }

    .hero {
        height: 1000px;
    }

    .hero h1 {
        margin-bottom: 40px;
        font-size: 39px;
    }

    .outline-button {
        padding-inline: 32px;
    }

    .philosophy {
        padding: 84px 24px;
    }

    .philosophy h2 {
        margin: 40px 0;
        font-size: 34px;
    }

    .divider {
        margin-bottom: 39px;
    }

    .products {
        padding: 80px 0;
    }

    .filters {
        flex-wrap: wrap;
        gap: 12px;
    }

    .product-image {
        height: 110vw;
        max-height: 460px;
    }

    .commitment-image {
        min-height: 420px;
    }

    .commitment-copy {
        padding: 72px 24px;
    }

    .commitment-copy h2 {
        font-size: 39px;
        line-height: 48px;
    }

    .commitment-copy p:not(.eyebrow) {
        font-size: 16px;
        line-height: 26px;
    }

    .inquiry {
        padding: 72px 16px;
    }

    .form-card {
        padding: 48px 24px;
    }

    .form-heading h2 {
        font-size: 42px;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .submit-wrap {
        padding-top: 56px;
    }

    .footer-links {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 48px 32px;
    }

    .footer-bottom p {
        margin: 0;
        font-size: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .hero-video {
        display: none;
    }

    .hero {
        background:
            url("assets/background-desktop-poster.webp")
            center / cover no-repeat;
    }

    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

@media (prefers-reduced-motion: reduce) and (max-width: 900px) {
    .hero {
        background:
            url("assets/background-mobile-poster.webp")
            center / cover no-repeat;
    }
}