/* Hadir premium card core. Each design sets its own tokens and its own opener in assets/lux/<motif>/theme.css. */
:root {
  --bg: #efe2db; --paper: #fbf6f1; --paper-2: #fffdfa; --ink: #4a3236; --ink-2: #6b4d51; --muted: #8d7273;
  --rose: #b4646f; --gold: #a8834b; --gold-d: #8a6730; --gold-rgb: 168 131 75; --on-gold: #fffaf0;
  --gold-foil: linear-gradient(100deg, #8a6730 0%, #c9a865 22%, #f0dca8 38%, #b48d4f 52%, #e4cc93 68%, #94733a 86%, #c4a25e 100%);
  --line: rgb(var(--gold-rgb) / 38%); --glass: 255 255 255; --shadow: 90 50 45; --dock: 252 246 241;
  --tex: none; --tex-size: 360px; --hero-bg: transparent; --hero-ink: var(--ink); --sec-bg: transparent;
  --serif: 'Cormorant Garamond', 'Times New Roman', serif; --script: 'Pinyon Script', cursive; --sans: 'Jost', system-ui, sans-serif;
  --col: min(100vw, 480px); --name-size: clamp(58px, 17vw, 78px); --h-size: 46px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--ink); font-family: var(--serif); font-size: 19px; line-height: 1.55;
  background: var(--bg) var(--tex) repeat; background-size: var(--tex-size);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.jawi { font-family: var(--font-jawi); }
.tm-opener-active { overflow: hidden; }

/* ---------- column ---------- */
.tm {
  position: relative; width: var(--col); margin: 0 auto; overflow: hidden;
  background: var(--paper) var(--tex) repeat; background-size: var(--tex-size);
  box-shadow: 0 0 0 1px rgb(var(--shadow) / 8%), 0 30px 80px rgb(var(--shadow) / 14%);
  padding-bottom: 96px;
}
.tm:focus { outline: none; }

/* ---------- type ---------- */
.tm-kicker {
  font-family: var(--sans); font-size: 11px; font-weight: 500; letter-spacing: .34em; text-transform: uppercase;
  color: var(--gold-d); margin: 0 0 10px; padding-left: .34em;
}
.tm-h {
  margin: 0 0 26px; font-family: var(--script); font-weight: 400; font-size: 46px; line-height: 1.05; text-align: center;
  background: var(--gold-foil); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  padding: 0 .1em;
}
.tm-h span {
  display: block; margin-bottom: 6px; font-family: var(--sans); font-size: 10.5px; letter-spacing: .36em; text-transform: uppercase;
  color: var(--muted); -webkit-text-fill-color: var(--muted); background: none;
}
.tm-muted { color: var(--muted); text-align: center; margin: 0 0 16px; }
.tm-small { font-size: 15px; }

/* ---------- hero ---------- */
.tm-hero {
  background: var(--hero-bg); color: var(--hero-ink);
  position: relative; min-height: 100svh; display: grid; place-items: center; text-align: center;
  padding: min(52vw, 230px) 24px 180px;
}
.tm-garland { position: absolute; left: 50%; max-width: none; height: auto; pointer-events: none; user-select: none; }
.tm-par { position: absolute; inset: 0; pointer-events: none; will-change: transform; }
.tm-par-bot { top: auto; bottom: 0; height: 46%; }
.tm-garland-top { top: -14px; width: 118%; transform: translateX(-50%); transform-origin: 50% 0; animation: tm-sway 9s ease-in-out infinite alternate; }
.tm-garland-mirror { bottom: -20px; width: 112%; transform: translateX(-50%) scaleY(-1); opacity: .55; }

.tm-hero-inner { position: relative; z-index: 1; }
.tm-jawi-title { font-size: 30px; color: var(--gold-d); margin: 0 0 8px; }
.tm-names { margin: 6px 0 22px; font-weight: 400; display: grid; justify-items: center; line-height: 1; }
.tm-name {
  font-family: var(--script); font-size: clamp(58px, 17vw, 78px); padding: 0 .15em .12em;
  background: var(--gold-foil); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: tm-foil 7s ease-in-out infinite alternate;
}
.tm-name-jawi { font-size: 22px; color: var(--ink-2); margin: -6px 0 6px; }
.tm-amp { font-family: var(--serif); font-style: italic; font-size: 30px; color: var(--rose); margin: -4px 0 2px; }
.tm-hero-date { display: grid; justify-items: center; gap: 6px; margin: 0 auto 14px; }
.tm-hero-date span { font-family: var(--sans); font-size: 11px; letter-spacing: .32em; text-transform: uppercase; color: var(--muted); padding-left: .32em; }
.tm-hero-date strong {
  display: flex; align-items: center; gap: 14px; font-weight: 500; font-size: 30px; letter-spacing: .06em; color: var(--ink);
  padding: 6px 0; border-block: 1px solid var(--line); min-width: 230px; justify-content: center;
}
.tm-hero-date i { font-style: normal; color: var(--gold); }
.tm-hero-venue { margin: 0; font-style: italic; font-size: 21px; color: var(--ink-2); }
.tm-photo { position: relative; z-index: 1; margin: 28px auto 0; width: 210px; aspect-ratio: 4/5; border-radius: 999px 999px 18px 18px; overflow: hidden; border: 1px solid var(--line); padding: 6px; background: var(--paper-2); }
.tm-photo img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.tm-scroll { position: absolute; z-index: 2; bottom: 96px; left: 50%; transform: translateX(-50%); width: 24px; height: 40px; border: 1px solid var(--gold); border-radius: 20px; }
.tm-scroll span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: var(--gold); animation: tm-scroll 2s ease-in-out infinite; }

