/* =========================================================
   SECTION 1 - HERO  (all selectors prefixed .s1-)
   Layers (back -> front):  sky  ->  names  ->  temple
   Scroll parallax is driven by js/s1-hero.js (direct transforms, no easing = no lag).
   ========================================================= */
.s1-hero{
  position:relative;
  /* 1.7% shorter than the screen so the top edge of Section 2 peeks in (as in the reference) */
  height:98.3vh;height:98.3svh;
  min-height:550px;
  overflow:hidden;
  isolation:isolate;
  container-type:inline-size;
  background:#7fb2e6;
}

/* ---- Layer 1: sky (moves UP faster than the scroll) ---- */
.s1-sky{
  position:absolute;left:0;right:0;top:0;
  height:135%;
  z-index:1;
  will-change:transform;
}
.s1-sky img{
  width:100%;height:100%;object-fit:cover;object-position:50% 0;
  transform:scale(1.1);
  animation:s1-drift 46s ease-in-out infinite alternate;
}
@keyframes s1-drift{
  from{transform:scale(1.1) translate3d(-2.2%,0,0)}
  to  {transform:scale(1.1) translate3d( 2.2%,0,0)}
}

/* ---- Layer 2: couple names (slide DOWN behind the mandir) ---- */
.s1-names{
  position:absolute;left:0;right:0;
  top:6.4%;
  z-index:2;
  text-align:center;
  color:var(--gold);
  will-change:transform;
  pointer-events:none;
}
 @supports (width:1cqw){ .s1-names{top:calc(var(--s1-spire,33%) - 44cqw)} }
.s1-title{
  font-family:var(--font-title);
  font-weight:500;
  line-height:1;
  -webkit-text-stroke:.35px currentColor; /* thickens fallback serif to match the reference weight */
}
.s1-name{
  display:block;
  font-size:min(12.4vw,64.5px);
  letter-spacing:.015em;
  text-transform:uppercase;
}
@supports (width:1cqw){ .s1-name{font-size:12.4cqw} }
.s1-weds{
  display:block;
  margin:.9cqw 0 1.2cqw;
  font-family:var(--font-ui);
  font-size:min(2.4vw,12.5px);
  letter-spacing:.12em;
  text-transform:uppercase;
  color:#fff;
}
@supports (width:1cqw){ .s1-weds{font-size:2.4cqw} }
.s1-tag{
  margin-top:3.4cqw;
  font-family:var(--font-ui);
  font-size:min(2.2vw,11px);
  letter-spacing:.2em;
  text-transform:uppercase;
  color:rgba(240,196,72,.9);
}
@supports (width:1cqw){ .s1-tag{font-size:2.2cqw} }

/* ---- Layer 3: mandir (moves slightly DOWN relative to scroll) ---- */
.s1-temple{
  position:absolute;inset:0;
  z-index:3;
  will-change:transform;
  pointer-events:none;
}
.s1-temple img{
  width:100%;height:100%;
  object-fit:cover;object-position:50% 100%;
  transform-origin:50% 100%;
}

/* ---- Load-in: one orchestrated moment ---- */
.s1-hero:not(.is-ready) .s1-title,
.s1-hero:not(.is-ready) .s1-tag{opacity:0}
.s1-hero:not(.is-ready) .s1-temple img{transform:scale(1.045)}
.s1-hero.is-ready .s1-temple img{transition:transform 2.4s cubic-bezier(.2,.7,.1,1);transform:none}
.s1-hero.is-ready .s1-title{animation:s1-rise 1.5s cubic-bezier(.2,.7,.1,1) .25s both}
.s1-hero.is-ready .s1-tag{animation:s1-fade 1.4s ease 1.1s both}
@keyframes s1-rise{from{opacity:0;transform:translateY(14px);letter-spacing:.07em}to{opacity:1;transform:none;letter-spacing:0}}
@keyframes s1-fade{from{opacity:0}to{opacity:1}}
