/* ==========================================================================
   Ribbonnote — example gift page ("Tema 1")
   Mirrors the Figma frame "Example page · Tema 1" (Ribbonnote-template, 373:1034).
   Measurements are the 390px mobile frame; the page stays a phone-width column.
   ========================================================================== */

:root {
  --cream: #fffbf9;
  --blush: #ffecee;
  --rose-300: #ffa9b2;
  --rose-400: #fe7b9b;
  --rose-500: #f55d83;
  --rose-600: #ee4f78;
  --cocoa: #5e3136;
  --cocoa-2: #6e3838;
  --muted: #6a5d5d;
  --chip-line: #e8d2d4;

  --f-display: "Gloock", Georgia, serif;
  --f-hand: "Caveat", cursive;
  --f-script: "Pinyon Script", cursive;
  --f-type: "Special Elite", "Courier New", monospace;

  --ease: cubic-bezier(.22, 1, .36, 1);
  --pop: cubic-bezier(.34, 1.56, .64, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--cocoa);
  font-family: var(--f-hand);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: none; }
h1, h2, h3, p, ol, figure { margin: 0; padding: 0; }
ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
[hidden] { display: none !important; }

.page { max-width: 430px; margin: 0 auto; overflow: hidden; background: var(--cream); }
@media (min-width: 600px) {
  body { background: #f6ecea; }
  .page { box-shadow: 0 0 60px rgba(94, 49, 54, .08); }
}

/* Back to the landing page (fixed, as in Figma), styled like the landing page's dark "Join the waitlist" nav button */
.back {
  position: fixed;
  z-index: 60;
  top: 14px;
  left: max(16px, calc(50% - 215px + 16px));
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 7px 12px;
  border-radius: 999px;
  background: #1a1f2c;
  color: #f0eee9;
  font: 600 13px/16px "Hanken Grotesk", system-ui, sans-serif;
  text-decoration: none;
  transition: background-color .2s ease, transform .15s ease;
}
.back:hover { background: #2b3244; }
.back:active { transform: scale(.98); }
/* Looks 30px tall, but the tappable area is 44px */
.back::before { content: ""; position: absolute; inset: -7px -4px; }

/* ---------- Shared type ---------- */

.sec {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  /* One phone screen per section, like the 844px Figma frames, but never taller */
  min-height: min(100vh, 844px);
  min-height: min(100svh, 844px);
  padding: 48px clamp(13px, 7.4vw, 29px);
  text-align: center;
}
.tint { background: var(--blush); }
.head { display: flex; flex-direction: column; align-items: center; gap: 15px; }
.display {
  font: 400 42px/46px var(--f-display);
  letter-spacing: 0;
  color: var(--rose-500);
}
.display.ink { color: var(--cocoa); }
.sub { font: 400 min(22px, 5.6vw)/26px var(--f-hand); color: var(--cocoa); }
.hint {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font: 400 16px/22px var(--f-hand);
  letter-spacing: .04em;
  color: var(--cocoa-2);
}

.btn-pill {
  min-width: 153px;
  height: 48px;
  padding: 0 30px;
  border-radius: 24px;
  background: var(--rose-500);
  color: var(--cream);
  font: 400 24px/1 var(--f-hand);
  box-shadow: 0 8px 18px rgba(245, 93, 131, .32);
  transition: transform .15s ease, background-color .2s ease;
}
.btn-pill:hover { background: var(--rose-600); }
.btn-pill:active { transform: scale(.96); }

.spark {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--s);
  height: var(--s);
  background: var(--rose-300);
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
  pointer-events: none;
}
.spark.light { background: var(--cream); opacity: .95; }

/* ==========================================================================
   01 · Opening
   ========================================================================== */

.sec-open { justify-content: flex-start; gap: 59px; padding-top: 72px; padding-bottom: 48px; }
.open-title { display: flex; flex-direction: column; align-items: center; gap: 30px; transition: opacity .45s var(--ease); }
.open-title .display { line-height: 46.2px; }

.gift { position: relative; display: block; width: 333px; height: 260px; flex: none; }
.gift img { position: absolute; }
.gift-open { cursor: pointer; }

/* Pieces of the box, positioned like Figma's "kado" (333×260); images carry 24px of shadow room. */
.g-back  { left: -24px; top: 16.1px;  width: 379.5px; z-index: 1; }
.g-clip  { position: absolute; left: -60px; right: -60px; top: -700px; height: 916px; overflow: hidden; z-index: 2; pointer-events: none; }
.g-letter { left: 81.9px; top: 578.1px; width: 288px; }
.g-front { left: -24px; top: 55px;    width: 381px;   z-index: 3; }
.g-lid   { left: -24px; top: -23.9px; width: 381px;   z-index: 4; }

.g-letter, .g-lid { transition: transform .75s var(--ease); }
.sec-open .g-letter { transform: translateY(196.9px); }
.sec-open[data-state="open"] .g-lid { transform: translate(-.65px, -205px) rotate(-8deg); }
.sec-open[data-state="open"] .g-letter { transform: none; transition-delay: .2s; }
.sec-open[data-state="open"] .open-title,
.sec-open[data-state="reading"] .open-title { opacity: 0; }
.sec-open[data-state="reading"] .g-lid { transform: translate(-.65px, -205px) rotate(-8deg); }
.sec-open[data-state="reading"] .gift.gift-open { opacity: .18; transition: opacity .3s ease; }
.sec-open[data-state="done"] .gift.gift-open { transition: opacity .3s ease; }
.sec-open[data-state="squash"] .gift { animation: squash .28s ease-in-out; }
@keyframes squash { 50% { transform: scale(1.05, .92) translateY(10px); } }

.open-actions { display: flex; flex-direction: column; align-items: center; gap: 18px; min-height: 114px; }
.sec-open[data-state="reading"] .btn-pill { opacity: 0; pointer-events: none; }
.hint-down { flex-direction: column; gap: 4px; opacity: 0; transition: opacity .4s ease; }
.sec-open[data-state="done"] .hint-down { opacity: 1; }
.sec-open[data-state="done"] .hint-down svg { animation: nudge 1.6s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateY(4px); } }

