/* ==========================================================================
   Home page – modern section design (content unchanged; layout, depth and motion only)
   ========================================================================== */

#main-content > section[class*="hm-"] {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

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

/* ---------- shared 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); }
}

/* headings across the home page */
#main-content > section[class*="hm-"] h2 {
    letter-spacing: -0.015em;
}

/* ---------- 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 {
    left: auto;
    right: -30px;
    top: auto;
    bottom: -30px;
    border-color: rgba(255, 204, 41, 0.7);
}

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

/* ---------- welcome ---------- */
.hm-welcome {
    padding:60px 0;
    background: linear-gradient(180deg, #fffdf6 0%, #fff8e4 100%);
}

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

.hm-welcome .lv-split {
    gap: 72px;
}

/* ---------- amenities: glass cards with glowing icon wells ---------- */
.hm-amen {
    padding:60px 0;
}

.hm-amen .lv-tiles {
    grid-template-columns: repeat(auto-fill, minmax(178px, 1fr));
    gap: 20px;
}

.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);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    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;
}

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

.hm-quote h2 {
    font-size: clamp(30px, 1.2rem + 3vw, 60px);
    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 !important;
    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,
.hm-wealth {
    padding:60px 0;
}

.hm-family .lv-split,
.hm-wealth .lv-split {
    gap: 80px;
}

.hm-wealth .lv-split__text {
    padding-left: 26px;
    border-left: 3px solid transparent;
    border-image: linear-gradient(180deg, var(--ui-gold), var(--ui-green)) 1;
}

.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);
}

/* ---------- direction card with pulsing pin ---------- */
.hm-direction {
    padding:60px 0;
}
.hm-gallery{
    background: linear-gradient(180deg, #ffffff 0%, #fffaea 100%);

}

.hm-direction__card {
    position: relative;
    max-width: 860px;
    padding: 64px 48px 48px;
    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-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); }
}

/* ---------- CTA: fixed photo, glass card ---------- */
.hm-cta {
    padding: 130px 0;
    background-attachment: fixed;
}

.hm-cta .lv-cta {
    max-width: 680px;
    margin: 0 auto;
    padding: 54px 40px;
    border: 1px solid rgba(255, 250, 234, 0.2);
    border-radius: 32px;
    background: rgba(23, 40, 10, 0.35);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.7);
}

.hm-cta h2 {
    font-size: clamp(30px, 1.2rem + 2.6vw, 52px);
}

.hm-cta .ui-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); }
}

/* ---------- gallery: bento grid ---------- */
.hm-gallery {
    padding:60px 0;
}

.hm-gallery .lv-gallery {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: 190px;
    grid-auto-flow: dense;
    gap: 16px;
}

.hm-gallery .lv-gallery a {
    aspect-ratio: auto;
    border-radius: 22px;
}

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

.hm-gallery .lv-gallery 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;
}

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

.hm-gallery .lv-gallery a::after {
    z-index: 2;
}

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

.hm-stats .lv-stats {
    gap: 26px;
}

.hm-stats .lv-stats li {
    position: relative;
    overflow: hidden;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 34px 30px;
    border: 1px solid rgba(255, 250, 234, 0.16);
    border-radius: 28px;
    background: linear-gradient(160deg, rgba(255, 250, 234, 0.1), rgba(255, 250, 234, 0.02));
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.hm-stats .lv-stats li::after {
    content: "";
    position: absolute;
    top: -60px;
    right: -60px;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 204, 41, 0.28), transparent 70%);
    transition: transform 0.6s;
}

.hm-stats .lv-stats li:hover::after {
    transform: scale(1.4);
}

.hm-stats .lv-stats img {
    width: 70px;
    height: 70px;
    padding: 12px;
    border-radius: 20px;
    background: rgba(255, 250, 234, 0.92);
    transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

.hm-stats .lv-stats strong {
    font-size: clamp(46px, 1.6rem + 2.6vw, 66px);
    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 {
    font-size: 18px;
}

/* ---------- testimonials: endless sliding row ---------- */
.hm-reviews {
    padding:60px 0;
}

.hm-marquee {
    display: block;
    overflow: hidden;
    margin-inline: calc(-1 * var(--bs-gutter-x, 12px));
    padding: 10px 0 24px;
    -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;
    gap: 22px;
    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% - 11px)); }
}

.hm-marquee .lv-review {
    flex: 0 0 360px;
    border-radius: 24px;
    box-shadow: 0 24px 50px -36px rgba(23, 40, 10, 0.55);
}

