/* =========================================
   GLOBAL RESET
   ========================================= */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    min-width: 280px;
    overflow-x: hidden;
    background: #fbf9f4;
    color: #101713;
    font-family: "DM Sans", sans-serif;
    line-height: 1.6;
}

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

button {
    font: inherit;
}


/* =========================================
   LOADER
   ========================================= */

.loader {
    position: fixed;
    inset: 0;
    z-index: 9999;

    background: #102619;
    color: #fff;

    display: grid;
    place-content: center;

    text-align: center;
    gap: 14px;

    transition: 0.5s;
}

.loader.hide {
    opacity: 0;
    visibility: hidden;
}

.dots {
    display: flex;
    justify-content: center;
    gap: 7px;
}

.dots i {
    width: 8px;
    height: 8px;

    border-radius: 50%;
    background: #d8e5d8;

    animation: b 1s infinite;
}

.dots i:nth-child(2) {
    animation-delay: 0.15s;
}

.dots i:nth-child(3) {
    animation-delay: 0.3s;
}

.loader span {
    font-size: 0.65rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    opacity: 0.65;
}

@keyframes b {
    40% {
        transform: translateY(-8px);
    }
}


/* =========================================
   HEADER
   ========================================= */

header {
    height: 82px;

    position: fixed;
    top: 0;
    left: 0;

    width: 100%;
    z-index: 1000;

    padding: 0 clamp(18px, 4vw, 55px);

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

    color: #fff;

    transition: 0.3s;
}

header.scrolled {
    height: 70px;

    background: rgba(16, 38, 25, 0.94);
    backdrop-filter: blur(18px);
}


/* =========================================
   BRAND
   ========================================= */

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand > b {
    width: 42px;
    height: 42px;

    border: 1px solid #ffffff88;
    border-radius: 50%;

    display: grid;
    place-items: center;

    font-size: 0.62rem;
    letter-spacing: 0.08em;
}

.brand strong,
.brand small {
    display: block;
    line-height: 1.05;
}

.brand strong {
    font: 600 1rem "Playfair Display", serif;
}

.brand small {
    margin-top: 5px;

    font-size: 0.62rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;

    opacity: 0.7;
}


/* =========================================
   NAVIGATION
   ========================================= */

nav {
    display: flex;
    gap: clamp(18px, 3vw, 40px);

    font-size: 0.73rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

nav a,
.back {
    opacity: 0.72;
    transition: 0.2s;
}

nav a:hover,
.back:hover {
    opacity: 1;
}

.back {
    font-size: 0.7rem;
    letter-spacing: 0.12em;

    text-transform: uppercase;

    border-bottom: 1px solid #ffffff66;
    padding-bottom: 4px;
}


/* =========================================
   MOBILE MENU BUTTON
   ========================================= */

#menuBtn {
    display: none;
}

.mobile-menu {
    display: none;
}


/* =========================================
   HERO
   ========================================= */

.hero {
    min-height: 100svh;
    min-height: 100dvh;

    display: grid;
    place-items: center;

    text-align: center;

    position: relative;
    isolation: isolate;
    overflow: hidden;

    padding: 110px 18px 80px;

    color: #fff;

    background:
        radial-gradient(
            circle at 50% 20%,
            #416b4d,
            transparent 34%
        ),
        linear-gradient(
            135deg,
            #09180e,
            #183a25 60%,
            #09180e
        );
}

.hero::after {
    content: "";

    position: absolute;

    width: min(70vw, 750px);
    aspect-ratio: 1;

    border: 1px solid #ffffff18;
    border-radius: 50%;

    z-index: -1;
}

.hero-content {
    max-width: 900px;
}

.eyebrow {
    font-size: clamp(0.62rem, 0.8vw, 0.74rem);

    letter-spacing: 0.22em;
    text-transform: uppercase;

    font-weight: 700;
}

.hero h1 {
    font:
        600 clamp(2.7rem, 7vw, 6.5rem) / 0.98
        "Playfair Display",
        serif;

    letter-spacing: -0.045em;

    margin: 22px 0;
}