/* The letter, read up close */
.letter-layer {
  position: fixed;
  z-index: 50;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 24px;
  background: rgba(255, 251, 249, .9);
  animation: fade-in .3s ease both;
}
.letter-card { position: relative; animation: letter-in .5s var(--ease) both; }
.letter-card img { width: min(312px, 84vw); height: auto; box-shadow: 0 3.5px 3.5px rgba(0, 0, 0, .12), 0 18px 40px rgba(94, 49, 54, .14); }
button:focus { outline: none; }
button:focus-visible, a:focus-visible { outline: 3px solid var(--rose-300); outline-offset: 3px; }
.letter-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--cream);
  color: var(--cocoa);
  box-shadow: 0 4px 12px rgba(94, 49, 54, .18);
}
.letter-hint { color: var(--cocoa-2); }
@keyframes fade-in { from { opacity: 0; } }
@keyframes letter-in { from { opacity: 0; transform: translateY(60px) scale(.7); } }

/* ==========================================================================
   02 · Together since
   ========================================================================== */

.sec-date { gap: 28px; padding-top: 36px; padding-bottom: 36px; }
.date-card { width: 332px; height: 415px; display: flex; justify-content: center; align-items: flex-start; }
.date-card img { width: 351px; height: auto; margin-top: 6px; }

