:root {
    --green: #2F6B2F;
    --forest: #1F4D24;
    --shadow: #163A1B;
    --leaf: #5F8F4E;
    --mist: #EAF2E5;
    --wash: #F4F8F1;
    --ivory: #FAF8F0;
    --parchment: #F3EFE2;
    --white: #FFFFFF;
    --border: #DCD8CA;
    --root: #6B5036;
    --tan: #B69A70;
    --gold: #B88A2B;
    --gold-soft: #D1AE5A;
    --text: #292B27;
    --muted: #5F625B;
    --display: "Cormorant Garamond", serif;
    --body: "Manrope", sans-serif;
    --tamil: "Noto Serif Tamil", serif;
    --radius: 22px;
    --max: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--ivory);
    color: var(--text);
    font-family: var(--body);
    line-height: 1.7;
}

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

.header {
    position: fixed;
    z-index: 9;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 5vw;
    background: #faf8f0e8;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid #dcd8ca
}

.logo-slot {
    width: 105px;
    height: 50px;
    /*border: 1px dashed #2F6B2F;*/
    border-radius: 8px;
    display: grid;
    place-content: center;
    text-align: center;
    color: #2F6B2F;
    font-size: 10px;
    line-height: 1.1
}

.logo-slot small {
    font-size: 7px
}

.menu {
    display: none;
    border: 0;
    background: none;
    font-size: 24px
}

.header nav {
    display: flex;
    gap: 25px;
    font-size: 12px;
    font-weight: 700
}

.header nav a:hover {
    color: #2F6B2F
}

.section,
.hero {
    max-width: 1400px;
    margin: auto;
    padding: 110px 5vw
}

.hero {
    min-height: 820px;
    padding-top: 100px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 55px;
    align-items: center
}

.eyebrow {
    color: #2F6B2F;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .16em;
    margin: 0 0 13px
}

h1,
h2,
h3 {
    font-family: "Cormorant Garamond", serif;
    line-height: .98;
    color: #1F4D24;
    margin: 0 0 22px
}

h1 {
    font-size: clamp(72px, 9vw, 100px);
    letter-spacing: -.05em
}

h1 em {
    color: #2F6B2F;
    font-style: normal
}

h2 {
    font-size: clamp(48px, 6vw, 78px)
}

h3 {
    font-size: 38px
}

.lead,
.large {
    font-size: 21px
}

.large {
    font-family: "Cormorant Garamond", serif;
    line-height: 1.15;
    color: #1F4D24
}

.btn {
    display: inline-block;
    margin-top: 24px;
    padding: 13px 22px;
    border-radius: 99px;
    background: #2F6B2F;
    color: white;
    font-weight: 700;
    font-size: 13px
}

.hero-art {
    height: 570px;
    position: relative;
    overflow: hidden;
    border-radius: 50% 50% 0 0;
    background: #EAF2E5
}

.sun {
    position: absolute;
    right: 15%;
    top: 14%;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: #D1AE5A99
}

.ground {
    position: absolute;
    bottom: -90px;
    left: -10%;
    width: 120%;
    height: 180px;
    border-radius: 50%;
    background: #6B5036
}

.stalk {
    position: absolute;
    bottom: 30px;
    width: 18px;
    border-radius: 20px;
    background: #2F6B2F
}

.s1 {
    height: 470px;
    left: 48%;
    transform: rotate(4deg)
}

.s2 {
    height: 380px;
    left: 35%;
    transform: rotate(-8deg)
}

.s3 {
    height: 300px;
    left: 60%;
    transform: rotate(11deg)
}

.leaf {
    position: absolute;
    width: 85px;
    height: 22px;
    background: #5F8F4E;
    border-radius: 100% 0
}

.l1 {
    left: 40%;
    top: 36%;
    transform: rotate(-30deg)
}

.l2 {
    left: 53%;
    top: 29%;
    transform: rotate(25deg)
}

.l3 {
    left: 29%;
    top: 48%;
    transform: rotate(25deg)
}

.caption {
    position: absolute;
    left: 205px;
    bottom: 20px;
    color: white;
    font: 27px/1 "Cormorant Garamond", serif
}

