/* ==========================================================================
   Home page (index.php) – loaded after site.css; motion is driven by assets/js/home.js.
   ========================================================================== */

/* ==========================================================================
   Hero slider: Bootstrap carousel (fade). Slide text left, the banner image shown
   in full on the right, controls + thumbnails underneath.
   ========================================================================== */
.hx {
    position: relative;
    overflow: hidden;
    padding: 56px 0 40px;
    background:
        radial-gradient(900px 520px at 85% 0%, rgba(132, 203, 51, 0.16), transparent 65%),
        radial-gradient(700px 480px at 0% 100%, rgba(255, 204, 41, 0.1), transparent 60%),
        var(--ui-grad);
    color: var(--ui-cream);
    isolation: isolate;
}

/* faint dot grid */
.hx::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: radial-gradient(rgba(255, 250, 234, 0.08) 1px, transparent 1.4px) 0 0 / 26px 26px;
    -webkit-mask-image: linear-gradient(90deg, #000 0%, transparent 70%);
    mask-image: linear-gradient(90deg, #000 0%, transparent 70%);
    pointer-events: none;
}

.hx__glow {
    position: absolute;
    top: -180px;
    left: 30%;
    z-index: -1;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    background: rgba(255, 204, 41, 0.07);
    filter: blur(40px);
    animation: hxFloat 12s ease-in-out infinite;
    pointer-events: none;
}

@keyframes hxFloat {
    50% { transform: translate3d(60px, 40px, 0) scale(1.1); }
}

/* all slides share one grid cell, so the hero is as tall as the tallest slide and
   the controls below never jump; the image frame may draw outside the slide */
.hx .carousel-inner {
    display: grid;
    overflow: visible;
}

.hx .carousel-item {
    display: block;
    grid-area: 1 / 1;
    float: none;
    margin-right: 0;
}

.hx .carousel-item:not(.active):not(.carousel-item-next):not(.carousel-item-prev) {
    visibility: hidden;
    pointer-events: none;
}

/* ---------- text column ---------- */
.hx-slide__text {
    position: relative;
    padding-block: 28px;
}

.hx-slide__num {
    position: absolute;
    top: -40px;
    left: calc(var(--bs-gutter-x) * 0.5 - 8px);
    z-index: -1;
    color: transparent;
    font-size: clamp(110px, 12vw, 190px);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.04em;
    -webkit-text-stroke: 1.5px rgba(255, 250, 234, 0.16);
    user-select: none;
}

.hx-slide__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* first line is the headline */
.hx-slide__list li:first-child {
    position: relative;
    margin-bottom: 22px;
    padding-top: 22px;
    color: var(--ui-cream);
    font-size: clamp(30px, 1.1rem + 2.2vw, 46px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.01em;
    text-wrap: balance;
}

.hx-slide__list li:first-child::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 64px;
    height: 4px;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--ui-gold), var(--ui-green));
}

/* further lines read as feature chips */
.hx-slide__list li + li {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 12px;
    padding: 12px 18px 12px 14px;
    border: 1px solid rgba(255, 250, 234, 0.14);
    border-radius: 16px;
    background: rgba(255, 250, 234, 0.06);
    color: rgba(255, 250, 234, 0.92);
    font-size: clamp(15px, 0.85rem + 0.35vw, 18px);
    font-weight: 600;
    line-height: 1.4;
}

.hx-slide__list li + li::before {
    content: "";
    flex: 0 0 10px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--ui-gold);
    box-shadow: 0 0 0 5px rgba(255, 204, 41, 0.18);
}

.hx-slide__note {
    display: inline-block;
    margin-top: 16px;
    color: var(--ui-gold);
    font-size: 14px;
    letter-spacing: 0.02em;
}

/* ---------- image column: the banner is always shown in full ---------- */
.hx-slide__media {
    position: relative;
    margin: 0;
}

.hx-slide__media::before {
    content: "";
    position: absolute;
    inset: 18px -18px -18px 18px;
    z-index: -1;
    border: 1.5px solid rgba(255, 204, 41, 0.45);
    border-radius: 30px;
}

.hx-slide__media img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1170 / 574;
    border-radius: 28px;
    object-fit: cover;
    box-shadow: 0 40px 80px -36px rgba(0, 0, 0, 0.75);
}

/* ---------- controls bar ---------- */
.hx__bar {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-top: 6px;
}

.hx__count {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    color: rgba(255, 250, 234, 0.6);
    font-size: 15px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.hx__count strong {
    color: var(--ui-gold);
    font-size: 26px;
    line-height: 1;
}

.hx__progress {
    position: relative;
    overflow: hidden;
    flex: 0 0 120px;
    height: 3px;
    border-radius: 3px;
    background: rgba(255, 250, 234, 0.18);
}

.hx__progress i,
.hx__thumb-bar i {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, var(--ui-gold), var(--ui-green));
    transform: scaleX(0);
    transform-origin: left center;
}

.hx__thumbs {
    display: flex;
    flex: 1;
    gap: 12px;
    justify-content: center;
    min-width: 0;
    scrollbar-width: none;
}

