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

/* Global / Base Styles */
body {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    width: 100%;

    /* Global Typography */
    font-family: "Inter", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-size: 14px;
    line-height: 20px;
    letter-spacing: -0.02em;
}

.content {
    margin: 0 auto;
    max-width: 1140px;
    padding-bottom: 50px;
}

.dark-bgc {
    background-color: #222222;
    color: #FFFFFF;
}

.light-bgc {
    background-color: #FFFFFF;
    color: #222222;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 50px auto 0 auto;
}

.nav-main {
    font-size: 22px;
    font-weight: 400;
    line-height: 36px;
    letter-spacing: 0;
}

.nav-links {
    display: flex;
    gap: 34px;
    line-height: 36px;
    letter-spacing: 0;
}

.navbar a {
    text-decoration: none;
    color: #000000;
}

.navbar a:visited {
    color: #000000;
}

.navbar a:hover {
    color: #292929;
}

#intro-lh a {
    color: inherit;
}

/* Typography Classes */
.page-title {
    flex: 1;
    font-size: 45px;
    font-weight: 460;
    line-height: 52px;
    letter-spacing: -0.03em;
}

.section-title {
    font-size: 35px;
    font-weight: 480;
    line-height: 43px;
    letter-spacing: -0.04em;
    word-spacing: 4px;
    color: #000000;
}

.subtitle,
.text-medium {
    font-size: 18px;
    font-weight: 400;
}

#intro-lh .subtitle {
    line-height: 25px;
    letter-spacing: -0.03em;
}

#intro-rh {
    color: #000000;
    letter-spacing: -0.03em;
    line-height: 22px;
}

.card-title {
    margin-bottom: 6px;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.meta-heading {
    line-height: 19px;
    letter-spacing: -0.02em;
    font-size: 14px;
    margin-bottom: 40px;
    color: #000000;
}

.minor-heading {
    font-size: 27px;
    font-weight: 400;
}

.dark-card .minor-heading {
    margin-bottom: 20px;
    color: #FFFFFF;
}

.vert-text {
    margin-bottom: 26px;
    letter-spacing: -0.02em;
    line-height: 20px;
}

@media (max-width: 768px) {

    .grid-2-col,
    .grid-3-col,
    .card-grid,
    #reborn-intro,
    #reborn-challenge,
    #whole-bean-packaging,
    #whole-bean-label {
        grid-template-columns: 1fr;
    }
}

/* Layout Grids */
.grid-2-col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    align-items: start;
}

.grid-3-col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    align-items: start;
}

#mockup-signs {
    gap: 30px;
}

#challenge {
    gap: 20px;
}

/* Reborn precise typographic gaps */
#reborn-intro {
    gap: 10px;
}

#reborn-challenge {
    gap: 30px;
}

#whole-bean-packaging {
    gap: 10px;
}

#whole-bean-label {
    gap: 12px;
}

#reborn-intro,
#reborn-challenge,
#whole-bean-packaging,
#whole-bean-label {
    /* Prevent columns from stretching due to content, forcing a strict 50/50 split of remaining space */
    grid-template-columns: repeat(2, minmax(0, 1fr));
}




.grid-3-col img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.project-row {
    display: grid;
    grid-template-columns: 400px 1fr 1fr;
    gap: 24px;
    align-items: start;
}

.project-row>div>div:last-child:not(.card-title) {
    color: #828282;
    letter-spacing: -0.02em;
    line-height: 18px;
}

.image-row-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.image-row-3 img,
.image-row-3 .img-wrap {
    width: 100%;
    aspect-ratio: 368 / 373;
    object-fit: cover;
    border-radius: 20px;
}

.image-row-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 30px;
}

.image-row-2 img,
.image-row-2 video {
    width: 100%;
    aspect-ratio: 540 / 570;
    object-fit: cover;
    border-radius: 24px;
}

.menu-grid {
    display: grid;
    grid-template-columns: 494fr 598fr;
    gap: 30px;
    margin-bottom: 60px;
}

.menu-grid img {
    width: 100%;
    height: 600px;
    object-fit: cover;
    border-radius: 24px;
}

.card-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    align-items: center;
}

/* General Layout Elements */
.placeholder-img {
    width: 100%;
    margin: 15px 0 50px 0;
    object-fit: cover;
    border-radius: 28px;
}

