/* THEME: Flowers — soft watercolor floral, blush pink & sage green */
:root{
  --color-bg: #fffaf7;
  --color-surface: #ffffff;
  --color-text: #4a3b3e;
  --color-text-soft: #8a7377;
  --color-primary: #c98fa0;
  --color-secondary: #c9d6a3;
  --color-accent: #a8607a;
  --color-line: rgba(169,96,122,.18);
  --font-heading: 'Playfair Display', serif;
  --font-script: 'Great Vibes', cursive;
  --font-body: 'Cormorant Garamond', serif;
}

body{ background: #efe0dd; }

.frame{
  overflow-x: hidden;
  background:
    radial-gradient(circle at 8% 6%, rgba(201,143,160,.14), transparent 38%),
    radial-gradient(circle at 95% 16%, rgba(201,214,163,.16), transparent 36%),
    radial-gradient(circle at 4% 34%, rgba(201,214,163,.14), transparent 34%),
    radial-gradient(circle at 96% 48%, rgba(201,143,160,.15), transparent 36%),
    radial-gradient(circle at 6% 64%, rgba(201,143,160,.13), transparent 34%),
    radial-gradient(circle at 94% 78%, rgba(201,214,163,.16), transparent 36%),
    radial-gradient(circle at 10% 92%, rgba(201,214,163,.14), transparent 34%),
    radial-gradient(circle at 92% 96%, rgba(201,143,160,.15), transparent 36%),
    var(--color-bg);
}
.frame::before{
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .7;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='150' height='150'%3E%3Cg fill='none' stroke='%23c98fa0' stroke-width='1'%3E%3Cpath d='M20 30 q8 -14 16 0 q-8 14 -16 0'/%3E%3Cpath d='M115 115 q8 -14 16 0 q-8 14 -16 0'/%3E%3C/g%3E%3Cg fill='%23e8b7c4'%3E%3Ccircle cx='20' cy='30' r='2.4'/%3E%3Ccircle cx='36' cy='30' r='2.4'/%3E%3Ccircle cx='115' cy='115' r='2.4'/%3E%3Ccircle cx='131' cy='115' r='2.4'/%3E%3C/g%3E%3Cg fill='%23c9d6a3'%3E%3Ccircle cx='75' cy='70' r='3'/%3E%3Ccircle cx='10' cy='110' r='2'/%3E%3Ccircle cx='140' cy='40' r='2'/%3E%3C/g%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='90' height='90'%3E%3Cg fill='none' stroke='%23c9d6a3' stroke-width='.8' opacity='.7'%3E%3Cpath d='M45 10 q10 20 0 35 q-10 -15 0 -35'/%3E%3C/g%3E%3Ccircle cx='45' cy='8' r='1.6' fill='%23e8b7c4'/%3E%3C/svg%3E");
  background-repeat: repeat, repeat;
  background-size: 150px 150px, 90px 90px;
  background-position: 0 0, 45px 20px;
}

.cover{
  overflow-x: hidden;
  background:
    radial-gradient(circle at 15% 15%, rgba(201,143,160,.16), transparent 42%),
    radial-gradient(circle at 85% 88%, rgba(201,214,163,.18), transparent 45%),
    var(--color-bg);
}
.cover::before{
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='150' height='150'%3E%3Cg fill='none' stroke='%23c98fa0' stroke-width='1'%3E%3Cpath d='M20 30 q8 -14 16 0 q-8 14 -16 0'/%3E%3Cpath d='M115 115 q8 -14 16 0 q-8 14 -16 0'/%3E%3C/g%3E%3Cg fill='%23e8b7c4'%3E%3Ccircle cx='20' cy='30' r='2.4'/%3E%3Ccircle cx='36' cy='30' r='2.4'/%3E%3Ccircle cx='115' cy='115' r='2.4'/%3E%3Ccircle cx='131' cy='115' r='2.4'/%3E%3C/g%3E%3Cg fill='%23c9d6a3'%3E%3Ccircle cx='75' cy='70' r='3'/%3E%3Ccircle cx='10' cy='110' r='2'/%3E%3Ccircle cx='140' cy='40' r='2'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 150px 150px;
}

.section{ border-bottom: none; }

/* 3D viewing context — lets any transformed descendant (cards, titles,
   reveals) render with real foreshortening instead of a flat 2D pop. */
.section, .footer{ perspective: 1200px; }

.section__title::after{
  content: '❀';
  display:block;
  font-size: 14px;
  color: var(--color-primary);
  margin-top: 10px;
}

.section::before, .section::after{
  content: '';
  position: absolute;
  width: 70px;
  height: 70px;
  pointer-events: none;
  z-index: -1;
  background: radial-gradient(circle, rgba(201,143,160,.22), transparent 70%);
  border-radius: 50%;
}
.section::before{ top: 10px; left: -10px; }
.section::after{ bottom: 10px; right: -10px; background: radial-gradient(circle, rgba(201,214,163,.26), transparent 70%); }
.section:nth-of-type(even)::before{ background: radial-gradient(circle, rgba(201,214,163,.24), transparent 70%); }
.section:nth-of-type(even)::after{ background: radial-gradient(circle, rgba(201,143,160,.2), transparent 70%); }

.countdown__item{
  box-shadow: 0 12px 30px -18px rgba(168,96,122,.35);
}

/* Stacked-paper depth: two extra shadow layers read as sheets sitting
   behind the card, without needing extra elements or clipping the
   corner ornaments (box-shadow is never clipped by the box's own
   overflow, only by an ancestor's). */
.event-card, .gift-card, .wish-card{
  box-shadow:
    0 12px 30px -18px rgba(168,96,122,.35),
    5px 7px 0 -3px rgba(255,255,255,.75),
    9px 12px 0 -3px rgba(201,214,163,.55);
  transition: transform .18s ease-out, box-shadow .3s ease;
}

.couple__photo{ border-color: #fff; box-shadow: 0 14px 34px -14px rgba(168,96,122,.45); }

.btn-open{
  border-color: var(--color-accent);
}

.gallery__item{ box-shadow: 0 8px 20px -12px rgba(168,96,122,.4); }

.footer{
  background: linear-gradient(180deg, transparent, rgba(201,143,160,.1));
  position: relative;
}
.footer::before, .footer::after{
  content: '';
  position: absolute;
  width: 90px;
  height: 90px;
  pointer-events: none;
  z-index: -1;
  border-radius: 50%;
}
.footer::before{ top: -10px; left: 6%; background: radial-gradient(circle, rgba(201,214,163,.26), transparent 70%); }
.footer::after{ top: 10%; right: 6%; background: radial-gradient(circle, rgba(201,143,160,.22), transparent 70%); }

/* ==========================================================================
   SECTION-TO-SECTION COLOR GRADATION
   Each section's gradient starts where the previous one ended, so the wash
   of color flows continuously blush -> sage -> blush down the whole page.
   ========================================================================== */
/* Note: nth-of-type(7) is the video section — it's hidden (display:none) in
   dynamically-rendered invitations when no video is set, so it stays a flat
   continuation of C4 rather than introducing a new stop. That way the wash
   stays seamless whether or not the video section actually renders. */
.section:nth-of-type(1){ background: linear-gradient(180deg, transparent, rgba(201,143,160,.10)); }         /* hero -> C1 */
.section:nth-of-type(2){ background: linear-gradient(180deg, rgba(201,143,160,.10), rgba(201,214,163,.12)); } /* C1 -> C2 */
.section:nth-of-type(3){ background: linear-gradient(180deg, rgba(201,214,163,.12), rgba(201,143,160,.10)); } /* C2 -> C3 */
.section:nth-of-type(4){ background: linear-gradient(180deg, rgba(201,143,160,.10), rgba(201,214,163,.13)); } /* C3 -> C4 */
.section:nth-of-type(5){ background: rgba(201,214,163,.13); }                                                 /* C4 flat (rundown, may be hidden) */
.section:nth-of-type(6){ background: linear-gradient(180deg, rgba(201,214,163,.13), rgba(201,143,160,.09)); } /* C4 -> C5 */
.section:nth-of-type(7){ background: rgba(201,143,160,.09); }                                                 /* C5 flat (video, may be hidden) */
.section:nth-of-type(8){ background: linear-gradient(180deg, rgba(201,143,160,.09), rgba(201,214,163,.12)); } /* C5 -> C6 */
.section:nth-of-type(9){ background: linear-gradient(180deg, rgba(201,214,163,.12), transparent); }           /* C6 -> footer */

/* ==========================================================================
   THEMED MOTION — a soft "blossoming" reveal instead of the generic fade,
   plus gentle continuous drift on the decorative blobs and glyphs.
   ========================================================================== */
.reveal{
  opacity: 0;
  transform: scale(.9) translateY(24px) rotateX(-16deg);
  transition: opacity 1.5s cubic-bezier(.22,1,.36,1), transform 1.5s cubic-bezier(.22,1,.36,1);
}
.reveal.in{ opacity: 1; transform: scale(1) translateY(0) rotateX(0); }

.countdown__item.reveal{ transition-delay: calc(var(--i, 0) * 110ms); }

.gallery__item.reveal{ transition-delay: calc(var(--i, 0) * 70ms); }
.gallery__item:nth-child(1){ --i: 0; } .gallery__item:nth-child(2){ --i: 1; } .gallery__item:nth-child(3){ --i: 2; }
.gallery__item:nth-child(4){ --i: 3; } .gallery__item:nth-child(5){ --i: 4; } .gallery__item:nth-child(6){ --i: 5; }
.gallery__item:nth-child(7){ --i: 6; } .gallery__item:nth-child(8){ --i: 7; } .gallery__item:nth-child(9){ --i: 8; }

.story__item.reveal{ transition-delay: calc(var(--i, 0) * 120ms); }
.story__item:nth-child(1){ --i: 0; } .story__item:nth-child(2){ --i: 1; }
.story__item:nth-child(3){ --i: 2; } .story__item:nth-child(4){ --i: 3; }

@keyframes petalDrift{
  0%, 100%{ transform: translate(0,0) rotate(0deg); }
  50%{ transform: translate(6px, -10px) rotate(6deg); }
}
.section::before, .section::after{ animation: petalDrift 13s ease-in-out infinite; }
.section::after{ animation-delay: -6s; }
.footer::before, .footer::after{ animation: petalDrift 13s ease-in-out infinite; }
.footer::after{ animation-delay: -6s; }

@keyframes bloomSpin{
  0%, 100%{ transform: rotate(-8deg) scale(1); }
  50%{ transform: rotate(8deg) scale(1.15); }
}
.section__title::after{ display:inline-block; animation: bloomSpin 6.5s ease-in-out infinite; }

@keyframes softPulse{
  0%, 100%{ transform: rotateY(0deg) scale(1); box-shadow: 0 12px 30px -18px rgba(168,96,122,.35); }
  50%{ transform: rotateY(9deg) scale(1.045); box-shadow: 0 14px 34px -14px rgba(168,96,122,.5); }
}
.countdown__item{ perspective: 300px; animation: softPulse 4.2s ease-in-out infinite; }
.countdown__item:nth-child(2){ animation-delay: .15s; }
.countdown__item:nth-child(3){ animation-delay: .3s; }
.countdown__item:nth-child(4){ animation-delay: .45s; }

/* Flip-clock digit change instead of a flat pulse */
.countdown__num{ transform-style: preserve-3d; backface-visibility: hidden; }
@keyframes countTick{
  0%{ transform: rotateX(0deg); }
  45%, 55%{ transform: rotateX(-100deg); color: var(--color-accent); }
  100%{ transform: rotateX(0deg); }
}

.couple__photo{ transition: transform .18s ease-out; }

/* Orbiting petal ring around each portrait — real depth via a rotating
   3D ring rather than a flat spinner. */
.couple__photo-wrap{ position: relative; width: 160px; height: 160px; margin: 0 auto 18px; }
.couple__photo-wrap .couple__photo{ margin: 0; }
.couple__photo-orbit{
  position: absolute;
  inset: -18px;
  animation: orbitSpin 17s linear infinite;
  pointer-events: none;
}
.couple__photo-orbit span{
  position: absolute;
  top: 50%; left: 50%;
  width: 8px; height: 8px;
  margin: -4px 0 0 -4px;
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(168,96,122,.5);
}
.couple__photo-orbit span:nth-child(1){ transform: rotate(0deg) translateY(-98px); background: var(--color-primary); }
.couple__photo-orbit span:nth-child(2){ transform: rotate(60deg) translateY(-98px); background: var(--color-secondary); width:6px; height:6px; margin:-3px 0 0 -3px; }
.couple__photo-orbit span:nth-child(3){ transform: rotate(120deg) translateY(-98px); background: var(--color-accent); width:5px; height:5px; margin:-2.5px 0 0 -2.5px; }
.couple__photo-orbit span:nth-child(4){ transform: rotate(180deg) translateY(-98px); background: var(--color-primary); }
.couple__photo-orbit span:nth-child(5){ transform: rotate(240deg) translateY(-98px); background: var(--color-secondary); width:6px; height:6px; margin:-3px 0 0 -3px; }
.couple__photo-orbit span:nth-child(6){ transform: rotate(300deg) translateY(-98px); background: var(--color-accent); width:5px; height:5px; margin:-2.5px 0 0 -2.5px; }
@keyframes orbitSpin{ from{ transform: rotate(0deg); } to{ transform: rotate(360deg); } }

.gallery__item{ transition: transform .5s cubic-bezier(.22,1,.36,1), box-shadow .5s ease, opacity .5s ease; }

/* ==========================================================================
   FLOATING GRAPHICS — real flower/leaf sprites gently swaying in each
   section (not just background decoration). Purely visual, non-interactive.
   ========================================================================== */
.deco-float{
  position: absolute;
  z-index: 1;
  pointer-events: none;
  filter: drop-shadow(0 4px 8px rgba(168,96,122,.22));
  will-change: transform;
}
.deco-float svg{ width: 100%; height: 100%; display: block; }

/* ==========================================================================
   ENTRANCE — a slow, one-time slide + fade the first time each sprite
   appears (cover sprites on load, section sprites the first time that
   section scrolls into view). Uses the standalone `translate` property
   rather than `transform`, so it composes independently of the continuous
   sway `animation` above instead of fighting it for the same property —
   JS (below) picks a direction per sprite from its actual on-screen
   position and adds an enter-(left|right|top|bottom) class plus is-entered.
   ========================================================================== */
.deco-float{
  opacity: 0;
  translate: 0 0;
  transition: opacity 1.9s cubic-bezier(.22,1,.36,1), translate 1.9s cubic-bezier(.22,1,.36,1);
}
.deco-float.enter-left{ translate: -60px 10px; }
.deco-float.enter-right{ translate: 60px 10px; }
.deco-float.enter-top{ translate: 0 -50px; }
.deco-float.enter-bottom{ translate: 0 50px; }
.deco-float.is-entered{ opacity: 1; translate: 0 0; }
.deco-float.is-far.is-entered{ opacity: .6; }
.deco-float.is-back.is-entered{ opacity: .16; }

.cover__names{
  opacity: 0;
  translate: 0 -46px;
  transition: opacity 2.1s cubic-bezier(.22,1,.36,1), translate 2.1s cubic-bezier(.22,1,.36,1);
}
.cover__names.is-entered{ opacity: 1; translate: 0 0; }

@keyframes floatSwayA{
  0%, 100%{ transform: translateY(0) rotate(-6deg); }
  50%{ transform: translateY(-16px) rotate(8deg); }
}
@keyframes floatSwayB{
  0%, 100%{ transform: translateY(0) rotate(5deg); }
  50%{ transform: translateY(-11px) rotate(-8deg); }
}
@keyframes floatSwayC{
  0%, 100%{ transform: translate(0,0) rotate(0deg); }
  33%{ transform: translate(5px,-9px) rotate(5deg); }
  66%{ transform: translate(-5px,-4px) rotate(-5deg); }
}
.deco-float.anim-a{ animation: floatSwayA 9.5s ease-in-out infinite; }
.deco-float.anim-b{ animation: floatSwayB 11s ease-in-out infinite; }
.deco-float.anim-c{ animation: floatSwayC 12.5s ease-in-out infinite; }

@keyframes floatDriftD{
  0%, 100%{ transform: translate(0,0) rotate(-4deg) scale(1); }
  50%{ transform: translate(-8px,-18px) rotate(10deg) scale(1.08); }
}
@keyframes flutterE{
  0%, 100%{ transform: translate(0,0) rotate(-10deg); }
  25%{ transform: translate(10px,-8px) rotate(6deg); }
  50%{ transform: translate(4px,-20px) rotate(-14deg); }
  75%{ transform: translate(-10px,-9px) rotate(8deg); }
}
@keyframes twinkleF{
  0%, 100%{ transform: scale(.7) rotate(0deg); opacity:.35; }
  50%{ transform: scale(1.25) rotate(90deg); opacity:1; }
}
.deco-float.anim-d{ animation: floatDriftD 14s ease-in-out infinite; }
.deco-float.anim-e{ animation: flutterE 8.5s ease-in-out infinite; }
.deco-float.anim-f{ animation: twinkleF 4s ease-in-out infinite; }
.deco-float.anim-e.is-butterfly{ animation-duration: 9.5s; }

/* Extra motion variants — keep the growing cast of overlapping sprites from
   all breathing in sync with the original anim-a..f set. */
@keyframes floatWaveG{
  0%, 100%{ transform: translateX(0) rotate(0deg); }
  50%{ transform: translateX(10px) rotate(-3deg); }
}
@keyframes flutterH{
  0%, 100%{ transform: translateY(0) rotate(-6deg) scale(1); }
  50%{ transform: translateY(-9px) rotate(9deg) scale(1.06); }
}
.deco-float.anim-g{ animation: floatWaveG 10s ease-in-out infinite; }
.deco-float.anim-h{ animation: flutterH 7s ease-in-out infinite; }

/* ==========================================================================
   BACKGROUND-LAYER BLOOMS — large, soft-focus sprites sitting behind the
   copy (negative z-index) so corners and empty mid-section space read as
   full and dimensional instead of flat, without ever competing with text.
   ========================================================================== */
@keyframes bloomDriftBack{
  0%, 100%{ transform: translate(0,0) rotate(-5deg) scale(1); }
  50%{ transform: translate(-10px,-14px) rotate(5deg) scale(1.06); }
}
.deco-float.is-back{
  z-index: -1;
  opacity: .16;
  filter: blur(6px);
  animation: bloomDriftBack 16s ease-in-out infinite;
}

/* ==========================================================================
   FALLING PETALS — a continuous, varied-speed shower drifting down the
   whole viewport. Purely decorative, sits above the background but never
   blocks interaction.
   ========================================================================== */
.petals-overlay{
  position: fixed;
  inset: 0;
  max-width: var(--max-w);
  margin: 0 auto;
  overflow: hidden;
  pointer-events: none;
  z-index: 350;
}
.petal{
  position: absolute;
  top: -8%;
  will-change: transform;
  animation-name: petalFall;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}
.petal svg{ width:100%; height:100%; display:block; }
@keyframes petalFall{
  0%{ transform: translate(0,0) rotate(0deg); }
  100%{ transform: translate(var(--drift, 20px), 118vh) rotate(var(--spin, 320deg)); }
}

/* ---------- Scroll progress bar ---------- */
.scroll-progress{
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--color-secondary), var(--color-primary), var(--color-accent));
  z-index: 600;
  transition: width .1s linear;
}