.hx__thumbs::-webkit-scrollbar {
    display: none;
}

.hx__thumb {
    position: relative;
    flex: 0 0 auto;
    overflow: hidden;
    width: 104px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 14px;
    background: none;
    opacity: 0.5;
    transition: opacity 0.35s, border-color 0.35s, transform 0.35s var(--ui-ease);
}

.hx__thumb img {
    display: block;
    width: 100%;
    aspect-ratio: 1170 / 574;
    object-fit: cover;
}

.hx__thumb:hover,
.hx__thumb:focus-visible {
    opacity: 0.85;
    transform: translateY(-2px);
}

.hx__thumb.is-active {
    border-color: var(--ui-gold);
    opacity: 1;
}

.hx__thumb-bar {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: rgba(23, 40, 10, 0.55);
}

.hx__arrows {
    display: flex;
    gap: 10px;
}

.hx__nav {
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    border: 1px solid rgba(255, 250, 234, 0.28);
    border-radius: 50%;
    background: transparent;
    color: var(--ui-cream);
    transition: background-color 0.3s var(--ui-ease), color 0.3s, border-color 0.3s, transform 0.3s var(--ui-ease);
}

.hx__nav:hover,
.hx__nav:focus-visible {
    border-color: var(--ui-gold);
    background: var(--ui-gold);
    color: var(--ui-ink);
    transform: scale(1.06);
}

.hx__nav i {
    transition: transform 0.3s var(--ui-ease);
}

.hx__nav[data-hero-prev]:hover i {
    transform: translateX(-3px);
}

.hx__nav[data-hero-next]:hover i {
    transform: translateX(3px);
}

/* ---------- entrance animation (replayed on every slide) ---------- */
@keyframes hxReveal {
    from { clip-path: inset(0 0 0 100% round 28px); transform: scale(1.06); }
    to { clip-path: inset(0 0 0 0 round 28px); transform: scale(1); }
}

@keyframes hxFrame {
    from { opacity: 0; transform: translate(-14px, -14px); }
    to { opacity: 1; transform: none; }
}

@keyframes hxRise {
    from { opacity: 0; transform: translateY(26px); filter: blur(6px); }
    to { opacity: 1; transform: none; filter: none; }
}

@keyframes hxNum {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: none; }
}

.hx .is-entered .hx-slide__media img {
    animation: hxReveal 1.25s cubic-bezier(0.7, 0, 0.2, 1) both;
}

.hx .is-entered .hx-slide__media::before {
    animation: hxFrame 1s 0.55s var(--ui-ease) both;
}

.hx .is-entered .hx-slide__num {
    animation: hxNum 1s 0.1s var(--ui-ease) both;
}

.hx .is-entered .hx-slide__list li,
.hx .is-entered .hx-slide__note {
    animation: hxRise 0.8s var(--ui-ease) both;
}

.hx .is-entered .hx-slide__list li:nth-child(1) { animation-delay: 0.25s; }
.hx .is-entered .hx-slide__list li:nth-child(2) { animation-delay: 0.42s; }
.hx .is-entered .hx-slide__list li:nth-child(3) { animation-delay: 0.56s; }
.hx .is-entered .hx-slide__note { animation-delay: 0.85s; }

@media (max-width: 1199.98px) {
    .hx__thumb {
        width: 86px;
    }
}

@media (max-width: 991.98px) {
    .hx {
        padding: 32px 0 28px;
    }

    .hx-slide__media::before {
        inset: 12px -10px -10px 12px;
    }

    .hx-slide__text {
        padding-block: 0;
    }

    .hx-slide__num {
        top: -18px;
        right: calc(var(--bs-gutter-x) * 0.5);
        left: auto;
        font-size: 96px;
    }

    .hx__bar {
        flex-wrap: wrap;
        gap: 16px;
    }

    .hx__thumbs {
        order: 3;
        flex-basis: 100%;
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 2px;
    }

    .hx__arrows {
        margin-left: auto;
    }
}

