/* ============================================================
   Homepage (below the hero): app/pages/home.php
   Sections: fact strip + What We Offer, A Day at OCA (polaroid mosaic), Our Programs (growth cards),
   Meet Our Teachers (the page's one loud band, cards straddling its edge), What Families Say
   (review carousel), closing photo CTA.
   Everything is scoped to body.page-home or to home-only class names.
   ============================================================ */

body.page-home {
    --home-card-shadow: 0 1px 2px rgba(98, 42, 20, .08), 0 16px 36px -18px rgba(98, 42, 20, .34);
}
.home-nowrap { white-space: nowrap; }

/* Centred action row under a section's content */
body.page-home .home-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-md);
    margin: clamp(2rem, 4vw, 3rem) 0 0;
}

/* Paragraphs read better without lonely last words */
:where(body.page-home main) p { text-wrap: pretty; }   /* zero specificity: subtitles keep their balance */

/* ------------------------------------------------------------
   1. Fact strip, floating over the hero's wave
   ------------------------------------------------------------ */
/* flow-root stops the strip's negative top margin collapsing through the section, which would drag the
   whole sunshine section up over the hero and hide its wave; now only the card rises. */
body.page-home .home-offer { padding-top: 0; display: flow-root; }

.fact-strip {
    /* Clear the hero wave (same clamp as hero.css --hero-wave-h; the photo edge sits ~60% of the way up it)
       and then float a little further over the photo, so the card straddles the edge instead of kissing it. */
    --fs-overlap: calc(clamp(46px, 7vw, 100px) * .6 + clamp(26px, 3vw, 44px));
    position: relative;
    z-index: 4;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    max-width: 1060px;
    margin: calc(-1 * var(--fs-overlap)) auto clamp(3.5rem, 6.5vw, 5.5rem);
    padding: .9rem 1rem;
    list-style: none;
    background: var(--color-white);
    border-radius: 24px;
    box-shadow: var(--home-card-shadow);
}
.fact-strip__item {
    display: flex;
    align-items: center;
    gap: .8rem;
    min-width: 0;
    padding: .55rem 1.1rem;
}
.fact-strip__item + .fact-strip__item {
    border-left: 2px dashed rgba(98, 42, 20, .13);
}
.fact-strip__item .icon {
    width: 46px;
    height: 46px;
}
.fact-strip__value {
    display: block;
    font-size: 1.12rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--color-brown);
}
.fact-strip__label {
    display: block;
    font-size: .9rem;
    line-height: 1.35;
    color: var(--color-text-light);
}
@media (max-width: 899px) {
    .fact-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-width: 640px;
        padding: .5rem;
    }
    .fact-strip__item { padding: .8rem .9rem; }
    .fact-strip__item + .fact-strip__item { border-left: 0; }
    .fact-strip__item:nth-child(even) { border-left: 2px dashed rgba(98, 42, 20, .13); }
    .fact-strip__item:nth-child(n+3) { border-top: 2px dashed rgba(98, 42, 20, .13); }
}
@media (max-width: 479px) {
    .fact-strip { border-radius: 20px; }
    .fact-strip__item {
        flex-direction: column;
        align-items: center;
        gap: .4rem;
        padding: .8rem .35rem .75rem;
        text-align: center;
    }
    .fact-strip__item .icon { width: 40px; height: 40px; }
    .fact-strip__value { font-size: 1.02rem; }
    .fact-strip__label { font-size: .84rem; }
}

/* ------------------------------------------------------------
   2. What We Offer
   ------------------------------------------------------------ */
/* Keep the curly arrow clear of the page edge on mid widths */
@media (max-width: 1099px) {
    .home-offer .doodle--point-r { display: none; }
}
@media (min-width: 960px) {
    .home-offer__grid { row-gap: 0; }
}
@media (max-width: 600px) {
    .home-offer__grid .feature { padding-block: .7rem; }
}

/* ------------------------------------------------------------
   3. A Day at OCA: polaroid mosaic on seafoam
   ------------------------------------------------------------ */