/* ---------- Countdown tick pulse (3D flip, keyframes defined near .countdown__num above) ---------- */
.countdown__num.is-ticking{ animation: countTick .5s ease-out; transform-origin: center; }

/* ---------- Hero names shimmer (targets the name spans directly, not the
   wrapping div, since background-clip:text needs the text on the same
   element and -webkit-text-fill-color would otherwise inherit into the
   "&" divider and make it invisible too) ---------- */
.hero__names span{
  background: linear-gradient(100deg, var(--color-accent) 30%, var(--color-primary) 42%, #f2cfda 50%, var(--color-primary) 58%, var(--color-accent) 70%);
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmerText 7.5s linear infinite;
}
@keyframes shimmerText{
  0%{ background-position: 200% 0; }
  100%{ background-position: -50% 0; }
}

/* ==========================================================================
   VARIATIVE REVEAL DIRECTIONS — sections no longer all reveal the same way.
   ========================================================================== */
.reveal--left{ transform: scale(.92) translateX(-42px) rotateY(-34deg); }
.reveal--left.in{ transform: scale(1) translateX(0) rotateY(0); }
.reveal--right{ transform: scale(.92) translateX(42px) rotateY(34deg); }
.reveal--right.in{ transform: scale(1) translateX(0) rotateY(0); }
.reveal--zoom{ transform: scale(.55) rotateY(-22deg) rotateX(12deg); }
.reveal--zoom.in{ transform: scale(1) rotateY(0) rotateX(0); }
.reveal--flip{ transform: rotateX(58deg) translateY(24px) scale(.92); }
.reveal--flip.in{ transform: rotateX(0) translateY(0) scale(1); }

.hero__names span.reveal{ display: inline-block; }

/* ==========================================================================
   SECTION TITLE — its own signature motion: text rises up through a mask
   like a curtain lifting, independent of the generic .reveal fade used
   everywhere else, so every section announces itself a little differently.
   ========================================================================== */
.section__title__mask{ display: block; overflow: hidden; perspective: 400px; }
.section__title__inner{
  display: block;
  transform: translateY(112%) rotateX(-75deg);
  transform-origin: center bottom;
  transition: transform 1.4s cubic-bezier(.22,1,.36,1);
}
.section__title.reveal{ transform: none; transition: opacity .7s ease; }
.section__title.reveal.in{ transform: none; }
.section__title.reveal.in .section__title__inner{ transform: translateY(0) rotateX(0); }

/* ==========================================================================
   PHOTO GRID — every photo is on screen at once; the mosaic layout itself
   lives in base.css. This only adds the template's own depth and hover so
   the tiles still belong to this design. Prev/next moved into the lightbox,
   which opens when a tile is tapped.
   ========================================================================== */
.gallery__item{ transition: transform .45s cubic-bezier(.22,1,.36,1), box-shadow .45s ease; }
.gallery__item:hover{ transform: translateY(-3px); }

.event-card.reveal{ transition-delay: calc(var(--i,0) * 90ms); }
.event-card:nth-of-type(odd).reveal{ transform: scale(.95) translateX(-30px) rotateY(-26deg); }
.event-card:nth-of-type(odd).reveal.in{ transform: scale(1) translateX(0) rotateY(0); }
.event-card:nth-of-type(even).reveal{ transform: scale(.95) translateX(30px) rotateY(26deg); }
.event-card:nth-of-type(even).reveal.in{ transform: scale(1) translateX(0) rotateY(0); }

.story__item:nth-child(odd).reveal{ transform: scale(.94) translateX(-26px) rotateY(-22deg); }
.story__item:nth-child(odd).reveal.in{ transform: scale(1) translateX(0) rotateY(0); }
.story__item:nth-child(even).reveal{ transform: scale(.94) translateX(26px) rotateY(22deg); }
.story__item:nth-child(even).reveal.in{ transform: scale(1) translateX(0) rotateY(0); }

/* ---------- Card ornament corners — extra "penuh" detailing ---------- */
.event-card, .gift-card{ position: relative; overflow: hidden; }
.event-card::before, .event-card::after{
  content: '❀';
  position: absolute;
  font-size: 15px;
  color: var(--color-primary);
  opacity: .55;
}
.event-card::before{ top: 8px; left: 12px; }
.event-card::after{ bottom: 8px; right: 12px; transform: rotate(180deg); }

/* ---------- Photo tilt on hover — extra playful interaction ---------- */
.couple__person{ perspective: 800px; }
.gallery__item{ transform-style: preserve-3d; }
.gallery{ perspective: 900px; }

/* ---------- Cursor-tracked 3D tilt (event/gift/wish cards + portraits) ----------
   Inline transform is set by the page script on pointermove; this just
   keeps the settle-back motion smooth and gives the tilted element real
   depth against its neighbours. */
.event-card, .gift-card, .wish-card, .couple__photo{
  transform-style: preserve-3d;
  will-change: transform;
}

/* ---------- Soft rotating halo behind the hero — background depth-of-field ---------- */
.hero{ position: relative; }
.hero::before{
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 440px; height: 440px;
  margin: -220px 0 0 -220px;
  background: radial-gradient(circle, rgba(201,143,160,.18), transparent 62%);
  filter: blur(6px);
  z-index: -1;
  pointer-events: none;
  animation: heroHaloSpin 42s linear infinite;
}
@keyframes heroHaloSpin{
  0%{ transform: rotate(0deg) scale(1); }
  50%{ transform: rotate(180deg) scale(1.18); }
  100%{ transform: rotate(360deg) scale(1); }
}

/* ---------- Background-layer decorations — blurred + slower, for parallax depth ---------- */
.deco-float.is-far{ filter: blur(1.4px) drop-shadow(0 4px 8px rgba(168,96,122,.15)); opacity: .6; }

/* ---------- Buttons — a bit of lift/press depth instead of a flat color swap ---------- */
.btn-solid{ transition: transform .25s ease, box-shadow .25s ease, opacity .25s ease; }
.btn-solid:hover{ transform: translateY(-3px) scale(1.03); box-shadow: 0 14px 26px -12px rgba(168,96,122,.55); }
.btn-solid:active{ transform: translateY(0) scale(.97); box-shadow: 0 4px 10px -6px rgba(168,96,122,.4); }
.btn-outline{ transition: background .3s, color .3s, transform .25s ease; }
.btn-outline:hover{ transform: translateY(-2px); }
.btn-open{ transition: background .35s ease, color .35s ease, transform .25s ease; }
.btn-open:hover{ transform: translateY(-2px) scale(1.04); }

@media (max-width: 420px){
  .deco-float{ transform: scale(.8); }
}

@media (prefers-reduced-motion: reduce){
  .section::before, .section::after, .footer::before, .footer::after,
  .section__title::after, .countdown__item, .deco-float,
  .petal, .hero__names span, .countdown__num.is-ticking,
  .hero::before, .couple__photo-orbit{ animation: none !important; }
  .reveal, .reveal--left, .reveal--right, .reveal--zoom, .reveal--flip,
  .section__title__inner, .gallery__item,
  .event-card, .gift-card, .wish-card, .couple__photo,
  .deco-float, .cover__names{ transition-duration: .01ms !important; }
  .petals-overlay{ display: none; }
}

/* ==========================================================================
   READABILITY — palette corrections so no line of copy blends into the art.

   Two faults here. The shimmer filling the couple's names peaked at
   #f2cfda, a pink lighter than the paper, so the sweeping band erased half
   of each name. And the decoration pink --color-primary was doing double
   duty as the colour of the eyebrows, dates and RSVP statuses, at 2.6:1.
   The frame's rose-and-leaf pattern also ran at .7 opacity under the copy.

   Everything below is tuned against the page as it actually *renders*, not
   against --color-bg. The frame's tint pools, the section wash and the
   repeating pattern stack up, so the real paper behind the copy measures
   about rgb(238,227,221) — appreciably darker than the nominal background
   this palette was originally picked against.

   The palette variables themselves keep their values everywhere they fill,
   border or back something — only the text roles move, onto the --ink-*
   companions declared below.
   ========================================================================== */
:root{
  --color-text-soft: #746064;   /* the body tone, deepened to 4.5:1 on the rendered paper */
  --ink-primary: #805a66;       /* text-only companion to --color-primary */
  --ink-accent:  #92546a;       /* text-only companion to --color-accent */
}

.section__eyebrow,
.hero__quote-src,
.hero__amp,
.couple__ig,
.couple__divider,
.story__date,
.rundown__time,
.gift-card__bank,
.wish-card__status,
.footer__hashtag{ color: var(--ink-primary); }

/* --color-accent is the theme's ink for every title, name and figure, and on
   the paper as it actually renders it measured 4.4:1. It keeps its value
   everywhere it fills, borders or backs something; only the type moves. */
.section__title,
.hero__names,
.cover__names,
.couple__name,
.event-card__name,
.story__title,
.rundown__title,
.countdown__num,
.gift-card__num,
.wish-card__name,
.footer__names{ color: var(--ink-accent); }

/* Shimmer highlight stays inside the rose family but never rises above the
   paper: the lightest stop now reads at 3.2:1, enough for display type. */
.hero__names span{
  background-image: linear-gradient(100deg,
    #603746 30%,
    #784557 42%,
    var(--ink-accent) 50%,
    #784557 58%,
    #603746 70%);
  background-size: 250% 100%;
}

.frame::before{ opacity: .34; }
.cover::before{ opacity: .3; }

/* === PERFORMANCE (iOS Safari) ===
   Safari on iPhone blanks the page (black screen) or tears while scrolling
   once too many large composited layers are animating at the same time. The
   Musim/Keagamaan templates never hit that limit, so these rules bring this
   template onto the same budget: the big storybook scenes stay still, and
   nothing that spans the whole page is animated. */
.deco-float.is-scene{ animation: none; }
.frame::before{ animation: none !important; }
/* === /PERFORMANCE === */