.parchment {
    background: #F3EFE2;
    max-width: none
}

.heading {
    max-width: 820px;
    margin-bottom: 55px
}

.feature {
    max-width: 1180px;
    margin: auto;
    display: grid;
    grid-template-columns: 1fr .9fr;
    gap: 60px;
    padding: 55px;
    background: #ffffff8c;
    border: 1px solid #dcd8ca;
    border-radius: 30px
}

.gold {
    color: #B88A2B;
    font-weight: 700
}

.link {
    color: #2F6B2F;
    font-weight: 700
}

.carousel {
    position: relative;
    overflow: hidden
}

.carousel.big {
    min-height: 470px
}

.carousel.small {
    width: 330px;
    min-height: 240px;
}

.carousel.small .slide img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.slides {
    height: 100%;
    min-height: inherit;
    position: relative
}

.slide {
    display: none;
    position: absolute;
    inset: 0;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 25px;
    border-radius: 18px;
    background: #F4F8F1;
    color: white;
    font: 46px/1 "Cormorant Garamond", serif
}

.slide.active {
    display: flex
}

.slide small {
    font: 700 10px Manrope, sans-serif;
    color: #D1AE5A
}

.carousel.small .slide {
    font-size: 26px;
    background: #F4F8F1;
    color: #1F4D24;
    border: 1px solid #dcd8ca
}

.carousel button {
    position: absolute;
    z-index: 2;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: white;
    color: #1F4D24;
    font-size: 25px;
    cursor: pointer
}

.carousel .prev {
    left: 10px
}

.carousel .next {
    right: 10px
}

.dots {
    position: absolute;
    z-index: 3;
    bottom: 12px;
    left: 0;
    right: 0;
    text-align: center
}

.dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ccc;
    margin: 0 4px
}

.dot.active {
    background: #B88A2B
}

.teaser {
    max-width: 1100px;
    margin: 35px auto 0;
    padding: 30px;
    border-top: 1px solid #dcd8ca;
    border-bottom: 1px solid #dcd8ca;
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 40px
}

.teaser h3 {
    font-size: 38px
}

.origin {
    display: flex;
    align-items: center;
    max-width: 1180px;
    margin: 0 auto 65px
}

.origin>div {
    flex: 1;
    padding: 25px;
    border: 1px solid #dcd8ca;
    background: #F4F8F1
}

.origin b {
    color: #B88A2B
}

.origin h3 {
    font-size: 28px;
    margin: 18px 0 8px
}

.origin p {
    font-size: 13px;
    margin: 0;
    color: #5F625B
}

.origin i {
    width: 28px;
    height: 1px;
    background: #B88A2B
}

.field {
    max-width: 1100px;
    margin: auto;
    padding: 45px;
    background: #EAF2E5;
    border-radius: 28px;
    display: grid;
    grid-template-columns: 1fr 330px;
    gap: 60px;
    align-items: center
}

.transition {
    text-align: center;
    max-width: 800px;
    margin: 90px auto 50px
}

.transition h2 {
    font-size: 58px
}

.purchase {
    max-width: 1100px;
    margin: 70px auto 0;
    padding: 45px;
    background: #163A1B;
    color: white;
    border-radius: 30px;
    text-align: center
}

.purchase h3 {
    color: white;
    font-size: 55px
}

.purchase .eyebrow {
    color: #D1AE5A
}

.stores {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 28px
}

.stores a {
    display: flex;
    flex-direction: column;
    text-align: left;
    gap: 4px;
    padding: 24px;
    border: 1px solid #ffffff33;
    border-radius: 16px;
    color: white
}

.stores a:hover {
    background: #ffffff12
}

.stores b {
    font: 32px "Cormorant Garamond", serif
}

.stores span,
.stores small {
    font-size: 12px;
    color: #d5e0d2
}

.stores .featured {
    border-color: #D1AE5A
}

.groove {
    max-width: none;
    background: #F4F8F1
}

.statement {
    text-align: center;
    max-width: 850px;
    margin: 0 auto 60px
}

.grooves {
    max-width: 1100px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px
}

.grooves>div {
    padding: 30px;
    background: white;
    border: 1px solid #dcd8ca;
    border-radius: 20px
}

