/* =========================================================
   AETHEL REALTY
   INSIGHTS & RESEARCH

   Global menu + footer remain controlled by style.css
========================================================= */


/* =========================================================
   PAGE
========================================================= */

.insights-page-body {
    margin: 0;
    overflow-x: hidden;
    background: #f4f4f1;
    color: #090909;
}

.insights-main {
    width: 100%;
    overflow: hidden;
}

.insights-main *,
.insights-main *::before,
.insights-main *::after {
    box-sizing: border-box;
}

.insights-shell {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding-left: 40px;
    padding-right: 40px;
}


/* =========================================================
   HEADER
========================================================= */

.insights-page-body .insights-nav {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10001;
}


/* =========================================================
   LOGO
========================================================= */

.insights-page-body .insights-logo {
    position: relative;
    display: block;
}

.insights-page-body .insights-logo .logo__mark {
    display: block;
    filter: none !important;

    transition:
        opacity .35s ease,
        visibility .35s ease;
}

.insights-page-body .insights-logo__black {
    position: relative;
    display: block;

    opacity: 1 !important;
    visibility: visible !important;

    filter: none !important;
}

.insights-page-body .insights-logo__brand {
    position: absolute;
    top: 0;
    left: 0;

    display: block;

    opacity: 0 !important;
    visibility: hidden !important;

    pointer-events: none;

    filter: none !important;
}

.insights-page-body.menu-open .insights-logo__black {
    opacity: 0 !important;
    visibility: hidden !important;
}

.insights-page-body.menu-open .insights-logo__brand {
    opacity: 1 !important;
    visibility: visible !important;

    filter: none !important;
}


/* =========================================================
   HAMBURGER
========================================================= */

.insights-page-body .insights-nav .nav-toggle {
    color: #090909 !important;
    border-color: #090909 !important;
}

.insights-page-body .insights-nav .nav-toggle span {
    background-color: #090909 !important;
}

.insights-page-body.menu-open .insights-nav .nav-toggle {
    color: #ffffff !important;
    border-color: #ffffff !important;
}

.insights-page-body.menu-open .insights-nav .nav-toggle span {
    background-color: #ffffff !important;
}


/* =========================================================
   HERO
========================================================= */

.insights-hero {
    position: relative;
    width: 100%;

    padding:
        170px 0 120px;

    background: #ffffff;
}

.insights-hero__grid {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr) minmax(350px, .72fr);

    gap: clamp(70px, 10vw, 160px);

    align-items: start;
}


/* =========================================================
   HERO TITLE
========================================================= */

.insights-hero__heading h1 {
    margin: 0;

    font-size:
        clamp(64px, 6.4vw, 98px);

    font-weight: 500;

    line-height: .79;

    letter-spacing: -.065em;

    text-transform: uppercase;

    color: #090909;
}

.insights-hero__heading h1 span {
    display: block;
}

.insights-hero__heading h1 .accent {
    color: #0f6868;
}


/* =========================================================
   HERO INTRO
========================================================= */

.insights-hero__intro {
    width: 100%;
    max-width: 530px;
    padding-top: 4px;
}

.insights-hero__intro p {
    margin: 0;

    font-size:
        clamp(22px, 2vw, 30px);

    font-weight: 500;

    line-height: 1.12;

    letter-spacing: -.04em;

    color: #090909;
}


/* =========================================================
   ARCHIVE
========================================================= */

.insights-archive {
    width: 100%;
    padding-bottom: 130px;

    background: #ffffff;
}


/* =========================================================
   ROW

   Every row has exactly the same dimensions.
========================================================= */

.insight-row {
    display: grid;

    grid-template-columns:
        minmax(0, .82fr) minmax(500px, 1.18fr);

    gap: clamp(55px, 7vw, 105px);

    align-items: stretch;

    min-height: 405px;

    padding:
        20px 0;

    border-top:
        1px solid rgba(0, 0, 0, .16);
}


/* =========================================================
   LEFT CONTENT

   Category stays top.
   Title + button stay bottom.
========================================================= */

.insight-row__content {
    display: flex;
    flex-direction: column;

    min-width: 0;
    min-height: 315px;
}