.hero h1 em,
h2 em {
    color: #b7cfb5;
    font-style: italic;
    font-weight: 500;
}

.hero-content > p:not(.eyebrow) {
    max-width: 620px;

    margin: 0 auto 30px;

    color: #ffffffb8;

    font-size: clamp(0.88rem, 1.3vw, 1.05rem);
}


/* =========================================
   BUTTON
   ========================================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 18px;

    min-height: 52px;

    padding: 0 24px;

    border-radius: 999px;

    background: #fff;
    color: #102619;

    font-size: 0.72rem;
    font-weight: 700;

    letter-spacing: 0.1em;
    text-transform: uppercase;

    transition: 0.25s;

    box-shadow: 0 12px 30px #0002;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 17px 35px #0003;
}


/* =========================================
   SCROLL INDICATOR
   ========================================= */

.scroll {
    position: absolute;
    bottom: 25px;

    font-size: 0.6rem;
    letter-spacing: 0.18em;

    opacity: 0.55;
}


/* =========================================
   HERO ORBS
   ========================================= */

.orb {
    position: absolute;
    border-radius: 50%;
    opacity: 0.2;
}

.one {
    width: 230px;
    height: 230px;

    left: -110px;
    top: 20%;

    background: #719672;
}

.two {
    width: 300px;
    height: 300px;

    right: -120px;
    bottom: -140px;

    background: #52795a;
}


/* =========================================
   GENERAL SECTION
   ========================================= */

.section {
    width: min(100%, 1180px);

    margin: auto;

    padding:
        clamp(75px, 10vw, 140px)
        clamp(18px, 4vw, 35px);
}


/* =========================================
   SECTION HEADINGS
   ========================================= */

.heading h2,
.cta h2 {
    font:
        600 clamp(2.4rem, 5vw, 4.8rem) / 1.03
        "Playfair Display",
        serif;

    letter-spacing: -0.04em;

    margin-top: 10px;
}

.heading .eyebrow {
    color: #2f6b45;
}

.center {
    text-align: center;
}

.heading > p:last-child {
    color: #667068;
    margin-top: 16px;
}


/* =========================================
   STORY
   ========================================= */

.story-grid {
    display: grid;

    grid-template-columns: 1.2fr 0.8fr;

    gap: clamp(30px, 7vw, 90px);

    align-items: center;

    margin-top: 60px;
}

.large {
    font:
        1.8rem / 1.35
        "Playfair Display",
        serif;

    margin-bottom: 20px;
}

.story-copy p:not(.large) {
    color: #667068;
    max-width: 650px;
}


/* =========================================
   QUOTE
   ========================================= */

.quote {
    min-height: 300px;

    padding: clamp(30px, 5vw, 55px);

    border-radius: 28px;

    background: #102619;
    color: #fff;

    display: flex;
    flex-direction: column;
    justify-content: center;

    box-shadow: 0 25px 70px #10261920;
}

.quote > span {
    font:
        5rem / 0
        "Playfair Display",
        serif;

    color: #9db89c;
}

.quote p {
    font:
        1.7rem / 1.3
        "Playfair Display",
        serif;
}

.quote small {
    margin-top: 20px;

    font-size: 0.65rem;
    letter-spacing: 0.12em;

    text-transform: uppercase;

    opacity: 0.55;
}


/* =========================================
   TEAM SECTION
   ========================================= */

.team {
    max-width: none;

    background: #f5f1e8;

    padding-left:
        max(
            18px,
            calc((100vw - 1180px) / 2 + 35px)
        );

    padding-right:
        max(
            18px,
            calc((100vw - 1180px) / 2 + 35px)
        );
}


/* =========================================
   TEAM GRID
   ========================================= */

.team-grid {
    width: min(100%, 1100px);

    margin: 55px auto 0;

    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: clamp(20px, 4vw, 40px);
}


/* =========================================
   TEAM CARD
   ========================================= */