.counter {
  display: grid;
  grid-template-columns: repeat(3, 104px);
  gap: 6px 10px;
  margin-top: -8px;
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, .05));
}
.cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  height: 80px;
  padding: 14px 8px 12px;
  border-radius: 14px;
  background: var(--cream);
}
.num { display: flex; height: 30px; overflow: hidden; font: 400 30px/30px var(--f-display); color: var(--rose-600); }
.reel { display: flex; flex-direction: column; transition: transform 1.4s var(--ease); }
.reel span { height: 30px; }
.unit { font: 400 16px/18px var(--f-hand); color: var(--cocoa); }

/* ==========================================================================
   03 · How we became us
   ========================================================================== */

.sec-story { gap: 28px; }
.chips { display: flex; gap: 6px; margin-top: 0; }
.chip {
  flex: none;
  padding: 9px clamp(9px, 3.4vw, 14px);
  white-space: nowrap;
  border-radius: 999px;
  background: var(--cream);
  box-shadow: inset 0 0 0 1px var(--chip-line);
  font: 400 15px/19px var(--f-hand);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  transition: background-color .25s ease, color .25s ease, box-shadow .25s ease;
}
.chip[aria-selected="true"] { background: var(--rose-500); box-shadow: none; color: var(--cream); font-weight: 700; }

.deck { position: relative; width: 334px; height: 417px; margin-top: 0; touch-action: pan-y; user-select: none; }
.story {
  position: absolute;
  left: 0;
  top: 37px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 334px;
  height: 380px;
  padding: 16px 22px 27px;
  border-radius: 24px;
  text-align: left;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .10);
  transform-origin: 50% 0;
  transition: transform .55s var(--ease), opacity .45s ease, top .55s var(--ease);
  cursor: grab;
}
.story.dragging { transition: none; cursor: grabbing; }
.story-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 34px; }
.meta { font: 400 16px/20px var(--f-hand); }
.meta b { font-weight: 700; }
.like { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; flex: none; }
.like svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; transition: fill .2s ease, transform .2s var(--pop); }
.like[aria-pressed="true"] svg { fill: currentColor; transform: scale(1.15); }
.story h3 { font: 400 26px/30px var(--f-display); }
.story p { font: 400 18px/24px var(--f-hand); }
.story .place { margin-top: auto; font-size: 17px; line-height: 21px; }
.photos + .place { margin-top: 0; }
.photos { display: flex; gap: 10px; height: 124px; margin-top: auto; }
.photos img { height: 124px; width: auto; border-radius: 16px; }
.ch3 .photos img { width: 290px; object-fit: cover; border-radius: 12.4px; }

.ch1 { background: var(--blush); color: var(--cocoa); }
.ch1 .meta { color: var(--cocoa-2); }
.ch1 h3, .ch1 .like { color: var(--rose-500); }
.ch1 .like { background: var(--blush); }
.ch2 { background: var(--rose-300); color: var(--cocoa); }
.ch2 .meta, .ch2 .place { color: var(--cocoa-2); }
.ch3 { background: var(--rose-400); color: var(--cream); }
.ch4 { background: var(--rose-500); color: var(--cream); }
.ch3 .like, .ch4 .like { color: var(--blush); }

/* ==========================================================================
   04 · Little moments
   ========================================================================== */

.sec-moments { gap: 40px; }
.board { position: relative; width: 332px; height: 476px; }
.rope { position: absolute; left: -30px; top: -12px; width: 394px; height: auto; }
.pc {
  position: absolute;
  left: var(--x);
  top: var(--y);
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 167px;
  padding: 8.5px 8.5px 10.2px;
  border-radius: 3.4px;
  background: var(--blush);
  box-shadow: 0 8.5px 20.4px rgba(43, 27, 31, .14), 0 .85px 1.7px rgba(43, 27, 31, .12);
  transform: rotate(var(--r));
  transform-origin: 0 0;
  cursor: zoom-in;
  outline: none;
}
.pc:focus-visible { box-shadow: 0 0 0 3px var(--rose-300); }
.pc img { width: 150px; height: 170px; object-fit: cover; }
.pc figcaption { font: 400 17px/20px var(--f-hand); color: var(--cocoa); text-align: center; }
.peg {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 8px;
  height: 20px;
  border-radius: 2px;
  background: linear-gradient(var(--rose-300) 9px, var(--rose-500) 9px 10px, var(--rose-300) 10px);
  box-shadow: 0 1.5px 3px rgba(43, 27, 31, .18);
  transform: rotate(var(--r));
}
.doodle { position: absolute; left: 300px; top: 214px; width: 26px; height: 24px; transform: rotate(-12deg); }