/* ---------- sections ---------- */
.tm-sec { position: relative; padding: 64px 30px; text-align: center; }
.tm-paper {
  margin: 10px 16px; padding: 58px 28px; background: var(--paper-2);
  border-radius: 4px; box-shadow: 0 1px 0 rgb(var(--glass) / 80%) inset, 0 18px 40px rgb(var(--shadow) / 9%);
}
.tm-paper::before {
  content: ""; position: absolute; inset: 10px; border: 1px solid var(--line); pointer-events: none;
  outline: 1px solid rgb(var(--gold-rgb) / 18%); outline-offset: 4px;
}
.tm-paper::after { /* lace scallop edge */
  content: ""; position: absolute; inset: -7px 0 auto; height: 14px;
  background: radial-gradient(circle at 7px 0, transparent 6px, var(--paper-2) 6.5px) 0 7px / 14px 14px repeat-x;
  transform: rotate(180deg); pointer-events: none;
}
.tm-bismillah { font-size: 30px; color: var(--gold-d); margin: 0 0 18px; line-height: 1.8; }
.tm-salam { font-style: italic; font-size: 20px; margin: 0 0 18px; }
.tm-hosts { font-weight: 600; letter-spacing: .02em; margin: 0 0 16px; }
.tm-invite { margin: 0 auto 24px; max-width: 34ch; color: var(--ink-2); }
.tm-couple { display: grid; gap: 4px; margin: 0 0 8px; }
.tm-full { margin: 0; font-size: 24px; font-weight: 600; line-height: 1.25; color: var(--ink); }
.tm-with { margin: 4px 0; font-family: var(--script); font-size: 30px; color: var(--rose); line-height: 1.2; }
.tm-sprig { width: 86%; margin: 18px auto -12px; }

/* countdown */
.tm-count { padding-block: 40px 36px; }
.tm-count-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; max-width: 360px; margin: 0 auto; }
.tm-count-row div { aspect-ratio: 1; display: grid; place-content: center; border: 1px solid var(--line); border-radius: 50%; background: rgb(var(--glass) / 45%); position: relative; }
.tm-count-row div::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; border: 1px dashed rgb(var(--gold-rgb) / 25%); }
.tm-count-row strong { font-size: 30px; font-weight: 500; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.tm-count-row span { font-family: var(--sans); font-size: 9.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }

/* sessions */
.tm-corner { position: absolute; width: 230px; pointer-events: none; opacity: .95; }
.tm-corner-tr { top: -30px; right: -60px; transform: scaleX(-1); }
.tm-corner-bl { bottom: -40px; left: -70px; transform: rotate(180deg) scaleX(-1); opacity: .8; }
.tm-session { position: relative; z-index: 1; margin: 0 auto 30px; }
.tm-session h3 { margin: 0 0 18px; font-family: var(--sans); font-weight: 500; font-size: 13px; letter-spacing: .3em; text-transform: uppercase; color: var(--rose); padding-left: .3em; }
.tm-cal { display: grid; justify-items: center; margin: 0 auto 16px; width: 200px; padding: 12px 0 14px; border-block: 1px solid var(--line); }
.tm-cal-day, .tm-cal-month { font-family: var(--sans); font-size: 11px; letter-spacing: .32em; text-transform: uppercase; color: var(--muted); padding-left: .32em; }
.tm-cal-num { font-size: 64px; line-height: 1; margin: 2px 0 8px; font-weight: 500; color: var(--ink); }
.tm-time { margin: 0 0 6px; font-size: 21px; }
.tm-time i { font-style: italic; color: var(--muted); margin: 0 .45em; }
.tm-venue { margin: 0; font-size: 25px; font-weight: 600; line-height: 1.25; }
.tm-address { margin: 4px auto 0; max-width: 30ch; color: var(--ink-2); }
.tm-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 22px auto 0; max-width: 330px; }
.tm-actions .tm-btn { padding: 0 10px; letter-spacing: .14em; }
.tm-dress { font-style: italic; color: var(--ink-2); margin: 0; }

/* buttons */
.tm-btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 18px;
  border: 1px solid var(--gold); border-radius: 999px; background: rgb(var(--glass) / 55%); color: var(--gold-d);
  font-family: var(--sans); font-size: 11px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; text-decoration: none;
  cursor: pointer; transition: background .25s, color .25s, transform .2s;
}
.tm-btn:hover { background: rgb(var(--glass) / 85%); }
.tm-btn:active { transform: scale(.97); }
.tm-btn-gold { border: 0; color: var(--on-gold); background: var(--gold-foil); background-size: 200% 100%; box-shadow: 0 6px 18px rgb(var(--shadow) / 28%); text-shadow: 0 1px 1px rgb(0 0 0 / 25%); }
.tm-btn-gold:hover { background-position: 100% 0; }
.tm-btn-block { width: 100%; min-height: 50px; font-size: 12px; margin-top: 8px; }
.tm-btn:disabled { opacity: .6; }

/* timeline */
.tm-timeline { list-style: none; margin: 0 auto; padding: 0; max-width: 330px; position: relative; text-align: left; }
.tm-timeline::before { content: ""; position: absolute; left: 92px; top: 8px; bottom: 8px; border-left: 1px dashed var(--gold); }
.tm-timeline li { display: grid; grid-template-columns: 80px 1fr; gap: 26px; padding: 10px 0; position: relative; }
.tm-timeline li::before { content: ""; position: absolute; left: 87px; top: 19px; width: 11px; height: 11px; border-radius: 50%; background: var(--paper); border: 1px solid var(--gold); box-shadow: 0 0 0 3px var(--paper); }
.tm-tl-time { text-align: right; font-family: var(--sans); font-size: 12px; letter-spacing: .08em; color: var(--gold-d); padding-top: 4px; }
.tm-tl-text { font-size: 20px; }