.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;
}

/* ---------- contact ---------- */
.hm-contact {
    padding: 90px 0;
    background: linear-gradient(180deg, #ffffff 0%, #fff8e4 100%);
}

.hm-contact .lv-form,
.hm-contact .lv-map {
    border-radius: 28px;
}

/* ---------- responsive ---------- */
@media (max-width: 1199.98px) {
    .hm-welcome .lv-split,
    .hm-family .lv-split,
    .hm-wealth .lv-split {
        gap: 56px;
    }
}

@media (max-width: 991.98px) {
    .hm-welcome,
    .hm-amen,
    .hm-quote,
    .hm-family,
    .hm-wealth,
    .hm-direction,
    .hm-gallery,
    .hm-stats,
    .hm-reviews,
    .hm-contact {
        padding: 64px 0;
    }

    .hm-cta {
        padding: 90px 0;
        background-attachment: scroll;
    }

    .hm-welcome .lv-split,
    .hm-family .lv-split,
    .hm-wealth .lv-split {
        gap: 54px;
    }

    .hm-wealth .lv-split__text {
        padding-left: 18px;
    }

    .hm-gallery .lv-gallery {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        grid-auto-rows: 170px;
    }

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

@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 {
        width: 72px;
        height: 72px;
        top: -20px;
        left: -16px;
    }

    .hm-photo--alt::after {
        left: auto;
        right: -14px;
        top: auto;
        bottom: -18px;
    }

    .hm-amen .lv-tiles {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .hm-amen .lv-tile img {
        width: 68px;
        height: 68px;
        padding: 11px;
    }

    .hm-direction__card {
        padding: 56px 22px 34px;
        border-radius: 24px;
    }

    .hm-cta .lv-cta {
        padding: 40px 22px;
        border-radius: 24px;
    }

    .hm-gallery .lv-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: 140px;
        gap: 10px;
    }

    .hm-gallery .lv-gallery a:nth-child(6) { grid-row: auto; }
    .hm-gallery .lv-gallery a:nth-child(9) { grid-column: span 2; }

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

    .hm-plan {
        transform: rotate(-1.2deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .hm-blob,
    .hm-ring,
    .hm-dots,
    .hm-photo::after,
    .hm-quote h2,
    .hm-pin::before,
    .hm-pin::after,
    .hm-pin i,
    .hm-cta .ui-btn,
    .hm-marquee__track {
        animation: none !important;
    }

    .hm-cta {
        background-attachment: scroll;
    }
}

/* 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) {
    html.ha .hm-plan[data-ha].ha-in {
        transform: rotate(-1.2deg);
    }
}

/* reviews size to their own text instead of the tallest card */
.hm-marquee__track {
    align-items: flex-start;
}

/* gallery: rows match the photos' 4:3 shape, and the bottom edge (where the photo labels sit) stays in view */
.hm-gallery .lv-gallery {
    grid-auto-rows: 225px;
}

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

@media (max-width: 991.98px) {
    .hm-gallery .lv-gallery {
        grid-auto-rows: 172px;
    }
}

@media (max-width: 767.98px) {
    .hm-gallery .lv-gallery {
        grid-auto-rows: 132px;
    }
}
/* the long multi-line review gets a wider card instead of a tall narrow one */
.hm-marquee .lv-review:has(.lv-review__text br) {
    flex-basis: 620px;
}

@media (max-width: 767.98px) {
    .hm-marquee .lv-review:has(.lv-review__text br) {
        flex-basis: 330px;
    }
}

/* ==========================================================================
   Alternating section backgrounds with slow moving layers
   (each light section gets its own tint; the moving layer sits behind the content)
   ========================================================================== */
#main-content > section.hm-welcome,
/* #main-content > section.hm-amen, */
#main-content > section.hm-family,
#main-content > section.hm-wealth,
#main-content > section.hm-gallery,
#main-content > section.hm-reviews,
#main-content > section.hm-contact {
    --hm-tint: #fff8e4;
}

.hm-welcome   { --hm-tint: #fff8e4; background: linear-gradient(160deg, #fffdf6 0%, #fff3d2 100%) !important; }
/* .hm-amen      { --hm-tint: #eef6e2; background: linear-gradient(160deg, #f4f9ec 0%, #e6f1d6 100%) !important; } */
.hm-family    { --hm-tint: #ffffff; background: #ffffff !important; }
.hm-wealth    { --hm-tint: #fff4d6; background: linear-gradient(160deg, #fffaea 0%, #fdefc6 100%) !important; }
/* .hm-direction { --hm-tint: #ecf7f0; background: linear-gradient(160deg, #f3fbf5 0%, #e2f2e6 100%) !important; } */
/* .hm-gallery   { --hm-tint: #ffffff; background: #fffefb !important; } */
.hm-reviews   { --hm-tint: #eef6e2; background: linear-gradient(160deg, #f4f9ec 0%, #e3efd2 100%) !important; }
.hm-contact   { --hm-tint: #fff8e4; background: linear-gradient(160deg, #fffdf6 0%, #fff1cc 100%) !important; }

#main-content > section[class*="hm-"]::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

/* moving dot grid */
.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; }
}

/* drifting colour light (soft gradient mesh) */
.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); }
}

/* sliding fine diagonal lines */
.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; }
}

