/* =================================================================
   CovaiCare — Homepage
   1. Reset            9. Family Assurance
   2. Variables       10. Content-flow sections
   3. Base            11. Careers CTA
   4. Typography      12. Closing CTA
   5. Utilities       13. Footer
   6. Header          14. Animations
   7. Hero            15. Responsive
   8. Why CovaiCare   16. Reduced motion / a11y
                      17. v16 — Warm Heritage + readability + feedback
   ================================================================= */


/* ============================ 1. RESET ============================ */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body,
h1, h2, h3, h4, p, ul, ol, figure, blockquote {
    margin: 0;
    padding: 0;
}

ul { list-style: none; }

img,
svg {
    display: block;
    max-width: 100%;
}

img { height: auto; }

a { text-decoration: none; color: inherit; }

button,
input {
    font: inherit;
    color: inherit;
}

button { cursor: pointer; border: 0; background: none; }


/* ========================== 2. VARIABLES ========================== */
/* v16 — Warm Heritage palette (client, Sep 2026). Token names are kept from
   the green build so every existing rule picks the new colours up:
     Cream #FAF7F2 · Charcoal Brown #2E2A26 · Deep Terracotta #9C3A20
     Marigold #E8A33D · Warm Beige #F1E8DC
   v17: no dark green. "green-*" now = Terracotta/Charcoal, "yellow-*" = Marigold.
   Primary buttons and heading accent lines use Terracotta (see section 17). */
:root {
    /* v17: client asked to avoid dark green. The old "green-*" tokens now
       carry Terracotta / Charcoal so every existing rule follows. */
    --green-primary: #9C3A20;   /* Terracotta */
    --green-bright:  #B24A2B;
    --green-dark:    #2E2A26;   /* Charcoal Brown (footer, mobile hero) */
    --green-deeper:  #231F1C;
    --green-ink:     #7E2E18;
    --green-light:   #F6E3D4;
    --green-mist:    #F4ECE2;

    --gold:          #9C3A20;   /* small accent text → Terracotta */

    --yellow:        #E8A33D;   /* Marigold: badges, dots, rules, accents on dark */
    --yellow-deep:   #D48E27;
    --yellow-mist:   #FBEFD9;
    --yellow-tint:   #FDF6EA;

    --terracotta:      #9C3A20; /* primary CTA fill, white text */
    --terracotta-dark: #7E2E18;

    --ink:          #2E2A26;    /* Charcoal Brown */
    --heading:      var(--ink);

    --cream:        #F1E8DC;    /* Warm Beige: alternate sections */
    --offwhite:     #FAF7F2;    /* Warm Cream: page background */
    --white:        #FFFFFF;

    /* No light greys: 50+ audience. Secondary text stays dark brown. */
    --text-dark:    #2E2A26;
    --text-soft:    #3D342E;
    --text-light:   #FFFFFF;

    /* Typography */
    --font-heading: 'Source Serif 4', Georgia, 'Times New Roman', serif;
    --font-body:    'Poppins', 'Segoe UI', system-ui, -apple-system, sans-serif;
    --font-script:  'Caveat', 'Segoe Script', cursive;

    /* Layout */
    --container:  1400px;
    --gutter:     clamp(1.25rem, 4vw, 3.5rem);
    --edge:       max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));
    --section-y:  clamp(2.75rem, 4.6vw, 4.5rem);
    --radius-lg:  22px;
    --radius-md:  16px;
    --radius-pill: 999px;

    /* Motion */
    --ease: cubic-bezier(.22, 1, .36, 1);
    --dur:  .78s;

    --shadow-soft:  0 10px 30px rgba(46, 42, 38, .12);
    --shadow-lift:  0 18px 44px rgba(46, 42, 38, .20);
    --shadow-image: 0 12px 34px rgba(46, 42, 38, .18);
}


/* ============================ 3. BASE ============================= */
body {
    font-family: var(--font-body);
    font-size: clamp(.95rem, .35vw + .86rem, 1.0625rem);
    line-height: 1.65;
    color: var(--text-dark);
    background: var(--offwhite);
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }

/* sticky-header offset for in-page anchors */
section[id],
footer[id] { scroll-margin-top: 96px; }


/* ========================= 4. TYPOGRAPHY ========================== */
.eyebrow {
    font-size: clamp(.72rem, .28vw + .66rem, .82rem);
    font-weight: 600;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--green-primary);
    margin-bottom: .55rem;
}

.eyebrow-light { color: rgba(255, 255, 255, .92); }

.section-title {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: clamp(1.8rem, 2.7vw, 2.8rem);
    line-height: 1.1;
    letter-spacing: -.015em;
    margin-bottom: .85rem;
}

.section-title span { display: block; }

.ink-dark   { color: var(--heading); }
.ink-white  { color: var(--white); }
.ink-yellow { color: var(--yellow); }

/* The accent line of a heading — logo yellow everywhere it can be. On the
   yellow Careers block it becomes a softened ink, since yellow on yellow
   would vanish. */
.title-mark { color: var(--yellow); }

/* On the yellow Careers block the accent line is a softened ink. */
.community .title-mark { color: rgba(30, 27, 22, .68); }


.lede {
    max-width: 40ch;
    color: var(--text-soft);
    margin-bottom: clamp(1.1rem, 1.6vw, 1.5rem);
}

.lede-light { color: var(--text-light); }

/* Handwritten accents */
.script {
    font-family: var(--font-script);
    font-weight: 700;
    line-height: 1.12;
    font-size: clamp(1.6rem, 2.3vw, 2.35rem);
    display: flex;
    flex-direction: column;
}

.script span { display: block; }

.script .heart {
    display: inline-block;
    vertical-align: -.12em;
    width: .78em;
    height: .78em;
    margin-left: .18em;
    color: currentColor;
}


/* ========================== 5. UTILITIES ========================== */
.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    left: 1rem;
    top: -4rem;
    z-index: 200;
    background: var(--ink);
    color: var(--yellow);
    padding: .7rem 1.1rem;
    border-radius: 0 0 10px 10px;
    transition: top .25s var(--ease);
}

.skip-link:focus { top: 0; }

:focus-visible {
    outline: 3px solid var(--ink);
    outline-offset: 3px;
    border-radius: 4px;
}

/* Media frames */
.media {
    overflow: hidden;
    border-radius: var(--radius-md);
    background: var(--green-mist);
    box-shadow: var(--shadow-image);
    transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}

.media img,
.community-media img,
.hero-bg img,
.closing-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Buttons */
.btn {
    --btn-bg: var(--yellow);
    --btn-fg: var(--ink);
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    padding: .78em 1.5em;
    background: var(--btn-bg);
    color: var(--btn-fg);
    border-radius: var(--radius-pill);
    font-size: clamp(.85rem, .3vw + .78rem, .95rem);
    font-weight: 600;
    line-height: 1.2;
    transition: transform .3s var(--ease), background-color .3s ease, box-shadow .3s ease;
}

.btn .arw {
    width: 1.15em;
    height: 1.15em;
    flex: none;
    transition: transform .3s var(--ease);
}

/* Logo yellow carries every CTA. Ink — not white — is the only label colour
   that clears contrast on it, which is exactly what the logo does. */
.btn-yellow { --btn-bg: var(--yellow); --btn-fg: var(--ink); }

/* Inverted, for CTAs that sit on a yellow section — the logo's own pairing
   the other way round. */
.btn-ink { --btn-bg: var(--ink); --btn-fg: var(--yellow); }

.btn:hover,
.btn:focus-visible {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lift);
}

.btn-yellow:hover,
.btn-yellow:focus-visible { background: var(--yellow-deep); }

.btn-ink:hover,
.btn-ink:focus-visible { background: #000; }

.btn:hover .arw,
.btn:focus-visible .arw { transform: translateX(4px); }


/* =========================== 6. HEADER ============================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--white);
    transition: box-shadow .35s ease, padding .35s var(--ease);
    padding-block: .85rem;
}

.site-header.is-scrolled {
    box-shadow: 0 2px 18px rgba(46, 42, 38, .10);
    padding-block: .55rem;
}

.header-inner {
    display: flex;
    align-items: center;
    gap: clamp(1rem, 2.4vw, 2.5rem);
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    flex: none;
    margin-right: auto;
}

/* Logo image. Height drives the size; width stays auto so any lockup ratio fits. */
.logo-img {
    height: clamp(34px, 2.6vw, 44px);
    width: auto;
    object-fit: contain;
    transition: height .35s var(--ease);
}

.site-header.is-scrolled .logo-img { height: clamp(30px, 2.3vw, 38px); }

.logo-footer .logo-img { height: clamp(36px, 2.8vw, 46px); }

.logo-word {
    font-size: clamp(1.25rem, 1.1vw + 1rem, 1.5rem);
    font-weight: 600;
    letter-spacing: -.01em;
    color: var(--green-primary);
}

.nav-list {
    display: flex;
    align-items: center;
    gap: clamp(.9rem, 1.7vw, 1.85rem);
}

.nav-link {
    position: relative;
    font-size: clamp(.78rem, .32vw + .7rem, .875rem);
    font-weight: 500;
    color: var(--ink);
    padding-block: .35rem;
    transition: color .28s ease;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: .05rem;
    width: 100%;
    height: 3px;
    background: var(--yellow);
    border-radius: 3px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .32s var(--ease);
}

.nav-link:hover,
.nav-link:focus-visible { color: var(--ink); }

.nav-link:hover::after,
.nav-link:focus-visible::after { transform: scaleX(1); }

.nav-link.is-active { color: var(--ink); font-weight: 600; }
.nav-link.is-active::after { transform: scaleX(1); }

.header-cta { flex: none; padding: .7em 1.35em; }
.nav-inline-cta { display: none; }

/* Hamburger. The open drawer is a fixed child of the header, so it shares the
   header's stacking context — without this the drawer paints over the close
   button and traps the menu open. */
.nav-toggle {
    position: relative;
    z-index: 101;
    display: none;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    align-items: center;
    justify-content: center;
    color: var(--ink);
}

.nav-toggle-box {
    position: relative;
    display: block;
    width: 22px;
    height: 2px;
}

.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
    position: absolute;
    left: 0;
    width: 22px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: transform .35s var(--ease), opacity .2s ease;
}

.nav-toggle-bar { top: 0; }
.nav-toggle-bar::before { content: ""; top: -7px; }
.nav-toggle-bar::after  { content: ""; top: 7px; }

.nav-toggle[aria-expanded="true"] .nav-toggle-bar { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(7px) rotate(-90deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after  { opacity: 0; }

.nav-scrim {
    position: fixed;
    inset: 0;
    z-index: 98;
    background: rgba(30, 24, 18, .45);
    opacity: 0;
    transition: opacity .3s ease;
}

.nav-scrim.is-open { opacity: 1; }


/* ============================ 7. HERO ============================= */
.hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: clamp(520px, 43vw, 640px);
    padding-block: clamp(2.5rem, 4vw, 3.5rem);
    overflow: hidden;
    background: #2E2A26;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

/* --- Banner slider --- */
.hero-slide {
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0;
    transition: opacity 1.2s var(--ease);
    pointer-events: none;
}

.hero-slide.is-active {
    opacity: 1;
    z-index: 1;
}

.hero-slide picture {
    display: block;
    width: 100%;
    height: 100%;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.06);
    transition: transform 9s linear;
}

/* Very slow settle on the visible slide — calm, not a zoom effect */
.hero-slide.is-active img { transform: scale(1); }

.hero-controls {
    position: absolute;
    z-index: 4;
    left: 50%;
    bottom: clamp(.9rem, 1.8vw, 1.6rem);
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: .9rem;
}

.hero-dots {
    display: flex;
    align-items: center;
    gap: .55rem;
}

.hero-dot {
    width: 9px;
    height: 9px;
    padding: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .45);
    transition: background-color .35s ease, width .35s var(--ease);
}

.hero-dot:hover { background: rgba(255, 255, 255, .75); }

.hero-dot.is-active {
    width: 26px;
    border-radius: var(--radius-pill);
    background: var(--yellow);
}

.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    background:
        linear-gradient(100deg,
            rgba(30, 24, 18, .88) 0%,
            rgba(30, 24, 18, .74) 26%,
            rgba(30, 24, 18, .32) 50%,
            rgba(30, 24, 18, .04) 68%),
        linear-gradient(270deg, rgba(30, 24, 18, .34) 0%, rgba(30, 24, 18, 0) 26%);
}

.hero-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 2rem;
}

.hero-copy { max-width: 44rem; }

.hero-title {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: clamp(2.6rem, 5vw, 4.55rem);
    line-height: 1.04;
    letter-spacing: -.02em;
    color: var(--white);
    margin-bottom: .85rem;
}

.hero-title-accent { color: var(--yellow); }

.hero-lede {
    max-width: 33rem;
    color: rgba(255, 255, 255, .92);
    margin-bottom: clamp(1.3rem, 2vw, 1.7rem);
    font-size: clamp(.95rem, .4vw + .86rem, 1.06rem);
}

.hero-price {
    display: inline-flex;
    align-items: baseline;
    gap: .55rem;
    margin-bottom: clamp(1rem, 1.8vw, 1.35rem);
    padding: .45em .95em;
    border-radius: var(--radius-pill);
    background: rgba(30, 24, 18, .42);
    backdrop-filter: blur(3px);
}

.hero-price-label {
    font-size: clamp(.74rem, .28vw + .68rem, .84rem);
    font-weight: 500;
    color: rgba(255, 255, 255, .88);
}

.hero-price-value {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: clamp(1.05rem, .6vw + .9rem, 1.35rem);
    line-height: 1;
    color: var(--yellow);
}

.hero-price-value sup { font-size: .5em; top: -.7em; }

.hero-points {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(1.1rem, 3vw, 3.25rem);
    margin-top: clamp(1.6rem, 2.6vw, 2.35rem);
}

.hero-points li {
    display: flex;
    align-items: center;
    gap: .7rem;
    color: var(--white);
    font-size: clamp(.8rem, .3vw + .73rem, .9rem);
    font-weight: 500;
    line-height: 1.35;
}

.hero-points i {
    font-size: 1.35rem;
    color: var(--yellow);
    transition: transform .3s var(--ease);
}

.hero-points li:nth-child(2) i { color: var(--yellow); }

.hero-points li:hover i { transform: translateY(-3px); }

.script-hero {
    color: var(--white);
    text-align: left;
    transform: rotate(-7deg);
    margin-top: clamp(.5rem, 2vw, 1.6rem);
    margin-right: clamp(0rem, 2vw, 2.5rem);
    flex: none;
    text-shadow: 0 2px 14px rgba(0, 0, 0, .35);
}

.script-hero span:nth-child(2) { margin-left: .35em; }
.script-hero span:nth-child(3) { margin-left: .1em; }
.script-hero span:nth-child(4) { margin-left: -.35em; }


/* =========================== 8. ABOUT ============================= */
.about { background: var(--offwhite); }

.about-grid {
    display: grid;
    grid-template-columns: minmax(0, .92fr) minmax(0, 1.28fr);
    gap: clamp(1.75rem, 4vw, 3.5rem);
    align-items: center;
}

