/* split-hero: the full-screen opening of two photos meeting on one diagonal (Lash Room's "split", the owner's pick for
   every demo, 26.10.2026), with three optional full-screen openings over it: letter, aperture, strips.
   Copied out of the local-sites template (themes/skin.css "heroLayout" and "hxo" blocks, template/hero.js), where it
   was built and checked on Hila Perez's and Sapir Adler's demos. CSS only, transform and opacity (plus one clip-path
   for the aperture); the opening is gone by about 1.9s.
   Rules it keeps (the owner's): photos anchored to their top, never overscanned, so a head and its hair are never cut;
   pick photos with room above the head (a photo whose hair touches its own top edge reads as cut); no curtain/banner
   intro before the photos. */
.sh{
  /* ---- change per project ---- */
  --sh-ground:#f7f2ea;           /* the page colour the photos melt into, and the openings' cover */
  --sh-gold:#b08c5c;             /* the aperture ring and the strips' hairlines */
  --sh-name-font:Georgia, serif; /* the letter opening's name */
  --sh-lt:57%; --sh-lb:41%;      /* where the diagonal meets the top and the bottom (share of the width) */
  --sh-ease:cubic-bezier(.16,1,.3,1);
  position:relative; isolation:isolate; overflow:clip; display:grid; align-items:end;
  min-height:max(500px, calc(100svh - 86px)); background:var(--sh-ground)
}
.sh-media{position:absolute; inset:0; z-index:0; overflow:hidden;
  -webkit-mask-image:linear-gradient(180deg, #000 66%, transparent 99%); mask-image:linear-gradient(180deg, #000 66%, transparent 99%)}
/* the shade the text sits on: clear above, the page colour where the text starts */
.sh-scrim{position:absolute; inset:0; z-index:1; pointer-events:none; background:var(--sh-ground);
  -webkit-mask-image:linear-gradient(180deg, transparent 50%, rgba(0,0,0,.6) 63%, rgba(0,0,0,.92) 73%, #000 83%);
  mask-image:linear-gradient(180deg, transparent 50%, rgba(0,0,0,.6) 63%, rgba(0,0,0,.92) 73%, #000 83%)}
.sh-copy{position:relative; z-index:3; padding:clamp(200px, calc(100svh - 420px), 66svh) 20px 28px; text-align:center}

/* the two panels, each 62% wide, cut on one diagonal; the photo layer slides in inside its still panel (a moving
   clip-pathed panel counts as a layout shift), then dims and grows from its top edge as the page scrolls */
.sh-pane{position:absolute; top:0; bottom:0; width:62%; overflow:hidden}
.sh-pane-a{right:0; clip-path:polygon(calc((var(--sh-lt) - 38%) / .62) 0, 100% 0, 100% 100%, calc((var(--sh-lb) - 38%) / .62) 100%)}
.sh-pane-b{left:0; clip-path:polygon(0 0, calc(var(--sh-lt) / .62) 0, calc(var(--sh-lb) / .62) 100%, 0 100%)}
.sh-par{position:absolute; inset:0; transform-origin:50% 0}
.sh-par img{display:block; width:100%; height:100%; object-fit:cover}
.sh-pane-a img{object-position:35% 0}   /* each face turned away from the cut */
.sh-pane-b img{object-position:65% 0}
.sh-pane-a .sh-par{animation:sh-in-r 1.5s var(--sh-ease) .1s both}
.sh-pane-b .sh-par{animation:sh-in-l 1.5s var(--sh-ease) .22s both}
@supports (animation-timeline: scroll()){
  .sh-pane-a .sh-par{animation:sh-in-r 1.5s var(--sh-ease) .1s both, sh-out linear both; animation-timeline:auto, scroll(root block); animation-range:normal, 0px 95vh}
  .sh-pane-b .sh-par{animation:sh-in-l 1.5s var(--sh-ease) .22s both, sh-out linear both; animation-timeline:auto, scroll(root block); animation-range:normal, 0px 95vh}
}
@keyframes sh-in-r{from{translate:100% 0}}
@keyframes sh-in-l{from{translate:-100% 0}}
@keyframes sh-out{to{transform:scale(1.08); opacity:.15}}

/* a panel without a photo yet: a "your photo here" ground in the same place */
.sh-slot{position:absolute; inset:0; background:repeating-linear-gradient(135deg, #efe7da 0 16px, #e9dfcf 16px 32px)}
.sh-pane-b .sh-slot{filter:brightness(.92) saturate(1.15)}
.sh-slot span{position:absolute; top:26%; left:62%; translate:-50% 0; padding:12px 16px; border-radius:16px; background:#fff; font-size:1rem; white-space:nowrap}
.sh-pane-b .sh-slot span{left:38%; top:34%}

@media (min-width:880px){
  .sh-media{-webkit-mask-image:linear-gradient(180deg, #000 58%, transparent 92%); mask-image:linear-gradient(180deg, #000 58%, transparent 92%)}
  .sh-scrim{-webkit-mask-image:linear-gradient(180deg, transparent 52%, rgba(0,0,0,.6) 66%, #000 84%); mask-image:linear-gradient(180deg, transparent 52%, rgba(0,0,0,.6) 66%, #000 84%)}
  .sh-copy{padding-block:64vh 28px}
  .sh-pane img{object-position:50% 0}
}

/* ---------- the openings over it: <html data-sh-open="letter | aperture | strips"> (split-hero.js) ---------- */
.sho{display:none}
[data-sh-open] .sho{display:block; position:absolute; inset:0; z-index:2; overflow:hidden; pointer-events:none}
[data-sh-open] .sho > *{display:none}
[data-sh-open] .sh-par{animation:none}   /* the photos wait still under the cover */
@supports (animation-timeline: scroll()){
  [data-sh-open] .sh-par{animation:sh-out linear both; animation-timeline:scroll(root block); animation-range:0px 95vh}
}
/* the headline waits until the cover is gone (start it from lower, so a descender never peeks out of its mask) */
[data-sh-open] [data-sh-late]{animation:sh-late 1s var(--sh-ease) 1.45s both}
@keyframes sh-late{from{opacity:0; transform:translateY(28px)}}

/* letter: the name cut out of the page colour, the photos showing through it; the name grows, the cover dissolves.
   A "lighten" blend, not an SVG mask: Chrome tiled the mask while it scaled. No z-index on .sho here, or the blend
   can't reach the photos. The cover never scales (a scaled screen-size layer tiled too); only the name does. */
[data-sh-open="letter"] .sho{z-index:auto}
[data-sh-open="letter"] .sho-letter{display:grid; place-items:center; position:absolute; inset:0; padding-bottom:12%;
  background:var(--sh-ground); mix-blend-mode:lighten; animation:sho-cover 1.75s linear .1s both}
.sho-letter > span{color:#000; font:700 var(--sho-size, min(18vw, 7.5rem))/1 var(--sh-name-font); white-space:nowrap;
  animation:sho-letter 1.75s cubic-bezier(.7,0,.25,1) .1s both}
@keyframes sho-letter{0%,30%{transform:scale(1)} 100%{transform:scale(9)}}
@keyframes sho-cover{0%,72%{opacity:1} 100%{opacity:0}}

/* aperture: a gold ring opens on a small window into the photos, then the window fills the screen. The window is the
   photos' own circular clip (a cover drawn as a big shadow shrinks with its element when scaled small) */
[data-sh-open="aperture"] .sho{background:none}
[data-sh-open="aperture"] .sh-media{animation:sho-window 1.8s cubic-bezier(.65,0,.2,1) .15s both}
[data-sh-open="aperture"] .sho-ring{display:block; position:absolute; left:50%; top:42%; width:24px; height:24px; margin:-12px 0 0 -12px;
  border-radius:50%; border:1px solid var(--sh-gold); animation:sho-ring 1.8s cubic-bezier(.65,0,.2,1) .15s both}
@keyframes sho-window{0%{clip-path:circle(0px at 50% 42%)} 35%{clip-path:circle(50px at 50% 42%)} 55%{clip-path:circle(55px at 50% 42%)} 100%{clip-path:circle(150vmax at 50% 42%)}}
@keyframes sho-ring{0%{transform:scale(0); opacity:0} 18%{opacity:1} 35%{transform:scale(4.6)} 55%{transform:scale(5); opacity:1} 80%{transform:scale(16); opacity:0} 100%{transform:scale(16); opacity:0}}

/* strips: six bands of the page colour with gold hairlines slide away, up and down in turn */
[data-sh-open="strips"] .sho-strips{display:grid; position:absolute; inset:0; grid-template-columns:repeat(6, minmax(0,1fr))}
[data-sh-open="strips"] .sho-strips i{background:var(--sh-ground); box-shadow:inset -1px 0 0 color-mix(in srgb, var(--sh-gold) 45%, transparent);
  animation:sho-up 1s cubic-bezier(.87,0,.13,1) both}
[data-sh-open="strips"] .sho-strips i:nth-child(even){animation-name:sho-down}
[data-sh-open="strips"] .sho-strips i:nth-child(1){animation-delay:.35s}
[data-sh-open="strips"] .sho-strips i:nth-child(2){animation-delay:.43s}
[data-sh-open="strips"] .sho-strips i:nth-child(3){animation-delay:.51s}
[data-sh-open="strips"] .sho-strips i:nth-child(4){animation-delay:.59s}
[data-sh-open="strips"] .sho-strips i:nth-child(5){animation-delay:.67s}
[data-sh-open="strips"] .sho-strips i:nth-child(6){animation-delay:.75s}
@keyframes sho-up{to{transform:translateY(-101%)}}
@keyframes sho-down{to{transform:translateY(101%)}}