/* slow aurora sweep */
.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); }
}

/* the existing decorative layers stay above the moving background */
.hm-blob,
.hm-ring,
.hm-dots {
    z-index: 0;
}

@media (prefers-reduced-motion: reduce) {
    #main-content > section[class*="hm-"]::before {
        animation: none !important;
    }
}

/* ==========================================================================
   Testimonials – modern review cards
   stars + quote mark / review text / initial badge + name + "Posted on Google" / note
   ========================================================================== */
.hm-reviews .lv-head {
    margin-bottom: 44px;
}

.hm-marquee {
    padding: 18px 0 30px;
}

.hm-marquee__track {
    gap: 26px;
    align-items: stretch;
}

.hm-reviews .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;
    row-gap: 0;
    flex: 0 0 380px;
    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);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    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;
}

/* glowing gradient border on hover */
.hm-reviews .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 */
.hm-reviews .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;
}

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

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

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

.hm-reviews .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));
}

.hm-reviews .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;
}

.hm-reviews .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);
}

.hm-reviews .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;
}

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

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

.hm-reviews .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;
}

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

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

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

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

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

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

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

/* reviews size to their own content (the long review no longer stretches every card) */
.hm-marquee__track {
    align-items: flex-start;
}

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

.hm-stats .lv-stats {
    position: relative;
    gap: 0;
    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));
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    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;
    overflow: visible;
    flex-direction: row;
    align-items: center;
    gap: 24px;
    padding: 34px 32px;
    border: 0;
    border-radius: 26px;
    background: transparent;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    transition: background-color 0.4s;
}

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

/* 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);
}

.hm-stats .lv-stats li::after {
    content: none;
}

/* 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-stats .lv-stats .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);
}

.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 {
    font-size: clamp(48px, 1.6rem + 2.8vw, 72px);
    line-height: 0.95;
    letter-spacing: -0.02em;
}

.hm-stats .lv-stats h3 {
    margin-top: 10px;
    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-stats .lv-stats .hm-stat-ring img {
        width: 62px;
        height: 62px;
        padding: 11px;
    }

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

@media (prefers-reduced-motion: reduce) {
    .hm-stat-ring::before {
        --hm-p: 100 !important;
        transition: none !important;
    }
}

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

.hm-duo__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 30px;
    align-items: stretch;
}

.hm-duo .hm-direction__card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: none;
    margin: 0;
    padding: 70px 40px 44px;
}

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

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

/* slow zoom on the photo + soft light sweep */
.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); }
}

.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 .ui-btn {
    animation: hmGlow 2.8s ease-in-out infinite;
}

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

    .hm-duo__grid {
        grid-template-columns: 1fr;
        gap: 56px;
    }
}

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

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

@media (prefers-reduced-motion: reduce) {
    .hm-duo__cta::before,
    .hm-duo__cta .ui-btn {
        animation: none !important;
    }
}

/* ---------- one heading style for every h2 on the home page ---------- */
#main-content > section h2 {
    margin: 0 0 10px;
    color: #342758;
    font-size: 32px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: normal;
    text-wrap: balance;
}

/* the gold underline sits below the heading, so keep room for it */
#main-content > section h2.ha-title {
    margin-bottom: 18px;
}

/* on the dark band and the photo card the same heading stays light so it can be read */
#main-content > section.hm-quote h2 {
    color: transparent !important;
}

#main-content > section .hm-duo__cta h2 {
    color: var(--ui-cream);
}

@media (max-width: 575.98px) {
    #main-content > section h2 {
        font-size: 26px;
    }
}