.mockup-signs-wrapper {
    width: 100%;
    height: 680px;
    overflow: hidden;
    border-radius: 28px;
}

#mockup-signs-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.15) translateX(40px) translateY(-2px);
}

.menu-cafe-wrapper {
    width: 100%;
    height: 600px;
    overflow: hidden;
    border-radius: 24px;
}

.menu-cafe-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.39) translateX(-22px) translateY(24px);
}

.tile-card {
    height: 260px;
    width: 100%;
    object-fit: cover;
    border-radius: 20px;
    vertical-align: top;
}

.divider {
    width: 100%;
    height: 2px;
    background-color: #C5C4C4;
    margin: 24px 0 32px 0;
}

.project-divider {
    margin-top: 26px;
    margin-bottom: 26px;
}

.navbar+.divider {
    margin-top: 16px;
}

/* Spacing Utilities */
.shift-left-12 {
    position: relative;
    left: -24px;
}

.pb-home {
    padding-bottom: 250px;
}

.mb-home-intro {
    margin-bottom: 172px;
}

.mt-neg-xxs {
    margin-top: -0.5em;
}

.mt-neg-xs {
    margin-top: -11px;
}

.mt-neg-sm {
    margin-top: -15px;
}

.mt-sm {
    margin-top: 1rem;
}

.mt-md {
    margin-top: 2.5rem;
}

.mt-lg {
    margin-top: 6rem;
}

.mb-none {
    margin-bottom: 0 !important;
}

.mb-neg-sm {
    margin-bottom: -20px;
}

.mb-sm {
    margin-bottom: 1rem;
}

.mb-md {
    margin-bottom: 2.5rem;
}

.mb-lg {
    margin-bottom: 6rem;
}

.mb-xl {
    margin-bottom: 4rem;
}

.mb-56 {
    margin-bottom: 56px !important;
}

.pl-sm {
    padding-left: 1%;
}

.pl-md {
    padding-left: 2.5rem;
}

.pl-lg {
    padding-left: 44px;
}

.pr-sm {
    padding-right: 1rem;
}

.pr-md {
    padding-right: 2.5rem;
}

.pr-lg {
    padding-right: 3em;
}

.px-meta {
    padding: 0 15% 0 5%;
}

.pr-challenge {
    padding-right: 25%;
}

/* Reborn/Knotted Specific Elements */
.logos {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    text-align: center;
    border: 2px solid #C5C4C4;
    border-radius: 40px;
    gap: 1px;
    width: 100%;
    height: 328px;
    margin: 30px 0 44px 0;
}

.logo {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex: 1;
    position: relative;
}

.logo-img {
    position: relative;
    width: 60%;
    object-fit: fill;
}

.logo-img-new {
    position: relative;
    width: 52%;
    object-fit: fill;
}

.logo-txt {
    font-size: 16px;
    line-height: 46px;
    letter-spacing: -0.02em;
}

.rh-border::before {
    content: "";
    position: absolute;
    right: -2px;
    top: 36%;
    width: 1px;
    height: 25%;
    background-color: #C5C4C4;
}

.dark-card {
    background-color: #222222;
    color: #DDDDDD;
    border: 2px solid #222222;
    border-radius: 20px;
    padding: 60px 40px 50px 40px;
    margin-bottom: 26px;
}

.design-concept img {
    width: 100%;
    object-fit: cover;
    object-position: center;
    margin-left: -32px;
}

.crop-gif-container {
    position: relative;
    overflow: hidden;
    width: 350px;
    height: 400px;
}

.crop-gif-container.initial {
    margin-left: 12px;
}

.crop-gif-container.initial>img {
    position: absolute;
    top: 49%;
    left: 50%;
    transform: translate(-49%, -50%);
    width: 125%;
    height: auto;
    max-width: none;
}

.crop-gif-container.final {
    margin-left: 10px;
}

.crop-gif-container.final>img {
    position: absolute;
    top: 47%;
    left: 50%;
    transform: translate(-47%, -50%);
    width: 135%;
    height: auto;
    max-width: none;
}

.rounded-border {
    border-radius: 30px;
    overflow: hidden;
}

.rounded-border>img {
    width: 100%;
}

.closing-statement {
    text-align: center;
}

.closing-text {
    max-width: 440px;
    margin: 1rem auto 2rem auto;
    letter-spacing: -0.02em;
}