/* forms */
.tm-form { display: grid; gap: 16px; text-align: left; max-width: 360px; margin: 0 auto; }
.tm-field { display: grid; gap: 4px; }
.tm-field > span, .tm-choice legend { font-family: var(--sans); font-size: 10.5px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
.tm-field input, .tm-field textarea, .tm-field select {
  width: 100%; font: inherit; font-size: 19px; color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid var(--line);
  padding: 8px 2px; border-radius: 0; outline: none; transition: border-color .2s;
}
.tm-field textarea { resize: vertical; min-height: 84px; }
.tm-field input:focus, .tm-field textarea:focus, .tm-field select:focus { border-bottom-color: var(--gold); }
.tm-choice { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tm-choice legend { margin-bottom: 8px; padding: 0; }
.tm-choice label { position: relative; }
.tm-choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.tm-choice span { display: inline-block; padding: 9px 16px; border: 1px solid var(--line); border-radius: 999px; font-size: 17px; background: rgb(var(--glass) / 60%); transition: all .2s; }
.tm-choice input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.tm-choice input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.tm-if-coming { display: grid; gap: 10px; }
.tm-form:has([value="tidak"]:checked) .tm-if-coming { display: none; }
.tm-two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.tm-step { display: grid; grid-template-columns: 36px 1fr 36px; align-items: center; border-bottom: 1px solid var(--line); }
.tm-step input { border: 0 !important; text-align: center; -moz-appearance: textfield; }
.tm-step input::-webkit-inner-spin-button, .tm-step input::-webkit-outer-spin-button { -webkit-appearance: none; }
.tm-step button { height: 36px; border: 1px solid var(--line); border-radius: 50%; background: rgb(var(--glass) / 80%); color: var(--gold-d); font-size: 18px; cursor: pointer; }
.tm-form-msg { margin: 0; min-height: 1.4em; text-align: center; font-style: italic; color: var(--rose); }

/* wishes */
.tm-wishes { list-style: none; margin: 30px auto 0; padding: 0; max-width: 360px; display: grid; gap: 12px; text-align: left; max-height: 420px; overflow: auto; position: relative; z-index: 1; }
.tm-wishes li { background: rgb(var(--glass) / 70%); border: 1px solid rgb(var(--gold-rgb) / 18%); border-radius: 14px; padding: 14px 16px; }
.tm-wishes strong { font-family: var(--sans); font-weight: 500; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-d); }
.tm-wishes p { margin: 4px 0 0; font-size: 18px; }

/* gift */
.tm-acct { display: grid; justify-items: center; gap: 2px; margin: 0 auto 20px; padding: 22px; border: 1px solid var(--line); border-radius: 14px; background: rgb(var(--glass) / 60%); max-width: 320px; }
.tm-acct p { margin: 0; }
.tm-acct-bank { font-family: var(--sans); font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }
.tm-acct-no { font-size: 28px; font-weight: 600; letter-spacing: .06em; }
.tm-acct-holder { margin-bottom: 12px !important; color: var(--ink-2); }
.tm-qr { margin: 0 auto; max-width: 240px; } .tm-qr img { border-radius: 12px; border: 1px solid var(--line); }
.tm-qr figcaption { font-size: 15px; color: var(--muted); margin-top: 8px; }

/* contacts */
.tm-contacts { list-style: none; margin: 0 auto; padding: 0; max-width: 340px; display: grid; gap: 0; }
.tm-contacts li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 4px; border-bottom: 1px solid rgb(var(--gold-rgb) / 22%); text-align: left; }
.tm-contacts li:last-child { border-bottom: 0; }
.tm-contacts strong { display: block; font-size: 22px; font-weight: 600; line-height: 1.2; }
.tm-contacts span { display: block; color: var(--muted); font-size: 16px; }
.tm-phone { font-family: var(--sans); font-size: 13px !important; letter-spacing: .06em; white-space: nowrap; }
.tm-actions-sm { display: flex; margin: 0; gap: 8px; }
.tm-icon-btn { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--gold); color: var(--gold-d); background: rgb(var(--glass) / 80%); }

/* closing */
.tm-closing { padding: 70px 30px 0; }
.tm-doa { margin: 0 auto 20px; max-width: 32ch; font-size: 21px; font-style: italic; color: var(--ink-2); }
.tm-quote { margin: 0 auto 26px; max-width: 34ch; font-size: 16px; color: var(--muted); }
.tm-closing-names { margin: 0; font-family: var(--script); font-size: clamp(34px, 11vw, 46px); line-height: 1.2;
  background: var(--gold-foil); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; }
.tm-closing-names span { font-family: var(--serif); font-style: italic; font-size: 26px; }
.tm-hashtag { font-family: var(--sans); font-size: 12px; letter-spacing: .26em; color: var(--gold-d); margin: 4px 0 0; }
.tm-garland-bottom { position: relative; left: 50%; width: 118%; transform: translateX(-50%); margin: -120px 0 -10px; }
.tm-made { margin: 0 auto; padding: 8px 10px 0; max-width: 40ch; font-family: var(--sans); font-size: 11px; line-height: 1.6; color: var(--muted); }

/* dock */
.tm-dock {
  position: fixed; z-index: 30; left: 50%; bottom: max(12px, env(safe-area-inset-bottom)); transform: translateX(-50%);
  display: flex; gap: 2px; padding: 6px; border-radius: 999px; width: max-content; max-width: min(calc(100vw - 16px), 464px);
  background: rgb(var(--dock) / 84%); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border: 1px solid rgb(var(--gold-rgb) / 30%); box-shadow: 0 10px 30px rgb(var(--shadow) / 16%);
  transition: transform .5s cubic-bezier(.2,.8,.2,1), opacity .4s;
}
.tm-dock a, .tm-dock button {
  flex: 0 1 auto; min-width: 0; display: grid; justify-items: center; gap: 1px; padding: 6px 8px; border-radius: 999px; border: 0; background: none;
  color: var(--ink-2); text-decoration: none; font-family: var(--sans); font-size: 9.5px; letter-spacing: .06em; cursor: pointer;
}
.tm-dock span { white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 400px) { .tm-dock a, .tm-dock button { padding: 6px 4px; font-size: 9px; letter-spacing: .02em; } }
@media (max-width: 340px) { .tm-dock span { display: none; } .tm-dock a, .tm-dock button { padding: 9px 6px; } }
.tm-dock a:hover, .tm-dock button[aria-pressed="true"] { background: rgb(var(--gold-rgb) / 14%); color: var(--gold-d); }
.tm-dock svg { width: 20px; height: 20px; }
.tm-opener-active .tm-dock { opacity: 0; transform: translate(-50%, 30px); pointer-events: none; }