.about-copy { padding-block: clamp(.5rem, 1.5vw, 1.5rem); }

.about-media {
    position: relative;
    display: grid;
    gap: clamp(.7rem, 1.2vw, 1rem);
}

/* Was an overlapping pair; now one photo with the panel as a caption bar. */
.media-about-main { aspect-ratio: 16 / 8.2; }

.note-panel {
    padding: clamp(.9rem, 1.6vw, 1.35rem) clamp(1.1rem, 2vw, 1.75rem);
    background: var(--yellow-mist);
    border-left: 4px solid var(--yellow);
    border-radius: var(--radius-md);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: clamp(1.05rem, 1.25vw, 1.45rem);
    line-height: 1.3;
    color: var(--ink);
}

.media:hover,
.media:focus-within {
    transform: translateY(-3px) scale(1.012);
    box-shadow: var(--shadow-lift);
    z-index: 4;
}


/* ===================== 9. FAMILY ASSURANCE ======================== */
.life {
    background: linear-gradient(118deg, var(--green-primary) 0%, var(--green-bright) 100%);
}

.life-grid {
    display: grid;
    grid-template-columns: minmax(0, .88fr) minmax(0, 1.3fr);
    gap: clamp(1.75rem, 4vw, 3.25rem);
    align-items: center;
}

.life-media { position: relative; }

.media-life-main {
    width: 100%;
    aspect-ratio: 16 / 8.6;
    border-radius: var(--radius-lg);
}


/* ===================== 10. CONTENT-FLOW SECTIONS ================== */
/* Sections added for the client's homepage content flow. They reuse the
   approved tokens, eyebrow/heading treatment and CTA shapes; each one gets
   its own composition so the page never becomes a run of identical cards. */

/* ---- Shared: section head with copy beside the heading ---- */
.communities-head,
.gallery-head,
.amenities-head,
.resale-head,
.blog-head {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: clamp(1rem, 3vw, 3rem);
    align-items: end;
    margin-bottom: clamp(1.25rem, 2.2vw, 2rem);
}

.communities-head .lede,
.amenities-head .lede,
.resale-head .lede {
    margin-bottom: 0;
    padding-bottom: .35rem;
}

.communities-head .section-title,
.gallery-head .section-title,
.amenities-head .section-title,
.resale-head .section-title,
.blog-head .section-title { margin-bottom: 0; }

/* ---- Shared: quiet arrow link ---- */
.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-size: clamp(.82rem, .3vw + .75rem, .92rem);
    font-weight: 600;
    color: var(--white);
    transition: gap .3s var(--ease), color .3s ease;
}

.link-arrow .arw { width: 1.05em; height: 1.05em; flex: none; }
.link-arrow:hover,
.link-arrow:focus-visible { gap: .85rem; color: var(--yellow); }

.link-arrow-dark { color: var(--ink); }
.link-arrow-dark:hover,
.link-arrow-dark:focus-visible { color: var(--yellow); }

/* ---- 10a. Why CovaiCare — stat band ---- */
.stat-band {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(1rem, 2.5vw, 2.5rem);
    margin-top: clamp(1.5rem, 2.8vw, 2.5rem);
    padding-top: clamp(1.1rem, 1.9vw, 1.6rem);
    border-top: 3px solid var(--yellow);
}

.stat + .stat { border-left: 1px solid rgba(30, 27, 22, .14); padding-left: clamp(1rem, 2.5vw, 2.5rem); }

.stat-figure {
    display: block;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: clamp(2.35rem, 3.6vw, 3.5rem);
    line-height: 1;
    letter-spacing: -.02em;
    color: var(--heading);
}

.stat-figure sup {
    font-size: .45em;
    top: -.75em;
    margin-left: .04em;
    color: var(--gold);
}

.stat-label {
    display: block;
    margin-top: .5rem;
    max-width: 18ch;
    font-size: clamp(.78rem, .3vw + .71rem, .88rem);
    line-height: 1.45;
    color: var(--text-soft);
}

/* ---- 10b. Senior living communities ---- */
/* The largest yellow area on the page. Everything inside flips to ink,
   because white on this yellow is 1.5:1. */
.communities {
    background: linear-gradient(118deg, var(--green-primary) 0%, var(--green-bright) 100%);
}

.communities-aside {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: clamp(.9rem, 1.6vw, 1.25rem);
}

.communities-aside .lede { margin-bottom: 0; }

/* the nav only matters once the list becomes a track */
.communities-aside .slider-nav { display: none; }

.city-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(1.25rem, 2.6vw, 2.25rem);
}

.city-media {
    overflow: hidden;
    border-radius: var(--radius-md);
    aspect-ratio: 4 / 3;
    box-shadow: 0 14px 34px rgba(46, 42, 38, .30);
    transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}

.city-media img { width: 100%; height: 100%; object-fit: cover; }

.city:hover .city-media { transform: translateY(-3px) scale(1.012); }

.city-name {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: clamp(1.35rem, 1.8vw, 1.85rem);
    color: var(--white);
    margin: clamp(.9rem, 1.5vw, 1.15rem) 0 .6rem;
}

.city-tags {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
    margin-bottom: .9rem;
}

.tag {
    padding: .3em .85em;
    border: 1px solid rgba(255, 255, 255, .45);
    border-radius: var(--radius-pill);
    font-size: clamp(.7rem, .26vw + .64rem, .78rem);
    font-weight: 500;
    color: rgba(255, 255, 255, .95);
}

/* Filled logo yellow so "Ongoing" separates from "Completed" */
.tag-live {
    background: var(--yellow);
    border-color: var(--yellow);
    color: var(--ink);
    font-weight: 600;
}

/* ---- 10c. Home care ---- */
.homecare { background: var(--white); }

.homecare-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
    gap: clamp(1.75rem, 4vw, 3.75rem);
    align-items: center;
}

.media-homecare {
    aspect-ratio: 4 / 3.4;
    border-radius: var(--radius-md);
}

.care-list {
    display: grid;
    gap: clamp(.85rem, 1.5vw, 1.2rem);
    margin-bottom: clamp(1.1rem, 2vw, 1.6rem);
}

.care-item {
    display: flex;
    align-items: flex-start;
    gap: clamp(.85rem, 1.4vw, 1.15rem);
}

.care-icon {
    flex: none;
    display: grid;
    place-items: center;
    width: clamp(42px, 3.4vw, 50px);
    aspect-ratio: 1;
    border-radius: 50%;
    background: var(--green-light);
    color: var(--green-primary);
    font-size: 1.05rem;
    transition: transform .35s var(--ease), background-color .35s ease;
}

.care-item:hover .care-icon { transform: translateY(-3px); background: var(--green-primary); color: var(--white); }

.care-item h3 {
    font-family: var(--font-body);
    font-size: clamp(.95rem, .35vw + .87rem, 1.08rem);
    font-weight: 600;
    color: var(--heading);
    margin-bottom: .15rem;
}

.care-item p {
    font-size: clamp(.82rem, .3vw + .75rem, .92rem);
    line-height: 1.55;
    color: var(--text-soft);
    max-width: 44ch;
}

/* ---- 10d. Gallery ---- */
.gallery { background: var(--cream); }

.gallery-head { align-items: center; }

.gallery-controls {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: .7rem;
    justify-self: end;
}

.slider-nav { display: flex; gap: .4rem; }

.gnav {
    display: grid;
    place-items: center;
    width: 42px;
    aspect-ratio: 1;
    border-radius: 50%;
    color: var(--ink);
    background: var(--white);
    box-shadow: 0 2px 10px rgba(46, 42, 38, .14);
    transition: background-color .3s ease, color .3s ease, opacity .3s ease, transform .3s var(--ease);
}

.gnav svg { width: 19px; height: 19px; }

.gnav:hover:not(:disabled) { background: var(--yellow); transform: translateY(-2px); }

.gnav:disabled { opacity: .35; cursor: default; }

/* on the green section the buttons invert */
.slider-nav-light .gnav {
    background: rgba(255, 255, 255, .16);
    color: var(--white);
    box-shadow: none;
}

.slider-nav-light .gnav:hover:not(:disabled) { background: var(--yellow); color: var(--ink); }

.gallery-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    padding: .3rem;
    background: rgba(255, 255, 255, .8);
    border-radius: var(--radius-pill);
}

.gallery-tab {
    padding: .6em 1.25em;
    border-radius: var(--radius-pill);
    font-size: clamp(.8rem, .3vw + .73rem, .9rem);
    font-weight: 600;
    color: var(--ink);
    transition: background-color .3s ease, color .3s ease;
}

.gallery-tab:hover { background: rgba(232, 184, 0, .28); }

.gallery-tab.is-active {
    background: var(--ink);
    color: var(--yellow);
}

.gallery-panel[hidden] { display: none; }

/* Horizontal snap track. One row, arrow-driven, same on every screen —
   only how many photos are in view changes. */
.gallery-track {
    --gap: clamp(.75rem, 1.4vw, 1.15rem);
    --per: 3;
    display: flex;
    gap: var(--gap);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: .35rem;
}

.gallery-track::-webkit-scrollbar { display: none; }

.shot {
    flex: 0 0 calc((100% - (var(--per) - 1) * var(--gap)) / var(--per));
    scroll-snap-align: start;
    overflow: hidden;
    border-radius: var(--radius-md);
    background: var(--green-mist);
    box-shadow: var(--shadow-image);
    transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}

.shot img {
    width: 100%;
    height: 100%;
    aspect-ratio: 16 / 11;
    object-fit: cover;
    display: block;
}

.shot:hover { transform: translateY(-3px) scale(1.01); box-shadow: var(--shadow-lift); }

/* ---- 10e. Services ---- */
.services { background: var(--offwhite); }

.services-grid {
    display: grid;
    grid-template-columns: minmax(0, .82fr) minmax(0, 1.35fr);
    gap: clamp(1.75rem, 4vw, 3.5rem);
    align-items: start;
}

.services-copy { position: sticky; top: 108px; }

.service-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(1rem, 1.8vw, 1.6rem) clamp(1.5rem, 3vw, 3rem);
}

.service {
    padding-top: clamp(1rem, 1.6vw, 1.35rem);
    border-top: 1px solid rgba(30, 27, 22, .14);
    text-align: center;
}

.service-icon {
    display: grid;
    place-items: center;
    margin-inline: auto;
    width: clamp(38px, 3vw, 44px);
    aspect-ratio: 1;
    margin-bottom: .75rem;
    border-radius: 50%;
    background: var(--green-light);
    color: var(--green-primary);
    font-size: .95rem;
    transition: transform .35s var(--ease);
}

.service:hover .service-icon { transform: translateY(-3px); }

.service h3 {
    font-family: var(--font-body);
    font-size: clamp(.92rem, .35vw + .84rem, 1.04rem);
    font-weight: 600;
    color: var(--heading);
    margin-bottom: .25rem;
}

.service p {
    font-size: clamp(.8rem, .3vw + .73rem, .9rem);
    line-height: 1.55;
    color: var(--text-soft);
    max-width: 30ch;
    margin-inline: auto;
}

/* ---- 10f. Amenities ---- */
.amenities { background: var(--white); }

.amenity-collage {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: clamp(.65rem, 1.1vw, .95rem);
}

.amenity {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
    aspect-ratio: 4 / 3;
    box-shadow: var(--shadow-image);
    transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}

/* lead photo holds two columns and both rows; the six tiles fill the rest */
.amenity-lead {
    grid-column: span 2;
    grid-row: span 2;
    aspect-ratio: auto;
}

.amenity img { width: 100%; height: 100%; object-fit: cover; }

.amenity::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 62%;
    background: linear-gradient(to top, rgba(30, 24, 18, .82) 0%, rgba(30, 24, 18, .35) 45%, rgba(30, 24, 18, 0) 100%);
}

/* the caption sits on its own plate so it reads over any photo */
.amenity figcaption {
    position: absolute;
    z-index: 2;
    left: clamp(.55rem, .9vw, .8rem);
    bottom: clamp(.55rem, .9vw, .8rem);
    right: clamp(.55rem, .9vw, .8rem);
    padding: .4em .7em;
    border-radius: 10px;
    background: rgba(30, 24, 18, .72);
    backdrop-filter: blur(4px);
    color: var(--white);
    font-size: clamp(.74rem, .28vw + .68rem, .88rem);
    font-weight: 600;
    line-height: 1.25;
}

.amenity-lead figcaption { font-size: clamp(.85rem, .35vw + .77rem, 1.02rem); }

.amenity:hover { transform: translateY(-3px) scale(1.01); box-shadow: var(--shadow-lift); }

.amenity-more {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem .7rem;
    margin-top: clamp(1.1rem, 2vw, 1.6rem);
}

.amenity-more li {
    padding: .45em 1.05em;
    border: 1px solid rgba(232, 184, 0, .55);
    border-radius: var(--radius-pill);
    font-size: clamp(.78rem, .3vw + .71rem, .88rem);
    color: var(--ink);
    background: var(--yellow-tint);
}

/* ---- 10g. Family assurance (sits on the green .life section) ---- */
.assurance-list {
    display: grid;
    gap: .6rem;
    margin-bottom: clamp(1.4rem, 2.4vw, 1.9rem);
}

.assurance-list li {
    display: flex;
    align-items: center;
    gap: .8rem;
    color: var(--white);
    font-size: clamp(.86rem, .32vw + .78rem, .98rem);
    font-weight: 500;
}

.assurance-list i {
    flex: none;
    display: grid;
    place-items: center;
    width: 30px;
    aspect-ratio: 1;
    border-radius: 50%;
    background: rgba(255, 255, 255, .18);
    color: var(--white);
    font-size: .8rem;
}

/* ---- 10h. Resale & rental listing ---- */
.resale { background: var(--cream); }

.listing { border-top: 1px solid rgba(30, 27, 22, .16); }

.listing-row {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr) auto;
    gap: clamp(1rem, 2.5vw, 2.5rem);
    align-items: center;
    padding-block: clamp(.9rem, 1.6vw, 1.3rem);
    border-bottom: 1px solid rgba(30, 27, 22, .16);
}

.listing-project h3 {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: clamp(1.05rem, 1.15vw, 1.35rem);
    color: var(--heading);
    margin-bottom: .2rem;
}

.listing-meta {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: clamp(.78rem, .3vw + .71rem, .88rem);
    color: var(--text-soft);
}

.listing-meta i { color: var(--green-primary); font-size: .82rem; }

.listing-residents {
    font-size: clamp(.82rem, .3vw + .75rem, .92rem);
    color: var(--text-soft);
}

.listing-residents strong {
    font-family: var(--font-heading);
    font-size: 1.3em;
    font-weight: 600;
    color: var(--heading);
}

.listing-actions { display: flex; flex-wrap: wrap; gap: .6rem; }

.listing-actions .btn { padding: .62em 1.15em; font-size: clamp(.78rem, .28vw + .72rem, .86rem); }

.btn-ghost {
    --btn-bg: transparent;
    --btn-fg: var(--ink);
    border: 1px solid rgba(30, 27, 22, .3);
}

