/* Homepage: "open" layout. No trunk line: content sits in a centred column, sections alternate
   light ground and photo bands joined by hills, and thick koru branches (logo weight) grow across
   the section edges. Shared open-layout rules live in site.css (OPEN LAYOUT). */

.living { background: var(--sand); }
@media (prefers-reduced-motion: no-preference) {
    .branch--intro { animation-duration: 11s; animation-delay: -4s; }
    .branch--kete { animation-duration: 10s; animation-delay: -2s; }
}

/* ---------- hero: the Hansons Lane photo fills the first screen ---------- */
.hero-photo {
    display: flex; flex-direction: column; justify-content: flex-end;
    min-height: max(640px, 100svh);
    padding: 150px 0 clamp(150px, 16vw, 250px);
}
.hero-photo::before {
    background: linear-gradient(90deg, rgba(15, 37, 30, .88) 0%, rgba(15, 37, 30, .6) 45%, rgba(15, 37, 30, .12) 100%),
                linear-gradient(180deg, rgba(15, 37, 30, .55) 0%, rgba(15, 37, 30, 0) 30%),
                var(--photo) center 40% / cover no-repeat var(--forest-dark);
}
.hero-photo .display { padding-top: 0; }
.hero-photo .display-sub { color: var(--clay); }

/* homepage branches and fern (shared .branch/.bush/.kiwi rules live in site.css) */
.branch--intro { right: -4vw; top: 0; width: clamp(360px, 52vw, 820px); aspect-ratio: 900 / 420; color: var(--forest-light); --leaf: var(--sage); z-index: 0; transform-origin: 100% 60%; }
.branch--kete { right: -2vw; top: 0; width: clamp(200px, 22vw, 340px); aspect-ratio: 480 / 760; color: var(--forest-light); --leaf: var(--sage); transform-origin: 70% 0; z-index: 1; }
.fern-mark { position: absolute; z-index: 0; left: max(-40px, calc((100vw - 1440px) / 2 - 40px)); bottom: 0; width: clamp(160px, 20vw, 300px); aspect-ratio: 340 / 920; color: var(--sage); opacity: .28; transform: rotate(-14deg); transform-origin: 50% 100%; pointer-events: none; }

/* ---------- intro on sand, picture pulled in off the edge ---------- */
.living--open .limb--intro { background: var(--sand); padding-top: clamp(40px, 6vw, 90px); }
/* ---------- events: a photo band like the closing one ---------- */
.living--open .limb--events { padding: clamp(150px, 15vw, 230px) 0 clamp(170px, 17vw, 260px); }
.limb--events .ev { width: min(100%, 640px); }
.limb--events .blade.ev { background: var(--ivory); color: var(--forest); }
.limb--events .ev-when { color: var(--forest-light); }
.limb--events .ev-where { color: var(--stone); }
.limb--events .empty { color: var(--ivory); }

/* ---------- kete on parchment ---------- */
.living--open .limb--kete { background: var(--parchment); padding-bottom: clamp(80px, 9vw, 140px); overflow: hidden; }
.living--open .limb--kete .slots .slot { border: 0; border-radius: clamp(40px, 5vw, 80px) 0 clamp(40px, 5vw, 80px) 0; }
.living--open .limb--kete + .limb--photo .ridge--top { --to: var(--parchment); }

@media (max-width: 760px) {
    .hero-photo { min-height: 100svh; padding-top: 120px; }
    .branch--intro { width: 90vw; top: 0; right: -20vw; }
    .branch--kete { display: none; }
    .fern-mark { width: 120px; }
}

/* the Kete row stands at the very end of the parchment: the next band's hills sit over a photo, so nothing may cross into it */
.living--open .limb--kete .kiwi-row { margin-bottom: calc(-1 * clamp(80px, 9vw, 140px) + 6px); }

/* the intro paragraph under the "Who We Are" words needs air above it */
.living--open .limb--intro .limb-body .desc { margin-top: clamp(20px, 2.4vw, 34px); margin-bottom: 0; }

/* ---------- mobile hero: content centred, photo cropped in on the tree and the people (not the sky) ---------- */
@media (max-width: 760px) {
    .hero-photo { justify-content: center; padding-top: 110px; padding-bottom: 150px; text-align: center; }
    .hero-photo::before {
        background: linear-gradient(180deg, rgba(15, 37, 30, .7) 0%, rgba(15, 37, 30, .45) 30%, rgba(15, 37, 30, .5) 65%, rgba(15, 37, 30, .82) 100%),
                    var(--photo) 40% 100% / auto 100% no-repeat var(--forest-dark);
    }
    .hero-photo .limb-body { margin-left: var(--edge); margin-right: var(--edge); }
    .hero-photo .display span { display: inline; }
    .hero-photo .display-sub { margin-left: auto; margin-right: auto; max-width: 20em; }
    .hero-photo > .blade { align-self: center; margin-left: 0; margin-right: 0; min-width: 220px; padding-left: 1.4em; padding-right: 1.4em; justify-content: center; text-align: center; }
}

/* the Kete strip is photo cards now: keep the hanging branch short enough to finish above them */
.branch--kete { width: clamp(140px, 12vw, 200px); z-index: 0; }
.living--open .limb--kete .kete-grid { z-index: 2; }