/* draft mark */
.tm-draft { position: fixed; z-index: 60; top: 10px; left: 50%; transform: translateX(-50%); padding: 4px 12px; border-radius: 999px; background: rgb(74 50 54 / 85%); color: #fff; font-family: var(--sans); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; pointer-events: none; }

/* ---------- opener (envelope) ---------- */
.tm-opener {
  position: fixed; inset: 0; z-index: 50; display: grid; place-content: center; justify-items: center; gap: 36px; padding: 24px;
  background: var(--opener-bg, radial-gradient(120% 80% at 50% 30%, #fbf2ec 0%, #f0dcd3 60%, #e6cbc1 100%));
  transition: opacity .9s ease, visibility 0s .9s;
}
.tm-opener::before { content: ""; position: absolute; inset: 0; background: var(--tex) repeat; background-size: var(--tex-size); opacity: .6; mix-blend-mode: multiply; pointer-events: none; }
.tm-opener.is-gone { opacity: 0; visibility: hidden; }
.tm-env { --w: min(82vw, 340px); --h: calc(var(--w) * .66); position: relative; width: var(--w); height: var(--h); perspective: 1200px; filter: drop-shadow(0 22px 30px rgb(var(--shadow) / 24%)); }
.tm-env-back { position: absolute; inset: 0; border-radius: 6px; background: var(--env-back, linear-gradient(160deg, #e9c9c0, #dcb1a7)); }
.tm-env-letter {
  position: absolute; left: 6%; right: 6%; top: 6%; height: 88%; z-index: 1; border-radius: 3px; background: var(--paper-2);
  display: grid; place-content: center; justify-items: center; text-align: center; padding: 10px;
  box-shadow: 0 0 0 1px rgb(var(--gold-rgb) / 25%) inset; transition: transform 1.2s cubic-bezier(.3,.7,.2,1) .55s;
}
.tm-env-sprig { width: 80%; margin: -6px auto 4px; }
.tm-env-letter .tm-kicker { font-size: 9px; margin-bottom: 4px; }
.tm-env-names { margin: 0; font-family: var(--script); font-size: 30px; line-height: 1.1; color: var(--gold-d); }
.tm-env-names span { font-family: var(--serif); font-style: italic; font-size: 18px; color: var(--rose); }
.tm-env-front {
  position: absolute; inset: 0; z-index: 2; border-radius: 6px;
  background: var(--env-front, linear-gradient(180deg, #f3ddd5, #ecd0c7));
  clip-path: polygon(0 0, 50% 54%, 100% 0, 100% 100%, 0 100%);
}
.tm-env-front::after { content: ""; position: absolute; inset: 0; background: var(--tex); background-size: 300px; opacity: .45; mix-blend-mode: multiply; }
.tm-env-flap {
  position: absolute; left: 0; right: 0; top: 0; height: 62%; z-index: 3; transform-origin: 50% 0;
  background: var(--env-flap, linear-gradient(180deg, #ecd0c6, #e2bbb0)); clip-path: polygon(0 0, 100% 0, 50% 100%);
  transition: transform 1s cubic-bezier(.5,.1,.3,1) .15s, z-index 0s .6s;
}
.tm-env-flower { position: absolute; z-index: 4; width: 62%; left: -16%; bottom: -22%; transform: rotate(180deg) scaleX(-1); pointer-events: none; transition: opacity .6s; }
.tm-seal {
  position: absolute; z-index: 5; left: 50%; top: 62%; width: 74px; height: 74px; margin: -37px 0 0 -37px; border: 0; padding: 0; cursor: pointer;
  border-radius: 46% 54% 50% 50% / 52% 46% 54% 48%;
  background: var(--seal, var(--seal, radial-gradient(circle at 35% 30%, #cf9196 0%, #a3525e 42%, #7a3141 100%)));
  box-shadow: 0 0 0 5px rgb(var(--seal-rgb, 159 78 90) / 55%), 0 6px 14px rgb(80 20 30 / 35%), inset 0 -3px 6px rgb(60 10 20 / 35%), inset 0 3px 5px rgb(255 220 220 / 25%);
  color: var(--seal-ink, #f6e2c9); font-family: var(--script); font-size: 26px; line-height: 1;
  transition: transform .5s cubic-bezier(.5,-0.4,.5,1), opacity .4s .2s;
  animation: tm-pulse 2.4s ease-in-out infinite;
}
.tm-seal span { display: inline-flex; align-items: baseline; text-shadow: 0 1px 1px rgb(60 10 20 / 45%); }
.tm-seal i { font-family: var(--serif); font-size: 14px; margin: 0 2px; }
.tm-opener-text { text-align: center; position: relative; }
.tm-guest { margin: 0 0 22px; font-size: 26px; font-weight: 500; color: var(--ink); max-width: 22ch; line-height: 1.25; }
.tm-opener.is-opening .tm-seal { transform: scale(1.25); opacity: 0; animation: none; }
.tm-opener.is-opening .tm-env-flap { transform: rotateX(180deg); z-index: 0; }
.tm-opener.is-opening .tm-env-letter { transform: translateY(-58%); z-index: 2; }
.tm-opener.is-opening .tm-env-front { z-index: 3; }
.tm-opener.is-opening .tm-env-flower { opacity: 0; }
.tm-opener.is-opening .tm-opener-text { opacity: 0; transition: opacity .4s; }

/* ---------- petals canvas ---------- */
.tm-petals { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 20; pointer-events: none; }

/* ---------- reveal ---------- */
.js [data-r] { opacity: 0; transform: translateY(22px); transition: opacity 1s ease, transform 1.1s cubic-bezier(.2,.7,.2,1); }
.js [data-r].is-in { opacity: 1; transform: none; }

@keyframes tm-foil { from { background-position: 0% 0; } to { background-position: 100% 0; } }
@keyframes tm-sway { from { transform: translateX(-50%) rotate(-.6deg); } to { transform: translateX(-50%) rotate(.6deg); } }
@keyframes tm-scroll { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }
@keyframes tm-pulse { 0%, 100% { box-shadow: 0 0 0 5px rgb(var(--seal-rgb, 159 78 90) / 55%), 0 6px 14px rgb(80 20 30 / 35%), inset 0 -3px 6px rgb(60 10 20 / 35%); } 50% { box-shadow: 0 0 0 9px rgb(var(--seal-rgb, 159 78 90) / 22%), 0 6px 14px rgb(80 20 30 / 35%), inset 0 -3px 6px rgb(60 10 20 / 35%); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .js [data-r] { opacity: 1; transform: none; }
  .tm-petals { display: none; }
}
@media (min-width: 560px) {
  body { padding: 0; }
  .tm-opener .tm-env { --w: 380px; }
}

@media (max-width: 340px) {
  .tm-actions { grid-template-columns: 1fr; max-width: 240px; }
  .tm-sec { padding-inline: 20px; }
  .tm-paper { margin-inline: 10px; padding-inline: 18px; }
  .tm-h { font-size: 40px; }
}
@media (max-height: 760px) { .tm-scroll { display: none; } .tm-hero { padding-bottom: 140px; } }

/* ===== v2: signature effects ===== */

/* watercolour bleed: art blooms in like wet paint */
.js [data-b] {
  -webkit-mask-image: url("bleed.png"); mask-image: url("bleed.png");
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: 50% 40%; mask-position: 50% 40%;
  -webkit-mask-size: 0% 0%; mask-size: 0% 0%;
  transition: -webkit-mask-size 2.2s cubic-bezier(.25,.6,.3,1), mask-size 2.2s cubic-bezier(.25,.6,.3,1);
}
.js [data-b].is-in { -webkit-mask-size: 340% 340%; mask-size: 340% 340%; }
.js .tm-garland-top[data-b] { -webkit-mask-position: 50% 0%; mask-position: 50% 0%; transition-duration: 2.8s; }
.js [data-b].is-done { -webkit-mask-image: none; mask-image: none; }

/* names written in gold ink */
.js .tm-names .tm-name {
  -webkit-mask-image: linear-gradient(90deg, #000 40%, transparent 60%); mask-image: linear-gradient(90deg, #000 40%, transparent 60%);
  -webkit-mask-size: 260% 100%; mask-size: 260% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: 100% 0; mask-position: 100% 0;
  transition: -webkit-mask-position 1.9s cubic-bezier(.45,.05,.35,1), mask-position 1.9s cubic-bezier(.45,.05,.35,1);
}
.js .tm-names.is-in .tm-name { -webkit-mask-position: 0 0; mask-position: 0 0; }
.js .tm-names.is-in .tm-name:nth-of-type(3), .js .tm-names.is-in .tm-name:last-of-type { transition-delay: 1.15s; }
.js .tm-names .tm-amp { opacity: 0; transform: scale(.4) rotate(-20deg); transition: opacity .6s 1s, transform .9s cubic-bezier(.3,1.6,.5,1) 1s; }
.js .tm-names.is-in .tm-amp { opacity: 1; transform: none; }
.js .tm-names { transform: none !important; }

/* foil glint sweeping across headings when they arrive */
.tm-h, .tm-closing-names { position: relative; }
.js .tm-h.is-in, .js .tm-closing-names.is-in { animation: tm-glint 2.6s ease-out .4s 1 both; }
@keyframes tm-glint { from { background-position: 100% 0; } to { background-position: 0% 0; } }

/* date digits roll in */
.tm-hero-date strong b { display: inline-block; font-weight: 500; }
.js .tm-hero-date strong b { opacity: 0; transform: translateY(.6em) rotateX(70deg); transition: opacity .6s, transform .9s cubic-bezier(.2,1.4,.4,1); }
.js .tm-hero-date.is-in strong b { opacity: 1; transform: none; }

/* wax seal that cracks in two */
.tm-seal { background: none; box-shadow: none; animation: none; overflow: visible; }
.tm-seal::before { content: ""; position: absolute; inset: -6px; border-radius: 50%; animation: tm-pulse2 2.4s ease-in-out infinite; }
.tm-seal-half {
  position: absolute; inset: 0; display: grid; place-items: center;
  border-radius: 46% 54% 50% 50% / 52% 46% 54% 48%;
  background: var(--seal, radial-gradient(circle at 35% 30%, #cf9196 0%, #a3525e 42%, #7a3141 100%));
  box-shadow: 0 0 0 5px rgb(var(--seal-rgb, 159 78 90) / 55%), 0 6px 14px rgb(80 20 30 / 35%), inset 0 -3px 6px rgb(60 10 20 / 35%), inset 0 3px 5px rgb(255 220 220 / 25%);
  transition: transform .9s cubic-bezier(.3,.6,.4,1), opacity .6s .35s;
}
.tm-seal-l { clip-path: polygon(0 0, 52% 0, 45% 22%, 56% 40%, 46% 58%, 55% 78%, 48% 100%, 0 100%); }
.tm-seal-r { clip-path: polygon(52% 0, 100% 0, 100% 100%, 48% 100%, 55% 78%, 46% 58%, 56% 40%, 45% 22%); }
.tm-seal-half > span { display: inline-flex; align-items: baseline; color: var(--seal-ink, #f6e2c9); font-family: var(--script); font-size: 26px; text-shadow: 0 1px 1px rgb(60 10 20 / 45%); }
.tm-sparks { position: absolute; inset: 50% auto auto 50%; width: 0; height: 0; pointer-events: none; }
.tm-sparks i { position: absolute; width: 6px; height: 6px; margin: -3px; border-radius: 50%; background: radial-gradient(circle, #fff6d8, #d8b56a 60%, transparent 70%); opacity: 0; }
.tm-opener.is-opening .tm-seal { transform: none; opacity: 1; }
.tm-opener.is-opening .tm-seal-l { transform: translate(-34px, 30px) rotate(-28deg); opacity: 0; }
.tm-opener.is-opening .tm-seal-r { transform: translate(34px, 34px) rotate(24deg); opacity: 0; }
.tm-opener.is-opening .tm-seal::before { animation: none; }
.tm-opener.is-opening .tm-sparks i { animation: tm-spark .9s cubic-bezier(.2,.7,.3,1) both; }
@keyframes tm-spark { 0% { opacity: 1; transform: rotate(var(--a)) translateX(0) scale(1.2); } 100% { opacity: 0; transform: rotate(var(--a)) translateX(var(--d)) scale(.3); } }
@keyframes tm-pulse2 { 0%, 100% { box-shadow: 0 0 0 0 rgb(var(--seal-rgb, 159 78 90) / 40%); } 50% { box-shadow: 0 0 0 10px rgb(var(--seal-rgb, 159 78 90) / 0%); } }

/* envelope breathes in 3D with device tilt */
.tm-env { transform-style: preserve-3d; transition: transform .25s ease-out; }

/* letter flies up to fill the screen */
.tm-opener.is-zoom .tm-env-letter { transform: translateY(-40%) scale(5); opacity: 0; transition: transform .95s cubic-bezier(.6,0,.3,1), opacity .5s .45s; }
.tm-opener.is-zoom .tm-env-back, .tm-opener.is-zoom .tm-env-front, .tm-opener.is-zoom .tm-env-flap { opacity: 0; transform: translateY(40px); transition: opacity .5s, transform .6s; }

/* RSVP thank-you stamp */
.tm-form { position: relative; }
.tm-stamp {
  position: absolute; left: 50%; top: 42%; width: 150px; height: 150px; margin: -75px 0 0 -75px; display: grid; place-items: center; pointer-events: none;
  border-radius: 50%; color: var(--stamp, #8a2f3e); font-family: var(--script); font-size: 30px; line-height: 1.05; text-align: center;
  border: 3px double var(--stamp, #8a2f3e); background: radial-gradient(circle, rgb(var(--glass) / 96%), rgb(var(--glass) / 92%));
  box-shadow: 0 0 0 6px rgb(var(--glass) / 70%), 0 10px 30px rgb(110 40 50 / 22%);
  opacity: 0; transform: scale(2.4) rotate(-24deg);
}
.tm-stamp.is-on { animation: tm-stamp 2.6s cubic-bezier(.2,.9,.3,1) both; }
@keyframes tm-stamp { 0% { opacity: 0; transform: scale(2.4) rotate(-24deg); } 22% { opacity: 1; transform: scale(.92) rotate(-12deg); } 30% { transform: scale(1) rotate(-12deg); } 85% { opacity: 1; transform: scale(1) rotate(-12deg); } 100% { opacity: 0; transform: scale(1.05) rotate(-12deg); } }

@media (prefers-reduced-motion: reduce) {
  .js [data-b] { -webkit-mask-image: none; mask-image: none; }
  .js .tm-names .tm-name { -webkit-mask-image: none; mask-image: none; }
  .js .tm-names .tm-amp, .js .tm-hero-date strong b { opacity: 1; transform: none; }
}

/* ================= premium additions ================= */
.lx-hijri { letter-spacing: .18em !important; text-transform: none !important; font-family: var(--serif) !important; font-size: 15px !important; font-style: italic; color: var(--gold-d) !important; }
.lx-cal-hijri { margin-top: 6px; font-style: italic; font-size: 15px; color: var(--gold-d); }
.lx-sprig { width: 78%; margin: -8px auto 18px; }
.tm-paper .lx-sprig { margin-top: 0; }

/* wipe reveal for art (like thread being woven or ink drawn), any design can retune it */
.js [data-w] {
  -webkit-mask-image: linear-gradient(90deg, #000 45%, transparent 55%); mask-image: linear-gradient(90deg, #000 45%, transparent 55%);
  -webkit-mask-size: 240% 100%; mask-size: 240% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: 100% 0; mask-position: 100% 0;
  transition: -webkit-mask-position 1.6s cubic-bezier(.6,.05,.3,1), mask-position 1.6s cubic-bezier(.6,.05,.3,1);
}
.js [data-w].is-in { -webkit-mask-position: 0 0; mask-position: 0 0; }

/* gallery */
.lx-slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: 6px; margin: 0 -6px; }
.lx-slides::-webkit-scrollbar { display: none; }
.lx-slide { flex: 0 0 100%; margin: 0; padding: 0 6px; scroll-snap-align: center; }
.lx-slide img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 4px; box-shadow: 0 10px 30px rgb(var(--shadow) / 22%); }
.lx-dots { display: flex; justify-content: center; gap: 6px; margin-top: 14px; }
.lx-dots i { width: 6px; height: 6px; border-radius: 3px; background: var(--line); transition: width .3s, background .3s; }
.lx-dots i.on { width: 18px; background: var(--gold); }

/* generic opener plumbing for designs other than the envelope */
.lx-opener { overflow: hidden; }
.lx-opener .tm-opener-text { text-align: center; position: absolute; z-index: 9; left: 0; right: 0; bottom: max(28px, env(safe-area-inset-bottom)); transition: opacity .4s; }
.lx-opener.is-opening .tm-opener-text { opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  .js [data-w] { -webkit-mask-image: none; mask-image: none; }
}

/* shared opener text bits; designs recolour them */
.lx-to { margin: 8px 0 0; font-family: var(--serif); font-style: italic; font-size: 17px; color: var(--ink-2); }
.lx-to-names { margin: 0; font-family: var(--script); font-size: 40px; line-height: 1.15; background: var(--gold-foil); -webkit-background-clip: text; background-clip: text; color: transparent; padding: 0 .15em .1em; }
.lx-to-names span { font-family: var(--display); font-size: 16px; }
.lx-plaque { position: absolute; z-index: 3; left: 50%; top: 40%; transform: translate(-50%, -50%); width: min(74vw, 280px); padding: 20px 16px 18px; text-align: center; pointer-events: none; transition: opacity .5s, transform .6s; }
.lx-plaque .tm-kicker { font-size: 9.5px; margin: 4px 0 6px; }
.lx-plaque-names { margin: 0; font-family: var(--script); font-size: 36px; line-height: 1.15; background: var(--gold-foil); -webkit-background-clip: text; background-clip: text; color: transparent; padding: 0 .15em .1em; }
.lx-plaque-names span { font-family: var(--display); font-size: 14px; }
.lx-plaque-to { margin: 8px 0 0; font-family: var(--serif); font-style: italic; font-size: 16px; color: var(--ink-2); }
.lx-opener.is-opening .lx-plaque { opacity: 0; transform: translate(-50%, -46%) scale(.96); }
.tm-hero-inner > .lx-frame { position: absolute; z-index: -1; left: calc(-1 * var(--fx, 28px)); top: calc(-1 * var(--ft, 60px)); width: calc(100% + 2 * var(--fx, 28px)); height: calc(100% + var(--ft, 60px) + var(--fb, 40px)); max-width: none; pointer-events: none; }

/* ================= features: wishes with photos, gift list, entry pass, language ================= */
.tm-wishes li img { display: block; width: 100%; max-height: 340px; object-fit: cover; border-radius: 10px; margin-top: 10px; }
.lx-file input { font-size: 14px; padding: 8px 0; border: 0; background: none; color: var(--ink-2); }
.lx-file input::file-selector-button { font: inherit; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; margin-right: 10px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--gold); background: transparent; color: var(--gold-d); }
.lx-wish-items { list-style: none; margin: 0 auto; padding: 0; display: grid; gap: 10px; max-width: 380px; text-align: left; }
.lx-wish-items li { display: grid; gap: 10px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: rgb(var(--glass) / 45%); }
.lx-wish-items li > div:first-child { display: grid; gap: 2px; }
.lx-wish-items strong { font-weight: 600; font-size: 19px; }
.lx-wish-items span { color: var(--muted); font-size: 15px; }
.lx-wish-act { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.lx-wish-act .tm-btn { height: 38px; padding: 0 14px; font-size: 11px; }
.lx-wish-items li.is-taken { opacity: .6; }
.lx-taken { font-family: var(--sans); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-style: normal; }
.lx-claim { display: flex; flex-wrap: wrap; gap: 8px; }
.lx-claim input { flex: 1 1 160px; min-width: 0; height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: rgb(var(--glass) / 70%); color: var(--ink); font: inherit; font-size: 16px; }
.lx-claim .tm-btn { height: 40px; }
.lx-claim .form-msg { flex-basis: 100%; margin: 0; font-size: 14px; color: var(--ink-2); }
.lx-qr { width: 220px; max-width: 70%; margin: 0 auto 14px; padding: 14px; background: #fff; border-radius: 14px; box-shadow: 0 0 0 1px var(--line), 0 12px 30px rgb(var(--shadow) / 14%); }
.lx-qr svg { display: block; width: 100%; height: auto; }
.lx-qr:empty { aspect-ratio: 1; }
.lx-lang b { font-family: var(--sans); font-size: 13px; font-weight: 600; letter-spacing: .06em; line-height: 20px; height: 20px; display: block; }
.lx-thanks-tag { margin: 18px 0 0; font-family: var(--sans); font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--gold-d); }
.lx-thanks .tm-h { margin-bottom: 14px; }
.tm-btn-gold:hover { background: var(--gold-foil); background-size: 200% 100%; filter: brightness(1.06); }
@media (hover: none) { .tm-btn:not(.tm-btn-gold):hover { background: rgb(var(--glass) / 55%); } }

/* ================= openers used by many designs (set 2) ================= */
/* lepas: sprites (balloons, butterflies, bubbles, rockets) float away */
.lx-open-lepas { background: var(--opener-bg, var(--paper)); }
.lx-open-lepas::before { opacity: .35; }
.lx-fly { position: absolute; inset: 0; pointer-events: none; }
.lx-fly i { position: absolute; left: var(--x); top: var(--y); width: calc(84px * var(--s)); height: calc(150px * var(--s)); margin-left: calc(-42px * var(--s)); background: center / contain no-repeat;
  animation: lx-bob2 calc(3s + var(--k) * .2s) ease-in-out calc(var(--k) * -.4s) infinite alternate; transition: transform calc(1.4s + var(--k) * .05s) cubic-bezier(.5,0,.75,0) calc(var(--k) * .04s), opacity .6s calc(.8s + var(--k) * .04s); }
@keyframes lx-bob2 { from { translate: 0 -6px; rotate: -3deg; } to { translate: 0 8px; rotate: 3deg; } }
.lx-fly-card, .lx-layer-card { position: relative; z-index: 3; display: grid; justify-items: center; gap: 6px; width: min(80vw, 310px); padding: 26px 20px 22px; border: 0; cursor: pointer; text-align: center;
  border-radius: var(--card-r, 22px); background: rgb(var(--glass) / 88%); color: var(--ink); box-shadow: 0 0 0 1px var(--line), 0 24px 50px rgb(var(--shadow) / 20%);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: transform .8s cubic-bezier(.5,0,.3,1), opacity .6s .15s; }
.lx-fly-card .tm-kicker, .lx-layer-card .tm-kicker { margin: 0; font-size: 10px; }
.lx-fly-card .lx-to-names, .lx-layer-card .lx-to-names { display: block; }
.lx-open-lepas.is-opening .lx-fly i { animation: none; transform: translateY(-130vh) rotate(calc((var(--k) - 7) * 4deg)); opacity: 0; }
.lx-open-lepas.is-opening .lx-fly-card { transform: scale(.92) translateY(14px); opacity: 0; }
.lx-open-lepas.is-opening, .lx-open-lapis.is-opening, .lx-open-kotak.is-opening, .lx-open-bulan.is-zoom, .lx-open-pelita.is-zoom, .lx-open-mentari.is-zoom { background: transparent; transition: background .7s ease .6s, opacity .7s, visibility 0s .7s; }
.lx-open-lepas.is-opening::before, .lx-open-lapis.is-opening::before, .lx-open-kotak.is-opening::before { opacity: 0; transition: opacity .6s .5s; }

/* kotak: a gift box whose lid flies off */
.lx-open-kotak { background: var(--opener-bg, var(--paper)); }
.lx-box { position: relative; width: min(64vw, 250px); aspect-ratio: 1 / 1.05; margin-top: 40px; }
.lx-box-body { position: absolute; inset: 22% 4% 0; border-radius: 6px; background: var(--box, #c8462f); box-shadow: inset 0 -20px 30px rgb(0 0 0 / 18%), 0 26px 40px rgb(var(--shadow) / 28%);
  background-image: linear-gradient(90deg, transparent 44%, var(--ribbon, #f6d36b) 44% 56%, transparent 56%), var(--box-pattern, none); }
.lx-box-lid { position: absolute; left: 0; right: 0; top: 10%; height: 18%; border-radius: 6px; background: var(--box-lid, var(--box, #c8462f));
  background-image: linear-gradient(90deg, transparent 44%, var(--ribbon, #f6d36b) 44% 56%, transparent 56%); box-shadow: 0 6px 12px rgb(0 0 0 / 22%);
  transition: transform 1s cubic-bezier(.3,1.4,.5,1) .3s, opacity .6s .9s; }
.lx-box-bow { position: absolute; left: 50%; top: -6%; width: 46%; height: 22%; margin-left: -23%; border: 0; padding: 0; background: none; cursor: pointer; animation: lx-bob 2.4s ease-in-out infinite; transition: transform 1s cubic-bezier(.3,1.4,.5,1) .3s, opacity .6s .9s; }
.lx-box-bow i { position: absolute; top: 10%; width: 50%; height: 80%; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; border: 10px solid var(--ribbon, #f6d36b); }
.lx-box-bow i:first-child { left: 0; transform: rotate(-24deg); }
.lx-box-bow i:nth-child(2) { right: 0; transform: rotate(24deg); }
.lx-box-bow b { position: absolute; left: 50%; top: 52%; width: 22px; height: 22px; margin: -11px; border-radius: 6px; background: var(--ribbon, #f6d36b); }
.lx-box-card { position: absolute; z-index: -1; left: 12%; right: 12%; top: 26%; padding: 16px 10px; text-align: center; border-radius: 10px; background: rgb(var(--glass) / 96%); box-shadow: 0 10px 24px rgb(var(--shadow) / 18%);
  transition: transform 1s cubic-bezier(.3,1.3,.5,1) .6s; }
.lx-box-card .tm-kicker { font-size: 9px; margin: 0; }
.lx-box-card .lx-to-names { font-size: 30px; }
.lx-box-card .lx-to { font-size: 14px; margin-top: 4px; }
.lx-open-kotak.is-opening .lx-box-lid { transform: translate(40%, -160%) rotate(28deg); opacity: 0; }
.lx-open-kotak.is-opening .lx-box-bow { animation: none; transform: translate(60%, -260%) rotate(40deg); opacity: 0; }
.lx-open-kotak.is-opening .lx-box-card { z-index: 4; transform: translateY(-78%) scale(1.15); }
.lx-open-kotak.is-zoom .lx-box { transform: scale(1.3); opacity: 0; transition: transform .7s, opacity .6s; }

/* bulan: the crescent rises and glows */
.lx-open-bulan { background: var(--opener-bg); gap: 18px; }
.lx-open-bulan .lx-stars { position: absolute; inset: 0; }
.lx-moon { position: relative; width: min(46vw, 190px); height: auto; filter: drop-shadow(0 0 30px rgb(255 220 140 / 45%)); animation: lx-bob 4s ease-in-out infinite; transition: transform 1.6s cubic-bezier(.5,0,.3,1) .1s, filter 1.6s; }
.lx-moon-text, .lx-lamp-text, .lx-sun-text { position: relative; text-align: center; transition: opacity .6s; }
.lx-open-bulan .tm-opener-text, .lx-open-pelita .tm-opener-text, .lx-open-mentari .tm-opener-text { position: relative; bottom: auto; }
.lx-open-bulan.is-opening .lx-moon { animation: none; transform: translateY(-34vh) scale(1.5) rotate(-20deg); filter: drop-shadow(0 0 80px rgb(255 230 160 / 90%)); }
.lx-open-bulan.is-opening .lx-moon-text { opacity: 0; }

/* pelita: lamps light one by one */
.lx-open-pelita { background: var(--opener-bg); gap: 26px; }
.lx-lamps-row { display: flex; gap: 2vw; align-items: end; }
.lx-lamps-row span { position: relative; width: min(16vw, 72px); aspect-ratio: 2 / 3; }
.lx-lamps-row img { position: absolute; inset: 0; width: 100%; height: 100%; }
.lx-lamps-row img.on { opacity: 0; transition: opacity .5s ease calc(.2s + var(--k) * .25s); }
.lx-open-pelita.is-opening .lx-lamps-row img.on { opacity: 1; }
.lx-open-pelita.is-opening .lx-lamp-text { opacity: 0; transition-delay: 1.4s; }
.lx-open-pelita.is-zoom .lx-lamps-row { transform: translateY(-20px) scale(1.2); opacity: 0; transition: transform .7s, opacity .6s; }

/* mentari: the sun rises out of the sea */
.lx-open-mentari { background: #2b3a67; gap: 16px; }
.lx-sunset { position: absolute; inset: 0; background: 50% 100% / cover no-repeat; transition: filter 1.8s; }
.lx-sun { position: absolute; left: 50%; bottom: 22%; width: min(40vw, 170px); margin-left: calc(min(40vw, 170px) / -2); transition: transform 1.8s cubic-bezier(.4,0,.2,1) .1s; }
.lx-sea { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 30%; object-fit: cover; }
.lx-sun-text { color: #fff7ea; text-shadow: 0 2px 16px rgb(0 0 0 / 35%); }
.lx-sun-text .lx-to { color: #fde8c4; }
.lx-open-mentari.is-opening .lx-sun { transform: translateY(-48vh) scale(1.3); }
.lx-open-mentari.is-opening .lx-sunset { filter: brightness(1.25) saturate(1.1); }
.lx-open-mentari.is-opening .lx-sun-text { opacity: 0; }

/* lapis: paper layers slide down and away */
.lx-open-lapis { background: var(--opener-bg, var(--paper)); }
.lx-layers { position: absolute; inset: 0; pointer-events: none; }
.lx-layers i { position: absolute; left: 50%; bottom: 0; width: min(100vw, 560px); height: 100%; margin-left: max(-50vw, -280px); background: 50% 100% / 100% auto no-repeat;
  transform: translateY(calc((var(--k) - 1) * 6%)); transition: transform calc(1s + var(--k) * .15s) cubic-bezier(.55,0,.25,1) calc((3 - var(--k)) * .12s); }
.lx-open-lapis.is-opening .lx-layers i { transform: translateY(110%); }
.lx-open-lapis.is-opening .lx-layer-card { transform: translateY(-20px); opacity: 0; }

/* hero helpers for set 2 */
.lx-skybg { position: absolute; inset: 0; background: 50% 0 / cover no-repeat; }
.lx-hero-sun { position: absolute; left: 50%; top: 40%; width: 160px; margin-left: -80px; opacity: .9; }
.lx-ground { height: auto; inset: auto 0 0 0; }
.lx-band-ground { position: relative; display: block; width: 100%; transform: translateX(-50%); }
.lx-rings { width: min(60%, 220px); margin: 0 auto 10px; }
.lx-tabur { inset: -10% -10%; background-size: 320px auto; background-repeat: repeat; -webkit-mask-image: radial-gradient(48% 40% at 50% 48%, transparent 55%, #000 80%); mask-image: radial-gradient(48% 40% at 50% 48%, transparent 55%, #000 80%); }
.lx-roset { position: absolute; left: 50%; top: 50%; width: 150%; max-width: none; margin: -75% 0 0 -75%; opacity: .14; pointer-events: none; animation: lx-spin2 140s linear infinite; }
@keyframes lx-spin2 { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .lx-fly i, .lx-moon, .lx-box-bow, .lx-roset { animation: none; } }
