/* Era pass 1 (rough, Dec 2026): the things that cross the joins between sections,
   and the wrapper that lets every photograph drift inside its frame.
   Everything here is added by js/era.js; without script none of it shows. */

/* ---------- photographs drift inside their frames ---------- */
.frame>.depth-wrap{ display:block;width:100%;height:100%; }
.depth-wrap>img{ display:block;width:100%;height:100%;object-fit:cover; }

/* ---------- seams: a zero-height line between two sections that things hang off ---------- */
.seam{ position:relative;height:0;z-index:5;pointer-events:none;overflow-x:clip;overflow-y:visible; }
.seam--stone{ --seam-bg:var(--stone); }
.seam--peach{ --seam-bg:var(--peach); }

/* the next ground arrives as a shallow dome, the hero's badge again */
.seam-arch{
  position:absolute;left:-8vw;right:-8vw;bottom:-1px;height:clamp(44px,9vw,180px);
  background:var(--seam-bg);border-radius:50% 50% 0 0 / 100% 100% 0 0;
  transform-origin:50% 100%;will-change:transform;
}

/* ---------- the palms from the Ocean Village boardwalk, in front of everything ---------- */
.frond{ position:absolute;z-index:5;width:var(--fw);pointer-events:none;will-change:transform; }
.frond-sway{ transform-origin:var(--ox,100%) var(--oy,50%);animation:frond-sway var(--sway,8s) ease-in-out infinite alternate; }
.frond img{ display:block;width:100%;height:auto; }
.frond--flip img{ transform:scaleX(-1); }
@keyframes frond-sway{ from{ transform:rotate(-1.4deg); } to{ transform:rotate(1.8deg); } }
@media (prefers-reduced-motion:reduce){ .frond-sway{ animation:none; } }

/* where each one sits (desktop first). The rule: a frond may cross a photograph or a ground,
   never a word. Headings sit left, so on phones every frond comes in from the right. */
.frond--intro{ --fw:clamp(260px,34vw,660px);left:-7vw;top:-15vw;--ox:0%;--oy:60%;--sway:9s; }
.frond--bw{ --fw:clamp(240px,30vw,580px);right:-6vw;top:-3vw;--ox:100%;--oy:0%;--sway:7.5s; }
.frond--ennios{ --fw:clamp(280px,38vw,720px);right:-9vw;top:-17vw;--ox:100%;--oy:55%;--sway:8.5s; }
.frond--hire{ --fw:clamp(240px,28vw,540px);right:-6vw;top:-15vw;--ox:100%;--oy:0%;--sway:7s; }
.frond--cta{ --fw:clamp(260px,32vw,620px);right:-8vw;top:-14vw;--ox:100%;--oy:55%;--sway:10s; }

@media (max-width:899px){
  .frond--intro{ --fw:58vw;left:auto;right:-22vw;top:-41vw;--ox:100%; }
  .frond--intro.frond--flip img{ transform:none; }
  .frond--bw{ display:none; }
  .frond--ennios{ --fw:62vw;right:-24vw;top:-40vw; }
  .frond--hire{ --fw:46vw;right:-18vw;top:-43vw; }
  .frond--cta{ --fw:58vw;right:-22vw;top:-41vw; }
}

/* the Banana Wharf card's lift shadow is meant to fall upward on the run; keep it off the section below */
.chapter.is-overlay{ clip-path:inset(-160px 0 0 0); }