.home-life__mosaic {
    max-width: 1080px;
    margin: 0 auto;
}
.home-life__mosaic .polaroid img { background: var(--color-seafoam-dark); }
.home-life .doodle--tr { --dy: clamp(1.5rem, 3vw, 3rem); }

/* ------------------------------------------------------------
   4. Our Programs: seedling, sprout, tree
   ------------------------------------------------------------ */
.growth-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(1.25rem, 2.6vw, 2.25rem);
    max-width: 1120px;
    margin: 0 auto;
    padding: 0;
    list-style: none;
}
.growth-card {
    --pc-tint: var(--tint-sky);
    --pc-ink: var(--ink-sky);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 0;
    padding: 0 clamp(1.25rem, 2vw, 1.75rem) 1.5rem;
    text-align: center;
    background: var(--color-white);
    border: 1px solid rgba(98, 42, 20, .07);
    border-radius: 26px;
    box-shadow: var(--home-card-shadow);
}
/* Wrappers only matter on tablets (side panel); elsewhere the card is one column */
.growth-card__id, .growth-card__body { display: contents; }
/* Tinted cap with a hand-cut wavy hem */
.growth-card__cap {
    align-self: stretch;
    height: 92px;
    margin: 0 calc(-1 * clamp(1.25rem, 2vw, 1.75rem));
    border-radius: 25px 25px 0 0;
    background: var(--pc-tint);
    -webkit-mask:
        linear-gradient(#000 0 0) top / 100% calc(100% - 13px) no-repeat,
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 96 14'%3E%3Cpath d='M0 0h96v4c-8 0-9.6 8.6-16 8.6S72 4.8 64 4.8 56.6 12 48 12s-8.8-7.4-16-7.4S24 12.6 16 12.6 8 4 0 4z'/%3E%3C/svg%3E") bottom left / 96px 14px repeat-x;
    mask:
        linear-gradient(#000 0 0) top / 100% calc(100% - 13px) no-repeat,
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 96 14'%3E%3Cpath d='M0 0h96v4c-8 0-9.6 8.6-16 8.6S72 4.8 64 4.8 56.6 12 48 12s-8.8-7.4-16-7.4S24 12.6 16 12.6 8 4 0 4z'/%3E%3C/svg%3E") bottom left / 96px 14px repeat-x;
}
/* Medallion: big age number on a white stamp, plant badge tucked on its shoulder */
.growth-card__badge {
    position: relative;
    display: grid;
    place-items: center;
    width: 112px;
    height: 112px;
    margin: -62px 0 1rem;
    border-radius: 50%;
    background: var(--color-white);
    box-shadow: 0 0 0 4px var(--pc-ink), 0 12px 24px -12px rgba(98, 42, 20, .45);
}
.growth-card__badge::before {
    content: '';
    position: absolute;
    inset: 7px;
    border: 2px dashed var(--pc-ink);
    border-radius: 50%;
    opacity: .45;
}
.growth-card__num {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 4.6rem;
    line-height: 1;
    color: var(--pc-ink);
    translate: 0 .04em;
}
.growth-card__plant {
    position: absolute;
    right: -20px;
    bottom: -8px;
    width: 52px;
    height: 52px;
    filter: drop-shadow(0 4px 6px rgba(98, 42, 20, .18));
}
.growth-card__name {
    margin: 0 0 .4rem;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(2.2rem, 1.8rem + 1vw, 2.6rem);
    line-height: 1.05;
    color: var(--color-brown);
}
.growth-card__link {
    color: inherit;
    text-decoration: none;
}
.growth-card__link:hover { color: inherit; }
/* The whole card is the link's hit area */
.growth-card__link::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: 26px;
}
.growth-card__link:focus-visible { outline: none; }
.growth-card:has(.growth-card__link:focus-visible) {
    outline: 3px solid var(--focus-color, #1F4E80);
    outline-offset: 4px;
}
.growth-card__ages {
    display: inline-block;
    margin: 0 0 1rem;
    padding: .28em 1em;
    border-radius: var(--radius-pill, 999px);
    background: var(--pc-tint);
    font-size: .92rem;
    font-weight: 800;
    letter-spacing: .02em;
    color: var(--color-brown);
}
.growth-card__desc {
    margin: 0 0 1.25rem;
    font-size: .98rem;
    line-height: 1.65;
    color: var(--color-text);
}
.growth-card__facts {
    align-self: stretch;
    margin: auto 0 0;
    text-align: left;
}
.growth-card__facts > div {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: .75rem;
    padding: .55rem 0;
    border-top: 1.5px dashed rgba(98, 42, 20, .14);
    font-size: .92rem;
}
.growth-card__facts dt { color: var(--color-text-light); }
.growth-card__facts dd {
    margin: 0;
    font-weight: 700;
    color: var(--color-brown);
    text-align: right;
}
.growth-card__more {
    display: inline-flex;
    align-items: center;
    gap: .35em;
    margin-top: 1rem;
    font-weight: 800;
    font-size: .95rem;
    color: var(--pc-ink);
}
.growth-card--sun .growth-card__more { color: var(--color-gold-text, #8A5F12); }
.growth-card__more::after {
    content: '\2192';
    transition: translate .25s var(--ease-soft, ease);
}
.growth-card:hover .growth-card__more::after { translate: 4px 0; }

.home-programs__note {
    margin: clamp(1.75rem, 3vw, 2.25rem) auto 0;
    font-size: .95rem;
    text-align: center;
    color: var(--color-text-light);
}
.home-programs__note + .home-actions { margin-top: 1.25rem; }

@media (max-width: 899px) {
    .growth-grid {
        grid-template-columns: minmax(0, 1fr);
        max-width: 720px;
        row-gap: 1.5rem;
    }
}
/* Tablets: the age panel sits on the left with a wavy hem, the details on the right */
@media (min-width: 600px) and (max-width: 899px) {
    .growth-card {
        flex-direction: row;
        align-items: stretch;
        padding: 0;
        text-align: left;
    }
    .growth-card__id {
        position: relative;
        display: flex;
        flex: 0 0 216px;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 1.75rem 1.5rem 1.75rem 1rem;
        text-align: center;
        background: var(--pc-tint);
        border-radius: 25px 0 0 25px;
        -webkit-mask:
            linear-gradient(#000 0 0) left / calc(100% - 13px) 100% no-repeat,
            url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 96'%3E%3Cpath d='M0 0v96h4c0-8 8.6-9.6 8.6-16S4.8 72 4.8 64 12 56.6 12 48s-7.4-8.8-7.4-16S12.6 24 12.6 16 4 8 4 0z'/%3E%3C/svg%3E") right top / 14px 96px repeat-y;
        mask:
            linear-gradient(#000 0 0) left / calc(100% - 13px) 100% no-repeat,
            url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 96'%3E%3Cpath d='M0 0v96h4c0-8 8.6-9.6 8.6-16S4.8 72 4.8 64 12 56.6 12 48s-7.4-8.8-7.4-16S12.6 24 12.6 16 4 8 4 0z'/%3E%3C/svg%3E") right top / 14px 96px repeat-y;
    }
    .growth-card__cap { display: none; }
    .growth-card__badge { margin: 0 0 .9rem; }
    .growth-card__ages { margin: 0; background: var(--color-white); }
    .growth-card__body {
        display: flex;
        flex: 1;
        flex-direction: column;
        min-width: 0;
        padding: 1.5rem 1.75rem 1.1rem 1.25rem;
    }
    .growth-card__desc { margin-bottom: 1rem; }
    .growth-card__more { align-self: flex-start; margin-top: .6rem; }
}
/* Phones: compact header row, the description lives on /programs */
@media (max-width: 599px) {
    .growth-grid { row-gap: 1.25rem; }
    .growth-card {
        display: grid;
        grid-template-columns: 84px minmax(0, 1fr);
        column-gap: 1rem;
        align-items: center;
        padding: 1.25rem 1.1rem 1.1rem;
        text-align: left;
        background: linear-gradient(90deg, var(--pc-tint) 0 6px, var(--color-white) 6px);
    }
    .growth-card__cap, .growth-card__desc { display: none; }
    .growth-card__badge {
        grid-row: span 2;
        width: 80px;
        height: 80px;
        margin: 0;
        box-shadow: 0 0 0 3px var(--pc-ink), 0 8px 18px -10px rgba(98, 42, 20, .45);
    }
    .growth-card__badge::before { inset: 5px; }
    .growth-card__num { font-size: 3.3rem; }
    .growth-card__plant { width: 38px; height: 38px; right: -12px; bottom: -6px; }
    .growth-card__name { align-self: end; margin: 0; font-size: 2.1rem; }
    .growth-card__ages { justify-self: start; align-self: start; margin: .3rem 0 0; font-size: .85rem; }
    .growth-card__facts { grid-column: 1 / -1; margin-top: 1rem; }
    .growth-card__more { grid-column: 1 / -1; margin-top: .6rem; }
}

/* ------------------------------------------------------------
   5. Meet Our Teachers: marigold squiggle band, cards straddle its edge
   ------------------------------------------------------------ */
.home-team {
    --team-overlap: clamp(112px, 12vw, 172px);
    position: relative;
    background: var(--color-white);
}
.home-team__band {
    position: relative;
    isolation: isolate;
    padding: calc(var(--space-4xl) + 20px) 0 calc(var(--team-overlap) + clamp(2rem, 3.5vw, 3rem));
}
.home-team__band .section-subtitle { margin-bottom: 0; }
/* Keep the hand-drawn marker shape on the band (just in white) */
.home-team__band .hand-underline::after {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 16' preserveAspectRatio='none'%3E%3Cpath d='M3 10.5c26-3.2 52-5.6 79-5.3 22 .2 41 2.4 63 2.1 30-.4 58-3.4 92-2.8' fill='none' stroke='%23FFFFFF' stroke-width='6.5' stroke-linecap='round'/%3E%3Cpath d='M22 13.2c40-2.6 86-3.4 128-2.2 26 .7 50 .3 72-1.4' fill='none' stroke='%23FFFFFF' stroke-width='3' stroke-linecap='round' opacity='.55'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
    opacity: .85;
}
.home-team__band .doodle--point-l { --doodle-rotate: 8deg; }
.home-team__body {
    position: relative;
    z-index: 2;
    margin-top: calc(-1 * var(--team-overlap));
}
.team-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(1rem, 2.4vw, 2rem);
    max-width: 1120px;
    margin: 0 auto;
    padding: 0;
    list-style: none;
}
.team-grid > li { display: flex; min-width: 0; }
.team-card {
    --focus-color: #1F4E80;
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    min-width: 0;
    padding: clamp(1.5rem, 2.6vw, 2.1rem) 1rem 1.5rem;
    text-align: center;
    color: inherit;
    text-decoration: none;
    background: var(--color-white);
    border-radius: 24px;
    box-shadow: var(--home-card-shadow);
}
.team-card:hover { color: inherit; }
.team-card__ring {
    width: min(168px, 74%);
    margin: 12px 0 1.15rem;
}
.team-card__placeholder {
    display: grid;
    place-items: center;
    aspect-ratio: 1;
    border-radius: 50%;
    background: var(--color-sand);
    font-family: var(--font-display);
    font-size: 4rem;
    color: var(--color-brown);
}
.team-card__name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(1.9rem, 1.5rem + 1vw, 2.3rem);
    line-height: 1.05;
    color: var(--color-brown);
    text-wrap: balance;
}
.team-card__role {
    margin-top: .35rem;
    font-size: .8rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--color-ocean-dark);
}
.home-team__body .home-actions { margin-top: clamp(2rem, 3.5vw, 2.75rem); }

@media (max-width: 1023px) {
    .team-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-width: 620px;
    }
    .home-team { --team-overlap: clamp(104px, 16vw, 140px); }
}
@media (max-width: 599px) {
    .team-grid { gap: .9rem; }
    .team-card { padding: 1.2rem .6rem 1.1rem; border-radius: 20px; }
    .team-card__ring { width: min(124px, 80%); margin: 10px 0 .9rem; }
    .team-card__name { font-size: 1.75rem; }
    .team-card__role { font-size: .72rem; letter-spacing: .08em; }
}

/* ------------------------------------------------------------
   6. What Families Say: one big speech bubble at a time
   ------------------------------------------------------------ */
.home-reviews .doodle--tl { --doodle-color: var(--color-red); }
.home-reviews__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
}
.home-reviews__intro { text-align: center; }
.home-reviews__intro .section-subtitle { margin-bottom: clamp(1.25rem, 3vw, 2rem); }

.review-carousel {
    position: relative;
    width: 100%;
    max-width: 860px;
    min-width: 0;
}
.review-track {
    position: relative;
    display: flex;
    gap: 1.25rem;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    padding: 2.6rem 0 1.25rem;
    border-radius: 12px;
}
html.js .review-track { scrollbar-width: none; }
html.js .review-track::-webkit-scrollbar { display: none; }
.review-track:focus-visible { outline-offset: -3px; }
.review-slide {
    flex: 0 0 100%;
    display: flex;
    flex-direction: column;
    min-width: 0;
    margin: 0;
    padding: 0 14px;
    scroll-snap-align: center;
}
.review-bubble {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(2.4rem, 4.4vw, 3.25rem) clamp(1.4rem, 4.4vw, 3.4rem) clamp(1.6rem, 3vw, 2.3rem);
    background: var(--color-white);
    border-radius: 30px;
    box-shadow: 0 1px 2px rgba(31, 78, 128, .1), 0 18px 36px -20px rgba(31, 78, 128, .45);
}
/* Long reviews start at the top so "Read more" sits right under the words */
.review-slide:not(.review-slide--short):not(.review-slide--medium) .review-bubble { justify-content: flex-start; }
/* Speech-bubble tail, bottom left, pointing at the reviewer */
.review-bubble::after {
    content: '';
    position: absolute;
    left: clamp(2.2rem, 5vw, 3.6rem);
    bottom: -25px;
    width: 42px;
    height: 28px;
    background: var(--color-white);
    clip-path: path('M0 0H42C33 6 22 15 5 28C10 17 10 8 0 0Z');
    filter: drop-shadow(0 6px 5px rgba(31, 78, 128, .12));
}
.review-bubble__mark {
    position: absolute;
    top: -.36em;
    left: clamp(1rem, 3.6vw, 2.4rem);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(5.5rem, 4.4rem + 3vw, 7.5rem);
    font-weight: 700;
    line-height: 1;
    color: var(--color-marigold);
    text-shadow: 0 3px 0 rgba(98, 42, 20, .08);
    pointer-events: none;
}
.review-bubble__quote {
    margin: 0;
    font-size: clamp(1.06rem, 1rem + .3vw, 1.22rem);
    line-height: 1.72;
    color: var(--color-text);
}
.review-bubble__quote p + p { margin-top: .85em; }
.review-slide--medium .review-bubble__quote {
    font-size: clamp(1.12rem, 1rem + .55vw, 1.38rem);
    line-height: 1.62;
}
.review-slide--short .review-bubble__quote {
    font-size: clamp(1.3rem, 1.1rem + .9vw, 1.7rem);
    font-weight: 600;
    line-height: 1.5;
    color: var(--color-brown);
    text-wrap: balance;
}
/* Folded long reviews (JS only; without JS every word is visible) */
html.js .review-bubble__quote.is-clamped {
    max-height: calc(1.72em * 7);
    overflow: hidden;
    -webkit-mask-image: linear-gradient(180deg, #000 calc(100% - 3.2em), transparent);
    mask-image: linear-gradient(180deg, #000 calc(100% - 3.2em), transparent);
}
.review-bubble__more {
    align-self: flex-start;
    min-height: 44px;
    margin: .25rem 0 -.6rem;
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    font-size: .98rem;
    font-weight: 800;
    color: var(--color-ocean-dark);
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-decoration-color: var(--color-marigold);
    text-underline-offset: 5px;
    cursor: pointer;
}
.review-bubble__more:hover { color: var(--color-brown); }
.review-bubble__more[hidden] { display: none; }

.review-author {
    display: flex;
    align-items: center;
    gap: .9rem;
    margin-top: 2.2rem;
    padding-left: clamp(1.1rem, 3.6vw, 2.4rem);
}
.review-author__avatar {
    flex: none;
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    border: 3px solid var(--color-white);
    box-shadow: 0 0 0 2.5px var(--color-marigold), 0 6px 14px -8px rgba(31, 78, 128, .5);
    object-fit: cover;
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1;
}
.review-author__avatar--sun { background: var(--tint-sun); color: #8A5F12; }
.review-author__avatar--sky { background: var(--tint-sky); color: #2D5A8A; }
.review-author__avatar--coral { background: var(--tint-coral); color: #B42C18; }
.review-author__avatar--sea { background: var(--tint-sea); color: #22694A; }
.review-author__avatar--lilac { background: var(--tint-lilac); color: #5F4590; }
.review-author__who { display: flex; flex-direction: column; min-width: 0; }
.review-author__name {
    font-style: normal;
    font-weight: 800;
    font-size: 1.08rem;
    color: var(--color-brown);
}
.review-author__src {
    font-size: .86rem;
    color: var(--color-text-light);
}

.home-reviews__actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .75rem;
    margin-top: 1.25rem;
}
.home-reviews__google { font-size: 1rem; }

/* Controls: a small pill like the hero's, in white */
.review-controls {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 4px;
    border-radius: var(--radius-pill, 999px);
    background: var(--color-white);
    box-shadow: 0 1px 2px rgba(31, 78, 128, .12), 0 10px 22px -14px rgba(31, 78, 128, .55);
}
.review-controls[hidden] { display: none; }
.review-controls__btn {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--color-ocean-dark);
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease;
}
.review-controls__btn:hover { background: var(--color-sky); color: var(--color-brown); }
.review-controls__btn svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.review-controls__toggle .icon-play { display: none; fill: currentColor; stroke-width: 1.6; }
.review-controls__toggle.is-paused .icon-play { display: block; }
.review-controls__toggle.is-paused .icon-pause { display: none; }
.review-controls__count {
    min-width: 4.2em;
    font-size: .95rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    text-align: center;
    color: var(--color-brown);
}

/* Desktop: heading and controls on the left, the bubble on the right */
@media (min-width: 1024px) {
    .home-reviews__layout {
        grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
        grid-template-rows: 1fr auto auto 1fr;
        grid-template-areas: ". carousel" "intro carousel" "actions carousel" ". carousel";
        column-gap: clamp(2.5rem, 5vw, 4.5rem);
        justify-items: stretch;
        align-items: start;
    }
    .home-reviews__intro { grid-area: intro; text-align: left; }
    .home-reviews__intro .section-title { text-align: left; }
    .home-reviews__intro .section-subtitle { margin-left: 0; text-align: left; }
    .review-carousel { grid-area: carousel; justify-self: end; }
    .home-reviews__actions { grid-area: actions; align-items: flex-start; margin-top: 0; }
    .home-reviews .doodle--tl { --dx: clamp(1rem, 3vw, 3rem); }
}
@media (max-width: 599px) {
    /* the next review peeks in, which says "swipe" */
    .review-track { gap: .5rem; margin: 0 calc(-1 * var(--space-md)); padding-inline: var(--space-md); scroll-padding-inline: var(--space-md); }
    .review-slide { flex-basis: 90%; padding: 0 6px; }
    .review-bubble { border-radius: 24px; }
    html.js .review-bubble__quote.is-clamped { max-height: calc(1.72em * 9); }
    .review-author { margin-top: 2rem; }
}

/* ------------------------------------------------------------
   7. Closing CTA: photo split on ocean (the footer wave laps over its bottom)
   ------------------------------------------------------------ */
.home-cta {
    --focus-color: #FFFFFF;
    position: relative;
    isolation: isolate;
    overflow-x: clip;
    padding: clamp(4rem, 7vw, 6rem) 0 calc(clamp(4rem, 7vw, 6rem) + var(--footer-wave-h, 72px));
    color: var(--color-white);
    /* sunlight glows behind the photo only, never behind the white copy */
    background:
        radial-gradient(ellipse 34% 52% at 26% 46%, rgba(255, 209, 102, .2) 0%, rgba(255, 209, 102, 0) 70%),
        linear-gradient(165deg, #3E79B5 0%, #33689F 55%, #2D5A8A 100%);
}
@media (max-width: 899px) {
    .home-cta {
        background:
            radial-gradient(ellipse 70% 22% at 50% 20%, rgba(255, 209, 102, .2) 0%, rgba(255, 209, 102, 0) 70%),
            linear-gradient(180deg, #3E79B5 0%, #33689F 55%, #2D5A8A 100%);
    }
}
.home-cta__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
    align-items: center;
    gap: clamp(2.5rem, 6vw, 5rem);
    max-width: 1120px;
}
.home-cta__photo { position: relative; }
.home-cta__polaroid {
    max-width: 520px;
    margin-left: auto;
    box-shadow: 0 2px 4px rgba(8, 22, 42, .25), 0 26px 44px -18px rgba(8, 22, 42, .6);
}
.home-cta__sparkle {
    position: absolute;
    top: -26px;
    right: -14px;
    z-index: 3;
}
.home-cta .doodle--tr { --dy: clamp(2rem, 4vw, 3.5rem); --dx: clamp(1rem, 4vw, 4rem); }
.home-cta__event {
    display: inline-flex;
    align-items: center;
    gap: .2em;
    min-height: 40px;
    margin-bottom: 1.1rem;
    padding: .35em 1.1em;
    border-radius: var(--radius-pill, 999px);
    background: var(--color-marigold);
    color: var(--color-brown);
    font-size: .92rem;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 8px 16px -10px rgba(8, 22, 42, .6);
    transition: translate .25s var(--ease-soft, ease), background-color .2s ease;
}
.home-cta__event:hover { color: var(--color-brown); background: var(--color-marigold-light); translate: 0 -2px; }
.home-cta__event:focus-visible { outline-color: #fff; }
.home-cta__title {
    margin: 0 0 1rem;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(2.7rem, 1.9rem + 3vw, 4.4rem);
    line-height: 1.02;
    letter-spacing: .02em;
    color: var(--color-white);
    text-wrap: balance;
}
.home-cta__text {
    max-width: 30em;
    margin: 0;
    font-size: clamp(1.1rem, 1rem + .35vw, 1.28rem);
    line-height: 1.6;
    color: var(--color-white);
}
.home-cta__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    margin-top: 2rem;
}
.home-cta__call {
    margin: 1.4rem 0 0;
    font-size: 1rem;
    color: var(--color-white);
}
.home-cta__call a {
    color: var(--color-white);
    font-weight: 800;
    text-decoration: underline;
    text-decoration-color: var(--color-marigold-light);
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}
.home-cta__call a:hover { color: var(--color-marigold-light); }

@media (max-width: 899px) {
    .home-cta__grid {
        grid-template-columns: minmax(0, 1fr);
        justify-items: center;
        text-align: center;
    }
    .home-cta__photo { width: min(100%, 440px); }
    .home-cta__polaroid { margin: 0 auto; }
    .home-cta__text { margin-inline: auto; }
    .home-cta__buttons { justify-content: center; }
}
.home-cta__event-short { display: none; }
@media (max-width: 479px) {
    .home-cta__event-long { display: none; }
    .home-cta__event-short { display: inline; }
    .home-cta__photo { width: calc(100% - 20px); }
    .home-cta__polaroid { --tilt: -2deg; }
    .home-cta__buttons .btn { flex: 1 1 100%; }
    .home-cta__sparkle { right: -8px; top: -22px; width: 38px; }
}

/* ------------------------------------------------------------
   Reduced motion: no autoplay (JS), no nudges
   ------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
    .growth-card__more::after, .home-cta__event { transition: none; }
    .growth-card:hover .growth-card__more::after, .home-cta__event:hover { translate: none; }
    .review-track { scroll-behavior: auto; }
}