.btn-ghost:hover,
.btn-ghost:focus-visible { background: var(--white); border-color: var(--ink); }

/* ---- 10i. Our people ---- */
.people { background: var(--white); }

.people-grid {
    display: grid;
    grid-template-columns: minmax(0, .92fr) minmax(0, 1.18fr);
    gap: clamp(1.75rem, 4vw, 3.5rem);
    align-items: start;
}

.story {
    margin-top: clamp(1.5rem, 2.5vw, 2.25rem);
    padding-left: clamp(1rem, 1.8vw, 1.5rem);
    border-left: 3px solid var(--yellow);
}

.story blockquote {
    font-family: var(--font-heading);
    font-size: clamp(1.05rem, 1.25vw, 1.35rem);
    line-height: 1.45;
    color: var(--heading);
    margin-bottom: .6rem;
}

.story figcaption {
    font-size: clamp(.76rem, .28vw + .7rem, .84rem);
    color: var(--text-soft);
}

.people-links { display: grid; gap: clamp(.85rem, 1.5vw, 1.2rem); }

.people-link {
    display: grid;
    grid-template-columns: clamp(96px, 11vw, 150px) minmax(0, 1fr);
    gap: clamp(1rem, 1.8vw, 1.5rem);
    align-items: center;
    padding-bottom: clamp(.85rem, 1.5vw, 1.2rem);
    border-bottom: 1px solid rgba(30, 27, 22, .14);
}

.people-link:last-child { border-bottom: 0; padding-bottom: 0; }

.people-link figure {
    overflow: hidden;
    border-radius: var(--radius-md);
    aspect-ratio: 1 / 1;
    box-shadow: var(--shadow-image);
    transition: transform .45s var(--ease);
}

.people-link figure img { width: 100%; height: 100%; object-fit: cover; }
.people-link:hover figure { transform: translateY(-3px) scale(1.015); }

.people-link h3 {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: clamp(1.05rem, 1.15vw, 1.3rem);
    color: var(--heading);
    margin-bottom: .25rem;
}

.people-link p {
    font-size: clamp(.8rem, .3vw + .73rem, .9rem);
    line-height: 1.5;
    color: var(--text-soft);
    margin-bottom: .55rem;
}

/* ---- 10j. Blog & stories ---- */
.blog { background: var(--offwhite); }
.blog-head { align-items: center; }

/* same shape as .gallery-controls — link on top, arrows under it and
   directly above the track */
.blog-aside {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: .7rem;
    justify-self: end;
}

/* Blog runs as a slider on every screen */
.post-list {
    --gap: clamp(1.25rem, 2.6vw, 2.25rem);
    --per: 3;
    display: flex;
    gap: var(--gap);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: .35rem;
}

.post-list::-webkit-scrollbar { display: none; }

.post {
    flex: 0 0 calc((100% - (var(--per) - 1) * var(--gap)) / var(--per));
    scroll-snap-align: start;
}

.post figure {
    overflow: hidden;
    border-radius: var(--radius-md);
    aspect-ratio: 16 / 10;
    margin-bottom: clamp(.65rem, 1.1vw, .9rem);
    box-shadow: var(--shadow-image);
    transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}

.post figure img { width: 100%; height: 100%; object-fit: cover; }

.post:hover figure { transform: translateY(-3px) scale(1.012); box-shadow: var(--shadow-lift); }

.post-meta {
    font-size: clamp(.74rem, .27vw + .68rem, .82rem);
    color: var(--green-primary);
    font-weight: 600;
    margin-bottom: .3rem;
}

.post h3 {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: clamp(1.02rem, 1.15vw, 1.28rem);
    line-height: 1.32;
    color: var(--ink);
    transition: color .3s ease;
}

.post a:hover h3,
.post a:focus-visible h3 { color: var(--yellow); }

/* ---- 10k. Contact card additions ---- */
.closing-eyebrow {
    font-size: clamp(.7rem, .26vw + .64rem, .78rem);
    font-weight: 600;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: .45rem;
}

.closing-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: .75rem 1rem;
}

.closing-call {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-size: clamp(.82rem, .3vw + .75rem, .92rem);
    font-weight: 600;
    color: var(--ink);
    transition: color .3s ease;
}

.closing-call i { color: var(--green-primary); font-size: .85rem; }
.closing-call:hover { color: var(--gold); }

.community .eyebrow { color: rgba(30, 27, 22, .72); }


/* ====================== 11. CAREERS CTA =========================== */
.community {
    background: var(--yellow);
    /* horizontal travel of the diagonal edge, top to bottom */
    --slant: clamp(26px, 3.2vw, 62px);
    overflow: hidden;
}

.community-grid {
    display: grid;
    grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr);
    align-items: stretch;
}

.community-copy {
    padding-inline: var(--edge) calc(clamp(1.5rem, 3vw, 3rem) + var(--slant));
    padding-block: clamp(2.25rem, 4vw, 3.5rem);
    align-self: center;
}

.community-title {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: clamp(2rem, 3.4vw, 3.35rem);
    line-height: 1.08;
    letter-spacing: -.015em;
    color: var(--ink);
    margin-bottom: .75rem;
}

.community-title span { display: block; }

.community-lede {
    font-style: italic;
    color: rgba(30, 27, 22, .82);
    font-size: clamp(.9rem, .4vw + .82rem, 1.02rem);
    line-height: 1.5;
    margin-bottom: clamp(1.1rem, 2vw, 1.6rem);
}

/* The photo's left edge leans left on the way down, so the yellow block is
   widest at the top — matching the diagonal in the approved mockup. */
.community-media {
    position: relative;
    min-height: clamp(240px, 26vw, 380px);
    overflow: hidden;
    margin-left: calc(var(--slant) * -1);
    clip-path: polygon(var(--slant) 0, 100% 0, 100% 100%, 0 100%);
}


/* ======================= 12. CLOSING CTA ========================== */
.closing {
    position: relative;
    display: flex;
    align-items: center;
    min-height: clamp(300px, 25vw, 440px);
    padding-block: clamp(1.75rem, 3vw, 2.75rem);
    overflow: hidden;
    background: var(--green-mist);
}

.closing-bg { position: absolute; inset: 0; z-index: 0; }

.closing-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(95deg,
        rgba(255, 255, 255, .88) 0%,
        rgba(255, 255, 255, .62) 20%,
        rgba(255, 255, 255, .22) 38%,
        rgba(255, 255, 255, 0) 56%);
}

/* Keep the couple in frame rather than cropping through them */
.closing-bg img { object-position: center 68%; }

.closing-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding-inline: var(--edge);
}

.script-closing {
    color: var(--green-ink);
    transform: rotate(-6deg);
    font-size: clamp(1.7rem, 2.7vw, 2.85rem);
    line-height: 1.22;
    padding: .35em .9em .35em .2em;
    text-shadow: 0 1px 0 rgba(255, 255, 255, .95), 0 2px 22px rgba(255, 255, 255, .95);
}

.script-closing span:nth-child(2) { margin-left: .55em; }
.script-closing span:nth-child(3) { margin-left: 1.15em; }

.closing-card {
    flex: none;
    width: min(100%, 360px);
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(3px);
    border-radius: var(--radius-md);
    padding: clamp(1.15rem, 2vw, 1.6rem);
    box-shadow: var(--shadow-soft);
    text-align: center;
}

.closing-card h2 {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: clamp(1.25rem, 1.6vw, 1.7rem);
    line-height: 1.2;
    color: var(--heading);
    margin-bottom: 1rem;
}


/* =========================== 13. FOOTER =========================== */
.site-footer {
    background: var(--green-dark);
    border-top: 5px solid var(--yellow);
    color: rgba(255, 255, 255, .88);
    font-size: clamp(.8rem, .3vw + .73rem, .9rem);
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, .82fr) minmax(0, 1fr) minmax(0, 1.1fr);
    gap: clamp(1.5rem, 3vw, 2.75rem);
    padding-block: clamp(2.25rem, 3.6vw, 3.25rem);
}

.footer-desc {
    margin-block: .8rem 1.3rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, .82);
}

.social { display: flex; gap: 1.1rem; }

.social a {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    font-size: 1.05rem;
    color: var(--white);
    transition: transform .3s var(--ease), color .3s ease;
}

.social a:hover,
.social a:focus-visible { transform: translateY(-3px); color: var(--yellow); }

.footer-heading {
    font-family: var(--font-body);
    font-size: clamp(.92rem, .35vw + .84rem, 1.02rem);
    font-weight: 600;
    color: var(--white);
    margin-bottom: .9rem;
}

.footer-links li + li,
.footer-contact li + li { margin-top: .42rem; }

.footer-links a { transition: color .28s ease, transform .28s var(--ease); display: inline-block; }
.footer-links a:hover,
.footer-links a:focus-visible { color: var(--yellow); transform: translateX(3px); }

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: .7rem;
    line-height: 1.5;
}

.footer-contact i {
    margin-top: .3rem;
    font-size: .85rem;
    color: rgba(255, 255, 255, .9);
    width: 1rem;
    flex: none;
}

.footer-contact a:hover,
.footer-contact a:focus-visible { color: var(--yellow); }

.footer-note { margin-bottom: 1rem; color: rgba(255, 255, 255, .82); }

.newsletter {
    position: relative;
    display: flex;
    align-items: center;
    gap: .4rem;
    background: var(--white);
    border-radius: var(--radius-pill);
    padding: .3rem .35rem .3rem 1.05rem;
    max-width: 22rem;
}

.newsletter input {
    flex: 1;
    min-width: 0;
    border: 0;
    background: none;
    font-size: .85rem;
    color: var(--text-dark);
    padding-block: .45rem;
}

.newsletter input::placeholder { color: #9AA3AC; }
.newsletter input:focus { outline: none; }

.newsletter button {
    flex: none;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--yellow);
    color: var(--ink);
    transition: background-color .3s ease, transform .3s var(--ease);
}

.newsletter button .arw { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.newsletter button:hover { background: var(--yellow-deep); }
.newsletter button:hover .arw { transform: translateX(3px); }

.newsletter-msg {
    position: absolute;
    left: 1.05rem;
    top: calc(100% + .45rem);
    font-size: .78rem;
    color: var(--yellow);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .22);
    background: var(--green-deeper);
}

.footer-bottom-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .6rem 1.5rem;
    padding-block: .85rem;
    font-size: clamp(.74rem, .28vw + .68rem, .82rem);
}

.legal {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem 1.1rem;
}

.legal li + li { border-left: 1px solid rgba(255, 255, 255, .35); padding-left: 1.1rem; }
.legal a:hover,
.legal a:focus-visible { color: var(--yellow); }



/* ========================= 14. ANIMATIONS ========================= */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition:
        opacity var(--dur) var(--ease),
        transform var(--dur) var(--ease);
    transition-delay: var(--d, 0ms);
    will-change: opacity, transform;
}

.reveal.from-left  { transform: translateX(-22px); }
.reveal.from-right { transform: translateX(26px); }
.reveal.soft       { transform: translateY(16px) scale(.972); }

.reveal.is-visible {
    opacity: 1;
    transform: none;
}

/* Hover transforms are re-declared here so they out-rank .reveal.is-visible
   on elements that are both animated in and hoverable. */
.reveal.is-visible.btn:hover,
.reveal.is-visible.btn:focus-visible { transform: translateY(-2px); }

.reveal.is-visible.media:hover,
.reveal.is-visible.media:focus-within { transform: translateY(-3px) scale(1.012); }

@media (hover: none), (prefers-reduced-motion: reduce) {
    .reveal.is-visible.btn:hover,
    .reveal.is-visible.media:hover { transform: none; }
}


/* ========================= 15. RESPONSIVE ========================= */

/* Very wide screens — let compositions breathe past the container edge */
@media (min-width: 1280px) {
    .about-media,
    .life-media { margin-right: calc(var(--gutter) * -.5); }
}

@media (max-width: 1180px) {
    .nav-list { gap: 1rem; }
    .header-cta { padding: .65em 1.15em; }
}

/* Tablet landscape — reduce overlap, keep hierarchy */
@media (max-width: 1024px) {
    .about-grid,
    .life-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: clamp(1.75rem, 4vw, 2.5rem);
    }

    .about-copy .lede,
    .life-copy .lede { max-width: 52ch; }

    .media-about-main,
    .media-life-main { aspect-ratio: 16 / 9; }

    .community-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .closing-inner { gap: 1.25rem; }
    .closing-card { width: min(100%, 320px); }
}

/* Tablet portrait / mobile navigation */
/* Navigation drawer — v16 collapses earlier because the logo and type are larger */
@media (max-width: 1240px) {
    .nav-toggle { display: inline-flex; }

    .primary-nav {
        position: fixed;
        z-index: 99;
        top: 0;
        right: 0;
        width: min(86vw, 340px);
        height: 100dvh;
        background: var(--white);
        padding: 5.5rem 1.75rem 2rem;
        /* Sits exactly off-canvas — 100%, not more — so the closed drawer
           can never add horizontal scroll to the page. */
        transform: translateX(100%);
        transition: transform .42s var(--ease), box-shadow .42s ease;
        overflow-y: auto;
    }

    .primary-nav.is-open {
        transform: translateX(0);
        box-shadow: -12px 0 40px rgba(30, 24, 18, .18);
    }

    .nav-list {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .nav-list li + li { border-top: 1px solid rgba(30, 27, 22, .12); }

    .nav-link {
        display: block;
        padding-block: .95rem;
        font-size: 1rem;
    }

    .nav-link::after { display: none; }

    .nav-inline-cta {
        display: inline-flex;
        margin-top: 1.5rem;
        width: 100%;
        justify-content: center;
    }

}

@media (max-width: 900px) {
    .hero-slide img { object-position: center 42%; }

    .hero {
        min-height: auto;
        padding-block: clamp(2.5rem, 8vw, 4rem);
        padding-bottom: clamp(3.5rem, 10vw, 5rem);
    }

    .hero-bg::after {
        background: linear-gradient(180deg, rgba(30, 24, 18, .72) 0%, rgba(30, 24, 18, .62) 55%, rgba(30, 24, 18, .82) 100%);
    }

    .hero-inner { flex-direction: column; align-items: flex-start; }

    .script-hero {
        align-self: flex-end;
        margin-top: 1.75rem;
        margin-right: 0;
        transform: rotate(-6deg);
    }

    .hero-points { gap: 1rem 1.75rem; }

    .about-media,
    .life-media { margin-right: 0; }

    .media-about-main,
    .media-life-main { aspect-ratio: 16 / 9; }

    /* Community CTA */
    .community-grid { grid-template-columns: minmax(0, 1fr); }
    .community-copy { padding-inline: var(--gutter); }
    .community-lede br { display: none; }
    .community-media {
        min-height: 0;
        aspect-ratio: 16 / 9;
        margin-left: 0;
        clip-path: none;
    }

    /* Closing CTA */
    .closing { min-height: 0; padding-block: clamp(2rem, 6vw, 3rem); }

    .closing-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 1.5rem;
        padding-inline: var(--gutter);
    }

    .script-closing { align-self: flex-start; }
    .closing-card { width: 100%; }

    .closing-bg::after {
        background: linear-gradient(180deg, rgba(255, 255, 255, .6) 0%, rgba(255, 255, 255, .35) 100%);
    }

    /* Footer */
    .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
    .hero-title { font-size: clamp(2.35rem, 10.5vw, 3rem); }
    .hero-lede { max-width: 100%; }

    .hero-points {
        flex-direction: column;
        gap: .85rem;
        margin-top: 1.5rem;
    }

    .hero-points li { font-size: .88rem; }

    .script-hero { align-self: flex-start; font-size: 1.6rem; }

    .section-title { font-size: clamp(1.9rem, 8.2vw, 2.5rem); }

    .btn { padding: .8em 1.35em; }

    .footer-grid { grid-template-columns: minmax(0, 1fr); }
    .newsletter { max-width: 100%; }

    .footer-bottom-inner { justify-content: flex-start; }
}