.lightbox {
  position: fixed;
  z-index: 50;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  background: rgba(238, 79, 120, .82);
  animation: fade-in .3s ease both;
  cursor: zoom-out;
}
.pc-big { position: static; width: 282px; padding: 14px 14px 17px; gap: 10px; transform: none; animation: pc-zoom .45s var(--ease) both; cursor: zoom-out; }
.pc-big img { width: 254px; height: 288px; }
.pc-big figcaption { font-size: 28px; line-height: 32px; }
.lightbox .hint { color: var(--cream); }
@keyframes pc-zoom { from { opacity: 0; transform: scale(.55) rotate(var(--r, 0deg)); } }

/* ==========================================================================
   05 · Why it's always you
   ========================================================================== */

.sec-reasons { gap: 40px; }
.reasons { display: grid; grid-template-columns: repeat(2, 153px); gap: 22px; perspective: 900px; }
.reason { position: relative; width: 153px; height: 208px; transform-style: preserve-3d; transition: transform .6s var(--ease); }
.reason[aria-pressed="true"] { transform: rotateY(180deg); }
.face {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 16.4px;
  -webkit-backface-visibility: hidden;
          backface-visibility: hidden;
  box-shadow: 0 11.6px 27px rgba(43, 27, 31, .18);
}
.face.front { background: var(--cream); }
.face.front img { width: 100%; height: 100%; object-fit: cover; }
.face.back {
  display: grid;
  place-items: center;
  padding: 8px;
  background: var(--cream);
  transform: rotateY(180deg);
}
.face.back > span {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: 0 11px;
  border: 1px dashed var(--rose-400);
  border-radius: 11.4px;
  font: 400 20px/22px var(--f-hand);
  color: var(--cocoa);
}

/* ==========================================================================
   06 · On repeat
   ========================================================================== */

.sec-songs { gap: 40px; padding-left: 0; padding-right: 0; padding-bottom: 0; justify-content: flex-end; }
.sec-songs .head { padding: 0 28px; }
.record { position: relative; width: 100%; max-width: 390px; }
.vinyl { position: relative; z-index: 0; width: 338px; height: 338px; margin: 0 auto -163px; }
.songs {
  position: relative;
  z-index: 1;
  padding: 34px 30px 30px;
  border-top: 3px solid var(--rose-500);
  background: linear-gradient(var(--blush), var(--cream));
}
.songs li {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 68px;
  border-bottom: 1px dashed var(--rose-300);
  text-align: left;
}
.songs li:last-child { border-bottom: 0; }
.no { width: 30px; flex: none; font: 400 20px/24px var(--f-display); color: var(--rose-500); }
.info { display: flex; flex: 1; flex-direction: column; gap: 2px; min-width: 0; }
.info b { font: 700 19px/24px var(--f-hand); color: var(--cocoa); }
.info small { font: 400 15px/19px var(--f-hand); color: var(--muted); }
.listen {
  display: grid;
  place-items: center;
  flex: none;
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--cream);
  box-shadow: 0 0 0 1px rgba(232, 210, 212, .7);
  transition: transform .15s ease;
}
.listen:active { transform: scale(.95); }
.listen img { width: 50px; height: 14px; }

/* ==========================================================================
   07 · Keep this close
   ========================================================================== */

