/* Candlelit stair (core/hero/180, fork of core/hero/130), INV-19 After Dark · Luxe (A2695, D-400; board screen A1): the couple's photo on the top of the
   screen melts into the night; on its foot, in a pool of candlelight: the invitation line, EMMA / and / JAMES, one line, and the date row (weekday
   between hairlines, month / big day / year, the time between hairlines). Never the venue (D-121). The photo is the skin's .k-ad-print, shared with the
   opener, so the tap only brings the light up. A laptop puts the photo on the right and the words in the left 40vw. */
.he180 { position: relative; color: var(--k-ink); background: var(--k-night); }
.he180__frame { display: flex; flex-direction: column; align-items: center; min-height: var(--k-ad-frame-h); }
.he180 .k-ad-print__img { object-position: var(--he180-pos, 50% 30%); }
.he180__words { display: flex; flex-direction: column; align-items: center; width: 100%; margin-top: calc(var(--k-ad-photo-h) - 19svh); padding: 0 var(--k-gutter) clamp(28px, 5svh, 56px); text-align: center; }
.he180__words .k-ad-glow { inset: -6% -10% 0; background: radial-gradient(ellipse 64% 42% at 50% 46%, rgb(216 180 122 / .15), rgb(216 180 122 / .05) 48%, transparent 74%); }
.he180__kick { max-width: 30ch; font-size: calc(12.5px * (var(--k-ad-z) + .08)); color: var(--k-ink); text-shadow: 0 1px 12px rgb(10 9 8 / .9); }
.he180-names { --he180-fs: min(calc(84vw / (var(--he180-len) * .5)), calc(clamp(40px, 12.6vw, 58px) * var(--k-ad-z))); margin-top: clamp(12px, 2.2svh, 22px); font-size: var(--he180-fs); }
.he180__line { max-width: 30ch; margin-top: clamp(10px, 1.8svh, 18px); font: italic 500 calc(16px * (var(--k-ad-z) + .08))/1.35 var(--k-font-body); color: var(--k-ink-soft); }
.he180__date { display: flex; align-items: center; justify-content: center; gap: clamp(10px, 3vw, 16px); margin-top: clamp(14px, 2.6svh, 26px); }
.he180__side { min-width: calc(84px * var(--k-ad-z)); padding: 6px 4px 5px; border-block: 1px solid rgb(242 235 221 / .42); font: 500 calc(11.5px * (var(--k-ad-z) + .08))/1.2 var(--k-font-body); letter-spacing: .2em; text-transform: uppercase; white-space: nowrap; }
.he180__mid { display: flex; flex-direction: column; align-items: center; line-height: 1; }
.he180__mid small { font: 500 calc(11.5px * (var(--k-ad-z) + .08))/1.2 var(--k-font-body); letter-spacing: .24em; text-transform: uppercase; }
.he180__mid b { margin: 2px 0 3px; font: 400 calc(50px * var(--k-ad-z))/1 var(--k-font-display); font-variant-numeric: lining-nums; }
.he180--nophoto .he180__words { margin-top: 18svh; }
@media (min-width: 700px) and (orientation: portrait) { .he180__words { margin-top: calc(var(--k-ad-photo-h) - 14svh); } }
@media (min-width: 1000px) and (orientation: landscape) {
  .he180__frame { flex-direction: row; height: var(--k-ad-frame-h); }
  .he180__words { position: relative; z-index: 1; justify-content: center; width: 42vw; height: 100%; margin: 0 auto 0 0; padding: 0 3vw 0 4vw; }
  .he180-names { --he180-fs: min(calc(34vw / (var(--he180-len) * .5)), clamp(58px, 9.4svh, 96px)); }
  .he180__mid b { font-size: clamp(54px, 8svh, 80px); }
  .he180--nophoto .he180__words { width: 100%; margin: 0; }
}

/* The lights come up (the opener's join): the opener holds this same photo, so the hero's copy stays hidden until the gate goes, then swaps in one frame
   (AG-T439). The words rise into the light a beat after the tap, from kjy-enter, so they never wait for a script; a return visit or Reduce Motion simply
   shows them. `backwards` and transitions only: the last frame is the still page (AG-T332). */
html.kjy-locked:not(.motion-reduce) .he180 .k-ad-print { visibility: hidden; }
html.js:not(.motion-reduce):not(.kjy-enter) .he180 :is(.he180__kick, .he180-names, .he180__line, .he180__date) { opacity: 0; transform: translateY(10px); }
html.kjy-enter:not(.kjy-instant):not(.motion-reduce) .he180 { --he180-at: var(--kjy-reveal-at, 250ms); }
html.kjy-enter:not(.kjy-instant):not(.motion-reduce) .he180 :is(.he180__kick, .he180-names, .he180__line, .he180__date) { transition: opacity .9s ease calc(var(--he180-at) + var(--he180-d, 0ms)), transform .9s var(--k-ease) calc(var(--he180-at) + var(--he180-d, 0ms)); }
.he180__kick { --he180-d: 150ms; } .he180-names { --he180-d: 260ms; } .he180__line { --he180-d: 420ms; } .he180__date { --he180-d: 540ms; }