@media (max-width: 420px) {
    .logo-img { height: 32px; }
    .footer-desc br { display: none; }
    .legal li + li { border-left: 0; padding-left: 0; }
}



/* ---- Content-flow sections: tablet ---- */
@media (max-width: 1024px) {
    .communities-head,
    .gallery-head,
    .amenities-head,
    .resale-head,
    .blog-head {
        grid-template-columns: minmax(0, 1fr);
        align-items: start;
        gap: clamp(.75rem, 2vw, 1.25rem);
    }

    .gallery-tabs,
    .blog-head .link-arrow { justify-self: start; }

    .communities-head .lede,
    .amenities-head .lede,
    .resale-head .lede { max-width: 56ch; padding-bottom: 0; }

    .homecare-grid,
    .services-grid,
    .people-grid { grid-template-columns: minmax(0, 1fr); }

    .homecare-grid { gap: clamp(1.5rem, 4vw, 2.25rem); }
    .media-homecare { aspect-ratio: 16 / 9; }

    .services-copy { position: static; }
    .services-copy .lede { max-width: 56ch; }

    .gallery-track { --per: 2; }

    .listing-row {
        grid-template-columns: minmax(0, 1fr) auto;
        row-gap: .75rem;
    }

    .listing-residents { text-align: right; }
    .listing-actions { grid-column: 1 / -1; }
}

/* ---- Content-flow sections: small tablet / large phone ---- */
@media (max-width: 900px) {
    .stat-band { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: clamp(1.25rem, 3vw, 1.75rem); }
    .stat:nth-child(odd) { border-left: 0; padding-left: 0; }
    .stat-label { max-width: 22ch; }

    .city-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    .service-list { grid-template-columns: minmax(0, 1fr); }

    .amenity-collage { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .amenity-lead { grid-column: span 3; grid-row: auto; aspect-ratio: 16 / 9; }

    .post-list { --per: 2; }

    .people-link { grid-template-columns: clamp(84px, 16vw, 120px) minmax(0, 1fr); }
}

/* ---- Content-flow sections: phone ---- */
@media (max-width: 640px) {

    .post-list { --per: 1.12; }

    /* two-up keeps the whole set to four short rows instead of seven */
    .amenity-collage { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .amenity-lead { grid-column: 1 / -1; aspect-ratio: 16 / 9; }

    .listing-row {
        grid-template-columns: minmax(0, 1fr);
        row-gap: .6rem;
    }

    .listing-residents { text-align: left; }
    .listing-actions .btn { flex: 1 1 auto; justify-content: center; }

    .people-link {
        grid-template-columns: minmax(0, 1fr);
        gap: .85rem;
    }

    .people-link figure { aspect-ratio: 16 / 9; }

    .closing-actions { justify-content: flex-start; }
}

@media (max-width: 420px) {
    .gallery-tabs { width: 100%; }
    .gallery-tab { flex: 1 1 auto; text-align: center; padding-inline: .8em; }
}



/* ---- Hero on phones: the photo gets its own block and the copy sits under
   it, so the slideshow is never hidden behind the headline. ---- */
@media (max-width: 767px) {
    .hero {
        display: block;
        min-height: 0;
        padding-block: 0;
        background: linear-gradient(165deg, var(--green-dark) 0%, var(--green-deeper) 100%);
    }

    .hero-bg {
        position: relative;
        inset: auto;
        height: min(54vh, 430px);
    }

    /* only a soft foot so the dots stay legible — the copy is no longer on top */
    .hero-bg::after {
        background: linear-gradient(to top, rgba(30, 24, 18, .55) 0%, rgba(30, 24, 18, 0) 40%);
    }

    .hero-inner {
        display: block;
        padding-block: clamp(1.6rem, 6vw, 2.5rem) clamp(1.75rem, 7vw, 2.75rem);
    }

    .hero-copy { max-width: 100%; }

    .hero-title { font-size: clamp(2.3rem, 11vw, 3rem); }

    .hero-lede {
        max-width: 100%;
        margin-bottom: 1.35rem;
    }

    .hero-points {
        margin-top: 1.5rem;
        gap: .9rem;
        flex-direction: column;
    }

    /* the desktop stagger reads as a mistake in a narrow column */
    .script-hero {
        margin: 1.5rem 0 0;
        align-self: auto;
        text-shadow: none;
    }

    .script-hero span:nth-child(2),
    .script-hero span:nth-child(3),
    .script-hero span:nth-child(4) { margin-left: 0; }
}

@media (max-width: 640px) {
    /* one photo plus a peek, so it reads as a slider */
    .gallery-track { --per: 1.15; }

    .gallery-controls { width: 100%; align-items: stretch; }
    .gallery-controls .slider-nav { align-self: flex-end; }
}


/* ---- Stat band on phones: two per row, centred, with rules between ---- */
@media (max-width: 640px) {
    .stat-band {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0;
        text-align: center;
    }

    .stat {
        padding: clamp(1rem, 4vw, 1.4rem) .5rem;
    }

    .stat + .stat { border-left: 0; padding-left: .5rem; }

    /* right-hand cell of each row */
    .stat:nth-child(2n) { border-left: 1px solid rgba(30, 27, 22, .14); }
    /* second row */
    .stat:nth-child(n + 3) { border-top: 1px solid rgba(30, 27, 22, .14); }

    .stat-label {
        max-width: 20ch;
        margin-inline: auto;
    }
}

/* ---- Footer on phones: the long link list splits into two columns ---- */
@media (max-width: 640px) {
    .footer-grid {
        gap: clamp(1.75rem, 6vw, 2.25rem);
        padding-block: clamp(2rem, 7vw, 2.75rem);
    }

    .footer-links {
        columns: 2;
        column-gap: 1.25rem;
    }

    .footer-links li { break-inside: avoid; }
    .footer-links li + li { margin-top: 0; }
    .footer-links a { padding-block: .3rem; }

    .footer-desc br { display: none; }
    .footer-desc { max-width: 38ch; }

    .social { gap: 1.35rem; }
    .social a { width: 34px; height: 34px; font-size: 1.15rem; }

    .footer-bottom-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: .55rem;
    }
}


/* ---- Communities becomes a swipe slider on phones ---- */
@media (max-width: 767px) {
    .communities-aside {
        align-self: stretch;
        align-items: flex-start;
        width: 100%;
    }

    .communities-aside .slider-nav {
        display: flex;
        align-self: flex-end;
    }

    .city-list {
        --gap: 1rem;
        --per: 1.1;
        display: flex;
        gap: var(--gap);
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding-bottom: .35rem;
    }

    .city-list::-webkit-scrollbar { display: none; }

    .city {
        flex: 0 0 calc((100% - (var(--per) - 1) * var(--gap)) / var(--per));
        scroll-snap-align: start;
    }

    .city-media { aspect-ratio: 4 / 3; }
}

/* ---- Blog head stacks so the arrows stay reachable ---- */
@media (max-width: 640px) {
    .blog-aside { justify-self: start; align-items: flex-start; width: 100%; }
    .blog-aside .slider-nav { align-self: flex-end; }
}


/* ---- Tablet: stacked sections get shorter media so they stay near a fold ---- */
@media (max-width: 1024px) {
    .media-about-main,
    .media-life-main { aspect-ratio: 16 / 7.5; }

    .media-homecare { aspect-ratio: 16 / 7.5; }

    .homecare-grid,
    .services-grid,
    .people-grid,
    .life-grid,
    .about-grid { gap: clamp(1.1rem, 2.4vw, 1.75rem); }

    .care-list { gap: .75rem; }
    .service-list { gap: 1rem clamp(1.25rem, 3vw, 2.5rem); }
    .assurance-list { gap: .45rem; }
}

/* ================= 16. REDUCED MOTION / ACCESSIBILITY ============= */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        transition-delay: 0ms !important;
        scroll-behavior: auto !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }

    .hero-slide img { transform: none; }

    .btn:hover,
    .media:hover,
    .shot:hover,
    .amenity:hover,
    .city:hover .city-media,
    .people-link:hover figure,
    .post:hover figure,
    .care-item:hover .care-icon,
    .service:hover .service-icon,
    .social a:hover { transform: none; }
}

/* No hover lift on touch devices */
@media (hover: none) {
    .media:hover,
    .shot:hover,
    .amenity:hover,
    .city:hover .city-media,
    .people-link:hover figure,
    .post:hover figure { transform: none; box-shadow: var(--shadow-image); }

    .btn:hover { transform: none; }
    .hero-points li:hover i,
    .care-item:hover .care-icon,
    .service:hover .service-icon { transform: none; }
}


/* =================================================================
   17. v16 — WARM HERITAGE + READABILITY + CLIENT FEEDBACK
   Placed last so it wins over the equal-specificity rules above.
   Audience is mostly 50+: bigger, heavier, darker type everywhere,
   no grey text, larger tap targets, bigger logo.
   ================================================================= */

/* ---- 17a. Base type: ~18–20px body, medium weight ---- */
body {
    font-size: clamp(1.1rem, .3vw + 1.02rem, 1.25rem);
    font-weight: 500;
    line-height: 1.65;
    color: var(--text-dark);
}

.eyebrow {
    font-size: clamp(.92rem, .3vw + .85rem, 1.05rem);
    font-weight: 700;
    letter-spacing: .14em;
    color: var(--green-primary);
    margin-bottom: .7rem;
}

.eyebrow-light { color: var(--yellow); }

.section-title {
    font-weight: 700;
    font-size: clamp(2.1rem, 3.3vw, 3.35rem);
    line-height: 1.12;
    color: var(--heading);
}

/* Accent line of every heading: Terracotta on light, Marigold on dark */
.title-mark  { color: var(--terracotta); }
.ink-yellow  { color: var(--yellow); }
.community .title-mark { color: var(--terracotta-dark); }

.lede {
    max-width: 46ch;
    color: var(--text-soft);
    font-size: clamp(1.12rem, .35vw + 1.04rem, 1.3rem);
    font-weight: 500;
}

.lede-light { color: var(--white); }

:focus-visible { outline: 3px solid var(--yellow); }

/* ---- 17b. Buttons: Terracotta fill, white label, bigger ---- */
.btn {
    font-size: clamp(1.02rem, .3vw + .96rem, 1.15rem);
    font-weight: 700;
    padding: .95em 1.75em;
    min-height: 56px;
}

.btn-yellow { --btn-bg: var(--terracotta); --btn-fg: var(--white); }
.btn-yellow:hover,
.btn-yellow:focus-visible { background: var(--terracotta-dark); }

.btn-ink { --btn-bg: var(--ink); --btn-fg: var(--white); }

.link-arrow { font-size: clamp(1rem, .3vw + .94rem, 1.1rem); font-weight: 700; }
.link-arrow:hover,
.link-arrow:focus-visible { color: var(--yellow); }
.link-arrow-dark { color: var(--terracotta); }
.link-arrow-dark:hover,
.link-arrow-dark:focus-visible { color: var(--terracotta-dark); }

/* ---- 17c. Header: bigger logo, bigger menu ---- */
.site-header { padding-block: .9rem; border-bottom: 1px solid rgba(46, 42, 38, .1); }
.site-header.is-scrolled { padding-block: .6rem; }

.logo-img { height: clamp(54px, 4.4vw, 72px); }
.site-header.is-scrolled .logo-img { height: clamp(48px, 3.6vw, 58px); }
.logo-footer .logo-img { height: clamp(56px, 4.2vw, 66px); }

.nav-list { gap: clamp(1rem, 1.9vw, 2rem); }

.nav-link {
    font-size: clamp(1rem, .3vw + .92rem, 1.1rem);
    font-weight: 600;
    color: var(--ink);
}

.nav-link.is-active { font-weight: 700; }
.nav-link::after { background: var(--terracotta); }

.header-cta { padding: .85em 1.5em; }

/* ---- 17d. Hero: brand association + offering ---- */
.hero-bg::after {
    background:
        linear-gradient(100deg,
            rgba(30, 24, 18, .9) 0%,
            rgba(30, 24, 18, .78) 30%,
            rgba(30, 24, 18, .36) 55%,
            rgba(30, 24, 18, .05) 72%),
        linear-gradient(270deg, rgba(30, 24, 18, .3) 0%, rgba(30, 24, 18, 0) 26%);
}

.hero-badge {
    display: inline-block;
    margin-bottom: 1rem;
    padding: .45em 1em;
    border-radius: var(--radius-pill);
    background: var(--yellow);
    color: var(--ink);
    font-size: clamp(1rem, .35vw + .92rem, 1.15rem);
    font-weight: 600;
}

.hero-badge strong { font-weight: 800; }

.hero-title { font-weight: 700; }
.hero-title-accent { color: var(--yellow); }

.hero-lede {
    color: var(--white);
    font-size: clamp(1.15rem, .45vw + 1.04rem, 1.35rem);
    font-weight: 500;
    max-width: 34rem;
}

.hero-offer {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(.75rem, 1.4vw, 1rem);
    margin-bottom: clamp(1.4rem, 2.2vw, 1.9rem);
}

.hero-offer li {
    display: flex;
    flex-direction: column;
    gap: .2rem;
    padding: .8rem 1.25rem;
    border-radius: var(--radius-md);
    background: rgba(250, 247, 242, .14);
    border: 1px solid rgba(250, 247, 242, .35);
    backdrop-filter: blur(4px);
}

.hero-offer-label {
    font-size: clamp(.95rem, .25vw + .9rem, 1.05rem);
    font-weight: 600;
    color: var(--white);
}

.hero-offer-value {
    font-family: var(--font-heading);
    font-size: clamp(1.6rem, 1.3vw + 1.2rem, 2.2rem);
    font-weight: 700;
    line-height: 1.05;
    color: var(--yellow);
}

.hero-offer-value sup { font-size: .5em; top: -.7em; }

.hero-dot { width: 11px; height: 11px; }
.hero-dot.is-active { width: 30px; background: var(--yellow); }

.script-hero { color: var(--white); }

/* ---- 17e. About ---- */
.stat-band { border-top-color: var(--yellow); }
.stat-figure { font-weight: 700; color: var(--ink); }
.stat-figure sup { color: var(--terracotta); }
.stat-label {
    font-size: clamp(1rem, .3vw + .93rem, 1.12rem);
    font-weight: 600;
    color: var(--text-soft);
    max-width: 20ch;
}

