:root {
    /* Text colors */
    --color-white: rgb(255, 255, 255);
    --color-black: rgb(0, 0, 0);
    /* Layout */
    --gutter: 2.4rem;
    --radius: 2.4rem;
}





html {
    height: 100%;
}
body {
    height: 100%;
    font-family: "Helvetica Neue World", Arial, serif;
    font-weight: normal;
    font-style: normal;
    font-size: 1.8rem;
    color: var(--color-black);
    line-height: 1.4;
    letter-spacing: 0.025em;
}

section {
    padding-top: 6rem;
    padding-bottom: 6rem;
}
.section--t12 {
    padding-top: 12rem;
}
.section--t6 {
    padding-top: 6rem;
}
.section--b12 {
    padding-bottom: 12rem;
}
.section--b6 {
    padding-bottom: 6rem;
}
.section--dark {
    background-color: var(--color-black);
    color: var(--color-white);
}

h1, h2, h3 {
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1;
    text-wrap: balance;
}
h2 {
    font-size: 6rem;
}
h3 {
    font-size: 2.4rem;
}
a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
}



.grid {
    display: grid;
    gap: var(--gutter);
}
.grid--c2 {
    grid-template-columns: 1fr 1fr;
}
.grid--c3 {
    grid-template-columns: repeat(3, 1fr);
}
.grid--c5 {
    grid-template-columns: repeat(5, 1fr);
}
.grid--c6 {
    grid-template-columns: repeat(6, 1fr);
}
.grid--r2 {
    grid-template-rows: 1fr 1fr;
}
.grid--s4 {
    grid-column: span 4;
}
.grid--s2 {
    grid-column: span 2;
}

.wrapper {
    max-width: 144rem;
    margin: 0 auto;
    padding-left: calc(var(--gutter)*2);
    padding-right: calc(var(--gutter)*2);
    position: relative;
}

.compact {
    line-height: 1.2;
}

.title {
    margin-bottom: calc(var(--gutter)*2);
}
.title--center {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.subtitle {
    font-size: 3.6rem;
    font-weight: 300;
    line-height: 1.2;
    text-wrap: balance;
}
.title--center .subtitle {
    max-width: 50%;
    margin-top: var(--gutter);
}

.tile {
    background-color: #f2f2f2;
    border-radius: var(--radius);
    box-sizing: border-box;
    padding: calc(var(--gutter)*1.5);
    position: relative;
    overflow: hidden;
}
.tile--dark {
    background-color: #1a1a1a;
}



#cover {
    height: 100%;
    color: var(--color-white);
    box-sizing: border-box;
    padding-top: 6rem;
    padding-bottom: 6rem;
    position: relative;
    overflow: hidden;
}

#cover__background {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

#cover .wrapper {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

#header {
    width: 100%;
    display: flex;
    justify-content: center;
    position: relative;
}
.header__item {
    display: block;
    position: absolute;
    top: 50%;
    transform: translate(0, -50%);
    font-size: 1.8rem;
    opacity: 0.5;
}
.header__item--left {
    left: 0;
}
.header__item--right {
    right: 0;
}
#header__logo {
    display: block;
}
#header__logo img {
    height: 6rem;
}

#cover__title {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 40%;
    transform: translate(-50%, -50%);
}

#cover__footer {
    opacity: 0.5;
}



#marquee .swiper-wrapper {
    -webkit-transition-timing-function: linear !important;
    transition-timing-function: linear !important;
}
#marquee .swiper-slide {
    width: 25%;
    background-color: #ccc;
    margin-left: calc(var(--gutter)/2);
    margin-right: calc(var(--gutter)/2);
    aspect-ratio: 1/1;
    border-radius: var(--radius);
    overflow: hidden;
}
#marquee .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}



#story {
    margin-bottom: calc(var(--gutter)*3);
}



#vision {
    aspect-ratio: 4/3;
    background-image: url(images/vision.webp);
    background-size: cover;
    background-position: center;
    color:var(--color-white);
    padding: calc(var(--gutter)*2);
    display: flex;
    flex-direction: column;
}
#vision::before {
    content: "";
    display: block;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: #000000;
    background: linear-gradient(0deg,rgba(0, 0, 0, 0.666) 0%, rgba(0, 0, 0, 0) 50%);
}
#vision div {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    position: relative;
}
#vision img {
    position: absolute;
    left: 0;
    top: 0;
    height: 3.6rem;
}
#vision span {
    display: block;
}
#vision h3 {
    font-size: 4.8rem;
}

