body:has(.home-hero) {
    background: #f5efe3;
}

/* =========================
   MAIN HERO
   The artwork is rendered directly, without overlays, masks, filters, or gradients.
========================= */
body:has(.home-hero) > header.bg-hero {
    display: none;
}

.home-hero {
    position: relative;
    z-index: 0;
    width: 100vw;
    height: auto;
    min-height: 0;
    max-height: none;
    aspect-ratio: 1660 / 948;
    margin-left: calc(50% - 50vw);
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #f5efe3;
}

.home-hero-media {
    position: absolute;
    inset: 0;
    z-index: -1;
    display: block;
}

.home-hero-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center top;
}

.home-hero-content {
    width: min(100%, 82rem);
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 5vw, 4rem) 4rem;
}

.home-hero-brand {
    display: flex;
    align-items: center;
    gap: clamp(1rem, 2vw, 1.75rem);
}

.home-hero-mark {
    width: clamp(4.5rem, 8vw, 7.5rem);
    height: auto;
}

.home-hero h1 {
    margin: 0;
    color: var(--deep-teal);
    font: 400 clamp(6rem, 13vw, 12rem)/0.85 var(--font-brand);
    letter-spacing: 0;
}

.home-hero-content > p {
    margin: 1.5rem 0 0 clamp(5.5rem, 10vw, 9.25rem);
    color: var(--berry);
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

@media (max-width: 640px) {
    .home-hero {
        height: auto;
        min-height: 0;
        aspect-ratio: 948 / 1659;
        align-items: flex-end;
    }

    .home-hero-content {
        padding: 0 1rem 5.5rem;
    }

    .home-hero-brand {
        gap: 0.8rem;
    }

    .home-hero-mark {
        width: 4rem;
    }

    .home-hero h1 {
        font-size: clamp(4.8rem, 23vw, 7rem);
    }

    .home-hero-content > p {
        margin-left: 4.8rem;
    }
}
/* 
   HOMEPAGE INTERACTIVE SECTION
 */

.microplastic-section {
    box-sizing: border-box;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    min-height: 650px;

    display: flex;
    align-items: center;

    justify-content: center;

    gap: 100px;

    padding: 70px 40px;

    background: #f5efe3;
}


/* 
   LEFT SIDE
 */

.microplastic-interactive {
    position: relative;

    width: 430px;

    min-height: 500px;

    display: flex;
    flex-direction: column;
    align-items: center;

    cursor: pointer;

    transition: all .6s ease;
}


/* 
   MOLECULE
 */

.microplastic-illustration {

    position: relative;

    width: 300px;
    height: 300px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle at 35% 30%,
            var(--sage),
            var(--deep-teal) 55%,
            var(--deep-teal) 100%
        );

    box-shadow:
        0 20px 45px rgba(36, 121, 132, .18),
        inset 10px 10px 20px rgba(255,255,255,.35);

    transition:
        width .7s cubic-bezier(.22,1,.36,1),
        height .7s cubic-bezier(.22,1,.36,1),
        transform .7s cubic-bezier(.22,1,.36,1);
}


   BUBBLES
 */

.bubble {
    position: absolute;

    width: 62px;
    height: 62px;

    border-radius: 50%;

    background: #f4eee3;

    box-shadow:
        5px 8px 15px rgba(0,0,0,.08),
        inset 5px 5px 10px rgba(255,255,255,.7);

    transition: all .7s ease;
}

.bubble-1 {
    top: 20px;
    left: 55px;
}

.bubble-2 {
    top: 55px;
    right: 25px;
}

.bubble-3 {
    bottom: 35px;
    left: 35px;
}

.bubble-4 {
    bottom: 25px;
    right: 55px;
}


/* CENTER */

.molecule-center {

    position: absolute;

    width: 105px;
    height: 105px;

    top: 50%;
    left: 50%;

    transform: translate(-50%, -50%);

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: var(--dusty-rose);

    font-size: 35px;

    color: var(--berry);

    box-shadow:
        0 10px 25px rgba(0,0,0,.12),
        inset 5px 5px 10px rgba(255,255,255,.7);
}


/* LABEL */

