* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #f7f7f4;
    color: #1d211b;
    font-family: "Josefin Sans", Arial, sans-serif;
}

.page {
    width: min(1180px, 92%);
    margin: 0 auto;
    padding: 28px 0 70px;
}

.site-header {
    display: grid;
    grid-template-columns: 150px 1fr 150px;
    align-items: center;
    gap: 45px;
    max-width: 900px;
    margin: 0 auto;
}

.header-image-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
}

.header-image {
    width: 112px;
    height: 112px;
    border-radius: 50%;
    object-fit: cover;
}

.ginkgo {
    object-position: center;
}

.brand-center {
    text-align: center;
    color: #173115;
}

.brand-name {
    font-family: "Cardo", Georgia, serif;
    font-size: 66px;
    font-weight: 400;
    line-height: 0.95;
    letter-spacing: 15px;
}

.brand-lines {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin: 13px auto 8px;
    color: #b58c12;
}

.brand-lines span {
    width: 110px;
    height: 2px;
    background: #b58c12;
}

.brand-lines b,
.brand-tagline b,
.story-tagline b {
    color: #b58c12;
    font-weight: 400;
}

.brand-tagline {
    font-size: 15px;
    letter-spacing: 8px;
    white-space: nowrap;
}

.story {
    margin: 105px auto 0;
    text-align: center;
}

.story-heading {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 48px;
}

.story-heading span {
    height: 2px;
    background: #b58c12;
}

.story-heading h1 {
    margin: 0;
    font-size: 25px;
    font-weight: 500;
    letter-spacing: 4px;
}

.gold-dot {
    margin: 18px 0 22px;
    color: #b58c12;
    font-size: 24px;
    line-height: 1;
}

.story p {
    margin: 0 auto;
    font-size: 32px;
    font-weight: 300;
    line-height: 1.55;
    letter-spacing: 0.5px;
}

.story-tagline {
    margin-top: 90px;
    font-size: 22px;
    letter-spacing: 9px;
}

/* HEATHER PORTRAIT */
.heather-image-wrap {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 25px 0 45px;
    position: relative;
}

.heather-image-wrap .heather-image {
    display: block;
    width: 320px !important;
    height: 320px !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: contain;
    margin: 0 auto;
}

/* HEALTH PAGE HEATHER IMAGE */
.health-heather {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 25px auto 40px auto;
    padding: 0;
}

.health-heather img {
    display: block;
    width: 200px;
    height: 200px;
    max-width: 200px;
    object-fit: contain;
    margin: 0 auto;
}

/* SIX MEALS - THREE ACROSS AND THREE BELOW */
.meals-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 30px;
    row-gap: 35px;
    width: 100%;
    max-width: 1180px;
    margin: 45px auto 60px;
    padding: 0;
}

.meal-card {
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.meal-card img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    padding: 0;
    object-fit: contain;
}

/* TABLET AND PHONE */
@media (max-width: 760px) {
    .site-header {
        grid-template-columns: 90px 1fr 90px;
        gap: 12px;
    }

    .header-image {
        width: 76px;
        height: 76px;
    }

    .brand-name {
        font-size: 38px;
        letter-spacing: 8px;
    }

    .brand-lines span {
        width: 55px;
    }

    .brand-tagline {
        font-size: 9px;
        letter-spacing: 3px;
    }

    .story {
        margin-top: 70px;
    }

    .story-heading {
        gap: 15px;
    }

    .story-heading h1 {
        font-size: 15px;
        letter-spacing: 2px;
    }

    .story p {
        font-size: 21px;
    }

    .story p br {
        display: none;
    }

    .story-tagline {
        margin-top: 60px;
        font-size: 13px;
        letter-spacing: 4px;
    }

    .meals-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 20px;
        row-gap: 25px;
    }
}

@media (max-width: 500px) {
    .meals-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
}

