/* names.css — scene 2 of 7. Owned by js/scenes/names.js.
 *
 * Everything is scoped to .scene[data-scene="sundar-kaand"]. All lengths are DESIGN px
 * (1080x1920) — the frame is uniformly scaled, so design px are the only unit that
 * keeps chrome locked to the artwork on every screen.
 *
 * Motion lives in JS (js/fx/kit.js). This file only places the hit target and tints
 * the affordance.
 */

/* -------------------------------------------------------------- hit target */
/* One tap on the planted lower third looses the breeze. Invisible by design:
   js/fx/kit.js draws the only affordance the guest ever sees. The sky above this rect
   carries the invitation copy and stays deliberately inert.

   No touch-action of its own: css/stage.css already sets `manipulation` on the device,
   which is all a tap needs — the swipe's `pan-y` claim went with the swipe. */

.scene[data-scene="sundar-kaand"] .nm-hit {
  position: absolute;
  left: var(--x, 0px);
  top: var(--y, 0px);
  z-index: 470; /* above every layer, below the hint (480) and .scene-text (500) */
  width: var(--w, 0px);
  height: var(--h, 0px);
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.scene[data-scene="sundar-kaand"] .nm-hit:disabled {
  cursor: default;
}

/* keyboard users get the same gesture; the outline is the only time this box paints */
.scene[data-scene="sundar-kaand"] .nm-hit:focus-visible {
  outline: 4px solid var(--sage, #7b8b5e);
  outline-offset: -12px;
}

/* The clouds carry a `transform` drift loop and a `translate` run-out at once, so
   `transform` must stay free for the loop. Nothing in this file may set it. */

/* --------------------------------------------------------------------- hint */
/* The tap hint rides over the pale meadow, where a pure ivory dot would disappear —
   push it toward the sage/gold of the planting so it reads without shouting. */

.scene[data-scene="sundar-kaand"] .fx-hint {
  --fx-ink: rgba(255, 253, 246, 0.98);
  --fx-glow: rgba(123, 139, 94, 0.5);
}

/* ------------------------------------------------------------------ clouds */
/* Hidden, not deleted. The five cloud cutouts come from the client's FIRST, art-only
   PSD set; their current Names.psd has no cloud layer and Names.jpg shows clean paper
   behind the couple's names. Ours ran grey line-work through the crimson type, which
   read as the names being "not bold" even though they measure at 0.99-1.06 of the
   client's own ink. Client asked for them to go (2026-09-04).

   data/scenes.json is regenerated from the old PSDs by tools/extract_muskan.py, so
   removing the layers there would not survive; this rule does. js/scenes/names.js
   carries the matching note and an empty CLOUDS list. */

.scene[data-scene="sundar-kaand"] [data-layer^="cloud-"] {
  display: none;
}
/* mayra-mehendi.css — scene 3 of 7. Owned by js/scenes/mayra-mehendi.js.
 *
 * Everything is scoped to .scene[data-scene="mandha"]. All lengths are DESIGN px
 * (1080x1920) — the frame is uniformly scaled, so design px are the only unit that keeps
 * chrome locked to the artwork on every screen.
 *
 * Motion lives in JS (js/fx/kit.js). This file only places the tap target, declares the
 * two pivots the scene's combined transform loops rotate about, tints the kit chrome,
 * and provides the one static style the day->night transition toggles.
 */

/* ------------------------------------------------------------------- pivots */
/* The balloon and the dancer each carry translate AND rotate in a single transform
   loop, and the lift re-uses the balloon's pivot AFTER that loop has been stopped — so
   the origin is declared here rather than written inline by whichever loop is running.
   With no transform applied these declarations change nothing: the resting frame is
   still the PSD frame, and the engine's entry cascade is a pure translation. */

.scene[data-scene="mandha"] [data-layer="balloon"] {
  /* the apex of the cage ring, where the envelope is actually held — the basket swings
     from it, 369 design px below */
  transform-origin: 52% 0%;
}

.scene[data-scene="mandha"] [data-layer="dancer"] {
  transform-origin: 50% 100%; /* his feet stay on the step */
}

/* ---------------------------------------------------------------- tap target */
/* The balloon cutout is a 235x369 rect that is mostly transparent, so the gesture gets
   its own box: the PSD rect + 64 design px of slop (~23 css px on a 390px phone, on top
   of the balloon's own ~85 css px), clamped to the frame's left edge. Invisible by
   design — js/fx/kit.js draws the only affordance the guest ever sees. */

.scene[data-scene="mandha"] .mm-hit {
  position: absolute;
  left: var(--x, 0px);
  top: var(--y, 0px);
  z-index: 470; /* above every layer, below the hint (480) and .scene-text (500) */
  width: var(--w, 0px);
  height: var(--h, 0px);
  padding: 0;
  border: 0;
  border-radius: 60px;
  background: transparent;
  cursor: pointer;
  touch-action: manipulation; /* no 300ms double-tap-zoom wait on the signature gesture */
  -webkit-appearance: none;
  appearance: none;
}

.scene[data-scene="mandha"] .mm-hit:disabled {
  cursor: default;
}

/* keyboard users get the same gesture; the outline is the only time this box paints */
.scene[data-scene="mandha"] .mm-hit:focus-visible {
  outline: 4px solid var(--rose, #b4425f);
  outline-offset: -12px;
}

/* --------------------------------------------------------------- transition */
/* "mayra-balloon" fades the day out layer by layer so the balloon can hold full opacity
   over the arriving night. The scene element itself must therefore stop painting its
   blush ground tint, or the night would never show through. A static switch, not an
   animation — js/scenes/mayra-mehendi.js adds and removes the class. */

.scene[data-scene="mandha"].mm-away {
  background-color: transparent;
}

/* --------------------------------------------------------------------- hint */
/* The tap ring sits on pale blush paper against a pink balloon, where a cool ivory glow
   would disappear — warm it into the scene's own rose. */

.scene[data-scene="mandha"] .fx-hint {
  --fx-ink: rgba(255, 250, 243, 0.98);
  --fx-glow: rgba(180, 66, 95, 0.5);
}
/* last.css — scene 7 of 7. Owned by js/scenes/last.js.
 *
 * Everything is scoped to .scene[data-scene="reception"]. All lengths are DESIGN px
 * (1080x1920): the frame is uniformly scaled, so design px are the only unit that
 * keeps chrome locked to the artwork on every screen.
 *
 * Motion lives in JS (js/fx/kit.js). This file places the splash target, the droplets
 * and the replay control.
 */

/* ------------------------------------------------------------- splash target */
/* The fountain cutout is 634x206 and mostly transparent, so the tap gets its own box
   over the basin. Invisible by design — the water is the only feedback there is. */

.scene[data-scene="reception"] .lt-splash {
  position: absolute;
  left: var(--x, 0px);
  top: var(--y, 0px);
  z-index: 300;
  width: var(--w, 0px);
  height: var(--h, 0px);
  padding: 0;
  border: 0;
  border-radius: 40px;
  background: transparent;
  cursor: pointer;
  touch-action: manipulation; /* no 300ms double-tap-zoom wait before the splash */
  -webkit-appearance: none;
  appearance: none;
}

.scene[data-scene="reception"] .lt-splash:focus-visible {
  outline: 4px solid var(--gold-hi, #e8d2a2);
  outline-offset: -10px;
}

/* ---------------------------------------------------------------- droplets */
/* Water thrown off the jet. Geometric light only: a dot and its glow, never a drawn
   splash. Each one lives for well under a second. */

.scene[data-scene="reception"] .lt-drop {
  position: absolute;
  left: var(--x, 0px);
  top: var(--y, 0px);
  z-index: 205;
  width: var(--s, 7px);
  height: var(--s, 7px);
  margin: calc(var(--s, 7px) / -2) 0 0 calc(var(--s, 7px) / -2);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 38%, #ffffff 0%, rgba(226, 244, 252, 0.85) 52%, rgba(198, 228, 243, 0) 100%);
  opacity: 0;
  pointer-events: none;
}

/* ------------------------------------------------------------------ replay */
/* The single control on the final page: back to the beginning.
 *
 * It is the one thing in this scene that is NOT artwork, so — alone among everything
 * here — it is measured in CSS px against the device box rather than in design px
 * against the frame: 48px (over the 44px minimum), bottom-centre, 74px up, which is the
 * same shelf the nav's own chevron stands on above the dots rail. In design px it would
 * ride the frame's fit and land on top of that rail on a squat viewport.
 *
 * It sits on pale stone and pale lawn, where ivory-on-ivory disappears — so it takes the
 * dots rail's answer to the same problem: a soft dark plate under an ivory mark, with a
 * gold ring to tie it back to the invitation.
 */

.scene[data-scene="reception"] .lt-replay {
  position: absolute;
  left: 50%;
  bottom: calc(var(--safe-b, 0px) + 74px);
  z-index: 460;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-left: -24px; /* centred without `transform`, which stays free for :active */
  padding: 0;
  border: 0;
  border-radius: 50%;
  /* A SOLID PLATE, NOT A BACKDROP BLUR.
     `backdrop-filter` is the most expensive primitive a compositor has: it forces the
     whole stacking context behind the element into its own buffer so the blur has
     something to sample, which on this page means the finale scene. The plate exists to
     hold an ivory mark legible over pale stone and pale lawn — the blur was never doing
     that work, the darkness was. Two more points of alpha (0.44 -> 0.52) carry the same
     contrast with no backdrop root at all. */
  background: rgba(46, 36, 26, 0.52);
  box-shadow:
    inset 0 0 0 1px rgba(232, 210, 162, 0.55),
    0 4px 14px rgba(46, 36, 26, 0.3);
  color: var(--ivory, #fbf7ef);
  cursor: pointer;
  opacity: 0;
  transition:
    opacity var(--dur-lg, 700ms) var(--ease-out, ease-out),
    transform var(--dur-sm, 260ms) var(--ease-out, ease-out);
  -webkit-appearance: none;
  appearance: none;
}

.scene[data-scene="reception"] .lt-replay.is-on {
  opacity: 1;
}

.scene[data-scene="reception"] .lt-replay svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 1px 2px rgba(28, 22, 16, 0.55));
}

.scene[data-scene="reception"] .lt-replay:active {
  transform: scale(0.92);
}

.scene[data-scene="reception"] .lt-replay:focus-visible {
  outline: 3px solid var(--gold-hi, #e8d2a2);
  outline-offset: 3px;
}

/* ------------------------------------------------------------------ credit */
/* "Designed by Shagun Studio India" — the studio colophon, in design px so it rides
   the frame's fit with the invitation copy above it. Sits at y 878 in the band of flat
   paper between the family line (baseline 804) and the palace roofline (~970).

   Cormorant to match the copy, at a third of the family line's size and a softened
   olive, so it reads as a colophon rather than as part of the invitation. Underlined
   because it is a link, per the client's request. The text layer is pointer-events:none
   as a rule; this one node deliberately takes pointer events back so it is tappable. */

.scene[data-scene="reception"] .lt-credit {
  position: absolute;
  left: 50%;
  /* 878 is where the text belongs; the padding below grows the tap target around it,
     so `top` is pulled up by that padding to leave the glyphs exactly on 878. */
  top: 850px;
  padding: 28px 34px;
  transform: translateX(-50%) translateY(6px);
  z-index: 455; /* above the art (tops out ~270) and the copy (450), under the fx chrome */

  font-family: "Cormorant Garamond", Cormorant, Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: 30px; /* design px -> ~11px at a 390px viewport */
  line-height: 1.2;
  letter-spacing: 0.06em;
  white-space: nowrap;

  color: #6c6d3a; /* the copy's #494b00, lifted toward the paper so it recedes */
  text-decoration: underline;
  text-underline-offset: 0.22em;
  text-decoration-thickness: 1px;

  pointer-events: auto;
  opacity: 0;
  transition: opacity var(--dur-md, 400ms) var(--ease-out, ease),
              transform var(--dur-md, 400ms) var(--ease-out, ease),
              color 160ms ease;
}

.scene[data-scene="reception"] .lt-credit.is-on {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.scene[data-scene="reception"] .lt-credit:hover,
.scene[data-scene="reception"] .lt-credit:focus-visible {
  color: #494b00;
}

.scene[data-scene="reception"] .lt-credit:focus-visible {
  outline: 2px solid var(--gold-hi, #e8d2a2);
  outline-offset: 6px;
  border-radius: 4px;
}

.extra-next {position:absolute;bottom:32px;left:50%;transform:translateX(-50%);z-index:600;border:1px solid #82734e;background:#fff9ebed;color:#51432d;border-radius:40px;padding:12px 22px;font:14px Georgia;cursor:pointer}.map-link {position:absolute;right:22px;bottom:90px;z-index:700;padding:9px 14px;border:1px solid #aa9874;border-radius:30px;background:#fff9eeeb;color:#463c2b;font:13px Georgia;text-decoration:none;white-space:nowrap}.lt-credit{display:none!important}
.ms-intro{background:transparent!important}.curtain-half{position:absolute;top:0;bottom:0;width:50.2%;background-image:url('../assets/intro/curtain-poster-v3.webp');background-size:200% 100%;transition:transform 2.3s cubic-bezier(.45,0,.2,1)}.curtain-left{left:0;background-position:left}.curtain-right{right:0;background-position:right}.curtains-open .curtain-left{transform:translateX(-102%)}.curtains-open .curtain-right{transform:translateX(102%)}.curtains-open .ms-intro__hint{display:none}
.cv-cartouche{display:none!important}
.extra-next{bottom:64px}.map-link{bottom:118px}
.custom-curtain-video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.intro-couple{position:absolute;left:15%;right:15%;top:37%;text-align:center;display:flex;flex-direction:column;align-items:center;color:#625b3c;opacity:0;transform:translateY(20px);transition:opacity 1.5s ease,transform 1.5s ease;pointer-events:none;font-family:'Hello Bride',Georgia,serif;font-size:clamp(36px,7vh,68px);line-height:1.15}.intro-couple em{font-family:'Cormorant Garamond',serif;font-size:.55em;line-height:1.2}.intro-couple small{font-family:'Cormorant Garamond',serif;font-size:18px;margin-top:22px}.reveal-couple .intro-couple{opacity:1;transform:translateY(0)}.intro-running .ms-intro__hint{display:none}.custom-intro-exit{opacity:0!important;pointer-events:none;transition:opacity 1.2s ease!important}