.molecule-label {

    position: absolute;

    bottom: -40px;
    left: 50%;

    transform: translateX(-50%);

    white-space: nowrap;

    font-family: var(--font-body);

    font-size: 13px;
    font-weight: 700;

    letter-spacing: 3px;

    color: var(--dark-text);
}


/* 
   CLICK ME
 */

.click-label {

    margin-top: 60px;

    display: flex;
    flex-direction: column;
    align-items: center;

    font-family: var(--font-display);

    font-size: 21px;

    color: var(--berry);

    transition: all .4s ease;
}

.click-arrow {

    margin-top: 5px;

    animation: bounceArrow 1.5s infinite;
}

@keyframes bounceArrow {

    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(7px);
    }
}


/* 
   RIGHT SIDE TEXT
 */

.home-introduction {

    width: 500px;

    max-width: 90vw;
}


/* SMALL LABEL */

.intro-label {

    font-family: var(--font-body);

    font-size: 13px;

    font-weight: 700;

    letter-spacing: 4px;

    color: var(--berry);

    text-transform: uppercase;
}


/* MAIN HEADING */

.home-introduction h2 {

    margin-top: 18px;

    margin-bottom: 25px;

    font-family: var(--font-display);

    font-size: 48px;

    line-height: 1.1;

    font-weight: 400;

    color: var(--dark-text);
}

.home-introduction h2 span {

    color: var(--deep-teal);

    font-style: italic;
}


/* BODY */

.intro-text {

    font-size: 17px;

    line-height: 1.8;

    color: var(--body-text);

    margin-bottom: 18px;
}


/* LINE */

.intro-line {

    width: 70px;

    height: 3px;

    margin: 30px 0;

    background: var(--berry);
}


/* SMALL TEXT */

.intro-small {

    font-size: 14px;

    line-height: 1.7;

    color: var(--body-text);

    max-width: 430px;
}


/* 
   EXPANDED STATE
 */

.microplastic-interactive.open {

    width: 500px;
}


/* SMALLER MOLECULE */

.microplastic-interactive.open .microplastic-illustration {

    width: 130px;
    height: 130px;

    transform: translateY(-5px);
}

.microplastic-interactive.open .molecule-center {

    width: 50px;
    height: 50px;

    font-size: 20px;
}

.microplastic-interactive.open .bubble {

    width: 28px;
    height: 28px;
}

.microplastic-interactive.open .bubble-1 {
    top: 8px;
    left: 25px;
}

.microplastic-interactive.open .bubble-2 {
    top: 18px;
    right: 8px;
}

.microplastic-interactive.open .bubble-3 {
    bottom: 10px;
    left: 10px;
}

.microplastic-interactive.open .bubble-4 {
    bottom: 8px;
    right: 25px;
}

.microplastic-interactive.open .molecule-label {
    display: none;
}


/* HIDE CLICK */

.microplastic-interactive.open .click-label {
    display: none;
}


/* CONTENT */

.microplastic-content {

    width: 100%;

    max-height: 0;

    opacity: 0;

    overflow: hidden;

    margin-top: 0;

    padding: 0 30px;

    background: var(--white);

    border-radius: 28px;

    transform: translateY(20px);

    transition:
        max-height .7s ease,
        opacity .5s ease,
        margin-top .6s ease,
        padding .6s ease,
        transform .6s ease;
}


/* OPEN CONTENT */

.microplastic-interactive.open .microplastic-content {

    max-height: 600px;

    opacity: 1;

    margin-top: 15px;

    padding: 30px;

    transform: translateY(0);
}


/* HEADING */

.content-heading {

    display: flex;

    align-items: center;

    gap: 15px;

    margin-bottom: 18px;
}

.content-heading h2 {

    margin: 0;

    font-family: var(--font-display);

    font-size: 27px;

    color: var(--dark-text);
}

.content-number {

    font-family: var(--font-body);

    font-size: 12px;

    font-weight: bold;

    letter-spacing: 2px;

    color: var(--berry);
}


/* CONTENT TEXT */

.microplastic-content > p {

    font-size: 15px;

    line-height: 1.7;

    color: var(--body-text);

    margin-bottom: 15px;
}


/* FACT */