@media (max-width: 575.98px) {
    .hx-slide__media img {
        border-radius: 18px;
    }

    .hx-slide__media::before {
        border-radius: 20px;
    }

    .hx-slide__list li:first-child {
        margin-bottom: 16px;
        padding-top: 18px;
    }

    .hx-slide__list li + li {
        margin-top: 8px;
        padding: 10px 14px 10px 12px;
    }

    .hx__progress {
        flex-basis: 72px;
    }

    .hx__nav {
        width: 44px;
        height: 44px;
    }

    .hx__thumb {
        width: 78px;
        border-radius: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hx__glow,
    .hx .is-entered .hx-slide__media img,
    .hx .is-entered .hx-slide__media::before,
    .hx .is-entered .hx-slide__num,
    .hx .is-entered .hx-slide__list li,
    .hx .is-entered .hx-slide__note {
        animation: none;
    }
}

/* ==========================================================================
   Home motion (home.js sets html.ha when the visitor allows motion)
   ========================================================================== */
html.ha [data-ha] {
    opacity: 0;
    transition:
        opacity 0.9s cubic-bezier(0.2, 0.7, 0.2, 1),
        transform 1s cubic-bezier(0.2, 0.7, 0.2, 1),
        clip-path 1.2s cubic-bezier(0.7, 0, 0.2, 1);
    transition-delay: calc(var(--ha-i, 0) * 85ms);
    will-change: opacity, transform;
}

html.ha [data-ha="up"] { transform: translate3d(0, 42px, 0); }
html.ha [data-ha="left"] { transform: translate3d(-56px, 0, 0); }
html.ha [data-ha="right"] { transform: translate3d(56px, 0, 0); }
html.ha [data-ha="zoom"] { transform: translate3d(0, 24px, 0) scale(0.9); }
html.ha [data-ha="wipe"] { clip-path: inset(0 0 0 100% round var(--ui-radius)); }

html.ha [data-ha].ha-in,
html.ha-done [data-ha] {
    opacity: 1;
    transform: none;
}

/* only wiped images keep a clip shape; anything else may draw outside its box (frames, shadows) */
html.ha [data-ha="wipe"].ha-in,
html.ha-done [data-ha="wipe"] {
    clip-path: inset(0 0 0 0 round var(--ui-radius));
}

/* wiped images settle from a slight zoom to their full size */
html.ha [data-ha="wipe"] img {
    transform: scale(1.12);
    transition: transform 1.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

html.ha [data-ha="wipe"].ha-in img {
    transform: scale(1);
}

/* gentle parallax on the image frames (the frame moves, the picture is never cropped) */
.ha-parallax.ha-in {
    transform: translate3d(0, var(--ha-par, 0), 0) !important;
    transition: opacity 0.9s, clip-path 1.2s cubic-bezier(0.7, 0, 0.2, 1), transform 0.25s linear !important;
}

/* headings: gold underline draws in */
.ha-title {
    position: relative;
    padding-bottom: 18px;
}

.ha-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--ui-gold), var(--ui-green));
    transition: width 0.9s 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.lv-head .ha-title::after,
.lv-prose--center > .ha-title::after,
.lv-cta > .ha-title::after,
.text-center > .ha-title::after {
    left: 50%;
    transform: translateX(-50%);
}

html.ha .ha-title.ha-in::after,
html.ha-done .ha-title::after {
    width: 72px;
}

/* amenity tiles: lift + icon bounce on hover */
@keyframes haBob {
    0%, 100% { transform: translateY(0) rotate(0); }
    30% { transform: translateY(-8px) rotate(-6deg); }
    60% { transform: translateY(-3px) rotate(4deg); }
}

.lv-tile {
    transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.4s, border-color 0.4s;
}

.lv-tile:hover,
html.ha .lv-tile[data-ha].ha-in:hover {
    border-color: rgba(255, 204, 41, 0.6);
    box-shadow: var(--ui-shadow);
    transform: translateY(-8px);
}

.lv-tile:hover img {
    animation: haBob 0.9s ease;
}

/* dark bands: slow colour drift */
@keyframes haDrift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

#main-content .lv-section--dark {
    background: linear-gradient(120deg, #1f3a0c 0%, #2c4f12 35%, #3a6418 55%, #2c4f12 75%, #1f3a0c 100%);
    background-size: 240% 240%;
    animation: haDrift 18s ease-in-out infinite;
}

/* page scroll progress */
.ha-progress {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 2000;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--ui-gold), var(--ui-green));
    transform: scaleX(0);
    transform-origin: left center;
    pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
    html.ha [data-ha],
    html.ha [data-ha="wipe"] img {
        opacity: 1 !important;
        transform: none !important;
        clip-path: none !important;
        transition: none !important;
    }

    #main-content .lv-section--dark,
    .lv-tile:hover img {
        animation: none;
    }

    .ha-progress {
        display: none;
    }
}

/* ==========================================================================
   Home sections: layout depth, decorations and moving backgrounds
   ========================================================================== */
#main-content > section[class*="hm-"] {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

#main-content > section[class*="hm-"] > .container {
    position: relative;
    z-index: 1;
}

/* one heading style for every h2 on the home page */
#main-content > section h2 {
    margin: 0 0 10px;
    letter-spacing: normal;
}

#main-content > section h2.ha-title {
    margin-bottom: 18px;
}

/* ---------- decorations ---------- */
.hm-blob {
    position: absolute;
    z-index: 0;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.55;
    pointer-events: none;
    animation: hmBlob 16s ease-in-out infinite;
}

.hm-blob--a { top: -120px; right: -80px; width: 420px; height: 420px; background: rgba(132, 203, 51, 0.35); }
.hm-blob--b { bottom: -160px; left: -120px; width: 380px; height: 380px; background: rgba(255, 204, 41, 0.3); animation-delay: -6s; }
.hm-blob--c { top: 10%; left: 50%; width: 620px; height: 620px; margin-left: -310px; background: rgba(255, 204, 41, 0.18); }
.hm-blob--d { bottom: -200px; right: -120px; width: 480px; height: 480px; background: rgba(132, 203, 51, 0.22); }