/* ---- 17f. Projects (Ongoing / Completed tabs) ---- */
.communities {
    background: linear-gradient(118deg, var(--green-primary) 0%, var(--green-bright) 100%);
}

.communities-head { align-items: center; }
.communities-aside { align-items: flex-end; justify-self: end; }

.gallery-tabs { background: var(--white); padding: .35rem; box-shadow: 0 2px 10px rgba(46, 42, 38, .1); }

.gallery-tab {
    padding: .75em 1.6em;
    font-size: clamp(1rem, .3vw + .94rem, 1.1rem);
    font-weight: 700;
    color: var(--ink);
    min-height: 48px;
}

.gallery-tab:hover { background: var(--yellow-mist); }
.gallery-tab.is-active { background: var(--green-primary); color: var(--white); }

.tabs-on-dark { background: rgba(255, 255, 255, .14); box-shadow: none; }
.tabs-on-dark .gallery-tab { color: var(--white); }
.tabs-on-dark .gallery-tab:hover { background: rgba(255, 255, 255, .16); }
.tabs-on-dark .gallery-tab.is-active { background: var(--yellow); color: var(--ink); }

.project-panel[hidden] { display: none; }

.project-feature {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    background: var(--offwhite);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 18px 44px rgba(46, 42, 38, .35);
}

.project-feature-media { position: relative; min-height: 100%; }
.project-feature-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3.2; }

.project-status {
    position: absolute;
    left: 1.1rem;
    top: 1.1rem;
    padding: .45em 1em;
    border-radius: var(--radius-pill);
    background: var(--yellow);
    color: var(--ink);
    font-size: 1rem;
    font-weight: 700;
}

.project-feature-body {
    padding: clamp(1.5rem, 3vw, 2.75rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.project-name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: clamp(1.9rem, 2.4vw, 2.6rem);
    line-height: 1.1;
    color: var(--ink);
    margin-bottom: .45rem;
}

.project-loc,
.city-meta {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-weight: 600;
    font-size: clamp(1rem, .3vw + .94rem, 1.1rem);
}

.project-loc { color: var(--terracotta); margin-bottom: .9rem; }
.project-loc i, .city-meta i { font-size: .95em; }

.project-desc { color: var(--text-soft); margin-bottom: 1.25rem; max-width: 40ch; }

.project-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .9rem 1.5rem;
    margin: 0 0 1.6rem;
    padding: 1.1rem 0;
    border-block: 2px solid var(--cream);
}

.project-facts dt { font-size: .98rem; font-weight: 600; color: var(--text-soft); }
.project-facts dd {
    margin: 0;
    font-family: var(--font-heading);
    font-size: clamp(1.25rem, 1vw + .95rem, 1.5rem);
    font-weight: 700;
    color: var(--ink);
    font-variant-numeric: tabular-nums;
}

.project-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.project-actions .link-arrow { color: var(--terracotta); }
.project-actions .link-arrow:hover { color: var(--terracotta-dark); }

.city-list { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.75rem); }

.city-name {
    font-weight: 700;
    font-size: clamp(1.35rem, 1.5vw, 1.65rem);
    margin: 1rem 0 .4rem;
    line-height: 1.2;
}

.city-meta { color: var(--white); margin-bottom: .35rem; }
.city-meta i { color: var(--yellow); }

.city-count { color: var(--white); margin-bottom: .75rem; font-weight: 500; }
.city-count strong { font-family: var(--font-heading); font-size: 1.4em; color: var(--yellow); }

/* ---- 17g. Gallery ---- */
.gallery { background: var(--cream); }
.gnav { width: 50px; }
.gnav:hover:not(:disabled) { background: var(--terracotta); color: var(--white); }
.shot img { aspect-ratio: 4 / 3; }

/* ---- 17h. Services — base layout (sticky copy left, 2-col list right)
   kept from the approved zip, now with a photo per service. Accents:
   Marigold top rule on each item, Terracotta icon chip on the photo. ---- */
.services { background: var(--cream); }

.services-grid {
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr);
    gap: clamp(2rem, 4.5vw, 4.5rem);
}

.services-copy { top: 120px; }
.services-copy .section-title { margin-bottom: 1.25rem; }

.services-feature {
    position: relative;
    margin-bottom: clamp(1.25rem, 2vw, 1.75rem);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-image);
}

.services-feature img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; }

.services-feature figcaption {
    position: absolute;
    left: 1rem; right: 1rem; bottom: 1rem;
    padding: .8rem 1rem;
    border-radius: var(--radius-md);
    background: var(--yellow);
    color: var(--ink);
    font-size: clamp(1rem, .3vw + .94rem, 1.1rem);
    font-weight: 600;
    line-height: 1.35;
}

.services-feature figcaption strong { font-weight: 800; }

.service-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(1.75rem, 3vw, 2.75rem) clamp(1.5rem, 3vw, 2.75rem);
}

.service {
    padding-top: 0;
    border-top: 0;
    text-align: center;
}

.service-media {
    position: relative;
    margin-bottom: 2.4rem;
    border-radius: var(--radius-lg);
    overflow: visible;
}

.service-media img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: var(--radius-lg);
    border-bottom: 5px solid var(--yellow);
    box-shadow: var(--shadow-image);
    transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}

.service:hover .service-media img { transform: translateY(-4px); box-shadow: var(--shadow-lift); }

/* icon chip sits on the photo's bottom edge, centred — the base's
   centred-icon accent, now anchored to the image */
.service-icon {
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translate(-50%, 50%);
    margin: 0;
    width: 64px;
    aspect-ratio: 1;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--terracotta);
    color: var(--white);
    font-size: 1.45rem;
    border: 5px solid var(--cream);
    transition: transform .35s var(--ease), background-color .35s ease;
}

.service:hover .service-icon { transform: translate(-50%, 44%); background: var(--terracotta-dark); }

.service h3 {
    font-family: var(--font-heading);
    font-size: clamp(1.35rem, .8vw + 1.08rem, 1.6rem);
    font-weight: 700;
    color: var(--ink);
    margin-bottom: .35rem;
}

.service p {
    font-size: clamp(1.02rem, .3vw + .96rem, 1.12rem);
    color: var(--text-soft);
    max-width: 32ch;
    margin: 0 auto;
    line-height: 1.55;
}

@media (max-width: 1024px) {
    .services-grid { grid-template-columns: minmax(0, 1fr); }
    .services-copy { position: static; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 2rem; align-items: end; }
    .services-copy .eyebrow, .services-copy .section-title { grid-column: 1; }
    .services-copy .services-feature { grid-column: 2; grid-row: 1 / span 3; margin: 0; }
    .services-copy .btn { grid-column: 1; justify-self: start; }
    .service-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
    .services-copy { display: block; }
    .services-copy .services-feature { margin-bottom: 1.25rem; }
    .service-list { grid-template-columns: minmax(0, 1fr); }
}

/* ---- 17i. Amenities ---- */
.amenity::after { background: linear-gradient(to top, rgba(30, 24, 18, .85) 0%, rgba(30, 24, 18, .35) 45%, rgba(30, 24, 18, 0) 100%); }
.amenity figcaption {
    background: rgba(46, 42, 38, .78);
    font-size: clamp(.98rem, .3vw + .92rem, 1.1rem);
    font-weight: 700;
}
.amenity-lead figcaption { font-size: clamp(1.1rem, .4vw + 1rem, 1.3rem); }
.amenity-more li {
    font-size: clamp(1rem, .3vw + .94rem, 1.08rem);
    font-weight: 600;
    border-color: var(--yellow);
    background: var(--yellow-tint);
    padding: .55em 1.2em;
}

/* ---- 17j. Family assurance ---- */
.assurance-list li { font-size: clamp(1.05rem, .35vw + .97rem, 1.2rem); font-weight: 600; }
.assurance-list i { width: 38px; font-size: 1rem; background: var(--yellow); color: var(--ink); }

/* ---- 17k. Blog, careers, contact ---- */
.post-meta { font-size: clamp(.95rem, .25vw + .9rem, 1.02rem); color: var(--terracotta); font-weight: 700; }
.post h3 { font-weight: 700; font-size: clamp(1.2rem, 1vw + .95rem, 1.45rem); }
.post a:hover h3,
.post a:focus-visible h3 { color: var(--terracotta); }

.community { background: var(--yellow); }
.community .eyebrow { color: var(--ink); }
.community-title { font-weight: 700; color: var(--ink); }
.community-lede { color: var(--ink); font-size: clamp(1.1rem, .4vw + 1rem, 1.25rem); }

.closing-eyebrow { font-size: 1rem; font-weight: 700; color: var(--terracotta); }
.closing-card h2 { font-weight: 700; font-size: clamp(1.5rem, 1.8vw, 2rem); }
.closing-call { font-size: clamp(1.15rem, .5vw + 1.02rem, 1.35rem); font-weight: 700; }
.closing-call i { color: var(--terracotta); }
.script-closing { color: var(--green-primary); }
.closing-card { width: min(100%, 400px); }

/* ---- 17l. Footer ---- */
.site-footer {
    background: var(--green-dark);
    border-top-color: var(--yellow);
    color: var(--white);
    font-size: clamp(1rem, .3vw + .94rem, 1.1rem);
}
.footer-desc, .footer-note { color: var(--white); }
.footer-heading { font-size: clamp(1.1rem, .35vw + 1.02rem, 1.25rem); font-weight: 700; color: var(--yellow); }
.footer-bottom-inner { font-size: 1rem; }
.newsletter input { font-size: 1rem; }
.newsletter button { background: var(--yellow); width: 40px; height: 40px; }

/* ---- 17m. Responsive (repeats of the earlier breakpoints, with v16 sizes) ---- */
@media (max-width: 1240px) {
    .nav-link { font-size: 1.15rem; padding-block: 1rem; }
}

@media (max-width: 1024px) {
    .project-feature { grid-template-columns: minmax(0, 1fr); }
    .project-feature-media img { aspect-ratio: 16 / 9; }
    .city-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .communities-aside { justify-self: start; align-items: flex-start; }
}

@media (max-width: 767px) {
    /* Completed projects: plain stacked cards on phones, no hidden swipe */
    .city-list {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        overflow: visible;
        gap: 1.75rem;
    }
    .city-media { aspect-ratio: 16 / 9; }
    .hero-bg::after { background: linear-gradient(to top, rgba(30, 24, 18, .55) 0%, rgba(30, 24, 18, 0) 40%); }
    .hero { background: linear-gradient(165deg, var(--green-dark) 0%, var(--green-deeper) 100%); }
}

@media (max-width: 640px) {
    .section-title { font-size: clamp(2rem, 8.4vw, 2.6rem); }
    .hero-title { font-size: clamp(2.5rem, 11vw, 3.1rem); }
    .project-facts { grid-template-columns: minmax(0, 1fr); }
    .hero-offer li { flex: 1 1 100%; }
    .btn { padding: .9em 1.5em; }
    .logo-img { height: 50px; }
    .site-header.is-scrolled .logo-img { height: 46px; }
    .header-cta { padding: .7em 1.1em; font-size: 1rem; min-height: 48px; }
    .header-cta .arw { display: none; }
    .gallery-tabs { width: 100%; }
    .gallery-tab { flex: 1 1 auto; text-align: center; }
}

@media (max-width: 400px) {
    .header-cta { display: none; }
}

/* ---- 17n. Gallery — centre-focus carousel (v17) ----
   Middle photo large; neighbours peek in at ~25–30% of their width. */
.gallery-panel { overflow: hidden; }

.gallery-track.is-center {
    --w: 62%;
    --gap: clamp(.9rem, 1.6vw, 1.5rem);
    display: flex;
    gap: var(--gap);
    overflow: visible;
    scroll-snap-type: none;
    padding: 0;
    transition: transform .75s var(--ease);
    will-change: transform;
}

.gallery-track.is-center .shot {
    flex: 0 0 var(--w);
    cursor: pointer;
    opacity: .55;
    transform: scale(.88);
    transition: transform .75s var(--ease), opacity .75s var(--ease), box-shadow .45s var(--ease);
}

.gallery-track.is-center .shot img { aspect-ratio: 16 / 9; }

.gallery-track.is-center .shot.is-current {
    opacity: 1;
    transform: none;
    cursor: default;
    box-shadow: var(--shadow-lift);
}

.gallery-track.is-center .shot:hover { transform: scale(.9); }
.gallery-track.is-center .shot.is-current:hover { transform: none; }

@media (max-width: 1024px) {
    .gallery-track.is-center { --w: 72%; }
}

@media (max-width: 640px) {
    .gallery-track.is-center { --w: 74%; }
    .gallery-track.is-center .shot img { aspect-ratio: 4 / 3; }
}

@media (hover: none) {
    .gallery-track.is-center .shot:hover { transform: scale(.88); }
    .gallery-track.is-center .shot.is-current:hover { transform: none; }
}


/* =================================================================
   18. v17 — NO DARK GREEN
   Projects band → Marigold with Charcoal text.
   Family Assurance → Terracotta with white text and Marigold accents.
   Footer → Charcoal Brown.
   ================================================================= */
.eyebrow { color: var(--terracotta); }

