/* =========================
   RESIDENCE PAGE
   ========================= */

.residence-page {
    background:
        radial-gradient(circle at 12% 8%, rgba(162, 118, 49, .11), transparent 30%),
        linear-gradient(180deg, #fff, #fbfaf7 44%, #fff);
}

.residence-intro-section {
    padding: 92px 0 88px;
    background:
        linear-gradient(to bottom, rgba(255, 255, 255, .94), rgba(255, 255, 255, .99)),
        url("../../images/hall/hero.webp") center/cover no-repeat;
    overflow: hidden;
}

.residence-intro-grid,
.residence-story-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, .95fr);
    gap: 58px;
    align-items: center;
}

.residence-intro-text h2,
.residence-section-head h2,
.residence-story-text h2,
.residence-cta-box h2 {
    margin: 0 0 18px;
    font-size: clamp(30px, 3vw, 44px);
    line-height: 1.65;
    font-weight: 900;
    color: #111;
}

.residence-intro-text p,
.residence-section-head p,
.residence-story-text p,
.residence-cta-box p {
    margin: 0 0 16px;
    max-width: 820px;
    font-size: 15px;
    line-height: 2.38;
    color: #3f3f3f;
}

.residence-actions {
    margin-top: 32px;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.residence-actions a,
.residence-cta-box a {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    padding: 0 28px;
    border-radius: 999px;
    background: #111;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 900;
    transition: .25s ease;
}

.residence-actions a:hover,
.residence-cta-box a:hover {
    background: #a27631;
    transform: translateY(-2px);
}

.residence-actions .residence-link {
    background: transparent;
    color: #a27631;
    border: 1px solid rgba(162, 118, 49, .34);
}

.residence-actions .residence-link:hover {
    color: #fff;
    border-color: #a27631;
}

.residence-intro-image,
.residence-story-image {
    position: relative;
    margin: 0;
    height: 560px;
    border-radius: 38px;
    overflow: hidden;
    background: #111;
    box-shadow: 0 34px 90px rgba(0, 0, 0, .16);
}

.residence-intro-image::after,
.residence-story-image::after {
    content: "";
    position: absolute;
    inset: 18px;
    border: 1px solid rgba(255, 255, 255, .26);
    border-radius: 28px;
    pointer-events: none;
}

.residence-intro-image img,
.residence-story-image img,
.residence-gallery-item img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transform: scale(1.01);
    transition:
        transform 1.1s cubic-bezier(.16, 1, .3, 1),
        filter 1.1s cubic-bezier(.16, 1, .3, 1);
}

.residence-intro-image:hover img,
.residence-story-image:hover img,
.residence-gallery-item:hover img {
    transform: scale(1.07);
    filter: saturate(1.05) contrast(1.03);
}

/* =========================
   EXPERIENCE
   ========================= */

.residence-experience-section {
    padding: 90px 0 104px;
    background: #fff;
}

.residence-section-head {
    max-width: 840px;
    margin-bottom: 42px;
}

.residence-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.residence-feature-card {
    position: relative;
    overflow: hidden;
    min-height: 270px;
    padding: 32px;
    border-radius: 32px;
    background:
        radial-gradient(circle at 15% 0%, rgba(162, 118, 49, .12), transparent 35%),
        linear-gradient(145deg, #fff, #fbf6ed);
    border: 1px solid rgba(162, 118, 49, .16);
    box-shadow: 0 26px 68px rgba(0, 0, 0, .08);
    transition: .35s cubic-bezier(.16, 1, .3, 1);
}

.residence-feature-card::after {
    content: "";
    position: absolute;
    width: 170px;
    height: 170px;
    left: -70px;
    bottom: -80px;
    border-radius: 50%;
    background: rgba(162, 118, 49, .09);
}

.residence-feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 34px 80px rgba(0, 0, 0, .12);
}

.residence-feature-card i {
    display: inline-flex;
    margin-bottom: 22px;
    color: #a27631;
    font-size: 36px;
}

.residence-feature-card h3 {
    margin: 0 0 14px;
    font-size: 23px;
    line-height: 1.55;
    font-weight: 900;
    color: #111;
}

.residence-feature-card p {
    position: relative;
    z-index: 2;
    margin: 0;
    font-size: 14px;
    line-height: 2.15;
    color: #4a4a4a;
}

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

.residence-story-section {
    padding: 96px 0;
    background:
        linear-gradient(rgba(15, 15, 15, .91), rgba(15, 15, 15, .95)),
        url("../../images/hall/hero.webp") center/cover fixed no-repeat;
    color: #fff;
    overflow: hidden;
}

.residence-story-text h2 {
    color: #fff;
}