@keyframes hmBlob {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    33% { transform: translate3d(40px, -30px, 0) scale(1.08); }
    66% { transform: translate3d(-30px, 20px, 0) scale(0.95); }
}

.hm-ring {
    position: absolute;
    z-index: 0;
    border: 1.5px dashed rgba(255, 250, 234, 0.16);
    border-radius: 50%;
    pointer-events: none;
    animation: hmSpin 60s linear infinite;
}

.hm-ring::after {
    content: "";
    position: absolute;
    inset: 40px;
    border: 1px solid rgba(255, 204, 41, 0.18);
    border-radius: 50%;
}

.hm-ring--l { top: -160px; left: -160px; width: 420px; height: 420px; }
.hm-ring--r { bottom: -200px; right: -140px; width: 520px; height: 520px; animation-direction: reverse; }
.hm-ring--s { top: 50%; left: 50%; width: 900px; height: 900px; margin: -450px 0 0 -450px; animation-duration: 90s; }

@keyframes hmSpin {
    to { transform: rotate(360deg); }
}

.hm-dots {
    position: absolute;
    z-index: 0;
    width: 220px;
    height: 220px;
    background: radial-gradient(rgba(44, 79, 18, 0.25) 2px, transparent 2.5px) 0 0 / 22px 22px;
    pointer-events: none;
    animation: hmFloat 9s ease-in-out infinite;
}

.hm-dots--l { top: 40px; left: 2%; }
.hm-dots--r { bottom: 40px; right: 2%; animation-delay: -4s; }

@keyframes hmFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-18px); }
}

/* moving background layer behind each light section */
#main-content > section[class*="hm-"]::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.hm-welcome::before,
.hm-wealth::before,
.hm-contact::before {
    background: radial-gradient(rgba(44, 79, 18, 0.16) 1.6px, transparent 2px) 0 0 / 28px 28px;
    -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 0%, transparent 75%);
    mask-image: radial-gradient(ellipse at 50% 40%, #000 0%, transparent 75%);
    animation: hmDotsMove 40s linear infinite;
}

@keyframes hmDotsMove {
    to { background-position: 280px 280px; }
}

.hm-amen::before,
.hm-direction::before,
.hm-reviews::before {
    inset: -20%;
    background:
        radial-gradient(40% 50% at 20% 30%, rgba(132, 203, 51, 0.28), transparent 70%),
        radial-gradient(35% 45% at 80% 70%, rgba(255, 204, 41, 0.26), transparent 70%),
        radial-gradient(30% 40% at 60% 20%, rgba(44, 79, 18, 0.12), transparent 70%);
    filter: blur(20px);
    animation: hmMesh 22s ease-in-out infinite alternate;
}

@keyframes hmMesh {
    0% { transform: translate3d(-4%, -3%, 0) rotate(0deg) scale(1); }
    50% { transform: translate3d(4%, 3%, 0) rotate(8deg) scale(1.08); }
    100% { transform: translate3d(-2%, 4%, 0) rotate(-6deg) scale(1.02); }
}

.hm-family::before {
    background: repeating-linear-gradient(135deg, transparent 0 26px, rgba(44, 79, 18, 0.05) 26px 27px);
    animation: hmLines 30s linear infinite;
}

@keyframes hmLines {
    to { background-position: 380px 0; }
}

.hm-gallery::before {
    inset: -40% -20%;
    background: linear-gradient(115deg, transparent 20%, rgba(132, 203, 51, 0.16) 38%, rgba(255, 204, 41, 0.18) 50%, rgba(132, 203, 51, 0.12) 62%, transparent 80%);
    filter: blur(30px);
    animation: hmAurora 18s ease-in-out infinite alternate;
}

@keyframes hmAurora {
    from { transform: translateX(-30%) skewX(-8deg); }
    to { transform: translateX(30%) skewX(8deg); }
}

/* ---------- photos with a floating offset frame ---------- */
.hm-photo {
    position: relative;
    overflow: visible;
    box-shadow: none;
}

.hm-photo img {
    position: relative;
    z-index: 1;
    border-radius: 28px;
    box-shadow: 0 40px 70px -34px rgba(23, 40, 10, 0.55);
}

