/* Gallery: an edge-to-edge photo mosaic under a split heading, without rules, frames or borders. */
.home-frames { background: #FFFFFF; color: #231F20; font-family: 'Poppins', sans-serif; scroll-margin-top: var(--home-header-height, 88px); }
.home-frames__head { box-sizing: border-box; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: end; gap: 2rem 4rem; width: min(1440px, 100%); margin: 0 auto; padding: clamp(4.5rem, 8vw, 7.5rem) clamp(20px, 5vw, 80px) clamp(2.5rem, 4.5vw, 4rem); }
.home-frames__kicker { margin: 0; color: #3E6423; font-size: .78rem; font-weight: 600; letter-spacing: .28em; text-transform: uppercase; }
.home-frames .home-frames__title { margin: 1.1rem 0 0; color: #231F20; font-family: 'Poppins', sans-serif !important; font-size: clamp(2.3rem, 4vw, 3.8rem) !important; font-weight: 700 !important; line-height: 1.06 !important; letter-spacing: -.035em; text-transform: none; }
.home-frames__title em { color: #755431; font-style: normal; }
.home-frames__aside { display: grid; justify-items: start; gap: 1.6rem; }
.home-frames__intro { max-width: 460px; margin: 0; color: rgba(35, 31, 32, .72); font-size: 1rem; line-height: 1.8; }
.home-frames__all { display: inline-flex; align-items: center; gap: 1rem; padding: .45rem .45rem .45rem 1.7rem; border-radius: 999px; background: #755431; color: #FFFFFF !important; font-size: .76rem; font-weight: 600; letter-spacing: .14em; text-decoration: none; text-transform: uppercase; box-shadow: 0 18px 34px -18px rgba(117, 84, 49, .85); transition: background .4s ease; }
.home-frames__all-icon { display: grid; width: 2.6rem; height: 2.6rem; place-items: center; border-radius: 50%; background: #FFFFFF; color: #755431; transition: color .4s ease, transform .45s cubic-bezier(.2, .8, .2, 1); }
.home-frames__all-icon svg { width: 1rem; height: 1rem; }
.home-frames__all:hover, .home-frames__all:focus-visible { background: #3E6423; }
.home-frames__all:hover .home-frames__all-icon, .home-frames__all:focus-visible .home-frames__all-icon { color: #3E6423; transform: rotate(-45deg); }

.home-frames__mosaic { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: repeat(2, clamp(240px, 21vw, 340px)); grid-template-areas: 'a a b c' 'a a d d'; gap: 6px; }
.home-frames__mosaic[data-count="3"] { grid-template-areas: 'a a b b' 'a a c c'; }
.home-frames__mosaic[data-count="2"] { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); grid-template-rows: clamp(360px, 38vw, 560px); grid-template-areas: 'a b'; }
.home-frames__mosaic[data-count="1"] { grid-template-columns: minmax(0, 1fr); grid-template-rows: clamp(360px, 40vw, 560px); grid-template-areas: 'a'; }
.home-frames__tile:nth-child(1) { grid-area: a; }
.home-frames__tile:nth-child(2) { grid-area: b; }
.home-frames__tile:nth-child(3) { grid-area: c; }
.home-frames__tile:nth-child(4) { grid-area: d; }

.home-frames__tile { position: relative; isolation: isolate; display: block; min-width: 0; overflow: hidden; background: #231F20; color: #FFFFFF; text-decoration: none; transition: clip-path 1.3s cubic-bezier(.77, 0, .18, 1) calc(var(--i, 0) * .12s); }
.home-frames__tile img { position: absolute; inset: 0; z-index: -2; display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 28%; transition: transform 1.6s cubic-bezier(.2, .8, .2, 1); }
.home-frames__tile::after { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(35, 31, 32, 0) 45%, rgba(35, 31, 32, .72) 100%); opacity: 0; content: ''; transition: opacity .5s ease; }
.home-frames__caption { position: absolute; right: 1.4rem; bottom: 1.3rem; left: 1.4rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; font-size: .72rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .6s cubic-bezier(.2, .8, .2, 1); }
.home-frames__zoom { display: grid; flex: 0 0 auto; width: 2.6rem; height: 2.6rem; place-items: center; border-radius: 50%; background: #FFFFFF; color: #755431; }
.home-frames__zoom svg { width: 1.05rem; height: 1.05rem; }
.home-frames__tile:hover img, .home-frames__tile:focus-visible img { transform: scale(1.06); }
.home-frames__tile:hover::after, .home-frames__tile:focus-visible::after, .home-frames__tile:hover .home-frames__caption, .home-frames__tile:focus-visible .home-frames__caption { opacity: 1; transform: none; }
.home-frames__tile:focus-visible { outline: 3px solid #6B9A40; outline-offset: -3px; }
.home-frames__tile--empty { display: grid; grid-area: a; place-items: center; padding: 2rem; text-align: center; }
.home-frames__tile--empty p { margin: 0; color: rgba(255, 255, 255, .85); }

/* Scroll reveal. Hidden states apply only once the script arms the section, so content stays visible without JS. */
.home-frames__head > * { transition: opacity 1s ease, transform 1.2s cubic-bezier(.2, .8, .2, 1); }
.home-frames__head > :nth-child(2) { transition-delay: .15s; }
.home-frames.is-armed .home-frames__head:not(.is-inview) > * { opacity: 0; transform: translateY(32px); }
.home-frames.is-armed .home-frames__mosaic:not(.is-inview) .home-frames__tile { clip-path: inset(100% 0 0 0); }
.home-frames.is-armed .home-frames__mosaic:not(.is-inview) .home-frames__tile img { transform: scale(1.25); }

@media (hover: none) {
    .home-frames__tile::after, .home-frames__caption { opacity: 1; transform: none; }
}
@media (max-width: 1023px) {
    .home-frames__head { grid-template-columns: minmax(0, 1fr); }
    .home-frames__mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: clamp(300px, 52vw, 460px) repeat(2, clamp(200px, 34vw, 320px)); grid-template-areas: 'a a' 'b c' 'd d'; }
    .home-frames__mosaic[data-count="3"] { grid-template-rows: clamp(300px, 52vw, 460px) clamp(200px, 34vw, 320px); grid-template-areas: 'a a' 'b c'; }
}
@media (max-width: 599px) {
    .home-frames__mosaic { gap: 4px; grid-template-rows: 72vw 50vw 56vw; }
    .home-frames__mosaic[data-count="3"] { grid-template-rows: 72vw 50vw; }
    .home-frames__mosaic[data-count="2"], .home-frames__mosaic[data-count="1"] { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-auto-rows: 72vw; grid-template-areas: none; }
    .home-frames__mosaic[data-count="2"] .home-frames__tile, .home-frames__mosaic[data-count="1"] .home-frames__tile { grid-area: auto; }
    .home-frames__caption { right: 1rem; bottom: 1rem; left: 1rem; font-size: .6rem; letter-spacing: .14em; }
    .home-frames__zoom { width: 2.1rem; height: 2.1rem; }
    .home-frames__all { padding-left: 1.4rem; }
}
@media (prefers-reduced-motion: reduce) {
    .home-frames__head > *, .home-frames__tile, .home-frames__tile img, .home-frames__tile::after, .home-frames__caption, .home-frames__all, .home-frames__all-icon { transition: none; }
}
