/* Scoped Bokado implementation of Theo Plawinski / Codrops Sticky Grid Scroll. */
/* Lenis 1.3.17 recommended root/nested scroll rules, plus the explicit native
   smooth-scroll override required by Bokado's pre-existing anchor CSS. */
html.lenis, html.lenis body { height: auto; }
html.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis:not(.lenis-autoToggle).lenis-stopped { overflow: clip; }
.lenis [data-lenis-prevent], .lenis [data-lenis-prevent-wheel], .lenis [data-lenis-prevent-touch] { overscroll-behavior: contain; }
.bsg-section {
  --bsg-bg: #29372b;
  --bsg-ink: #f6f2e9;
  --bsg-accent: #d6ac85;
  --bsg-gallery-width: 51.1111111111vw;
  --bsg-column-gap: 2.2222222222vw;
  --bsg-row-gap: 2.7777777778vw;
  --bsg-height: 425svh;
  position: relative;
  isolation: isolate;
  background: var(--bsg-bg);
  color: var(--bsg-ink);
  padding: 82px 24px 50px;
}
.bsg-section *, .bsg-section *::before, .bsg-section *::after { box-sizing: border-box; }
.bsg-scene { position: relative; width: 100%; }
.bsg-content { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center; width: 100%; }
.bsg-title { margin: 0; max-width: min(924px, 90%); font-family: var(--serif, 'DM Serif Display', Georgia, serif); font-size: clamp(44px, 5.3vw, 78px); font-weight: 400; line-height: 1.05; letter-spacing: -.03em; text-wrap: balance; }
.bsg-title em { font-weight: 400; color: var(--bsg-accent); }
.bsg-description { width: min(455px, 86%); margin: 24px 0 0; font-size: 13px; line-height: 1.6; text-wrap: balance; color: #f6f2e9; }
.bsg-button { display: inline-flex; justify-content: center; align-items: center; gap: 10px; min-height: 46px; padding: 12px 20px; margin-top: 26px; border: 1px solid rgba(246,242,233,.68); color: var(--bsg-ink); background: var(--bsg-bg); font: 600 12px/1.25 var(--sans, 'DM Sans', Arial, sans-serif); text-decoration: none; letter-spacing: .015em; transition: background .2s, color .2s; pointer-events: auto; }
.bsg-button:hover { color: var(--bsg-bg); background: var(--bsg-ink); }
.bsg-button:focus-visible { outline: 3px solid var(--bsg-accent); outline-offset: 6px; }
.bsg-gallery { width: min(736px, 100%); margin: 38px auto 0; }
.bsg-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--bsg-column-gap); row-gap: var(--bsg-row-gap); list-style: none; margin: 0; padding: 0; }
.bsg-item { width: 100%; min-width: 0; aspect-ratio: 1; margin: 0; padding: 0; overflow: hidden; background: #414f3d; }
.bsg-image { display: block; width: 100%; height: 100%; object-fit: cover; }
.bsg-label, .bsg-note, .bsg-scroll-hint { font: 500 10px/1.5 var(--sans, 'DM Sans', Arial, sans-serif); letter-spacing: .1em; }
.bsg-label { margin-bottom: 28px; text-align: center; text-transform: uppercase; }
.bsg-note { margin-top: 24px; letter-spacing: .025em; opacity: .66; text-align: center; }
.bsg-scroll-hint { display: none; }
.bsg-section:is([data-bsg-pending], [data-bsg-mode="gsap"]) { height: var(--bsg-height); padding: 0; }
.bsg-section:is([data-bsg-pending], [data-bsg-mode="gsap"]) .bsg-scene { position: sticky; top: 0; height: 100svh; padding: 0 1.6666666667vw; overflow: hidden; pointer-events: none; }
.bsg-section:is([data-bsg-pending], [data-bsg-mode="gsap"]) .bsg-content { height: 100svh; justify-content: center; pointer-events: none; }
.bsg-section:is([data-bsg-pending], [data-bsg-mode="gsap"]) .bsg-gallery { position: absolute; top: 50%; left: 50%; transform: translate3d(-50%, -50%, 0); width: var(--bsg-gallery-width); margin: 0; }
.bsg-section:is([data-bsg-pending], [data-bsg-mode="gsap"]) .bsg-grid { will-change: transform; }
.bsg-section:is([data-bsg-pending], [data-bsg-mode="gsap"]) .bsg-item { will-change: transform; }
.bsg-section:is([data-bsg-pending], [data-bsg-mode="gsap"]) .bsg-label { position: absolute; z-index: 2; top: 104px; left: 32px; margin: 0; text-align: left; }
.bsg-section:is([data-bsg-pending], [data-bsg-mode="gsap"]) .bsg-note { position: absolute; z-index: 2; bottom: 23px; left: 32px; margin: 0; text-align: left; }
.bsg-section:is([data-bsg-pending], [data-bsg-mode="gsap"]) .bsg-scroll-hint { display: block; position: absolute; z-index: 2; bottom: 23px; right: 32px; opacity: .65; }
.bsg-section[data-bsg-pending] .bsg-content { text-shadow: 0 1px 20px #18271e, 0 0 5px #18271e; }
@media (max-width: 740px) {
  .bsg-section { --bsg-gallery-width: 60vw; --bsg-column-gap: 2.2222222222vw; --bsg-row-gap: 4.5vw; --bsg-height: 300svh; padding: 55px 20px 36px; }
  .bsg-section:is([data-bsg-pending], [data-bsg-mode="gsap"]) { --bsg-row-gap: 18vw; }
  .bsg-title { font-size: clamp(30px, 8.4vw, 48px); line-height: 1.03; max-width: calc(100% - 28px); }
  .bsg-description { width: min(310px, calc(100% - 44px)); margin-top: 13px; font-size: 11px; line-height: 1.5; }
  .bsg-button { min-height: 44px; margin-top: 16px; padding: 11px 17px; font-size: 11px; }
  .bsg-section:is([data-bsg-pending], [data-bsg-mode="gsap"]) .bsg-scene { padding: 0 16px; }
  .bsg-section:is([data-bsg-pending], [data-bsg-mode="gsap"]) .bsg-label { top: 91px; left: 20px; font-size: 8px; }
  .bsg-section:is([data-bsg-pending], [data-bsg-mode="gsap"]) .bsg-note { bottom: 82px; left: 20px; font-size: 8px; max-width: 58%; }
  .bsg-section:is([data-bsg-pending], [data-bsg-mode="gsap"]) .bsg-scroll-hint { bottom: 82px; right: 20px; font-size: 8px; letter-spacing: .06em; }
}
@media (prefers-reduced-motion: reduce) {
  .bsg-section:is([data-bsg-pending], [data-bsg-mode="gsap"]) { height: auto; padding: 55px 20px 36px; }
  .bsg-section:is([data-bsg-pending], [data-bsg-mode="gsap"]) .bsg-scene { position: relative; height: auto; padding: 0; }
  .bsg-section:is([data-bsg-pending], [data-bsg-mode="gsap"]) .bsg-content { height: auto; }
  .bsg-section:is([data-bsg-pending], [data-bsg-mode="gsap"]) .bsg-gallery { position: relative; top: auto; left: auto; transform: none; width: min(736px,100%); margin-top: 38px; }
  .bsg-section:is([data-bsg-pending], [data-bsg-mode="gsap"]) .bsg-label, .bsg-section:is([data-bsg-pending], [data-bsg-mode="gsap"]) .bsg-note { position: static; margin: 24px 0; text-align: center; }
  .bsg-section:is([data-bsg-pending], [data-bsg-mode="gsap"]) .bsg-scroll-hint { display: none; }
  .bsg-button { transition: none; }
}
@media (max-width: 740px) and (prefers-reduced-motion: reduce) {
  .bsg-section:is([data-bsg-pending], [data-bsg-mode="gsap"]) { --bsg-row-gap: 4.5vw; }
}