.hm-photo::before {
    content: "";
    position: absolute;
    inset: 22px -22px -22px 22px;
    z-index: 0;
    border-radius: 30px;
    background: linear-gradient(135deg, var(--ui-gold), var(--ui-green));
    opacity: 0.9;
    transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.hm-photo::after {
    content: "";
    position: absolute;
    top: -34px;
    left: -34px;
    z-index: 2;
    width: 110px;
    height: 110px;
    border: 2px dashed rgba(44, 79, 18, 0.45);
    border-radius: 50%;
    animation: hmSpin 26s linear infinite;
    pointer-events: none;
}

.hm-photo:hover::before {
    transform: translate(-10px, -10px);
}

.hm-photo--alt::before {
    inset: 22px 22px -22px -22px;
    background: linear-gradient(135deg, var(--ui-forest), var(--ui-green));
}

.hm-photo--alt::after {
    top: auto;
    right: -30px;
    bottom: -30px;
    left: auto;
    border-color: rgba(255, 204, 41, 0.7);
}

.hm-photo--alt:hover::before {
    transform: translate(10px, -10px);
}

/* ---------- welcome ---------- */
.hm-welcome {
    background: linear-gradient(160deg, #fffdf6 0%, #fff3d2 100%);
}

.hm-welcome h1 {
    font-size: clamp(30px, 1.2rem + 2.6vw, 36px);
    line-height: 1.1;
}

/* ---------- amenities: glass cards with glowing icon wells ---------- */
.hm-amen .lv-tile {
    position: relative;
    gap: 16px;
    padding: 30px 18px 26px;
    border: 1px solid rgba(23, 40, 10, 0.07);
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 18px 40px -28px rgba(23, 40, 10, 0.45);
}

/* gradient border that lights up on hover */
.hm-amen .lv-tile::before {
    content: "";
    position: absolute;
    inset: 0;
    padding: 1.5px;
    border-radius: inherit;
    background: linear-gradient(135deg, var(--ui-gold), var(--ui-green), transparent 70%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s;
}

.hm-amen .lv-tile:hover::before {
    opacity: 1;
}

.hm-amen .lv-tile img {
    width: 84px;
    height: 84px;
    padding: 14px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #ffffff 0%, #fff4cc 55%, #f3e7b8 100%);
    box-shadow: inset 0 -6px 14px rgba(23, 40, 10, 0.08), 0 10px 22px -12px rgba(23, 40, 10, 0.4);
}

.hm-amen .lv-tile h3 {
    font-size: 16px;
    letter-spacing: 0.01em;
}

.hm-amen .lv-actions {
    margin-top: 40px !important;
}

@media (max-width: 767.98px) {
    .hm-amen .lv-tile img {
        width: 68px;
        height: 68px;
        padding: 11px;
    }
}

/* ---------- "Don't just dream" statement band ---------- */
.hm-quote {
    padding: 110px 0;
}

#main-content > section.hm-quote h2 {
    font-size: clamp(30px, 1.2rem + 2.4vw, 36px);
    line-height: 1.1;
    background: linear-gradient(90deg, #fffaea 0%, #ffcc29 25%, #fffaea 50%, #ffcc29 75%, #fffaea 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: hmShimmer 8s linear infinite;
}

@keyframes hmShimmer {
    to { background-position: -200% center; }
}

.hm-quote p {
    max-width: 760px;
    margin-inline: auto;
    font-size: clamp(16px, 0.9rem + 0.35vw, 19px);
}

/* ---------- family + wealth splits ---------- */
.hm-family {
    background: #ffffff;
}

.hm-wealth {
    background: linear-gradient(160deg, #fffaea 0%, #fdefc6 100%);
}

@media (min-width: 992px) {
    .hm-welcome .lv-split { --bs-gutter-x: 72px; }
    .hm-family .lv-split,
    .hm-wealth .lv-split { --bs-gutter-x: 80px; }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
    .hm-welcome .lv-split,
    .hm-family .lv-split,
    .hm-wealth .lv-split { --bs-gutter-x: 56px; }
}

/* gold-to-green rule beside the text, drawn inside the column's gutter padding */
.hm-wealth .lv-split__text {
    padding-left: calc(var(--bs-gutter-x) * 0.5 + 26px);
    background: linear-gradient(180deg, var(--ui-gold), var(--ui-green)) calc(var(--bs-gutter-x) * 0.5) 0 / 3px 100% no-repeat;
}

@media (max-width: 991.98px) {
    .hm-wealth .lv-split__text {
        padding-left: calc(var(--bs-gutter-x) * 0.5 + 18px);
    }
}

.hm-plan {
    overflow: hidden;
    border: 10px solid var(--ui-white);
    border-radius: 26px;
    box-shadow: 0 40px 80px -40px rgba(23, 40, 10, 0.6);
    transform: rotate(-2.2deg);
    transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.6s;
}

.hm-plan:hover {
    box-shadow: 0 50px 90px -40px rgba(23, 40, 10, 0.7);
    transform: rotate(0) scale(1.02);
}

/* keep the plan card's tilt after its reveal animation */
html.ha .hm-plan[data-ha].ha-in,
html.ha-done .hm-plan[data-ha] {
    transform: rotate(-2.2deg);
}

html.ha .hm-plan[data-ha].ha-in:hover {
    transform: rotate(0) scale(1.02);
}

@media (max-width: 767.98px) {
    .hm-photo::before { inset: 14px -12px -12px 14px; }
    .hm-photo--alt::before { inset: 14px 14px -12px -12px; }
    .hm-photo::after { top: -20px; left: -16px; width: 72px; height: 72px; }
    .hm-photo--alt::after { top: auto; right: -14px; bottom: -18px; left: auto; }

    .hm-plan,
    html.ha .hm-plan[data-ha].ha-in {
        transform: rotate(-1.2deg);
    }
}

/* ---------- Direction card + "Better Hurry than Worry!" side by side ---------- */
.hm-duo {
    padding: 110px 0 90px;
}

.hm-direction__card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 70px 40px 44px;
    border-radius: 32px;
    background: var(--ui-white);
    box-shadow: 0 40px 80px -46px rgba(23, 40, 10, 0.55);
}

.hm-direction__card::before {
    content: "";
    position: absolute;
    inset: 0;
    padding: 1.5px;
    border-radius: inherit;
    background: linear-gradient(135deg, var(--ui-gold), var(--ui-green), var(--ui-gold));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.hm-direction__card p {
    margin-bottom: 0;
}

.hm-pin {
    position: absolute;
    top: -34px;
    left: 50%;
    display: grid;
    place-items: center;
    width: 68px;
    height: 68px;
    margin-left: -34px;
    border-radius: 50%;
    background: var(--ui-grad);
    color: var(--ui-gold);
    font-size: 26px;
    box-shadow: 0 16px 30px -14px rgba(23, 40, 10, 0.8);
}

.hm-pin::before,
.hm-pin::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 2px solid rgba(132, 203, 51, 0.6);
    border-radius: 50%;
    animation: hmPulse 2.4s ease-out infinite;
}

.hm-pin::after {
    animation-delay: 1.2s;
}

.hm-pin i {
    animation: hmHop 2.4s ease-in-out infinite;
}

@keyframes hmPulse {
    from { opacity: 0.9; transform: scale(1); }
    to { opacity: 0; transform: scale(1.9); }
}

@keyframes hmHop {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.hm-duo__cta {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    isolation: isolate;
    padding: 56px 40px;
    border-radius: 32px;
    background-position: center;
    background-size: cover;
    color: var(--ui-cream);
    box-shadow: 0 40px 80px -46px rgba(23, 40, 10, 0.75);
}

/* slow zoom on the photo + soft light */
.hm-duo__cta::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: inherit;
    background-size: cover;
    animation: hmKen 18s ease-in-out infinite alternate;
}

.hm-duo__cta::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: radial-gradient(60% 80% at 80% 0%, rgba(255, 204, 41, 0.22), transparent 60%);
    pointer-events: none;
}

@keyframes hmKen {
    from { transform: scale(1); }
    to { transform: scale(1.1); }
}

#main-content > section .hm-duo__cta h2 {
    color: var(--ui-cream);
    font-size: clamp(28px, 1.1rem + 2vw, 44px);
}

.hm-duo__cta p {
    margin: 0 0 4px;
    color: rgba(255, 250, 234, 0.9);
    font-size: 18px;
}

.hm-duo__cta .btn {
    animation: hmGlow 2.8s ease-in-out infinite;
}

@keyframes hmGlow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 204, 41, 0.55); }
    50% { box-shadow: 0 0 0 14px rgba(255, 204, 41, 0); }
}