.grooves b {
    color: #B88A2B
}

.grooves h3 {
    margin-top: 32px
}

.runway {
    max-width: 1100px;
    margin: 75px auto 0;
    padding: 55px;
    background: #1F4D24;
    color: white;
    border-radius: 30px;
    display: grid;
    grid-template-columns: 1fr .8fr;
    gap: 60px
}

.runway h2,
.runway .large {
    color: white
}

.runway .eyebrow {
    color: #D1AE5A
}

.runway-art {
    min-height: 300px;
    border: 1px solid #D1AE5A80;
    border-radius: 20px;
    display: grid;
    place-content: center;
    text-align: center;
    font: 75px "Cormorant Garamond", serif;
    color: #D1AE5A
}

.runway-art small {
    display: block;
    font: 12px Manrope;
    color: #d5e0d2
}

.two {
    max-width: 1100px;
    margin: auto;
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 70px
}

.about {
    padding: 45px;
    background: white;
    border: 1px solid #dcd8ca;
    border-radius: 22px
}

footer {
    padding: 65px 5vw;
    background: #163A1B;
    color: #eaf2e5;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px
}

footer a {
    display: block;
    margin: 7px 0;
    color: #d5e0d2;
    font-size: 13px
}

.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: .7s
}

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

@media(max-width:900px) {
    .header nav {
        display: none
    }

    .menu {
        display: block
    }

    .header nav.open {
        display: flex;
        position: absolute;
        top: 74px;
        left: 0;
        right: 0;
        padding: 20px 5vw;
        background: #FAF8F0;
        flex-direction: column
    }

    .hero,
    .feature,
    .field,
    .runway,
    .two {
        grid-template-columns: 1fr
    }

    .hero {
        min-height: auto
    }

    .hero-art {
        height: 450px
    }

    .teaser {
        grid-template-columns: 1fr
    }

    .origin {
        display: grid;
        grid-template-columns: 1fr 1fr
    }

    .origin i {
        display: none
    }

    .stores,
    .grooves {
        grid-template-columns: 1fr 1fr
    }
}

@media(max-width:560px) {

    .section,
    .hero {
        padding: 80px 20px
    }

    .hero {
        padding-top: 120px
    }

    h1 {
        font-size: 68px
    }

    h2 {
        font-size: 48px
    }

    .feature,
    .field,
    .runway,
    .purchase {
        padding: 28px
    }

    .carousel.big {
        min-height: 350px
    }

    .carousel.small {
        width: 100%
    }

    .stores,
    .grooves,
    .origin {
        grid-template-columns: 1fr
    }

    footer {
        grid-template-columns: 1fr
    }
}

/* v3 information architecture */
.anchor-section {
    height: 0;
    scroll-margin-top: 90px
}

#philosophy,
#life-engineering,
#bamboo-within {
    position: relative
}

.header nav {
    align-items: center
}

.codified-teaser {
    max-width: 1180px;
    margin: 45px auto 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: #dcd8ca;
    border: 1px solid #dcd8ca
}

.codified-teaser .stage {
    background: #faf8f0;
    padding: 35px 30px;
    min-height: 290px
}

.codified-teaser .stage>span {
    font: 700 12px Manrope, sans-serif;
    color: #b88a2b;
    letter-spacing: .1em
}

.codified-teaser .stage h3 {
    font-size: 34px;
    margin: 12px 0 14px
}

.codified-teaser .stage p:last-child {
    font-size: 14px;
    color: #5f625b
}

.field-link {
    max-width: 1180px;
    margin: 25px auto 0;
    text-align: right
}

@media(max-width:900px) {
    .header nav {
        align-items: flex-start
    }

    .codified-teaser {
        grid-template-columns: 1fr
    }

    .codified-teaser .stage {
        min-height: 0
    }
}

@media(max-width:560px) {
    .codified-teaser .stage {
        padding: 28px 22px
    }

    .field-link {
        text-align: left
    }
}

.tagline {
    margin: 28px 0 0;
    color: #B88A2B;
    font: 600 20px "Cormorant Garamond", serif;
    letter-spacing: .02em
}