.microplastic-fact {

    display: flex;

    gap: 15px;

    padding: 18px;

    margin-top: 20px;

    border-left: 3px solid var(--berry);

    background: #f4eee3;

    border-radius: 0 15px 15px 0;
}

.microplastic-fact > span {

    font-size: 22px;

    color: var(--berry);
}

.microplastic-fact strong {

    font-family: var(--font-display);

    color: var(--dark-text);
}

.microplastic-fact p {

    margin: 4px 0 0;

    font-size: 13px;

    line-height: 1.5;

    color: var(--body-text);
}


/* CLOSE */

.close-hint {

    margin-top: 20px;

    text-align: center;

    font-family: var(--font-body);

    font-size: 9px;

    letter-spacing: 2px;

    color: var(--sage);
}


/* 
   MOBILE
 */

@media (max-width: 900px) {

    .microplastic-section {

        flex-direction: column;

        gap: 50px;

        padding: 60px 20px;
    }

    .microplastic-interactive {

        width: 100%;
    }

    .home-introduction {

        width: 100%;

        text-align: center;
    }

    .intro-line {

        margin: 25px auto;
    }

    .intro-small {

        margin: auto;
    }
    .home-introduction h2 {
        font-size: 38px;
    }
}


/* Homepage logo size */
.final-logo {
    width: 180px;
    height: auto;
}

/* 
   HOMEPAGE STORY SECTIONS
 */

.home-story {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 110px 60px;

    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 90px;

    align-items: center;
}


/* IMAGE */

.home-story-image {
    position: relative;
    width: 100%;
    max-width: 500px;
    aspect-ratio: 4 / 5;

    overflow: hidden;
    border-radius: 28px;

    background: var(--sage);

    box-shadow:
        0 20px 45px rgba(43, 98, 108, 0.12);

    transition:
        transform 0.5s ease,
        box-shadow 0.5s ease;
}


.home-story-image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    transition:
        transform 0.8s cubic-bezier(.22,1,.36,1);
}
.home-story-left .home-story-image img {
    object-fit: contain;
    padding: 30px;
}

/* IMAGE HOVER */

.home-story-image:hover {
    transform: translateY(-8px);

    box-shadow:
        0 30px 55px rgba(43, 98, 108, 0.18);
}


.home-story-image:hover img {
    transform: scale(1.04);
}


/* IMAGE LABEL */

.story-image-label {
    position: absolute;

    bottom: 18px;
    left: 18px;

    padding: 8px 12px;

    border-radius: 20px;

    background: rgba(255,255,255,0.88);

    color: var(--deep-teal);

    font-family: var(--font-body);

    font-size: 10px;
    font-weight: 700;

    letter-spacing: 2px;
}


/* TEXT */

.home-story-text {
    max-width: 500px;
}


.story-eyebrow {
    display: block;

    margin-bottom: 15px;

    color: var(--berry);

    font-family: var(--font-body);

    font-size: 12px;
    font-weight: 700;

    letter-spacing: 3px;
}


/* HEADING */

.home-story-text h2 {
    margin: 0 0 25px;

    color: var(--dark-text);

    font-family: var(--font-display);

    font-size: clamp(2.4rem, 4vw, 3.6rem);

    font-weight: 400;

    line-height: 1.08;
}


.home-story-text h2 span {
    display: block;

    color: var(--deep-teal);

    font-style: italic;
}


/* PARAGRAPHS */

.home-story-text p {
    margin-bottom: 18px;

    color: var(--body-text);

    font-size: 16px;

    line-height: 1.8;
}


/* DECORATIVE LINE */

.story-accent {
    width: 65px;
    height: 3px;

    margin: 28px 0 18px;

    background: var(--berry);

    border-radius: 5px;
}


/* NUMBER */

.story-number {
    color: var(--olive-green);

    font-family: var(--font-body);

    font-size: 11px;
    font-weight: 700;

    letter-spacing: 3px;
}


/* 
   SCROLL ANIMATION
 */

.home-story-image,
.home-story-text {
    opacity: 0;

    transform: translateY(45px);
}


.home-story.is-visible .home-story-image {
    animation:
        story-image-in 0.9s cubic-bezier(.22,1,.36,1)
        forwards;
}


.home-story.is-visible .home-story-text {
    animation:
        story-text-in 0.9s cubic-bezier(.22,1,.36,1)
        0.15s
        forwards;
}