.insight-row__category {
    display: block;

    font-size: 10px;
    font-weight: 600;

    line-height: 1;

    letter-spacing: .02em;

    text-transform: uppercase;

    color: rgba(0, 0, 0, .48);
}


/* =========================================================
   TITLE / CTA GROUP
========================================================= */

.insight-row__copy {
    margin-top: auto;
    padding-bottom: 7px;
}

.insight-row__copy h2 {
    width: 100%;
    max-width: 570px;

    margin: 0;

    font-size:
        clamp(28px, 2.25vw, 38px);

    font-weight: 500;

    line-height: .97;

    letter-spacing: -.047em;

    text-transform: uppercase;

    color: #090909;
}


/* =========================================================
   READ MORE
========================================================= */

.insight-row__read {
    display: inline-flex;

    align-items: center;
    justify-content: space-between;

    gap: 30px;

    min-width: 145px;

    margin-top: 31px;

    padding:
        13px 17px;

    border:
        1px solid rgba(0, 0, 0, .22);

    border-radius: 100px;

    background: transparent;

    text-decoration: none;

    font-size: 10px;
    font-weight: 600;

    line-height: 1;

    letter-spacing: .01em;

    color: #090909;

    transition:
        background-color .3s ease,
        color .3s ease,
        border-color .3s ease;
}

.insight-row__read span {
    display: block;

    font-size: 15px;

    line-height: 1;

    transition:
        transform .35s cubic-bezier(.22, 1, .36, 1);
}

@media (hover: hover) {

    .insight-row__read:hover {
        background: #0f6868;
        border-color: #0f6868;
        color: #ffffff;
    }

    .insight-row__read:hover span {
        transform: translateX(4px);
    }

}


/* =========================================================
   IMAGE

   MASK REVEAL + SUBTLE ZOOM OUT
========================================================= */

.insight-row__image {
    position: relative;

    display: block;

    width: 100%;
    height: 315px;

    overflow: hidden;

    background: #dededb;

    /*
       Image does not physically slide.
       Instead the container is progressively revealed.
    */

    clip-path: inset(0 0 0 100%);
    -webkit-clip-path: inset(0 0 0 100%);

    transition:
        clip-path 1.15s cubic-bezier(.77, 0, .175, 1),
        -webkit-clip-path 1.15s cubic-bezier(.77, 0, .175, 1);
}


/* REVEAL IMAGE */

.insights-reveal.is-visible .insight-row__image {
    clip-path: inset(0 0 0 0);
    -webkit-clip-path: inset(0 0 0 0);
}


/* =========================================================
   IMAGE INNER MOVEMENT
========================================================= */

.insight-row__image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    /*
       Photograph starts slightly enlarged.
       It settles while the mask reveals.
    */

    transform: scale(1.07);

    transition:
        transform 1.35s cubic-bezier(.22, 1, .36, 1);
}


/* IMAGE SETTLES */

.insights-reveal.is-visible .insight-row__image img {
    transform: scale(1);
}


/* =========================================================
   IMAGE HOVER
========================================================= */

@media (hover: hover) {

    .insight-row:hover .insight-row__image img {
        transform: scale(1.025);
    }

}


/* =========================================================
   TEMPORARY IMAGE PLACEHOLDER

   Same exact dimensions as real image.
========================================================= */

.insight-row__image-placeholder {
    position: relative;

    display: flex;

    align-items: center;
    justify-content: center;

    width: 100%;
    height: 315px;

    overflow: hidden;

    background: #e6e5e1;

    /*
       Same reveal behaviour as real images
       so unfinished rows remain visually consistent.
    */

    clip-path: inset(0 100% 0 0);
    -webkit-clip-path: inset(0 100% 0 0);

    transition:
        clip-path 1.15s cubic-bezier(.77, 0, .175, 1),
        -webkit-clip-path 1.15s cubic-bezier(.77, 0, .175, 1);
}

.insights-reveal.is-visible .insight-row__image-placeholder {
    clip-path: inset(0 0 0 0);
    -webkit-clip-path: inset(0 0 0 0);
}

.insight-row__image-placeholder span {
    font-size: 9px;
    font-weight: 600;

    line-height: 1;

    letter-spacing: .08em;

    color: rgba(0, 0, 0, .22);
}


/* =========================================================
   ROW REVEAL
========================================================= */