@media (max-width: 991.98px) {
    .hm-duo {
        padding: 84px 0 64px;
    }
}

@media (max-width: 767.98px) {
    .hm-direction__card {
        padding: 60px 22px 34px;
        border-radius: 24px;
    }

    .hm-duo__cta {
        padding: 44px 22px;
        border-radius: 24px;
    }
}

/* ---------- Gallery: bento grid (needs CSS grid row spans, which the Bootstrap flex grid has no equivalent for) ---------- */
.hm-bento {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: 225px;
    grid-auto-flow: dense;
    gap: 16px;
}

.hm-bento a {
    position: relative;
    border-radius: 22px;
}

.hm-bento img {
    object-position: 50% 100%;
}

.hm-bento a:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.hm-bento a:nth-child(6) { grid-row: span 2; }
.hm-bento a:nth-child(9) { grid-column: span 2; }
.hm-bento a:nth-child(13) { grid-column: span 2; }

.hm-bento a::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, transparent 45%, rgba(23, 40, 10, 0.55));
    opacity: 0;
    transition: opacity 0.4s;
}

/* zoom badge */
.hm-bento a::after {
    content: "+";
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255, 204, 41, 0.95);
    color: var(--ui-ink);
    font-size: 28px;
    font-weight: 700;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.6);
    transition: opacity 0.35s, transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.hm-bento a:hover::before {
    opacity: 1;
}

.hm-bento a:hover::after,
.hm-bento a:focus-visible::after {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.hm-bento a:hover img {
    transform: scale(1.08);
}

@media (max-width: 991.98px) {
    .hm-bento {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        grid-auto-rows: 172px;
    }

    .hm-bento a:nth-child(13) { grid-column: auto; }
}

@media (max-width: 767.98px) {
    .hm-bento {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: 132px;
        gap: 10px;
    }

    .hm-bento a:nth-child(6) { grid-row: auto; }
}

/* ---------- Counters: one glass "impact" panel, three columns, rings that draw in ---------- */
@property --hm-p {
    syntax: "<number>";
    inherits: false;
    initial-value: 100;
}

.hm-stats {
    padding: 100px 0;
}

.hm-stats .lv-stats {
    position: relative;
    padding: 14px;
    border: 1px solid rgba(255, 250, 234, 0.16);
    border-radius: 36px;
    background: linear-gradient(160deg, rgba(255, 250, 234, 0.1), rgba(255, 250, 234, 0.03));
    box-shadow: 0 40px 90px -50px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 250, 234, 0.12);
}