.card {
    overflow: hidden;

    background: #fbf9f4;

    border: 1px solid #1026191c;
    border-radius: 28px;

    box-shadow: 0 10px 35px #1026190d;

    transition: 0.3s;
}

.card:hover {
    transform: translateY(-7px);

    box-shadow: 0 25px 70px #10261920;
}


/* =========================================
   TEAM PHOTO
   ========================================= */

.photo {
    position: relative;

    aspect-ratio: 1.18 / 1;

    overflow: hidden;

    background:
        linear-gradient(
            135deg,
            #274e34,
            #78927b
        );
}

.photo img {
    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    transition: 0.5s;
}

.card:hover .photo img {
    transform: scale(1.04);
}

.photo > span {
    display: none;

    position: absolute;
    inset: 0;

    place-items: center;

    color: #fff;

    font:
        7rem
        "Playfair Display",
        serif;
}

.photo.fallback > span {
    display: grid;
}

.photo label {
    position: absolute;

    right: 15px;
    bottom: 15px;

    padding: 7px 11px;

    border-radius: 999px;

    background: #ffffffe8;
    color: #102619;

    font-size: 0.6rem;
    font-weight: 700;

    letter-spacing: 0.1em;
}

.photo label:first-letter {
    color: #4c9b5b;
}


/* =========================================
   TEAM INFO
   ========================================= */

.info {
    padding: clamp(24px, 3vw, 34px);
}

.info > small {
    font-size: 0.61rem;

    letter-spacing: 0.17em;

    color: #2f6b45;

    font-weight: 700;
}

.info h3 {
    font:
        600 clamp(1.8rem, 3vw, 2.5rem) / 1.05
        "Playfair Display",
        serif;

    margin: 8px 0;
}

.info > p {
    color: #667068;
    font-size: 0.88rem;
}


/* =========================================
   SKILLS
   ========================================= */

.skills {
    display: flex;
    flex-wrap: wrap;

    gap: 7px;

    margin: 20px 0;
}

.skills i {
    font-style: normal;

    padding: 7px 10px;

    border: 1px solid #1026191c;
    border-radius: 999px;

    font-size: 0.80rem;
    font-weight: 800;

    color: #4d5850;
}


/* =========================================
   SOCIAL ICONS
   ========================================= */

.social {
    display: flex;
    gap: 8px;
}