.insights-reveal {
    opacity: 0;

    transform: translateY(18px);

    transition:
        opacity .8s ease,
        transform .9s cubic-bezier(.22, 1, .36, 1);
}

.insights-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}


/* =========================================================
   FOOTER CONNECTION
========================================================= */

.insights-archive+.clean-footer {
    margin-top: 0;
}


/* =========================================================
   TABLET
========================================================= */

@media screen and (max-width: 1100px) {

    .insights-shell {
        padding-left: 24px;
        padding-right: 24px;
    }


    /* HERO */

    .insights-hero {
        padding:
            150px 0 100px;
    }

    .insights-hero__grid {
        grid-template-columns:
            minmax(0, 1fr) 330px;

        gap: 60px;
    }

    .insights-hero__heading h1 {
        font-size:
            clamp(56px, 7vw, 76px);
    }

    .insights-hero__intro p {
        font-size: 22px;
    }


    /* ROW */

    .insight-row {
        grid-template-columns:
            minmax(0, .82fr) minmax(410px, 1.18fr);

        gap: 45px;

        min-height: 320px;
    }

    .insight-row__content {
        min-height: 280px;
    }

    .insight-row__image,
    .insight-row__image-placeholder {
        height: 280px;
    }

    .insight-row__copy h2 {
        font-size: 30px;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media screen and (max-width: 760px) {

    .insights-shell {
        padding-left: 20px;
        padding-right: 20px;
    }


    /* HERO */

    .insights-hero {
        padding:
            120px 0 75px;
    }

    .insights-hero__grid {
        display: block;
    }

    .insights-hero__heading h1 {
        font-size: 46px;

        line-height: .84;

        letter-spacing: -.055em;
    }

    .insights-hero__intro {
        max-width: 340px;

        margin-top: 46px;

        padding: 0;
    }

    .insights-hero__intro p {
        font-size: 19px;

        line-height: 1.2;

        letter-spacing: -.03em;
    }


    /* ARCHIVE */

    .insights-archive {
        padding-bottom: 80px;
    }


    /* ROW */

    .insight-row {
        display: flex;

        flex-direction: column;

        gap: 0;

        min-height: 0;

        padding:
            18px 0 50px;
    }


    /* CATEGORY */

    .insight-row__content {
        display: contents;
    }

    .insight-row__category {
        order: 1;

        margin-bottom: 25px;

        font-size: 9px;
    }


    /* IMAGE */

    .insight-row__image,
    .insight-row__image-placeholder {
        order: 2;

        width: 100%;

        height: auto;

        aspect-ratio: 1.42 / 1;

        margin-bottom: 29px;

        /*
           Slightly quicker reveal on mobile.
        */

        transition:
            clip-path .9s cubic-bezier(.77, 0, .175, 1),
            -webkit-clip-path .9s cubic-bezier(.77, 0, .175, 1);
    }

    .insight-row__image img {
        transform: scale(1.05);

        transition:
            transform 1.1s cubic-bezier(.22, 1, .36, 1);
    }

    .insights-reveal.is-visible .insight-row__image img {
        transform: scale(1);
    }


    /* COPY */

    .insight-row__copy {
        order: 3;

        margin: 0;

        padding: 0;
    }

    .insight-row__copy h2 {
        width: 100%;
        max-width: 390px;

        font-size: 30px;

        line-height: .98;

        letter-spacing: -.045em;
    }

    .insight-row__read {
        min-width: 140px;

        margin-top: 25px;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media screen and (max-width: 430px) {

    .insights-hero__heading h1 {
        font-size: 42px;
    }

    .insight-row__copy h2 {
        font-size: 28px;
    }

}


/* =========================================================
   VERY SMALL MOBILE
========================================================= */

@media screen and (max-width: 360px) {

    .insights-hero__heading h1 {
        font-size: 38px;
    }

    .insight-row__copy h2 {
        font-size: 26px;
    }

}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .insights-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .insight-row__image,
    .insight-row__image-placeholder {
        clip-path: none;
        -webkit-clip-path: none;

        opacity: 1;

        transition: none;
    }

    .insight-row__image img {
        transform: none;

        transition: none;
    }

    .insight-row__read,
    .insight-row__read span {
        transition: none;
    }

}