/* JOIIYA ECOSYSTEM */
.ecosystem {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 70px 20px 110px;
}
.ecosystem-orbit {
    position: relative;
    width: 430px;
    height: 430px;
}
.ecosystem-ring {
    position: absolute;
    width: 300px;
    height: 300px;
    left: 65px;
    top: 65px;
    border: 2px solid #c49518;
    border-radius: 50%;
    box-sizing: border-box;
    z-index: 1;
}
.ecosystem-group {
    position: absolute;
    width: 130px;
    height: 130px;
    z-index: 5;
}
.ecosystem-health-group {
    left: 150px;
    top: 0;
}
.ecosystem-wellness-group {
    left: 20px;
    top: 260px;
}
.ecosystem-joy-group {
    right: 20px;
    top: 260px;
}
.ecosystem-primary {
    position: absolute;
    left: 0;
    top: 0;
    display: block;
    width: 130px;
    height: 130px;
    z-index: 10;
    text-decoration: none;
    transition: transform 0.3s ease, filter 0.3s ease;
}
.ecosystem-primary img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.ecosystem-group.open .ecosystem-primary {
    transform: scale(1.06);
    filter: drop-shadow(0 6px 12px rgba(0,0,0,0.08));
}
.ecosystem-secondary {
    position: absolute;
    left: 25px;
    top: 25px;
    width: 80px;
    height: 80px;
    opacity: 0;
    z-index: 6;
    pointer-events: none;
    transform: translate(0,0) scale(0.35);
    transition: transform 0.42s cubic-bezier(0.22,1,0.36,1), opacity 0.25s ease;
}
.ecosystem-secondary img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.ecosystem-group.open .ecosystem-secondary {
    opacity: 1;
    pointer-events: auto;
}
.ecosystem-health-group.open .health-fasting {
    transform: translate(-145px,-20px) scale(1);
}
.ecosystem-health-group.open .health-exercise {
    transform: translate(145px,-20px) scale(1);
}
.ecosystem-health-group.open .health-food {
    transform: translate(0,-120px) scale(1);
}
.ecosystem-wellness-group.open .wellness-telomeres {
    transform: translate(-125px,-25px) scale(1);
}
.ecosystem-wellness-group.open .wellness-peptides {
    transform: translate(-105px,90px) scale(1);
}
.ecosystem-wellness-group.open .wellness-glp {
    transform: translate(15px,125px) scale(1);
}
.ecosystem-joy-group.open .joy-meditation {
    transform: translate(125px,-25px) scale(1);
}
.ecosystem-joy-group.open .joy-yoga {
    transform: translate(105px,90px) scale(1);
}
.ecosystem-joy-group.open .joy-connection {
    transform: translate(-15px,125px) scale(1);
}
@media (max-width: 600px) {
    .ecosystem {
        padding: 55px 10px 80px;
    }
    .ecosystem-orbit {
        width: 330px;
        height: 330px;
    }
    .ecosystem-ring {
        width: 230px;
        height: 230px;
        left: 50px;
        top: 50px;
    }
    .ecosystem-group {
        width: 100px;
        height: 100px;
    }
    .ecosystem-health-group {
        left: 115px;
        top: 0;
    }
    .ecosystem-wellness-group {
        left: 15px;
        top: 200px;
    }
    .ecosystem-joy-group {
        right: 15px;
        top: 200px;
    }
    .ecosystem-primary {
        width: 100px;
        height: 100px;
    }
    .ecosystem-secondary {
        left: 20px;
        top: 20px;
        width: 60px;
        height: 60px;
    }
    .ecosystem-health-group.open .health-fasting {
        transform: translate(-80px,-40px) scale(1);
    }
    .ecosystem-health-group.open .health-exercise {
        transform: translate(80px,-40px) scale(1);
    }
    .ecosystem-health-group.open .health-food {
        transform: translate(0,-120px) scale(1);
    }
    .ecosystem-wellness-group.open .wellness-telomeres {
        transform: translate(-85px,-20px) scale(1);
    }
    .ecosystem-wellness-group.open .wellness-peptides {
        transform: translate(-70px,65px) scale(1);
    }
    .ecosystem-wellness-group.open .wellness-glp {
        transform: translate(10px,90px) scale(1);
    }
    .ecosystem-joy-group.open .joy-meditation {
        transform: translate(85px,-20px) scale(1);
    }
    .ecosystem-joy-group.open .joy-yoga {
        transform: translate(70px,65px) scale(1);
    }
    .ecosystem-joy-group.open .joy-connection {
        transform: translate(-10px,90px) scale(1);
    }
}
.primary-page-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 45px;
    margin: 28px 0 35px;
}
.primary-page-links a {
    display: block;
    width: 90px;
    height: 90px;
}
.primary-page-links img {
    display: block;
    width: 90px;
    height: 90px;
    object-fit: contain;
}
.ecosystem-home {
    margin-top: 100px;
}
/* HEATHER BUCHANAN JOURNEY */
.heather-journey {
    width: 94%;
    max-width: 1500px;
    margin: 70px auto 90px;
    text-align: center;
}
.journey-heading {
    margin-bottom: 28px;
}
.journey-heading h2 {
    margin: 0 0 6px;
    font-family: "Josefin Sans", sans-serif;
    font-size: 28px;
    font-weight: 500;
    letter-spacing: 1px;
}
.journey-heading div {
    font-family: "Josefin Sans", sans-serif;
    font-size: 18px;
}
.journey-grid {
    display: grid;
    grid-template-columns: repeat(7,1fr);
    width: 100%;
}
.journey-stage {
    min-width: 0;
    border-top: 1px solid #b88a00;
    border-bottom: 1px solid #b88a00;
    border-left: 1px solid #b88a00;
}
.journey-stage:last-child {
    border-right: 1px solid #b88a00;
}
.journey-stage img {
    display: block;
    width: 100%;
    height: auto;
}
.journey-stats {
    display: flex;
    justify-content: space-around;
    gap: 8px;
    padding: 14px 6px;
    font-family: "Josefin Sans", sans-serif;
    font-size: 15px;
    font-weight: 500;
    white-space: nowrap;
}
@media (max-width: 1000px) {
    .journey-grid {
        grid-template-columns: repeat(4,1fr);
        gap: 18px;
    }
    .journey-stage {
        border: 1px solid #b88a00;
    }
}
@media (max-width: 650px) {
    .heather-journey {
        width: 92%;
    }
    .journey-grid {
        grid-template-columns: repeat(2,1fr);
        gap: 14px;
    }
    .journey-heading h2 {
        font-size: 22px;
    }
    .journey-stats {
        font-size: 13px;
        padding: 12px 4px;
    }
}