/* Projects on Marigold */
.communities { background: linear-gradient(118deg, #E8A33D 0%, #EFB65A 100%); }
.communities .eyebrow-light { color: var(--ink); }
.communities .ink-white { color: var(--ink); }
.communities .ink-yellow { color: var(--terracotta-dark); }
.tabs-on-dark { background: rgba(46, 42, 38, .1); }
.tabs-on-dark .gallery-tab { color: var(--ink); }
.tabs-on-dark .gallery-tab:hover { background: rgba(255, 255, 255, .45); }
.tabs-on-dark .gallery-tab.is-active { background: var(--ink); color: var(--white); }
.project-feature { box-shadow: 0 18px 44px rgba(90, 50, 10, .28); }
.project-status { background: var(--terracotta); color: var(--white); }
.city-media { box-shadow: 0 14px 34px rgba(90, 50, 10, .28); }
.city-name,
.city-meta,
.city-count { color: var(--ink); }
.city-meta i { color: var(--terracotta); }
.city-count strong { color: var(--terracotta-dark); }
.communities .link-arrow { color: var(--ink); }
.communities .link-arrow:hover,
.communities .link-arrow:focus-visible { color: var(--terracotta-dark); }
.communities .project-actions .link-arrow { color: var(--terracotta); }

/* Family Assurance on Terracotta */
.life { background: linear-gradient(118deg, #9C3A20 0%, #7E2E18 100%); }
.life .btn-yellow { --btn-bg: var(--yellow); --btn-fg: var(--ink); }
.life .btn-yellow:hover,
.life .btn-yellow:focus-visible { background: #F2B85A; }

/* Gallery tabs */
.gallery-tab.is-active { background: var(--terracotta); color: var(--white); }

/* Contact script + hero on phones */
.script-closing { color: var(--terracotta-dark); }

/* =================================================================
   19. v18 — Projects: Ongoing slider + Completed cards
   ================================================================= */

/* ---- Ongoing: horizontal slider, one project per slide ---- */
.project-viewport { overflow: hidden; border-radius: var(--radius-lg); }
.project-track {
    display: flex;
    transition: transform .7s var(--ease);
    will-change: transform;
}
.project-track > .project-feature { flex: 0 0 100%; }

.project-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: clamp(1.25rem, 2vw, 1.75rem);
}
.project-nav[hidden] { display: none; }
.project-nav .gnav { background: var(--ink); color: var(--white); box-shadow: none; }
.project-nav .gnav:hover:not(:disabled) { background: var(--terracotta); color: var(--white); }

.project-dots { display: flex; gap: .55rem; }
.project-dots button {
    width: 12px; height: 12px; padding: 0;
    border-radius: 999px;
    background: rgba(46, 42, 38, .3);
    transition: width .35s var(--ease), background-color .3s ease;
}
.project-dots button[aria-current="true"] { width: 34px; background: var(--ink); }

/* ---- Completed: cream cards ---- */
.done-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(1rem, 2vw, 1.75rem);
}

.done-card { display: flex; }

.done-link {
    display: flex;
    flex-direction: column;
    width: 100%;
    background: var(--offwhite);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 14px 34px rgba(90, 50, 10, .22);
    transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}

.done-link:hover,
.done-link:focus-visible { transform: translateY(-6px); box-shadow: 0 22px 46px rgba(90, 50, 10, .32); }

.done-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.done-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.done-link:hover .done-media img { transform: scale(1.06); }

.done-badge {
    position: absolute;
    left: .85rem;
    top: .85rem;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .35em .85em;
    border-radius: 999px;
    background: var(--offwhite);
    color: var(--ink);
    font-size: .95rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(46, 42, 38, .18);
}
.done-badge i { color: var(--terracotta); }

.done-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1.15rem 1.25rem 1.25rem;
    border-top: 5px solid var(--yellow);
}

.done-name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: clamp(1.3rem, .9vw + 1rem, 1.55rem);
    line-height: 1.2;
    color: var(--ink);
    margin-bottom: .35rem;
}

.done-loc {
    display: flex;
    align-items: center;
    gap: .45rem;
    font-size: clamp(1rem, .25vw + .95rem, 1.08rem);
    font-weight: 600;
    color: var(--text-soft);
    margin-bottom: 1rem;
}
.done-loc i { color: var(--terracotta); }

.done-foot {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding-top: .9rem;
    border-top: 1px solid rgba(46, 42, 38, .14);
}

.done-count { font-size: 1rem; font-weight: 600; color: var(--text-soft); line-height: 1.3; }
.done-count strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.7rem;
    font-weight: 700;
    line-height: 1.05;
    color: var(--terracotta);
}

.done-go {
    flex: none;
    display: grid;
    place-items: center;
    width: 48px;
    aspect-ratio: 1;
    border-radius: 50%;
    background: var(--terracotta);
    color: var(--white);
    transition: background-color .3s ease, transform .3s var(--ease);
}
.done-go svg { width: 20px; height: 20px; }
.done-link:hover .done-go { background: var(--terracotta-dark); transform: translateX(3px); }

@media (max-width: 1100px) {
    .done-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
    .done-grid { grid-template-columns: minmax(0, 1fr); }
    .done-media { aspect-ratio: 16 / 10; }
}

@media (hover: none), (prefers-reduced-motion: reduce) {
    .done-link:hover, .done-link:hover .done-media img, .done-link:hover .done-go { transform: none; }
}


/* =================================================================
   21. v21 — ONE SECTION = ONE SCREEN (desktop & laptop)
   --fold is the visible height under the sticky header (set by JS from
   the real header height). Hero fills exactly one screen; Projects, Why,
   Gallery and Family Assurance are at least one screen tall with their
   content centred, and their photos are sized from the screen height so
   nothing spills past the fold. Services keeps its natural height (it
   scrolls with its list). Phones keep natural heights, except the hero.
   ================================================================= */
:root { --hdr: 92px; --fold: calc(100svh - var(--hdr)); }

@media (min-width: 1025px) and (min-height: 460px) {

    section[id] { scroll-margin-top: var(--hdr); }

    /* ---- Hero: exactly one screen ---- */
    .hero {
        height: var(--fold);
        min-height: 560px;
        max-height: 1000px;
        padding-block: clamp(1.5rem, 4vh, 3rem);
    }

    /* ---- The fold sections ---- */
    .communities,
    .about,
    .gallery,
    .life {
        min-height: var(--fold);
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding-block: clamp(1.5rem, 5vh, 3.5rem);
    }

    .communities > .container,
    .about > .container,
    .gallery > .container,
    .life > .container { width: 100%; }

    .section-title { font-size: clamp(2rem, 4.6vh, 3.25rem); margin-bottom: .6rem; }
    .eyebrow { margin-bottom: .45rem; }

    /* Projects */
    .communities-head { margin-bottom: clamp(1rem, 2.6vh, 1.75rem); }
    /* photo fills the card; the text column decides the height */
    .project-feature-media { min-height: 0; }
    .project-feature-media img { position: absolute; inset: 0; aspect-ratio: auto; height: 100%; }
    .project-feature-body { min-height: clamp(380px, calc(var(--fold) - 260px), 560px); }
    .project-feature-body { padding: clamp(1.25rem, 3.2vh, 2.5rem) clamp(1.5rem, 2.6vw, 2.5rem); }
    .project-name { font-size: clamp(1.7rem, 3.8vh, 2.5rem); }
    .project-loc { margin-bottom: clamp(.5rem, 1.4vh, .9rem); }
    .project-desc { margin-bottom: clamp(.6rem, 1.8vh, 1.25rem); }
    .project-facts { padding-block: clamp(.6rem, 1.8vh, 1.1rem); margin-bottom: clamp(.8rem, 2.4vh, 1.6rem); gap: clamp(.5rem, 1.4vh, .9rem) 1.5rem; }
    .done-media { aspect-ratio: auto; height: clamp(150px, 26vh, 260px); }
    .done-body { padding: clamp(.8rem, 2vh, 1.15rem) 1.25rem clamp(.9rem, 2.2vh, 1.25rem); }
    .done-loc { margin-bottom: clamp(.5rem, 1.6vh, 1rem); }

    /* Why CovaiCare */
    .media-about-main { aspect-ratio: auto; height: clamp(240px, 42vh, 470px); }
    .about-copy .lede { margin-bottom: clamp(.8rem, 2.2vh, 1.5rem); }
    .stat-band { margin-top: clamp(1rem, 3.5vh, 2.5rem); padding-top: clamp(.8rem, 2.2vh, 1.6rem); }
    .stat-figure { font-size: clamp(2rem, 5.2vh, 3.5rem); }

    /* Gallery: centre photo sized from the screen height */
    .gallery-head { margin-bottom: clamp(.9rem, 2.4vh, 2rem); }
    .gallery-track.is-center .shot img { aspect-ratio: auto; height: clamp(260px, calc(var(--fold) - 300px), 560px); }

    /* Family Assurance */
    .media-life-main { aspect-ratio: auto; height: clamp(260px, 52vh, 520px); }
    .life-copy .lede { margin-bottom: clamp(.8rem, 2vh, 1.4rem); }
    .assurance-list { gap: clamp(.3rem, 1vh, .6rem); margin-bottom: clamp(1rem, 2.6vh, 1.9rem); }
}

/* Short laptop screens (≈768px tall): tighten a little more */
@media (min-width: 1025px) and (max-height: 820px) {
    .hero-title { font-size: clamp(2.6rem, 8vh, 4.2rem); }
    .hero-lede { margin-bottom: 1rem; }
    .hero-badge { margin-bottom: .7rem; }
    .hero-offer { margin-bottom: 1.1rem; }
    .hero-offer li { padding: .6rem 1.1rem; }
    .project-desc { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
    .btn { min-height: 52px; padding: .8em 1.6em; }
}

/* Phones & tablets: hero fills the screen (photo on top, copy below) */
@media (max-width: 767px) {
    .hero-bg { height: clamp(220px, 34svh, 360px); }
    .hero-inner { padding-block: 1.25rem 1.5rem; }
    .hero-badge { font-size: .95rem; margin-bottom: .7rem; }
    .hero-title { font-size: clamp(2.2rem, 10vw, 2.8rem); margin-bottom: .5rem; }
    .hero-lede { margin-bottom: 1rem; }
    .hero-offer { gap: .6rem; margin-bottom: 1.1rem; flex-wrap: nowrap; }
    .hero-offer li { flex: 1 1 0; padding: .6rem .8rem; }
    .hero-offer-label { font-size: .88rem; }
    .hero-offer-value { font-size: 1.35rem; }
}

/* label on the Terracotta Family Assurance band must stay Marigold */
.life .eyebrow-light { color: var(--yellow); }


/* =================================================================
   22. v22 — SMOOTH SCROLL + MOTION
   Calm, slow easings suited to the audience; everything switches off
   under prefers-reduced-motion (section 16 + the guards below).
   ================================================================= */

/* Lenis (smooth scroll) support */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

/* Scroll progress bar under the header */
.scroll-progress {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 120;
    height: 4px;
    pointer-events: none;
}
.scroll-progress span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--yellow), var(--terracotta));
    transform: scaleX(0);
    transform-origin: left;
}

/* Softer, longer reveal curve */
:root { --dur: .95s; --ease: cubic-bezier(.19, 1, .22, 1); }
.reveal { transform: translateY(34px); }
.reveal.from-left  { transform: translateX(-40px); }
.reveal.from-right { transform: translateX(40px); }
.reveal.soft       { transform: translateY(24px) scale(.965); }
/* the arrived state must out-rank the start offsets above */
.reveal.is-visible,
.reveal.is-visible.from-left,
.reveal.is-visible.from-right,
.reveal.is-visible.soft { opacity: 1; transform: none; }

/* Headings: each line rises in, one after the other */
.section-title.reveal { opacity: 1; transform: none; }
.section-title.reveal > span {
    display: block;
    opacity: 0;
    transform: translateY(.6em);
    transition: opacity .9s var(--ease), transform .9s var(--ease);
    transition-delay: calc(var(--d, 0ms) + 60ms);
}
.section-title.reveal > span + span { transition-delay: calc(var(--d, 0ms) + 220ms); }
.section-title.reveal.is-visible > span { opacity: 1; transform: none; }

/* Eyebrow: a short Marigold rule draws in before the label */
.eyebrow.reveal { display: flex; align-items: center; gap: .7rem; }
.eyebrow.reveal::before {
    content: "";
    flex: none;
    width: 0;
    height: 3px;
    border-radius: 3px;
    background: var(--yellow);
    transition: width .9s var(--ease) .15s;
}
.eyebrow.reveal.is-visible::before { width: 34px; }
.services-head .eyebrow.reveal { justify-content: center; }

/* Photos settle from a slight zoom as they come in, then drift (parallax) */
[data-parallax] { overflow: hidden; }
[data-parallax] img {
    transform: translateY(var(--py, 0px)) scale(1.12);
    transition: transform 1.6s var(--ease);
    will-change: transform;
}
.reveal.is-visible[data-parallax] img,
.is-visible [data-parallax] img,
[data-parallax].is-visible img { transform: translateY(var(--py, 0px)) scale(1.08); }
/* once settled, the parallax offset follows scroll without lag */
.is-visible[data-parallax] img,
.is-visible [data-parallax] img { transition: transform .25s linear; }

/* Hero: headline words and offer boxes arrive in sequence on load */
.hero-inner { will-change: transform, opacity; }
.hero-bg { will-change: transform; }
.hero-offer li { transition: transform .35s var(--ease), background-color .35s ease; }
.hero-offer li:hover { transform: translateY(-4px); background: rgba(250, 247, 242, .22); }

/* Buttons: a soft light sweep on hover */
.btn { position: relative; overflow: hidden; isolation: isolate; }
.btn::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(110deg, transparent 20%, rgba(255, 255, 255, .28) 50%, transparent 80%);
    transform: translateX(-120%);
    transition: transform .8s var(--ease);
}
.btn:hover::after,
.btn:focus-visible::after { transform: translateX(120%); }

/* Tabs & panels: cross-fade when switching */
.gallery-tab { transition: background-color .4s var(--ease), color .4s var(--ease), transform .3s var(--ease); }
.gallery-tab:active { transform: scale(.96); }
.project-panel:not([hidden]),
.gallery-panel:not([hidden]) { animation: panelIn .7s var(--ease) both; }
@keyframes panelIn {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: none; }
}

/* Services: icon chip pops in after its card */
.service.reveal .service-icon { transform: translate(-50%, 50%) scale(.4); opacity: 0; transition: transform .7s cubic-bezier(.34, 1.56, .64, 1) .35s, opacity .4s ease .35s, background-color .35s ease; }
.service.reveal.is-visible .service-icon { transform: translate(-50%, 50%) scale(1); opacity: 1; }
.service.reveal.is-visible:hover .service-icon { transform: translate(-50%, 44%) scale(1.06); }

/* Stats: Marigold rule grows across when the band appears */
.stat-band { position: relative; border-top-color: transparent; }
.stat-band::before {
    content: "";
    position: absolute;
    left: 0; top: -3px;
    height: 3px;
    width: 100%;
    background: var(--yellow);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 1.4s var(--ease);
}
.stat-band:has(.is-visible)::before { transform: scaleX(1); }

/* Gallery: slightly longer, softer glide */
.gallery-track.is-center { transition: transform .95s var(--ease); }
.gallery-track.is-center .shot { transition: transform .95s var(--ease), opacity .95s var(--ease), box-shadow .5s var(--ease); }

@media (prefers-reduced-motion: reduce) {
    .scroll-progress { display: none; }
    .section-title.reveal > span,
    .service.reveal .service-icon { opacity: 1; transform: none; }
    .service.reveal .service-icon { transform: translate(-50%, 50%); }
    .eyebrow.reveal::before { width: 34px; }
    [data-parallax] img { transform: none; }
    .stat-band::before { transform: none; }
    .project-panel, .gallery-panel { animation: none !important; }
    .btn::after { display: none; }
}


/* =================================================================
   23. v23 — FIT-TO-SCREEN WITHOUT STRETCHED PHOTOS
   Photos no longer take a fixed height from the screen (which turned
   them into wide, over-zoomed strips on big monitors). Each keeps a
   natural photo shape (16:10 / 3:2) and its WIDTH is worked out from
   the height available, so it only ever scales down, never crops hard.
   ================================================================= */

/* gentler zoom so photos are not upscaled */
[data-parallax] img { transform: translateY(var(--py, 0px)) scale(1.06); }
.reveal.is-visible[data-parallax] img,
.is-visible [data-parallax] img,
[data-parallax].is-visible img { transform: translateY(var(--py, 0px)) scale(1.04); }

/* hero banner: no Ken Burns zoom on top of the cover-scale */
.hero-slide img { transform: scale(1.02); object-position: center 38%; }
.hero-slide.is-active img { transform: scale(1); }

/* ---- Gallery stage: arrows sit ON the centre photo ---- */
.gallery-stage {
    position: relative;
    --gw: 62%;
}
.gallery-track.is-center { --w: var(--gw); }
.gallery-track.is-center .shot img { aspect-ratio: 16 / 10; height: auto; }