.hm-stats .lv-stats li {
    position: relative;
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 34px 32px;
    border-radius: 26px;
    transition: background-color 0.4s;
}

.hm-stats .lv-stats li:hover {
    background: rgba(255, 250, 234, 0.05);
}

/* glowing divider between columns */
.hm-stats .lv-stats li + li::before {
    content: "";
    position: absolute;
    top: 18%;
    bottom: 18%;
    left: 0;
    width: 1px;
    background: linear-gradient(180deg, transparent, rgba(255, 204, 41, 0.6), rgba(132, 203, 51, 0.6), transparent);
}

/* icon inside a ring that draws itself */
.hm-stat-ring {
    position: relative;
    display: grid;
    flex: 0 0 104px;
    place-items: center;
    width: 104px;
    height: 104px;
    border-radius: 50%;
}

.hm-stat-ring::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: conic-gradient(from -90deg, var(--ui-gold) 0, var(--ui-green) calc(var(--hm-p) * 1%), rgba(255, 250, 234, 0.12) 0);
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 4px));
    mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 4px));
    transition: filter 0.4s;
}

html.ha .hm-stats .lv-stats li .hm-stat-ring::before {
    --hm-p: 0;
}

html.ha .hm-stats .lv-stats li.ha-in .hm-stat-ring::before {
    --hm-p: 100;
    transition: --hm-p 1.8s cubic-bezier(0.2, 0.7, 0.2, 1) 0.2s, filter 0.4s;
}