#mission .tile {
    display: flex;
    flex-direction: column;
}
#mission .tile__wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}
#mission .tile span {
    display: block;
}
#mission .tile img {
    position: absolute;
    height: 3.6rem;
    top: 0;
    right: 0;
}
#mission .tile h3 {
    margin-bottom: calc(var(--gutter)*0.5);
}



#roastery .tile {
    display: flex;
    aspect-ratio: 2/1;
    align-items: center;
    justify-content: center;
}
#roastery .tile::after {
    content: "";
    display: block;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-black);
    opacity: 0.333;
    z-index: 2;
    transition: opacity 400ms ease-out;
}
#roastery__thumbnail {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    transition: transform 400ms ease-out;
}
#roastery__play {
    height: 12rem;
    position: relative;
    z-index: 3;
    transition: transform 400ms ease-out;
}
#roastery p {
    margin-top: calc(var(--gutter)*2);
    opacity: 0.5;
    text-align: center;
}
#roastery .tile:hover #roastery__thumbnail {
    transform: scale(1.05);
}
#roastery .tile:hover::after {
    opacity: 0.5;
}
#roastery__play:hover {
    transform: scale(1.05);
}



#team__photo {
    aspect-ratio: 2/1;
    margin-right: calc(var(--gutter)*2);
    background-image: url(images/team.webp);
    background-size: cover;
    background-position: center;
}
#team__text h2 {
    margin-bottom: var(--gutter);
}
#team__text .subtitle {
    margin-bottom: var(--gutter);
}
#team__text p {
    margin-bottom: calc(var(--gutter)*0.5);
}



.products__header {
    display: flex;
    justify-content: space-between;
}
.products__header h3 {
    font-size: 3.6rem;
    line-height: 1;
}
.products__header p {
    line-height: 1.2;
    text-align: right;
}

#products .tile > img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: contain;
    margin-bottom: var(--gutter);
}
#products .tile > p {
    line-height: 1.2;
    margin-bottom: var(--gutter);
}

.products__footer {
    font-size: 1.6rem;
    line-height: 1.2;
}
.products__footer > p {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}
.products__footer > div {
    text-align: right;
}
.products__footer > div span {
    display: block;
    font-size: 2.4rem;
    font-weight: bold;
    margin-bottom: calc(var(--gutter)*0.5);
}



#services .tile {
    aspect-ratio: 1/1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
#services .tile img {
    width: 4.8rem;
    height: 4.8rem;
}
#services .tile p {
    line-height: 1.2;
}



#footer__logo img {
    width: 50%;
    margin-bottom: calc(var(--gutter)*1.5);
}
#footer__logo p {
    line-height: 1.2;
}
#footer .tile {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
#footer .tile h3 {
    margin-bottom: var(--gutter);
}
#footer .tile p {
    opacity: 0.666;
}
#footer .tile p.larger {
    font-size: 2.4rem;
}

#address {
    font-size: 1.6rem;
    line-height: 1.2;
}

#social {
    display: flex;
    justify-content: space-between;
}
#social a {
    display: flex;
    align-items: center;
    opacity: 0.666;
    font-size: 1.6rem;
    transition: opacity 200ms ease-out;
}
#social a.disabled {
    opacity: 0.2;
}
#social a:not(.disabled):hover {
    opacity: 1;
}
#social a img {
    height: 1.8rem;
    margin-top: 0.6rem;
    margin-right: 0.6rem;
}

#copyright {
    text-align: center;
    font-size: 1.2rem;
    margin-top: 6rem;
    opacity: 0.333;
}



/* 200% = 4K */
@media only screen and (max-width: 3840px) {
    html {
        font-size: 125%;
    }
}
/* 175% */
@media only screen and (max-width: 3360px) {
    html {
        font-size: 109.375%;
    }
}
/* 150% */
@media only screen and (max-width: 2880px) {
    html {
        font-size: 93.75%;
    }
}
/* 125% */
@media only screen and (max-width: 2400px) {
    html {
        font-size: 78.125%;
    }
}
/* 100% */
@media only screen and (max-width: 1920px) {
    html {
        font-size: 62.5%;
    }
}
/* 90% */
@media only screen and (max-width: 1728px) {
    html {
        font-size: 56.25%;
    }
}
/* 80% */
@media only screen and (max-width: 1536px) {
    html {
        font-size: 50%;
    }
}
/* 70% */
@media only screen and (max-width: 1344px) {
    html {
        font-size: 43.75%;
    }
}
/* 60% */
@media only screen and (max-width: 1152px) {
    html {
        font-size: 37.5%;
    }
}