.h1-tagline {
    margin: 28px 0 0;
    color: #6c4a2f;
    font: 600 20px "Cormorant Garamond", serif;
    letter-spacing: .02em
}

.runway-paths {
    max-width: 1100px;
    margin: 18px auto 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px
}

.runway-paths>div {
    padding: 30px;
    background: #FAF8F0;
    border: 1px solid #dcd8ca;
    border-radius: 20px
}

.runway-paths h3 {
    font-size: 32px;
    margin-top: 15px
}

.runway-paths p:last-child {
    font-size: 13px;
    color: #5f625b
}

.runway-quote {
    max-width: 900px;
    margin: 35px auto 0;
    text-align: center;
    padding: 25px;
    border-top: 1px solid #dcd8ca;
    border-bottom: 1px solid #dcd8ca
}

.runway-quote p {
    font: 24px/1.3 "Cormorant Garamond", serif;
    color: #1F4D24;
    margin: 0
}

.footer-bottom {
    grid-column: 1/-1;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #ffffff22;
    font-size: 11px;
    color: #bfcbbb
}

@media(max-width:900px) {
    .runway-paths {
        grid-template-columns: 1fr 1fr
    }
}

@media(max-width:560px) {
    .runway-paths {
        grid-template-columns: 1fr
    }

    .tagline {
        font-size: 18px
    }
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-slot {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.logo-slot img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    display: block;
}

.logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1;
}

.brand-name {
    color: #2F6B2F;
    font-family: "PT Serif", serif;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 0.7px;
    text-align: center;
}

.tagline {
    color: #6c4a2f;
    font-family: "PT Serif", serif;
    font-size: 10px;
    font-style: italic;
    font-weight: 600;
    margin-top: 4px;
    
}


/* Codified Life book carousel */
.carousel.big {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: #f7f4eb;
}

.carousel.big .slides {
    width: 100%;
    height: 100%;
}

.carousel.big .slide {
    width: 100%;
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
}

.carousel.big .slide.active {
    display: flex;
}

.carousel.big .slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
}


.origin {
    display: flex;
    align-items: center;
    gap: 0;
}

.origin-card {
    flex: 1;
    height: 190px;
    box-sizing: border-box;

    padding: 24px;

    border: 1px solid #d9dfd2;
    border-radius: 20px;

    background: #fffdf7;

    box-shadow: 0 6px 20px rgba(47, 107, 47, 0.06);

    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}


@media (max-width: 768px) {

    .origin {
        flex-direction: column;
        gap: 14px;
    }

    .origin-card {
        width: 100%;
        height: auto;
        min-height: 160px;
    }

    .origin > i {
        display: none;
    }
}

.origin > i {
    display: block;
    flex: 0 0 80px;
    width: 80px;
    height: 1px;

    background: #b8c5ae;
    margin: 0;
}

/* =========================================
   CODIFIED LIFE — THREE STAGES
   ========================================= */

#codified-life-explore {
    padding-top: 40px;
    padding-bottom: 70px;
}

.codified-teaser {
    display: grid;
    grid-template-columns: repeat(3, 1fr);

    max-width: 1180px;
    margin: 0 auto;

    background: #ffffff;

    border: 1px solid #ddd8c9;
    border-radius: 30px;

    overflow: hidden;

    box-shadow: 0 12px 35px rgba(40, 60, 40, 0.05);
}


/* Individual stage */

.codified-teaser .stage {
    min-height: 360px;

    padding: 38px 38px 42px;

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

    box-sizing: border-box;
}


/* Vertical separators */

.codified-teaser .stage + .stage {
    border-left: 1px solid #ddd8c9;
}


/* Number */

.codified-teaser .stage > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 42px;
    height: 42px;

    margin-bottom: 24px;

    border-radius: 50%;

    background: #2f6b2f;
    color: #ffffff;

    font-size: 14px;
    font-weight: 600;
}


/* Eyebrow */

.codified-teaser .stage .eyebrow {
    margin: 0 0 14px;

    color: #176b48;

    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    line-height: 1.4;
}


/* Heading */

.codified-teaser .stage h3 {
    margin: 0 0 18px;

    font-family: "PT Serif", Georgia, serif;
    font-size: 28px;
    font-weight: 400;
    line-height: 1.15;

    color: #18552f;
}