.gallery-arrows {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-inline: calc((100% - var(--gw)) / 2 + clamp(.75rem, 1.4vw, 1.25rem));
    pointer-events: none;
}
.gallery-arrows .gnav {
    pointer-events: auto;
    width: clamp(48px, 3.6vw, 58px);
    background: rgba(250, 247, 242, .92);
    color: var(--ink);
    box-shadow: 0 6px 20px rgba(30, 24, 18, .28);
    backdrop-filter: blur(4px);
}
.gallery-arrows .gnav svg { width: 22px; height: 22px; }
.gallery-arrows .gnav:hover:not(:disabled) { background: var(--terracotta); color: var(--white); transform: scale(1.06); }

/* the old header row no longer carries arrows */
.gallery-controls { gap: 0; }

@media (max-width: 1024px) { .gallery-stage { --gw: 72%; } }
@media (max-width: 640px)  {
    .gallery-stage { --gw: 80%; }
    .gallery-track.is-center .shot img { aspect-ratio: 4 / 3; }
    .gallery-arrows { padding-inline: calc((100% - var(--gw)) / 2 + .5rem); }
    .gallery-arrows .gnav { width: 44px; }
}

/* ---- Completed projects: swipe slider on phones ---- */
.done-nav { display: none; }

@media (max-width: 767px) {
    .done-grid {
        --gap: 1rem;
        display: flex;
        gap: var(--gap);
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        scrollbar-width: none;
        padding: .25rem .25rem 1.25rem;
        margin: -.25rem -.25rem -.5rem;
    }
    .done-grid::-webkit-scrollbar { display: none; }
    .done-card { flex: 0 0 84%; scroll-snap-align: start; }
    .done-media { aspect-ratio: 3 / 2; height: auto; }
    .done-nav { display: flex; justify-content: flex-end; gap: .6rem; margin-top: .5rem; }
    .done-nav .gnav { background: var(--ink); color: var(--white); box-shadow: none; width: 48px; }
    .done-nav .gnav:hover:not(:disabled) { background: var(--terracotta); }
}