/* 50% */
@media only screen and (max-width: 960px) {
    html {
        font-size: 62.5%;
    }

    section {
        padding-top: 4.8rem;
        padding-bottom: 4.8rem;
    }
    .section--t12 {
        padding-top: 9.6rem;
    }
    .section--t6 {
        padding-top: 4.8rem;
    }
    .section--b12 {
        padding-bottom: 9.6rem;
    }
    .section--b6 {
        padding-bottom: 4.8rem;
    }

    .rule {
        border-top: solid 1px #CCCCCC;
    }

    .title--center .subtitle {
        max-width: none;
    }

    .header__item {
        display: none;
    }

    #cover__title {
        width: 66.666%;
    }

    #marquee .swiper-slide {
        width: 50%;
    }

    #mission-vision {
        grid-template-columns: 1fr;
    }
    #mission .tile span {
        margin-bottom: calc(var(--gutter)*2);
    }

    #team {
        grid-template-columns: 1fr;
    }
    #team__photo {
        margin-right: 0;
        grid-column: auto;
    }
    #team__text {
        grid-column: auto;
    }
    #team__text > div {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: var(--gutter);
    }
    #team__text > h2 {
        text-align: center;
        margin-bottom: var(--gutter);
    }
    #team__text > .subtitle {
        text-align: center;
        margin-bottom: calc(var(--gutter)*2);
    }

    #products {
        grid-template-columns: 1fr;
    }
    
    #services {
        grid-template-columns: 1fr 1fr 1fr;
    }

    #footer {
        grid-template-columns: 1fr;
    }
    #footer .grid--r2 {
        grid-template-rows: 1fr;
        grid-template-columns: 1fr 1fr;
    }
    #footer .tile#footer__logo {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: var(--gutter);
        align-items: center;
    }
    #footer__logo img {
        width: auto;
        height: 7.2rem;
        margin-bottom: 0;
    }
    #social a img {
        display: none;
    }

    #copyright {
        margin-top: 4.8rem;
    }
}



/* PHONE */
@media only screen and (max-width: 600px) {
    html {
        font-size: 46.875%;
    }

    h2 {
        font-size: 4.8rem;
    }

    section {
        padding-top: 3.6rem;
        padding-bottom: 3.6rem;
    }
    .section--t12 {
        padding-top: 7.2rem;
    }
    .section--t6 {
        padding-top: 3.6rem;
    }
    .section--b12 {
        padding-bottom: 7.2rem;
    }
    .section--b6 {
        padding-bottom: 3.6rem;
    }

    .wrapper {
        padding-left: var(--gutter);
        padding-right: var(--gutter);
    }

    .subtitle {
        font-size: 3rem;
        text-wrap: balance;
    }
    .subtitle br {
        display: none;
    }

    .title--center {
        align-items: flex-start;
        text-align: left;
    }

    #cover {
        padding-top: 4.8rem;
        padding-bottom: 3.6rem;
    }
    #cover__title {
        width: 75%;
    }

    #story {
        grid-template-columns: 1fr;
    }

    #marquee .swiper-slide {
        width: 66.666%;
    }

    #vision {
        padding: calc(var(--gutter)*1.5);
    }
    #vision h3 {
        font-size: 3.6rem;
    }

    #mission {
        grid-template-columns: 1fr;
    }

    #roastery p {
        text-align: left;
    }

    #team__text > h2 {
        text-align: left;
    }
    #team__text > .subtitle {
        text-align: left;
    }
    #team__text > div {
        display: block;
    }

    #services {
        grid-template-columns: 1fr 1fr;
    }
    #services .tile {
        aspect-ratio: unset;
    }
    #services .tile img {
        margin-bottom: var(--gutter);
    }

    #footer .grid--r2 {
        grid-template-columns: 1fr;
    }
    #footer .tile#footer__logo {
        grid-template-columns: 1fr;
        align-items: flex-start;
    }
    #social a img {
        display: block;
    }

    #copyright {
        margin-top: var(--gutter);
    }
}