.hm-stat-ring img {
    position: relative;
    width: 76px;
    height: 76px;
    padding: 14px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #ffffff, #fff4cc 70%);
    box-shadow: 0 12px 26px -12px rgba(0, 0, 0, 0.6);
    transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.hm-stats .lv-stats li:hover .hm-stat-ring::before {
    filter: drop-shadow(0 0 8px rgba(255, 204, 41, 0.7));
}

.hm-stats .lv-stats li:hover .hm-stat-ring img {
    transform: rotate(-8deg) scale(1.05);
}

.hm-stats .lv-stats li > div {
    min-width: 0;
}

.hm-stats .lv-stats strong {
    display: block;
    font-size: clamp(48px, 1.6rem + 2.8vw, 72px);
    font-variant-numeric: tabular-nums;
    line-height: 0.95;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #ffe58a, var(--ui-gold) 45%, var(--ui-green));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hm-stats .lv-stats h3 {
    margin: 10px 0 0;
    color: rgba(255, 250, 234, 0.88);
    font-size: 17px;
    font-weight: 600;
    line-height: 1.45;
}

@media (max-width: 1199.98px) {
    .hm-stats .lv-stats li {
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
        padding: 30px 26px;
    }
}

@media (max-width: 991.98px) {
    .hm-stats .lv-stats {
        padding: 8px;
        border-radius: 28px;
    }

    .hm-stats .lv-stats li {
        flex-direction: row;
        align-items: center;
        padding: 24px 20px;
    }

    .hm-stats .lv-stats li + li::before {
        top: 0;
        bottom: auto;
        left: 10%;
        right: 10%;
        width: auto;
        height: 1px;
        background: linear-gradient(90deg, transparent, rgba(255, 204, 41, 0.6), rgba(132, 203, 51, 0.6), transparent);
    }
}

@media (max-width: 575.98px) {
    .hm-stat-ring {
        flex-basis: 84px;
        width: 84px;
        height: 84px;
    }

    .hm-stat-ring img {
        width: 62px;
        height: 62px;
        padding: 11px;
    }

    .hm-stats .lv-stats h3 {
        font-size: 15px;
    }
}

/* ---------- Testimonials: review cards in an endless sliding row ---------- */
.hm-reviews .lv-head {
    margin-bottom: 44px;
}

.hm-marquee {
    display: block;
    overflow: hidden;
    margin-inline: calc(-0.5 * var(--bs-gutter-x, 24px));
    padding: 18px 0 30px;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.hm-marquee__track {
    display: flex;
    align-items: flex-start;
    gap: 26px;
    width: max-content;
    animation: hmMarquee var(--hm-dur, 45s) linear infinite;
}

.hm-marquee:hover .hm-marquee__track,
.hm-marquee:focus-within .hm-marquee__track {
    animation-play-state: paused;
}

@keyframes hmMarquee {
    to { transform: translateX(calc(-50% - 13px)); }
}

.hm-marquee--static {
    -webkit-mask-image: none;
    mask-image: none;
}

.hm-marquee--static .hm-marquee__track {
    flex-wrap: wrap;
    justify-content: center;
    width: auto;
    animation: none;
}

.lv-review {
    position: relative;
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    grid-template-areas:
        "stars  stars"
        "text   text"
        "avatar name"
        "avatar meta"
        "note   note";
    align-content: start;
    column-gap: 14px;
    padding: 30px 30px 24px;
    border: 1px solid rgba(23, 40, 10, 0.06);
    border-radius: 28px;
    background:
        radial-gradient(120% 80% at 100% 0%, rgba(255, 204, 41, 0.12), transparent 55%),
        rgba(255, 255, 255, 0.88);
    box-shadow: 0 28px 60px -40px rgba(23, 40, 10, 0.6);
    transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.45s;
}

.hm-marquee .lv-review {
    flex: 0 0 380px;
}

/* the long multi-line review: wider card, slightly smaller text */
.hm-marquee .lv-review:has(.lv-review__text br) {
    flex-basis: 640px;
}

/* glowing gradient border on hover */
.lv-review::after {
    content: "";
    position: absolute;
    inset: 0;
    padding: 1.5px;
    border-radius: inherit;
    background: linear-gradient(135deg, var(--ui-gold), var(--ui-green), transparent 75%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.45s;
    pointer-events: none;
}

/* large decorative quote mark */
.lv-review::before {
    content: "\201C";
    position: absolute;
    top: 6px;
    right: 24px;
    color: rgba(132, 203, 51, 0.28);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 110px;
    line-height: 1;
    transition: color 0.45s, transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
    pointer-events: none;
}

.lv-review:hover {
    box-shadow: 0 40px 80px -40px rgba(23, 40, 10, 0.7);
    transform: translateY(-8px);
}

.lv-review:hover::after {
    opacity: 1;
}

.lv-review:hover::before {
    color: rgba(255, 204, 41, 0.55);
    transform: translateY(-4px) rotate(-6deg);
}

.lv-review__stars {
    grid-area: stars;
    margin-bottom: 18px;
    color: #f5b301;
    font-size: 16px;
    letter-spacing: 3px;
    filter: drop-shadow(0 2px 4px rgba(245, 179, 1, 0.35));
}

.lv-review__text {
    grid-area: text;
    position: relative;
    z-index: 1;
    margin: 0 0 24px;
    color: var(--ui-ink);
    font-size: 19px;
    font-weight: 600;
    line-height: 1.55;
}

.lv-review:has(.lv-review__text br) .lv-review__text {
    font-size: 16px;
    line-height: 1.65;
}

.lv-review__avatar {
    grid-area: avatar;
    display: grid;
    place-items: center;
    align-self: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--tone, #2c4f12), color-mix(in srgb, var(--tone, #2c4f12) 60%, #ffcc29));
    color: #fffaea;
    font-size: 21px;
    font-weight: 700;
    box-shadow: 0 0 0 4px #ffffff, 0 10px 22px -10px rgba(23, 40, 10, 0.7);
}

.lv-review__name {
    grid-area: name;
    align-self: end;
    margin: 0;
    padding-top: 18px;
    border-top: 1px solid rgba(23, 40, 10, 0.08);
    color: var(--ui-ink);
    font-size: 17px;
    font-weight: 700;
    text-transform: capitalize;
}

.lv-review__meta {
    grid-area: meta;
    align-self: start;
    margin: 2px 0 0;
    color: var(--ui-muted);
    font-size: 14px;
}

.lv-review__meta i {
    color: #4285f4;
}

.lv-review__note {
    grid-area: note;
    margin: 16px 0 0;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(132, 203, 51, 0.08);
    color: var(--ui-muted);
    font-size: 12.5px;
    line-height: 1.5;
}

@media (max-width: 767.98px) {
    .lv-review {
        padding: 24px 22px 20px;
        border-radius: 22px;
    }

    .hm-marquee .lv-review {
        flex-basis: 300px;
    }

    .hm-marquee .lv-review:has(.lv-review__text br) {
        flex-basis: 340px;
    }

    .lv-review__text {
        font-size: 17px;
    }

    .lv-review:has(.lv-review__text br) .lv-review__text {
        font-size: 15px;
    }

    .lv-review::before {
        right: 16px;
        font-size: 84px;
    }
}

/* ---------- Contact ---------- */
.hm-contact {
    padding: 90px 0;
    background: linear-gradient(160deg, #fffdf6 0%, #fff1cc 100%);
}

@media (max-width: 991.98px) {
    .hm-quote,
    .hm-stats,
    .hm-contact {
        padding: 64px 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hm-blob,
    .hm-ring,
    .hm-dots,
    .hm-photo::after,
    #main-content > section.hm-quote h2,
    .hm-pin::before,
    .hm-pin::after,
    .hm-pin i,
    .hm-duo__cta::before,
    .hm-duo__cta .btn,
    .hm-marquee__track,
    #main-content > section[class*="hm-"]::before {
        animation: none !important;
    }

    .hm-stat-ring::before {
        --hm-p: 100 !important;
        transition: none !important;
    }
}