.sec-close {
  justify-content: flex-start;
  gap: 32px;
  padding-top: 64px;
  padding-bottom: 56px;
  background: linear-gradient(180deg, var(--cream) 27%, var(--rose-400) 100%);
}
.sec-close .head { gap: 14px; }
.close-gift { display: flex; flex-direction: column; align-items: center; gap: 20px; margin-top: -8px; }

.gift-close { width: 216px; height: 297px; }
.cg-open, .cg-done { position: absolute; inset: 0; }
.c-back  { left: -18.8px; top: 148.6px; width: 253.5px; z-index: 1; }
.c-clip  { position: absolute; left: -40px; top: -40px; width: 296px; height: 291px; overflow: hidden; z-index: 2; }
.c-letter { left: 63.2px; top: 106.9px; width: 170.5px; transition: transform .5s cubic-bezier(.5, 0, .75, .35); }
.c-front { left: -18.8px; top: 170.5px; width: 254.5px; z-index: 3; }
.c-lid   { left: -24.5px; top: -24.1px; width: 265px;   z-index: 4; }

/* The closed box (Figma "Status=Selesai"): the opening box at 82% */
.cg-done { transform-origin: 50% 80%; }
.cg-box { position: absolute; left: -27.7px; top: 64.7px; width: 333px; height: 260px; transform: scale(.8185); transform-origin: 0 0; }

/* Tie the ribbon (as in the recording): the letter drops into the open box while the lid
   waits, a beat, then the box snaps shut and ribboned, and gives one little pulse. */
.sec-close .cg-done { opacity: 0; pointer-events: none; }
.sec-close[data-state="tying"] .c-letter,
.sec-close[data-state="reopen"] .c-letter { transform: translateY(130px); }
.sec-close[data-state="reopen"] .c-letter { transition: none; }
.sec-close[data-state="closed"] .cg-open,
.sec-close[data-state="tied"] .cg-open { opacity: 0; }
.sec-close[data-state="closed"] .cg-done,
.sec-close[data-state="tied"] .cg-done { opacity: 1; }
.sec-close[data-state="closed"] .cg-done { animation: gift-snap .34s cubic-bezier(.34, 1.56, .64, 1) both; }
.sec-close[data-state="tied"] .cg-done { animation: gift-pulse .5s ease-in-out; }
@keyframes gift-snap { from { opacity: 0; transform: scale(.86) translateY(10px); } }
@keyframes gift-pulse { 45% { transform: scale(1.06); } }
.sec-close[data-state="open"] .cg-open { animation: gift-reopen .4s var(--ease); }
@keyframes gift-reopen { from { transform: scale(.94); } }

.turn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: min(326px, 100%);
  margin-top: 18px;
  padding: 28px 24px 26px;
  border-radius: 20px;
  background: var(--cream);
  box-shadow: 0 12px 30px rgba(94, 49, 54, .14);
}
.turn-who { font: 400 22px/28px var(--f-hand); color: var(--rose-600); }
.turn-title { font: 400 28px/32px var(--f-display); color: var(--cocoa); }
.btn-line {
  display: grid;
  place-items: center;
  height: 44px;
  padding: 0 26px;
  border-radius: 22px;
  box-shadow: inset 0 0 0 1.5px var(--rose-500);
  color: var(--rose-500);
  font: 400 22px/1 var(--f-hand);
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease;
}
.btn-line:hover { background: var(--rose-500); color: var(--cream); }
.turn-note { font: 400 11px/14px var(--f-type); color: var(--muted); }

.postmark { width: 306px; height: auto; opacity: .82; margin-top: 10px; }
.made { font: 400 11px/14px var(--f-type); letter-spacing: .18em; text-transform: uppercase; color: var(--cocoa); margin-top: 38px; }
.made a { text-decoration: none; }

/* ==========================================================================
   Scroll motion — like the landing page: every section plays once as it
   scrolls into view. Hidden "before" states only exist with JS + motion on.
   ========================================================================== */