@keyframes story-image-in {

    from {
        opacity: 0;
        transform: translateY(45px) scale(.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

}


@keyframes story-text-in {

    from {
        opacity: 0;
        transform: translateY(45px);
    }

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

}


/* 
   MOBILE
 */

@media (max-width: 850px) {

    .home-story,
    .home-story-right {

        grid-template-columns: 1fr;

        gap: 45px;

        padding: 80px 25px;

    }

    .home-story-image {

        max-width: 600px;

        margin: auto;

    }

    .home-story-text {

        max-width: 600px;

        margin: auto;

    }

    .home-story-right .home-story-image {
        grid-row: 1;
    }

    .home-story-right .home-story-text {
        grid-row: 2;
    }

}


/* 
   REDUCED MOTION
 */

@media (prefers-reduced-motion: reduce) {

    .home-story-image,
    .home-story-text {

        opacity: 1;

        transform: none;

        animation: none !important;

    }

    .home-story-image,
    .home-story-image img {

        transition: none;

    }

}


.work-section {
    position: relative;
    width: 100%;
    padding: 100px 6%;
    background: #f4eee3;
    overflow: hidden;
}

.work-header {
    max-width: 800px;
    margin: 0 auto 60px;
    text-align: center;
}

.work-eyebrow {
    display: inline-block;
    margin-bottom: 15px;
    color: var(--berry);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.2em;
}

.work-header h2 {
    margin: 0 0 20px;
    color: var(--deep-teal);
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1.05;
}

.work-header h2 span {
    color: var(--berry);
}

.work-header p {
    margin: 0 auto;
    max-width: 650px;
    color: var(--dark-text);
    font-size: 1.05rem;
    line-height: 1.8;
}


/* 
   TABS
 */

.work-tabs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1300px;
    margin: 0 auto;

    /* IMPORTANT */
    opacity: 1;
    visibility: visible;
}


/* Individual cards */

.work-tab {
    position: relative;
    display: flex;
    flex-direction: column;

    min-height: 360px;
    padding: 30px;

    text-decoration: none;

    background: var(--white);
    border: 1px solid rgba(47, 105, 117, 0.15);
    border-radius: 24px;

    overflow: hidden;

    opacity: 1;
    visibility: visible;

    color: var(--dark-text);

    box-shadow: 0 15px 35px rgba(43, 98, 108, 0.08);

    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease;
}


/* Hover */

.work-tab:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(43, 98, 108, 0.16);
}


/* Number */

.work-tab-number {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--berry);
}


/* Icon */

.work-tab-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 65px;
    height: 65px;

    margin: 30px 0 25px;

    border-radius: 50%;

    background: var(--sage);
    color: var(--deep-teal);

    font-size: 2rem;
}


/* Content */

.work-tab-content {
    position: relative;
    z-index: 2;
}

.work-tab-content h3 {
    margin: 0 0 12px;

    color: var(--deep-teal);

    font-size: 1.5rem;
    font-weight: 700;
}

.work-tab-content p {
    margin: 0;

    color: var(--dark-text);

    font-size: 0.95rem;
    line-height: 1.7;
}


/* Explore link */

.work-tab-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    margin-top: 25px;

    color: var(--berry);

    font-size: 0.9rem;
    font-weight: 700;
}

.work-tab-link span {
    transition: transform 0.25s ease;
}

.work-tab:hover .work-tab-link span {
    transform: translateX(5px);
}


/* 
   CARD ACCENTS
 */

.work-tab-hp {
    border-top: 5px solid var(--deep-teal);
}

.work-tab-art {
    border-top: 5px solid var(--berry);
}

.work-tab-engineering {
    border-top: 5px solid var(--forest-green);
}

.work-tab-entrepreneurship {
    border-top: 5px solid var(--olive-green);
}


/* 
   MOBILE
 */

@media (max-width: 1000px) {

    .work-tabs {
        grid-template-columns: repeat(2, 1fr);
    }

}


@media (max-width: 600px) {

    .work-section {
        padding: 70px 20px;
    }

    .work-tabs {
        grid-template-columns: 1fr;
    }

    .work-tab {
        min-height: 300px;
    }

}
