
/* ========================================
   HOMEPAGE HERO
   ======================================== */

.hero {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
    width: 100%;
    min-height: 100vh;
    min-height: 100svh;
    overflow: hidden;
    padding: 35px 20px 0;
    background: var(--colour-cream);
}

.hero-content {
    position: relative;
    z-index: 2;
    flex: 0 0 auto;
    width: clamp(340px, 58vw, 660px);
    aspect-ratio: 1;
    align-self: center;
    transform: translateY(clamp(10px, 8vh, 35px));
}

.hero-emblem {
    position: absolute;
    z-index: 1;
    top: 0;
    left: 0;
    width: 100%;
    color: var(--colour-olive);
}

.hero-emblem svg {
    display: block;
    width: 100%;
    height: auto;
    overflow: visible;
}

.emblem-text {
    fill: currentColor;
    font-family: var(--font-body);
    font-size: 9.5px;
    letter-spacing: 2px;
}

.emblem-inner-circle {
    fill: none;
    stroke: currentColor;
    stroke-width: 0.5;
    opacity: 0;
}

.emblem-text--bottom {
    dominant-baseline: hanging;
}

.hero-title-wrap {
    position: absolute;
    z-index: 2;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-title {
    position: relative;
    top: -10px;
    max-width: 100%;
    margin: 0;
    color: var(--colour-olive);
    font-family: "Playfair Display", serif;
    font-size: clamp(30px, 6vw, 70px);
    font-weight: 500;
    letter-spacing: 0.015em;
    line-height: 1;
    white-space: nowrap;
}


/* ========================================
   BOTANICAL PARALLAX ARTWORK
   ======================================== */

.hero-artwork {
    position: absolute;
    z-index: 3;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.hero-art {
    position: absolute;
    left: 50%;
    bottom: 0;
    width: max(100%, 177.78svh);
    height: auto;
    max-width: none;
    object-fit: contain;
    transform: translateX(-50%);
    will-change: transform;
}

.hero-art--back { z-index: 1; }
.hero-art--middle { z-index: 2; }
.hero-art--front { z-index: 3; }


/* ========================================
   FEATURED PROJECTS CAROUSEL
   ======================================== */

.featured-projects {
    width: 100%;
    padding: 70px 0 85px;
    overflow: hidden;
    background: var(--colour-cream);
    text-align: center;
}

.featured-projects-title {
    position: relative;
    margin: 0 5% 35px;
    padding-bottom: 22px;
    color: var(--colour-olive);
    font-family: var(--font-display);
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 400;
    letter-spacing: 0.08em;
    line-height: 1.2;
    text-align: center;
}

.featured-projects-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 40vw;
    height: 1px;
    background: var(--colour-olive);
    opacity: 0.6;
    transform: translateX(-50%);
}

.featured-projects-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 0;
    background: var(--colour-cream);
}

.featured-projects-track {
    display: flex;
    width: max-content;
    align-items: stretch;
    animation: featured-projects-scroll 30s linear infinite;
}

.featured-projects-group {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 24px;
    padding-right: 24px;
    box-sizing: border-box;
}

.featured-project-card {
    display: block;
    flex: 0 0 33.333vw;
    width: 33.333vw;
    height: clamp(220px, 28vw, 360px);
    line-height: 0;
    transition: opacity 0.3s ease;
}

.featured-project-card img {
    display: block;
    height: 100%;
    width: 100%;
    max-width: 100%;
    object-fit: cover;
}

.featured-project-card:hover {
    opacity: 0.8;
}

.more-projects-button {
    display: inline-block;
    margin-top: 45px;
    padding: 13px 30px;
    border: 1px solid var(--colour-olive);
    color: var(--colour-olive);
    font-family: var(--font-body);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-decoration: none;
    transition: color 0.25s ease, background-color 0.25s ease;
}

.more-projects-button:hover {
    color: var(--colour-cream);
    background: var(--colour-olive);
}

@keyframes featured-projects-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}


/* ========================================
   HOMEPAGE PERSONAL INTRODUCTION
   ======================================== */

.home-intro {
    width: 100%;
    padding: 55px 5% 65px;
    background: var(--colour-cream);
    color: var(--colour-dark);
}

/* Decorative divider lines */

.home-intro-divider {
    position: relative;
    width: 100%;
    max-width: 1100px;
    height: 1px;
    margin: 0 auto;
    background: var(--colour-olive);
    opacity: 0.75;
}

.home-intro-divider::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 12px;
    background: var(--colour-olive);
    transform: translate(-50%, -50%) rotate(45deg);
}

/* Main two-column layout */

.home-intro-content {
    display: grid;
    grid-template-columns: 50% minmax(0, 1fr);
    align-items: start;
    gap: 25px;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 45px 0;
}

/* Text column */

.home-intro-copy {
    max-width: 520px;
    transform: translateY(15%);
}

.home-intro-title {
    margin: 0 0 18px;
    color: var(--colour-olive);
    font-family: var(--font-display);
    font-size: clamp(55px, 5.5vw, 75px);
    font-weight: 400;
    letter-spacing: 0.02em;
    line-height: 1;
}