/* Headings: the first line rises in, then the next (Figma: Tunggu → Siap → Muncul1 → Muncul2, 12px) */
.motion .stagger > * { transition: opacity .6s var(--ease), transform .6s var(--ease); }
.motion .stagger > :nth-child(1) { transition-delay: .1s; }
.motion .stagger > :nth-child(2) { transition-delay: .4s; }
.motion [data-scene]:not(.in) .stagger > * { opacity: 0; transform: translateY(12px); }

/* Everything else in a section follows once the heading is in */
.motion [data-reveal] { transition: opacity .7s var(--ease) calc(var(--d, 0s) + .45s), transform .7s var(--ease) calc(var(--d, 0s) + .45s); }
.motion [data-scene]:not(.in) [data-reveal] { opacity: 0; transform: translateY(var(--ry, 16px)); }

/* 01 · title fades in, the box drops onto the page */
.motion .sec-open:not(.in) .gift-open { opacity: 0; transform: translateY(-30px) scale(.94); }
.motion .sec-open .gift-open { transition: opacity .6s ease .7s, transform .8s var(--pop) .7s; }
.motion .sec-open:not(.in) .open-actions { opacity: 0; }
.motion .sec-open .open-actions { transition: opacity .6s ease 1.1s; }

/* 04 · the string, then postcards are pegged one by one */
.motion .sec-moments .rope { transition: clip-path 1.1s cubic-bezier(.65, 0, .35, 1) .2s; clip-path: inset(0 0 0 0); }
.motion .sec-moments:not(.in) .rope { clip-path: inset(0 100% 0 0); }
.motion .sec-moments .pc[data-pc] { transition: opacity .5s ease calc(.6s + var(--i) * .14s), transform .7s var(--pop) calc(.6s + var(--i) * .14s); }
.motion .sec-moments:not(.in) .pc[data-pc] { opacity: 0; transform: translateY(-40px) rotate(calc(var(--r) * 3)); }
.motion .sec-moments .peg, .motion .sec-moments .doodle, .motion .sec-moments .spark { transition: opacity .4s ease 1.4s; }
.motion .sec-moments:not(.in) .peg, .motion .sec-moments:not(.in) .doodle, .motion .sec-moments:not(.in) .spark { opacity: 0; }

/* 05 · cards are dealt */
.motion .sec-reasons .reason { transition: transform .6s var(--ease), opacity .5s ease; }
.motion .sec-reasons.in .reason { animation: deal .6s var(--ease) calc(.6s + var(--i) * .12s) backwards; }
.motion .sec-reasons:not(.in) .reason { opacity: 0; }
@keyframes deal { from { opacity: 0; transform: translateY(30px) rotate(-6deg) scale(.9); } }

/* 06 · the record rises and spins, the tracklist fills in */
.motion .sec-songs .vinyl { transition: transform 1s var(--ease) .1s, opacity .6s ease .1s; }
.motion .sec-songs .stagger > :nth-child(1) { transition-delay: .9s; }
.motion .sec-songs .stagger > :nth-child(2) { transition-delay: 1.2s; }
.motion .sec-songs:not(.in) .vinyl { opacity: 0; transform: translateY(120px); }
.sec-songs.in .vinyl { animation: spin 6s linear 1.2s infinite; }
@keyframes spin { to { rotate: 360deg; } }
.motion .sec-songs .songs li { transition: opacity .45s ease calc(1.5s + var(--i) * .15s), transform .5s var(--ease) calc(1.5s + var(--i) * .15s); }
.motion .sec-songs:not(.in) .songs li { opacity: 0; transform: translateY(14px); }

/* 07 · sparkles twinkle */
.sec-close .spark { animation: twinkle 2.4s ease-in-out infinite; }
.sec-close .spark:nth-of-type(2n) { animation-delay: .8s; }
.sec-close .spark:nth-of-type(3n) { animation-delay: 1.5s; }
@keyframes twinkle { 50% { opacity: .35; transform: scale(.7); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
}