/* Body */

.codified-teaser .stage p:last-ch {
    margin: 0;

    font-size: 15px;
    line-height: 1.7;

    color: #4c5560;
}


/* =========================================
   MOBILE
   ========================================= */

@media (max-width: 800px) {

    .codified-teaser {
        grid-template-columns: 1fr;

        border-radius: 24px;
    }

    .codified-teaser .stage {
        min-height: auto;
        padding: 32px;
    }

    .codified-teaser .stage + .stage {
        border-left: none;
        border-top: 1px solid #ddd8c9;
    }

}

.runway-visual {
    min-height: 450px;
    border: 1px solid rgba(214, 166, 62, 0.45);
    border-radius: 24px;

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

    padding: 30px;
    overflow: hidden;
    background-color: #F4F8F1;
}

.runway-books {
    position: relative;

    width: 100%;
    max-width: 390px;
    height: 410px;

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

.runway-books .slides {
    width: 100%;
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #F4F8F1;
}

.runway-books .slide {
    width: 100%;
    height: 100%;

    display: none;
    align-items: center;
    justify-content: center;
}

.runway-books .slide.active {
    display: flex;
}

.runway-books .slide img {
    max-width: 82%;
    max-height: 365px;

    width: auto;
    height: auto;

    object-fit: contain;

    filter: drop-shadow(0 18px 22px rgba(0, 0, 0, 0.28));

    transition: transform 0.3s ease;
}

.runway-books .slide img:hover {
    transform: translateY(-5px);
}


/* Navigation */

.runway-books .prev,
.runway-books .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);

    width: 38px;
    height: 38px;

    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;

    background: rgba(255, 255, 255, 0.92);
    color: #23592b;

    font-size: 25px;
    line-height: 1;

    cursor: pointer;

    z-index: 5;
}

.runway-books .prev {
    left: 0;
}

.runway-books .next {
    right: 0;
}


/* Dots */

.runway-books .dots {
    position: absolute;
    bottom: 5px;
    left: 50%;

    transform: translateX(-50%);

    display: flex;
    gap: 7px;
}

.runway-books .dot {
    width: 6px;
    height: 6px;

    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);

    cursor: pointer;
}

.runway-books .dot.active {
    background: #d6a63e;
}


/* =========================
   MAIN NAV
========================= */

.main-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-item {
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
}

.nav-item > a {
    display: block;
    padding: 18px 0;
    text-decoration: none;
}


/* =========================
   DROPDOWN
========================= */

.nav-dropdown {
    position: absolute;

    /* IMPORTANT: no gap between parent and dropdown */
    top: calc(100% - 1px);
    left: 50%;
    transform: translateX(-50%) translateY(8px);

    min-width: 190px;

    background: #f8f7ef;
    border: 1px solid rgba(47, 107, 47, 0.18);
    border-radius: 12px;

    padding: 8px;

    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.10);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition:
        opacity 0.18s ease,
        transform 0.18s ease,
        visibility 0.18s ease;

    z-index: 1000;
}


/* =========================
   THE INVISIBLE HOVER BRIDGE
========================= */

/*
   This fills the tiny space between the
   nav text and dropdown.

   So the mouse can travel downward
   without losing :hover.
*/

.nav-dropdown::before {
    content: "";
    position: absolute;

    top: -14px;
    left: 0;
    right: 0;

    height: 14px;
}


/* =========================
   SHOW DROPDOWN
========================= */

.nav-item.has-dropdown:hover .nav-dropdown,
.nav-item.has-dropdown:focus-within .nav-dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;

    transform: translateX(-50%) translateY(0);
}


/* =========================
   DROPDOWN LINKS
========================= */

.nav-dropdown a {
    display: block;

    padding: 11px 14px;

    text-decoration: none;

    color: #1f5227;

    font-size: 14px;
    line-height: 1.3;

    border-radius: 7px;

    white-space: nowrap;

    transition:
        background 0.15s ease,
        color 0.15s ease;
}

.nav-dropdown a:hover {
    background: rgba(47, 107, 47, 0.08);
    color: #b87900;
}