.home-intro-text {
    max-width: 475px;
    margin: 0 0 30px;
    color: var(--colour-olive);
    font-family: var(--font-display);
    font-size: 24px;
    line-height: 1.3;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* More details button */

.home-intro-link {
    display: inline-block;
    padding: 15px 30px;
    border: 1px solid var(--colour-olive);
    color: var(--colour-olive);
    font-family: var(--font-display);
    font-size: 13px;
    letter-spacing: 0.15em;
    text-decoration: none;
    transition: background 0.25s ease, color 0.25s ease;
}

.home-intro-link:hover {
    background: var(--colour-dark);
    color: var(--colour-cream);
}

/* Portrait */

.home-intro-portrait {
    width: 110%;
    max-width: none;
    justify-self: end;
    align-self: start;
    margin-top: 0;
    transform: none;
}

.home-intro-portrait img {
    display: block;
    width: 100%;
    height: auto;
}


/* ========================================
   HOMEPAGE COLLECTIONS
   ======================================== */

.collections-section {
    width: 100%;
    box-sizing: border-box;
    padding: 90px 5% 100px;
    background: var(--colour-cream);
    color: var(--colour-olive);
}

.collections-title {
    position: relative;
    margin: 0 0 55px;
    padding-bottom: 22px;
    font-family: var(--font-display);
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 400;
    letter-spacing: 0.08em;
    line-height: 1.2;
    text-align: center;
}

.collections-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 40vw;
    height: 1px;
    background: var(--colour-olive);
    opacity: 0.6;
    transform: translateX(-50%);
}

.collections-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 36px;
    row-gap: 55px;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}

.collection-card {
    position: relative;
    display: block;
    min-width: 0;
    color: inherit;
    text-decoration: none;
}

.collection-image {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: rgba(91, 99, 65, 0.06);
}

.collection-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter 0.35s ease, transform 0.4s ease;
}

.collection-image::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(35, 35, 35, 0.3);
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

.collection-info {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 20px;
    text-align: center;
    color: #fff;
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

.collection-info h3 {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(17px, 2vw, 26px);
    font-weight: 400;
    line-height: 1.3;
    text-transform: uppercase;
}

.collection-info p {
    max-width: 90%;
    margin: 10px 0 0;
    font-family: var(--font-body);
    font-size: 10px;
    letter-spacing: 0.15em;
    line-height: 1.5;
}

.collection-card:hover .collection-image img,
.collection-card:focus-visible .collection-image img {
    filter: brightness(0.75);
    transform: scale(1.035);
}

.collection-card:hover .collection-image::after,
.collection-card:focus-visible .collection-image::after {
    opacity: 1;
}

.collection-card:hover .collection-info,
.collection-card:focus-visible .collection-info {
    opacity: 1;
}

.collection-card:focus-visible {
    outline: 2px solid var(--colour-olive);
    outline-offset: 4px;
}


/* ========================================
   TABLET
   ======================================== */

@media (max-width: 900px) {
    .collections-section {
        padding: 70px 6% 80px;
    }

    .collections-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 22px;
        row-gap: 38px;
    }

    .nav-link { font-size: 20px; }
    .nav-group { gap: 10px; }
    .nav-group--left { padding-right: 14px; }
    .nav-group--right { padding-left: 14px; }
}


/* ========================================
   MOBILE
   ======================================== */

@media (max-width: 600px) {
    .site-header { padding: 12px 8px; }

    .main-nav {
        grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1fr);
    }

    .nav-group { gap: clamp(4px, 1.5vw, 8px); }
    .nav-group--left { padding-right: 7px; }
    .nav-group--right { padding-left: 7px; }

    .nav-link {
        font-size: clamp(8px, 2.1vw, 10px);
        letter-spacing: 0;
    }

    .nav-logo {
        width: 28px;
        height: 28px;
        font-size: 15px;
    }

    .hero { padding: 25px 12px 0; }

    .hero-content {
        width: clamp(260px, 82vw, 360px);
    }

    .hero-title {
        font-size: clamp(24px, 6.2vw, 42px);
    }


    .featured-projects { padding: 45px 0 60px; }
    .featured-projects-title { margin-bottom: 25px; }

    .featured-projects-group {
        gap: 16px;
        padding-right: 16px;
    }

    .featured-project-card { height: 200px; }
    .more-projects-button { margin-top: 30px; }

    /* HOMEPAGE INTRO */

    .home-intro {
        padding: 35px 6% 45px;
    }

    .home-intro-content {
        grid-template-columns: 1fr;
        gap: 25px;
        padding: 40px 0;
    }

    .home-intro-copy {
        max-width: 100%;
    }

    .home-intro-title {
        margin-bottom: 18px;
        font-size: clamp(55px, 12vw, 75px);
    }

    .home-intro-text {
        max-width: 100%;
        margin-bottom: 25px;
        font-size: 13px;
        line-height: 1.6;
        letter-spacing: 0.08em;
        color: var(--colour-dark);
    }

    .home-intro-link {
        padding: 13px 24px;
        font-size: 12px;
    }

    .home-intro-portrait {
        width: min(100%, 430px);
        max-width: 430px;
        justify-self: center;
    }

    .collections-section { padding: 50px 5% 65px; }
    .collections-title { margin-bottom: 35px; }

    .collections-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .collection-info { padding: 10px; }

    .collection-info h3 { font-size: 20px; }

    .collection-info p {
        margin-top: 7px;
        font-size: 9px;
        letter-spacing: 0.08em;
    }

    /* Keep category labels visible on touchscreens */
    .collection-image::after {
        opacity: 1;
        background: rgba(35, 35, 35, 0.28);
    }

    .collection-info { opacity: 1; }

    .collection-card:hover .collection-image img,
    .collection-card:focus-visible .collection-image img {
        transform: none;
    }
}


/* ========================================
   REDUCED MOTION ACCESSIBILITY
   ======================================== */

@media (prefers-reduced-motion: reduce) {
    .featured-projects-track { animation: none; }

    .collection-image img,
    .collection-image::after,
    .collection-info,
    .featured-project-card,
    .nav-link,
    .nav-logo,
    .more-projects-button {
        transition: none;
    }
}