.social a {
    width: 38px;
    height: 38px;

    border: 1px solid #1026191c;
    border-radius: 50%;

    display: grid;
    place-items: center;

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

.social a:hover {
    background: #102619;
    color: #fff;
}


/* =========================================
   INSTAGRAM SVG
   ========================================= */

/* If you are using SVG icons directly,
   this makes them the same size as GitHub. */

.social a svg {
    width: 20px;
    height: 20px;

    display: block;
}


/* =========================================
   JOURNEY SECTION
   ========================================= */

.journey {
    background: #102619;
    color: #fff;

    padding:
        clamp(75px, 10vw, 140px)
        max(18px, 4vw);
}

.journey-inner {
    width: min(100%, 1100px);
    margin: auto;
}

.journey .eyebrow {
    color: #a8c4a5;
}


/* =========================================
   TIMELINE
   ========================================= */

.timeline {
    margin-top: 60px;

    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 28px;
}

.timeline > div {
    border-top: 1px solid #ffffff26;
    padding-top: 20px;
}

.timeline b {
    display: grid;
    place-items: center;

    width: 38px;
    height: 38px;

    border: 1px solid #ffffff2f;
    border-radius: 50%;

    font-size: 0.62rem;

    color: #a8c4a5;
}

.timeline h3 {
    font:
        1.45rem
        "Playfair Display",
        serif;

    margin: 15px 0 5px;
}

.timeline p {
    color: #ffffff88;
    font-size: 0.78rem;
}


/* =========================================
   CTA
   ========================================= */

.cta {
    padding-top: 90px;
    padding-bottom: 90px;
}

.cta-box {
    display: flex;

    justify-content: space-between;
    align-items: center;

    gap: 30px;

    padding: clamp(35px, 6vw, 70px);

    background:
        linear-gradient(
            135deg,
            #183a25,
            #102619
        );

    color: #fff;

    border-radius: 28px;
}

.cta .eyebrow {
    color: #a8c4a5;
}

.cta h2 {
    font-size: clamp(2.2rem, 4.5vw, 4rem);
}


/* =========================================
   FOOTER
   ========================================= */

footer {
    background: #09160d;
    color: #fff;

    padding:
        55px
        max(18px, 4vw)
        25px;
}

.footer-brand,
.footer-bottom {
    width: min(100%, 1180px);
    margin: auto;
}

.footer-brand p {
    margin-top: 18px;

    color: #ffffff70;

    font:
        italic 1rem
        "Playfair Display",
        serif;
}


/* =========================================
   FOOTER BOTTOM
   ========================================= */

.footer-bottom {
    margin-top: 55px;

    padding-top: 20px;

    border-top: 1px solid #ffffff1a;

    display: flex;

    justify-content: space-between;

    gap: 15px;

    font-size: 0.64rem;

    color: #ffffff66;
}


/* =========================================
   REVEAL ANIMATION
   ========================================= */

.reveal {
    opacity: 0;

    transform: translateY(30px);

    transition: 0.75s;
}

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


/* =========================================
   TABLET / SMALL DESKTOP
   ========================================= */

@media (max-width: 900px) {

    nav,
    .back {
        display: none;
    }

    #menuBtn {
        display: flex;

        width: 44px;
        height: 44px;

        border: 1px solid #ffffff55;
        border-radius: 50%;

        background: #ffffff0d;

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

        flex-direction: column;

        gap: 4px;

        cursor: pointer;

        color: #fff;
    }

    #menuBtn i {
        width: 16px;
        height: 1.5px;

        background: currentColor;

        transition: 0.25s;
    }

    .mobile-menu {
        position: fixed;
        inset: 0;

        z-index: 900;

        background: #0a1910f7;

        backdrop-filter: blur(20px);

        display: flex;

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

        flex-direction: column;

        gap: 24px;

        opacity: 0;
        visibility: hidden;

        transition: 0.3s;
    }

    .mobile-menu.open {
        opacity: 1;
        visibility: visible;
    }

    .mobile-menu a {
        color: #fff;

        font:
            clamp(1.7rem, 6vw, 2.6rem)
            "Playfair Display",
            serif;
    }

    .story-grid {
        grid-template-columns: 1fr;
    }

    .timeline {
        grid-template-columns: 1fr;
    }

    .timeline > div {
        padding: 18px 0;
    }

    .cta-box {
        flex-direction: column;
        align-items: flex-start;
    }
}


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

@media (max-width: 700px) {

    header {
        height: 70px;
    }

    .hero {
        padding-top: 100px;
    }

    .hero h1 {
        font-size: clamp(2.4rem, 12vw, 4rem);
    }

    .team-grid {
        grid-template-columns: 1fr;
        margin-top: 42px;
    }

    .section {
        padding-top: 75px;
        padding-bottom: 75px;
    }

    .large {
        font-size: 1.4rem;
    }

    .cta {
        padding-top: 65px;
        padding-bottom: 65px;
    }

    .footer-bottom {
        flex-direction: column;
    }
}


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

@media (max-width: 430px) {

    .brand small {
        display: none;
    }

    .brand strong {
        font-size: 0.84rem;
    }

    .hero {
        padding-inline: 15px;
    }

    .section,
    .journey {
        padding-inline: 16px;
    }

    .team {
        padding-inline: 16px;
    }

    .cta {
        padding-inline: 16px;
    }

    .cta-box {
        padding: 30px 23px;
    }

    .primary-btn {
        width: 100%;
    }
}


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

@media (orientation: landscape) and (max-height: 600px) {

    .hero {
        min-height: 650px;
    }

    .scroll {
        display: none;
    }
}


/* =========================================
   REDUCED MOTION
   ========================================= */

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

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }

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