/* ---- Desktop / laptop: one screen per section ---- */
@media (min-width: 1025px) and (min-height: 460px) {

    /* titles on ONE line to give the photos more room */
    .section-title > span,
    .section-title.reveal > span { display: inline-block; }
    .section-title > span:first-child { margin-right: .25em; }
    .communities-head,
    .gallery-head { grid-template-columns: minmax(0, 1fr) auto; }
    .section-title { font-size: clamp(2rem, 4.2vh, 3rem); }

    /* Why CovaiCare photo: 16:10, width from the available height */
    .about-media { justify-items: end; }
    .media-about-main {
        --mh: clamp(240px, calc(var(--fold) - 300px), 560px);
        aspect-ratio: 16 / 10;
        height: auto;
        width: min(100%, calc(var(--mh) * 1.6));
    }

    /* Family Assurance photo: same rule */
    .life-media { display: grid; justify-items: end; }
    .media-life-main {
        --mh: clamp(260px, calc(var(--fold) - 180px), 620px);
        aspect-ratio: 16 / 10;
        height: auto;
        width: min(100%, calc(var(--mh) * 1.6));
    }

    /* Gallery centre photo: 16:10, width from the available height */
    .gallery-stage {
        --gh: clamp(260px, calc(var(--fold) - 250px), 620px);
        --gw: min(64%, calc(var(--gh) * 1.6));
    }
    .gallery-track.is-center .shot img { aspect-ratio: 16 / 10; height: auto; }

    /* Completed cards: 3:2 photos */
    .done-media { aspect-ratio: 3 / 2; height: auto; }
    .done-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (min-width: 1025px) and (max-height: 820px) {
    .done-media { aspect-ratio: 16 / 9; }
}

@media (min-width: 1600px) and (min-height: 460px) {
    .gallery-stage { --gw: min(70%, calc(var(--gh) * 1.6)); }
}
/* eyebrow rule on the Marigold projects band */
.communities .eyebrow.reveal::before { background: var(--ink); }


/* =================================================================
   24. v24 — Gallery arrows: bold chevrons on the side photos
   Each chevron sits in the middle of the faded photo peeking in on its
   side (that strip is (100% - --gw) / 2 wide, so its centre is a quarter
   of the leftover space in from the edge).
   ================================================================= */
.gallery-arrows { padding: 0; display: block; }

.gallery-arrows .gnav {
    position: absolute;
    top: 50%;
    width: auto;
    height: auto;
    aspect-ratio: auto;
    padding: .6rem;
    border-radius: 12px;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    color: var(--ink);
    filter: drop-shadow(0 0 6px rgba(250, 247, 242, .95)) drop-shadow(0 2px 10px rgba(250, 247, 242, .8));
    transform: translate(-50%, -50%);
    transition: transform .35s var(--ease), color .3s ease;
}

.gallery-arrows .gnav-prev { left: calc((100% - var(--gw)) / 4); }
.gallery-arrows .gnav-next { left: calc(100% - (100% - var(--gw)) / 4); }

.gallery-arrows .gnav svg { width: clamp(22px, 1.8vw, 30px); height: auto; aspect-ratio: 24 / 40; }

.gallery-arrows .gnav:hover:not(:disabled),
.gallery-arrows .gnav:focus-visible {
    background: transparent;
    color: var(--terracotta);
    transform: translate(-50%, -50%) scale(1.15);
}
.gallery-arrows .gnav-prev:hover:not(:disabled) { transform: translate(-58%, -50%) scale(1.15); }
.gallery-arrows .gnav-next:hover:not(:disabled) { transform: translate(-42%, -50%) scale(1.15); }

@media (max-width: 640px) {
    .gallery-arrows .gnav { padding: .35rem; }
    .gallery-arrows .gnav svg { width: 18px; }
}

/* bolder chevrons; the right one is anchored from the right edge so it
   never gets squeezed near the edge of the stage */
.gallery-arrows .gnav { width: max-content; }
.gallery-arrows .gnav svg { width: clamp(26px, 2.3vw, 40px); }
.gallery-arrows .gnav-next { left: auto; right: calc((100% - var(--gw)) / 4); transform: translate(50%, -50%); }
.gallery-arrows .gnav-next:hover:not(:disabled),
.gallery-arrows .gnav-next:focus-visible { transform: translate(58%, -50%) scale(1.15); }
@media (max-width: 640px) {
    .gallery-arrows .gnav svg { width: 20px; }
}


/* =================================================================
   25. v25 — SERVICES ALSO FITS ONE SCREEN (desktop / laptop)
   Left: label, title, photo, button. Right: 3 × 2 service cards whose
   photo height comes from the screen height, so all six fit.
   ================================================================= */
@media (min-width: 1025px) and (min-height: 460px) {
    .services {
        min-height: var(--fold);
        display: flex;
        align-items: center;
        padding-block: clamp(1.25rem, 3.5vh, 2.5rem);
    }
    .services > .container { width: 100%; }

    .services-grid {
        grid-template-columns: minmax(0, .62fr) minmax(0, 1.6fr);
        gap: clamp(1.5rem, 3vw, 3.5rem);
        align-items: center;
    }
    .services-copy { position: static; }
    .services-copy .section-title > span { display: block; }
    .services-feature { margin-bottom: clamp(.9rem, 2.4vh, 1.5rem); }
    .services-feature img { aspect-ratio: auto; height: clamp(170px, calc(var(--fold) - 380px), 440px); }
    .services-feature figcaption { font-size: .98rem; padding: .6rem .85rem; }

    .service-list {
        --sh: clamp(100px, calc((var(--fold) - 80px) / 2 - 150px), 240px);
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: clamp(.9rem, 2.2vh, 1.6rem) clamp(1rem, 1.6vw, 1.75rem);
    }
    .service-media { margin-bottom: 1.9rem; }
    .service-media img { aspect-ratio: auto; height: var(--sh); }
    .service-icon { width: 54px; font-size: 1.2rem; border-width: 4px; }
    .service h3 { font-size: clamp(1.12rem, 2.6vh, 1.45rem); margin-bottom: .2rem; }
    .service p {
        font-size: clamp(.98rem, 2vh, 1.08rem);
        line-height: 1.45;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
}

/* Desktop paging needs a constant header height: no shrink on scroll */
@media (min-width: 1025px) and (min-height: 460px) {
    .site-header.is-scrolled { padding-block: .9rem; }
    .site-header.is-scrolled .logo-img { height: clamp(54px, 4.4vw, 72px); }
}


/* =================================================================
   29. v29 — TWO-COLOUR BRAND (colour only, layout = v25)
   Brand colours:  Marigold  #E8A33D   ·   Terracotta  #9C3A20
   Neutrals only:  White #FFFFFF · Cream #FAF7F2 (backgrounds)
                   Charcoal #2E2A26 (all text)
   Removed: Warm Beige, the extra beige tints, the second text brown,
   the dark-terracotta shade (kept only as a button-hover), the
   near-black footer and both section gradients.
   ================================================================= */
:root {
    --yellow:        #E8A33D;
    --terracotta:    #9C3A20;
    --terracotta-dark: #86301A;      /* hover state only */

    --offwhite:      #FAF7F2;        /* cream */
    --cream:         #FAF7F2;        /* was Warm Beige → now the same cream */
    --white:         #FFFFFF;

    --ink:           #2E2A26;
    --heading:       #2E2A26;
    --text-dark:     #2E2A26;
    --text-soft:     #2E2A26;        /* one text colour everywhere */

    /* legacy tokens folded into the two brand colours / neutrals */
    --green-primary: #9C3A20;
    --green-bright:  #9C3A20;
    --green-dark:    #9C3A20;
    --green-deeper:  #9C3A20;
    --green-ink:     #9C3A20;
    --green-light:   #FAF7F2;
    --green-mist:    #FAF7F2;
    --gold:          #9C3A20;
    --yellow-deep:   #E8A33D;
    --yellow-mist:   #FAF7F2;
    --yellow-tint:   #FAF7F2;
}

/* Section backgrounds: white / cream alternate, one Marigold band, one Terracotta band */
.services              { background: var(--white); }
.communities           { background: var(--yellow); }            /* flat, no gradient */
.about                 { background: var(--cream); }
.gallery               { background: var(--white); }
.life                  { background: var(--terracotta); }        /* flat, no gradient */
.closing               { background: var(--cream); }
.media, .shot          { background: var(--cream); }

/* Accent lines & headings */
.title-mark,
.communities .ink-yellow,
.community .title-mark  { color: var(--terracotta); }
.script-closing          { color: var(--terracotta); }
.city-count strong,
.done-count strong       { color: var(--terracotta); }

/* Tabs: selected tab is always Terracotta */
.gallery-tab.is-active,
.tabs-on-dark .gallery-tab.is-active { background: var(--terracotta); color: var(--white); }
.tabs-on-dark { background: rgba(255, 255, 255, .35); }
.tabs-on-dark .gallery-tab { color: var(--ink); }

/* Slider controls */
.gallery-arrows .gnav { color: var(--terracotta); }
.gallery-arrows .gnav:hover:not(:disabled),
.gallery-arrows .gnav:focus-visible { color: var(--terracotta); }
.project-nav .gnav,
.done-nav .gnav { background: var(--terracotta); color: var(--white); }
.project-nav .gnav:hover:not(:disabled),
.done-nav .gnav:hover:not(:disabled) { background: var(--terracotta-dark); }
.project-dots button { background: rgba(156, 58, 32, .3); }
.project-dots button[aria-current="true"] { background: var(--terracotta); }
.gnav:hover:not(:disabled) { background: var(--terracotta); color: var(--white); }

/* Buttons: Terracotta on light, Marigold on Terracotta */
.btn-ink { --btn-bg: var(--terracotta); --btn-fg: var(--white); }
.btn-ink:hover, .btn-ink:focus-visible { background: var(--terracotta-dark); }

/* Footer: Terracotta band with Marigold headings (no near-black) */
.site-footer { background: var(--terracotta); border-top-color: var(--yellow); }
.footer-bottom { background: var(--terracotta); border-top-color: rgba(255, 255, 255, .25); }

/* Phones: area behind the hero copy */
@media (max-width: 767px) {
    .hero { background: var(--terracotta); }
}

/* Thin rules / borders in brand tint instead of extra greys */
.project-facts,
.soon-points { border-block-color: rgba(232, 163, 61, .45); }
.done-foot   { border-top-color: rgba(232, 163, 61, .45); }
.stat + .stat { border-left-color: rgba(156, 58, 32, .2); }
.service-icon { border-color: var(--white); }


/* =================================================================
   30. v30 — YELLOW ONLY (colour only, layout = v25)
   Brand colour:   Yellow / Marigold #E8A33D  (no Terracotta anywhere)
   Backgrounds:    Light pink-beige #F1E8DC · Cream #FAF7F2 · White
   Text:           Charcoal #2E2A26
   Yellow text is hard to read on light backgrounds, so on light
   sections Yellow marks things (highlight strokes, rules, icon chips,
   buttons) and the words themselves stay Charcoal.
   ================================================================= */
:root {
    --yellow:          #E8A33D;
    --yellow-hover:    #F0B254;
    --blush:           #F1E8DC;        /* the earlier light pink-beige */
    --terracotta:      #E8A33D;        /* any leftover terracotta use → yellow */
    --terracotta-dark: #F0B254;
    --gold:            #2E2A26;
    --green-primary:   #2E2A26;
    --green-ink:       #2E2A26;
}

/* ---- Section backgrounds ---- */
.services    { background: var(--blush); }
.communities { background: var(--yellow); }
.about       { background: var(--cream); }
.gallery     { background: var(--blush); }
.life        { background: var(--blush); }
.closing     { background: var(--blush); }
.media, .shot, .city-media { background: var(--blush); }

/* ---- Buttons: Yellow with Charcoal text ---- */
.btn-yellow,
.life .btn-yellow { --btn-bg: var(--yellow); --btn-fg: var(--ink); }
.btn-yellow:hover, .btn-yellow:focus-visible,
.life .btn-yellow:hover, .life .btn-yellow:focus-visible { background: var(--yellow-hover); }
/* on the Yellow Projects band the buttons turn white so they still stand out */
.communities .btn-yellow { --btn-bg: var(--white); --btn-fg: var(--ink); }
.communities .btn-yellow:hover { background: var(--cream); }
.btn-ink { --btn-bg: var(--ink); --btn-fg: var(--yellow); }
.btn-ink:hover, .btn-ink:focus-visible { background: #000; }

/* ---- Headings: accent words in Charcoal with a Yellow highlight stroke ---- */
.title-mark,
.communities .ink-yellow,
.community .title-mark {
    color: var(--ink);
    background: linear-gradient(transparent 60%, rgba(232, 163, 61, .55) 60%, rgba(232, 163, 61, .55) 92%, transparent 92%);
    padding-inline: .08em;
}
.communities .ink-yellow { background: linear-gradient(transparent 60%, rgba(255, 255, 255, .6) 60%, rgba(255, 255, 255, .6) 92%, transparent 92%); }
.life .ink-white { color: var(--ink); }
.life .ink-yellow {
    color: var(--ink);
    background: linear-gradient(transparent 60%, rgba(232, 163, 61, .55) 60%, rgba(232, 163, 61, .55) 92%, transparent 92%);
    padding-inline: .08em;
}

/* ---- Labels & links ---- */
.eyebrow,
.eyebrow-light,
.life .eyebrow-light,
.communities .eyebrow-light { color: var(--ink); }
.eyebrow.reveal::before { background: var(--yellow); }
.communities .eyebrow.reveal::before { background: var(--ink); }
.closing-eyebrow { color: var(--ink); }
.link-arrow-dark,
.project-actions .link-arrow,
.communities .project-actions .link-arrow { color: var(--ink); text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 3px; text-underline-offset: 5px; }
.link-arrow-dark:hover,
.project-actions .link-arrow:hover { color: var(--ink); text-decoration-color: var(--ink); }
.nav-link::after { background: var(--yellow); }
.project-loc, .done-loc, .city-meta { color: var(--ink); }
.project-loc i, .done-loc i, .city-meta i { color: var(--yellow); }

/* ---- Family Assurance on light pink ---- */
.life .lede-light,
.life .lede,
.assurance-list li { color: var(--ink); }
.assurance-list i { background: var(--yellow); color: var(--ink); }

/* ---- Numbers ---- */
.stat-figure sup,
.city-count strong,
.done-count strong,
.hero-price-value sup { color: var(--ink); }
.stat + .stat { border-left-color: rgba(46, 42, 38, .15); }

/* ---- Tabs ---- */
.gallery-tab.is-active { background: var(--yellow); color: var(--ink); }
.gallery-tab:hover { background: rgba(232, 163, 61, .2); }
.tabs-on-dark { background: rgba(255, 255, 255, .45); }
.tabs-on-dark .gallery-tab.is-active { background: var(--white); color: var(--ink); }
.tabs-on-dark .gallery-tab:hover { background: rgba(255, 255, 255, .55); }

/* ---- Badges, icons, small buttons ---- */
.project-status { background: var(--yellow); color: var(--ink); }
.done-badge i { color: var(--ink); }
.done-go,
.done-link:hover .done-go { background: var(--yellow); color: var(--ink); }
.service-icon,
.service:hover .service-icon { background: var(--yellow); color: var(--ink); border-color: var(--white); }
.care-icon { background: rgba(232, 163, 61, .25); color: var(--ink); }
.closing-call i { color: var(--ink); }
.script-closing { color: var(--ink); }

/* ---- Slider controls ---- */
.gallery-arrows .gnav,
.gallery-arrows .gnav:hover:not(:disabled),
.gallery-arrows .gnav:focus-visible { color: var(--ink); }
.gnav:hover:not(:disabled) { background: var(--yellow); color: var(--ink); }
.project-nav .gnav,
.done-nav .gnav { background: var(--ink); color: var(--yellow); }
.project-nav .gnav:hover:not(:disabled),
.done-nav .gnav:hover:not(:disabled) { background: var(--yellow); color: var(--ink); }
.project-dots button { background: rgba(46, 42, 38, .25); }
.project-dots button[aria-current="true"] { background: var(--ink); }

/* ---- Scroll progress: plain Yellow ---- */
.scroll-progress span { background: var(--yellow); }

/* ---- Rules / borders ---- */
.project-facts,
.soon-points { border-block-color: rgba(232, 163, 61, .5); }
.done-foot { border-top-color: rgba(232, 163, 61, .5); }

/* ---- Footer: back to Charcoal with Yellow headings (no Terracotta) ---- */
.site-footer { background: var(--ink); border-top-color: var(--yellow); }
.footer-bottom { background: #24211E; border-top-color: rgba(255, 255, 255, .15); }

/* ---- Phones: area behind the hero copy ---- */
@media (max-width: 767px) {
    .hero { background: var(--ink); }
}

/* leftover tokens: nothing may resolve to Terracotta */
:root {
    --green-bright:  #2E2A26;
    --green-dark:    #2E2A26;
    --green-deeper:  #24211E;
    --green-light:   #FAF7F2;
    --green-mist:    #F1E8DC;
}

/* highlight stroke hugs the words even when the line is a block */
.section-title .title-mark,
.section-title .ink-yellow { width: fit-content; }


/* =================================================================
   31. v31 — "CALM WELLNESS" (client palette) · colour only, layout = v25
   Yellow  : Warm Mustard     #E2B64A   highlights, badges, one band
   Colour 2: Deep Sage Green  #526C57   buttons, accents, icons, one band
   Colour 3: Sage Cream       #EEF0E6   soft section backgrounds
   Neutral : Soft Ivory #F8F5ED (page) · Deep Olive Charcoal #30352F (text)
   ================================================================= */
:root {
    --yellow:        #E2B64A;
    --yellow-hover:  #EAC468;
    --sage:          #526C57;
    --sage-hover:    #445A49;       /* hover state only */
    --sage-cream:    #EEF0E6;
    --ivory:         #F8F5ED;

    --ink:           #30352F;
    --heading:       #30352F;
    --text-dark:     #30352F;
    --text-soft:     #30352F;

    --offwhite:      #F8F5ED;
    --cream:         #F8F5ED;
    --white:         #FFFFFF;
    --blush:         #EEF0E6;

    --terracotta:      #526C57;
    --terracotta-dark: #445A49;
    --green-primary:   #526C57;
    --green-ink:       #526C57;
    --gold:            #526C57;
    --green-bright:    #30352F;
    --green-dark:      #30352F;
    --green-deeper:    #272B26;
    --green-light:     #F8F5ED;
    --green-mist:      #EEF0E6;

    --shadow-soft:  0 10px 30px rgba(48, 53, 47, .10);
    --shadow-lift:  0 18px 44px rgba(48, 53, 47, .18);
    --shadow-image: 0 12px 34px rgba(48, 53, 47, .16);
}

body { background: var(--ivory); color: var(--ink); }

/* ---- Section backgrounds ---- */
.services    { background: var(--sage-cream); }
.communities { background: var(--yellow); }
.about       { background: var(--ivory); }
.gallery     { background: var(--sage-cream); }
.life        { background: var(--sage); }
.closing     { background: var(--sage-cream); }
.media, .shot, .city-media { background: var(--sage-cream); }
.project-feature, .done-link, .done-badge { background: var(--ivory); }

/* ---- Buttons: Deep Sage with white text ---- */
.btn-yellow,
.communities .btn-yellow { --btn-bg: var(--sage); --btn-fg: var(--white); }
.btn-yellow:hover, .btn-yellow:focus-visible,
.communities .btn-yellow:hover { background: var(--sage-hover); }
/* on the Deep Sage band the button flips to Mustard */
.life .btn-yellow { --btn-bg: var(--yellow); --btn-fg: var(--ink); }
.life .btn-yellow:hover, .life .btn-yellow:focus-visible { background: var(--yellow-hover); }
.btn-ink { --btn-bg: var(--sage); --btn-fg: var(--white); }
.btn-ink:hover, .btn-ink:focus-visible { background: var(--sage-hover); }

/* ---- Headings: accent words in Deep Sage (no highlight stroke) ---- */
.title-mark,
.community .title-mark { color: var(--sage); background: none; padding-inline: 0; }
/* on the Mustard band the accent stays Charcoal with a soft white stroke */
.communities .ink-yellow {
    color: var(--ink);
    background: linear-gradient(transparent 60%, rgba(255, 255, 255, .6) 60%, rgba(255, 255, 255, .6) 92%, transparent 92%);
    padding-inline: .08em;
}
.communities .ink-white { color: var(--ink); }

/* ---- Labels & links ---- */
.eyebrow { color: var(--sage); }
.eyebrow.reveal::before { background: var(--yellow); }
.communities .eyebrow,
.communities .eyebrow-light { color: var(--ink); }
.communities .eyebrow.reveal::before { background: var(--ink); }
.closing-eyebrow { color: var(--sage); }
.link-arrow-dark,
.project-actions .link-arrow,
.communities .project-actions .link-arrow { color: var(--sage); text-decoration-color: var(--yellow); }
.link-arrow-dark:hover,
.project-actions .link-arrow:hover { color: var(--sage-hover); text-decoration-color: var(--sage); }
.nav-link::after { background: var(--yellow); }
.project-loc, .done-loc, .city-meta { color: var(--ink); }
.project-loc i, .done-loc i, .city-meta i { color: var(--sage); }

/* ---- Family Assurance on Deep Sage: white text, Mustard accents ---- */
.life .eyebrow,
.life .eyebrow-light { color: var(--yellow); }
.life .eyebrow.reveal::before { background: var(--yellow); }
.life .ink-white { color: var(--white); }
.life .ink-yellow { color: var(--yellow); background: none; padding-inline: 0; }
.life .lede, .life .lede-light, .assurance-list li { color: var(--white); }
.assurance-list i { background: var(--yellow); color: var(--ink); }

/* ---- Numbers ---- */
.stat-figure { color: var(--ink); }
.stat-figure sup { color: var(--sage); }
.stat-band { border-top-color: var(--yellow); }
.stat-band::before { background: var(--yellow); }
.stat + .stat { border-left-color: rgba(82, 108, 87, .22); }
.city-count strong, .done-count strong { color: var(--sage); }

/* ---- Tabs: selected = Deep Sage ---- */
.gallery-tab.is-active,
.tabs-on-dark .gallery-tab.is-active { background: var(--sage); color: var(--white); }
.gallery-tab:hover { background: rgba(82, 108, 87, .12); }
.tabs-on-dark { background: rgba(255, 255, 255, .45); }
.tabs-on-dark .gallery-tab { color: var(--ink); }
.tabs-on-dark .gallery-tab:hover { background: rgba(255, 255, 255, .6); }

/* ---- Badges (Mustard) & icons (Deep Sage) ---- */
.hero-badge, .project-status { background: var(--yellow); color: var(--ink); }
.done-badge i { color: var(--sage); }
.done-go, .done-link:hover .done-go { background: var(--sage); color: var(--white); }
.service-icon,
.service:hover .service-icon { background: var(--sage); color: var(--white); border-color: var(--sage-cream); }
.services-feature figcaption { background: var(--yellow); color: var(--ink); }
.service-media img { border-bottom-color: var(--yellow); }
.closing-call i { color: var(--sage); }
.script-closing { color: var(--sage); }

/* ---- Hero ---- */
.hero-title-accent, .hero-offer-value { color: var(--yellow); }
.hero-dot.is-active { background: var(--yellow); }

/* ---- Slider controls ---- */
.gallery-arrows .gnav,
.gallery-arrows .gnav:focus-visible { color: var(--sage); }
.gallery-arrows .gnav:hover:not(:disabled) { color: var(--sage-hover); }
.gnav:hover:not(:disabled) { background: var(--sage); color: var(--white); }
.project-nav .gnav,
.done-nav .gnav { background: var(--sage); color: var(--white); }
.project-nav .gnav:hover:not(:disabled),
.done-nav .gnav:hover:not(:disabled) { background: var(--sage-hover); }
.project-dots button { background: rgba(48, 53, 47, .25); }
.project-dots button[aria-current="true"] { background: var(--sage); }

/* ---- Scroll progress ---- */
.scroll-progress span { background: var(--yellow); }

/* ---- Rules / borders ---- */
.project-facts, .soon-points { border-block-color: rgba(226, 182, 74, .55); }
.done-foot { border-top-color: rgba(226, 182, 74, .55); }
.done-body { border-top-color: var(--yellow); }

/* ---- Footer: Deep Olive Charcoal with Mustard headings ---- */
.site-footer { background: var(--ink); border-top-color: var(--yellow); }
.footer-heading { color: var(--yellow); }
.footer-bottom { background: #272B26; border-top-color: rgba(255, 255, 255, .15); }

@media (max-width: 767px) {
    .hero { background: var(--ink); }
}

.hero { background-color: #30352F; }


/* =================================================================
   32. SHORT LAPTOP SCREENS (1366 / 1280 wide, browser at 100%)
   With browser bars and Windows scaling the page is often only
   ~520–650px tall. Keep every section inside one screen there by
   compacting the header, titles and spacing — layout is unchanged.
   ================================================================= */
@media (min-width: 1025px) and (min-height: 460px) and (max-height: 700px) {
    .site-header, .site-header.is-scrolled { padding-block: .45rem; }
    .logo-img, .site-header.is-scrolled .logo-img { height: 50px; }
    .nav-link { font-size: .95rem; }
    .header-cta, .nav-inline-cta { padding: .62em 1.3em; font-size: .92rem; }

    .section-title { font-size: clamp(1.55rem, 4.6vh, 2.2rem); margin-bottom: .5rem; }
    .eyebrow { margin-bottom: .3rem; }
    .lede { margin-bottom: .9rem; font-size: .98rem; }
    .btn { padding: .68em 1.35em; }

    /* hero */
    .hero { min-height: 0; padding-block: clamp(1rem, 3vh, 2rem); }
    .hero-title, .hero h1 { font-size: clamp(2.2rem, 8.5vh, 3.6rem); }

    /* sections */
    .communities, .about, .gallery, .life { padding-block: clamp(.9rem, 3vh, 1.8rem); }
    .services { padding-block: clamp(.8rem, 2.5vh, 1.6rem); }

    /* projects */
    .communities-head { margin-bottom: .7rem; }
    .project-feature-body { min-height: clamp(250px, calc(var(--fold) - 180px), 560px); padding: clamp(.9rem, 2.4vh, 1.6rem) clamp(1.2rem, 2.2vw, 2rem); }
    .project-desc { margin-bottom: .6rem; font-size: .98rem; }
    .project-facts { gap: .5rem 1rem; padding-block: .6rem; margin-bottom: .7rem; }

    /* why / stats */
    .stat-band { margin-top: .8rem; padding-top: .6rem; }
    .stat-figure { font-size: clamp(1.7rem, 5vh, 2.6rem); }
    .stat-label { font-size: .88rem; }

    /* family assurance */
    .assurance-list { gap: .25rem; margin-bottom: .8rem; }
    .assurance-list li { font-size: 1rem; }
    .assurance-list i { width: 32px; height: 32px; }
    .media-life-main { height: clamp(240px, calc(var(--fold) - 90px), 520px); }
}


/* =================================================================
   33. PHONES — keep the hero call-to-action visible without scrolling
   ================================================================= */
@media (max-width: 767px) {
    .hero-bg { height: clamp(150px, 24svh, 260px); }
    .hero-badge { font-size: .85rem; padding: .4em .9em; margin-bottom: .55rem; }
    .hero-title { font-size: clamp(2rem, 9vw, 2.5rem); margin-bottom: .4rem; line-height: 1.05; }
    .hero-lede { font-size: 1rem; line-height: 1.5; margin-bottom: .8rem; }
    .hero-offer { gap: .5rem; margin-bottom: .9rem; }
    .hero-offer li { padding: .55rem .8rem; }
    .hero-offer-label { font-size: .8rem; }
    .hero-offer-value { font-size: clamp(1.05rem, 5vw, 1.3rem); }
    .hero-copy { padding-block: 1rem 1.2rem; }
}