.residence-story-text p {
    color: rgba(255, 255, 255, .80);
}

.residence-story-list {
    margin: 28px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 14px;
}

.residence-story-list li {
    position: relative;
    padding: 14px 44px 14px 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, .075);
    border: 1px solid rgba(255, 255, 255, .11);
    color: rgba(255, 255, 255, .88);
    font-size: 14px;
    line-height: 2;
}

.residence-story-list li::before {
    content: "\F26A";
    font-family: "bootstrap-icons";
    position: absolute;
    right: 16px;
    top: 15px;
    color: #d9a842;
}

/* =========================
   GALLERY
   ========================= */

.residence-gallery-section {
    padding: 92px 0 112px;
    background: #fff;
}

.residence-gallery-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: 235px;
    gap: 18px;
}

.residence-gallery-item {
    position: relative;
    margin: 0;
    grid-column: span 4;
    border-radius: 30px;
    overflow: hidden;
    background: #111;
    box-shadow: 0 26px 70px rgba(0, 0, 0, .12);
}

.residence-gallery-large {
    grid-column: span 8;
    grid-row: span 2;
}

.residence-gallery-wide {
    grid-column: span 8;
}

.residence-gallery-item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, .25), transparent 58%);
    pointer-events: none;
}

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

.residence-cta-section {
    padding: 92px 0 116px;
    background:
        linear-gradient(to bottom, rgba(255, 255, 255, .94), rgba(255, 255, 255, .98)),
        url("../../images/hall/hero.webp") center/cover no-repeat;
}

.residence-cta-box {
    position: relative;
    overflow: hidden;
    padding: 52px;
    border-radius: 40px;
    background: rgba(255, 255, 255, .88);
    border: 1px solid rgba(162, 118, 49, .18);
    box-shadow: 0 30px 84px rgba(0, 0, 0, .12);
    backdrop-filter: blur(12px);
}

.residence-cta-box::after {
    content: "";
    position: absolute;
    width: 280px;
    height: 280px;
    left: -100px;
    top: -120px;
    border-radius: 50%;
    background: rgba(162, 118, 49, .10);
}

.residence-cta-box h2,
.residence-cta-box p,
.residence-cta-box a,
.residence-cta-box .inner-kicker {
    position: relative;
    z-index: 2;
}

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

.kd-reveal-right,
.kd-reveal-left,
.kd-reveal-up {
    opacity: 0;
    transition:
        opacity 1.15s cubic-bezier(.16, 1, .3, 1),
        transform 1.15s cubic-bezier(.16, 1, .3, 1);
    will-change: opacity, transform;
}

.kd-reveal-right {
    transform: translateX(90px);
}

.kd-reveal-left {
    transform: translateX(-90px);
}

.kd-reveal-up {
    transform: translateY(42px);
}

.kd-visible {
    opacity: 1;
    transform: translate(0, 0);
}

/* =========================
   RESPONSIVE
   ========================= */

@media(max-width:1100px) {
    .residence-gallery-grid {
        grid-auto-rows: 220px;
    }

    .residence-gallery-item,
    .residence-gallery-large,
    .residence-gallery-wide {
        grid-column: span 6;
    }

    .residence-gallery-large {
        grid-row: span 2;
    }
}

@media(max-width:900px) {

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

    .residence-feature-grid {
        grid-template-columns: 1fr;
    }

    .residence-intro-image,
    .residence-story-image {
        height: 420px;
    }

    .residence-story-section {
        background-attachment: scroll;
    }
}

@media(max-width:720px) {
    .residence-intro-section {
        padding: 70px 0 64px;
    }

    .residence-intro-image,
    .residence-story-image {
        height: 330px;
        border-radius: 28px;
    }

    .residence-feature-card,
    .residence-cta-box {
        padding: 28px;
        border-radius: 28px;
    }

    .residence-gallery-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 300px;
    }

    .residence-gallery-item,
    .residence-gallery-large,
    .residence-gallery-wide {
        grid-column: span 1;
        grid-row: span 1;
        border-radius: 24px;
    }

    .residence-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .residence-actions a {
        width: 100%;
    }
}

@media(max-width:420px) {
    .residence-gallery-grid {
        grid-auto-rows: 270px;
    }

    .residence-intro-text h2,
    .residence-section-head h2,
    .residence-story-text h2,
    .residence-cta-box h2 {
        font-size: 26px;
    }
}

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

    .kd-reveal-right,
    .kd-reveal-left,
    .kd-reveal-up,
    .residence-intro-image img,
    .residence-story-image img,
    .residence-gallery-item img,
    .residence-feature-card,
    .residence-actions a,
    .residence-cta-box a {
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
        transition: none !important;
    }
}