/* ═══════════════════════════════════════════════════════════
   MELİS & ARDA — "Beyaz İnci" Davetiye
   Palet: sıcak beyaz, fildişi, şampanya altını, adaçayı yeşili
   ═══════════════════════════════════════════════════════════ */

:root {
    --paper:      #FDFCFA;
    --ivory:      #F7F3EC;
    --ivory-2:    #F1EADD;
    --ink:        #3E3A33;
    --muted:      #8B857A;
    --gold:       #B99A5B;
    --gold-deep:  #A2854A;
    --gold-soft:  #D9C89E;
    --line:       #E8E0D1;
    --sage:       #5C6553;
    --sage-dark:  #474F3D;
    --serif:      "Cormorant Garamond", Georgia, serif;
    --script:     "Great Vibes", cursive;
    --sans:       "Jost", "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--serif);
    background: var(--paper);
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* zarf açılana dek kaydırma kilitli */
body.is-locked { overflow: hidden; height: 100dvh; }

/* hidden özniteliği display kurallarınca ezilmesin (kritik) */
.invitation[hidden] { display: none; }

::selection { background: var(--gold-soft); color: var(--ink); }

/* kağıt dokusu: tüm sayfada çok hafif gren */
body::before {
    content: "";
    position: fixed; inset: 0; z-index: 0;
    pointer-events: none; opacity: .5;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .72 0 0 0 0 .68 0 0 0 0 .6 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ─── Kaydırma ilerleme çubuğu ─── */
.scroll-progress {
    position: fixed; top: 0; left: 0; height: 2px; width: 0;
    background: linear-gradient(90deg, var(--gold-soft), var(--gold));
    z-index: 70;
}

/* ─── Taç yaprağı kanvası ─── */
#petals {
    position: fixed; inset: 0; width: 100%; height: 100%;
    pointer-events: none; z-index: 5;
}

/* ─── Müzik butonu ─── */
.music-btn {
    position: fixed; top: 18px; right: 18px; z-index: 60;
    width: 46px; height: 46px; border-radius: 50%;
    border: 1px solid var(--line);
    background: rgba(253, 252, 250, .88);
    backdrop-filter: blur(8px);
    box-shadow: 0 6px 20px rgba(62, 58, 51, .12);
    cursor: pointer; display: grid; place-items: center;
    transition: transform .25s ease, box-shadow .25s ease;
}
.music-btn:hover { transform: scale(1.06); }
.music-btn svg { width: 20px; height: 20px; fill: var(--gold-deep); }
.music-waves {
    position: absolute; bottom: 7px; left: 50%; transform: translateX(-50%);
    display: flex; gap: 2px; align-items: flex-end; height: 7px;
    opacity: 0; transition: opacity .3s;
}
.music-waves i {
    width: 2px; background: var(--gold); border-radius: 1px; height: 3px;
}
body.music-on .music-waves { opacity: 1; }
body.music-on .music-waves i { animation: wave 1s ease-in-out infinite; }
body.music-on .music-waves i:nth-child(2) { animation-delay: .18s; }
body.music-on .music-waves i:nth-child(3) { animation-delay: .36s; }
@keyframes wave { 0%, 100% { height: 3px; } 50% { height: 7px; } }

/* ═══════════════════════════════════════════════════════════
   AÇILIŞ — DANTELLİ ZARF
   ═══════════════════════════════════════════════════════════ */
.envelope-scene {
    position: fixed; inset: 0; z-index: 50;
    display: flex; align-items: center; justify-content: center;
    background:
        radial-gradient(ellipse 130% 90% at 50% -10%, #FFFEFC 0%, transparent 55%),
        linear-gradient(168deg, #FBF8F2 0%, #F3EDE1 55%, #EDE4D3 100%);
}
.env-vignette {
    position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(ellipse 90% 72% at 50% 46%, transparent 58%, rgba(120, 105, 80, .14) 100%);
}

.env-stage {
    position: relative; text-align: center; cursor: pointer;
    -webkit-tap-highlight-color: transparent; outline: none;
    padding: 30px;
}

.envelope {
    position: relative;
    width: min(84vw, 400px);
    aspect-ratio: 340 / 232;
    margin: 0 auto;
    perspective: 1400px;
    filter: drop-shadow(0 30px 46px rgba(90, 78, 58, .28));
    transition: transform .35s ease;
}
.env-stage:hover .envelope { transform: translateY(-4px); }

/* zarfın iç yüzü (kapak açılınca görünür) */
.env-inner {
    position: absolute; inset: 0; border-radius: 10px;
    background: linear-gradient(180deg, var(--ivory-2), #E9E0CE);
    box-shadow: inset 0 0 30px rgba(120, 100, 70, .18);
}

/* zarftan çıkan mini kart */
.env-card {
    position: absolute; left: 5%; right: 5%; top: 6%; bottom: 10%;
    background: linear-gradient(178deg, #FFFFFF 0%, #FBF8F1 100%);
    border-radius: 6px;
    box-shadow: 0 8px 26px rgba(80, 68, 48, .2);
    display: flex; align-items: center; justify-content: center;
    z-index: 2;
}
.env-card-border {
    /* zarf kapaliyken kart içeriği görünmesin; kapak açılınca belirir */
    opacity: 0;
    transition: opacity .6s ease .55s;
    position: absolute; inset: 9px;
    border: 1px solid var(--gold-soft);
    border-radius: 4px;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 8px;
}
.env-card-sprig { width: 96px; height: 34px; }
.env-card-sprig .sprig-stem { stroke: var(--gold-soft); stroke-width: 1.4; }
.env-card-sprig .sprig-leaf { fill: none; stroke: var(--gold-soft); stroke-width: 1.2; }
.env-card-names {
    font-family: var(--serif); font-weight: 600;
    font-size: clamp(20px, 5.6vw, 27px); letter-spacing: .06em;
}
.env-card-names i { font-family: var(--script); font-style: normal; color: var(--gold); }
.env-card-date {
    font-family: var(--sans); font-weight: 400; font-size: 12px;
    letter-spacing: .38em; color: var(--muted);
}

/* zarf gövdesi — yan ve alt katlamalar */
.env-body {
    position: absolute; inset: 0; border-radius: 10px;
    overflow: hidden; z-index: 3; pointer-events: none;
}
.env-body::before,
.env-body::after {
    content: ""; position: absolute; inset: 0;
}
/* yan katlar */
.env-body::before {
    background:
        linear-gradient(64deg, #FBF7F0 0%, #F4EDDF 46%, transparent 46.5%) left / 51% 100% no-repeat,
        linear-gradient(-64deg, #FBF7F0 0%, #F4EDDF 46%, transparent 46.5%) right / 51% 100% no-repeat;
    filter: drop-shadow(0 0 6px rgba(120, 100, 70, .12));
}
/* alt kat */
.env-body::after {
    background: linear-gradient(0deg, #FDFAF4 0%, #F6F0E3 34%, transparent 34.5%);
    filter: drop-shadow(0 -3px 6px rgba(120, 100, 70, .1));
}

/* ─── dantelli üst kapak ─── */
.env-flap {
    position: absolute; left: 0; right: 0; top: 0;
    height: 82%;
    transform-origin: 50% 0;
    transform-style: preserve-3d;
    z-index: 4;
    will-change: transform;
}
.env-flap-paper {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, #FEFDFB 0%, #F7F1E5 78%);
    clip-path: polygon(0 0, 100% 0, 50% 79%);
    border-radius: 10px 10px 0 0;
    box-shadow: 0 4px 10px rgba(110, 95, 70, .14);
}
.env-lace {
    position: absolute; inset: 0; width: 100%; height: 100%;
    pointer-events: none;
}
.lace-band {
    fill: #FFFFFF;
    stroke: rgba(190, 172, 130, .35); stroke-width: .8;
    filter: drop-shadow(0 2px 3px rgba(120, 100, 70, .18));
}
.lace-holes { opacity: .9; }
.lace-scallops circle {
    fill: #FFFFFF;
    stroke: rgba(190, 172, 130, .3); stroke-width: .7;
}

/* ─── inci ─── */
.pearl {
    position: absolute; left: 50%; top: 64%;
    width: 34px; height: 34px; margin: -17px 0 0 -17px;
    border-radius: 50%; z-index: 6;
    background:
        radial-gradient(circle at 32% 28%, #FFFFFF 0%, #F6F2EA 34%, #DDD3C0 72%, #C9BCA4 100%);
    box-shadow:
        0 4px 10px rgba(90, 76, 52, .35),
        inset -3px -4px 8px rgba(140, 122, 90, .28),
        inset 3px 4px 6px rgba(255, 255, 255, .9);
    animation: pearlBreath 3s ease-in-out infinite;
}
@keyframes pearlBreath {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.07); }
}
.pearl-glow {
    position: absolute; inset: -12px; border-radius: 50%;
    background: radial-gradient(circle, rgba(217, 200, 158, .5) 0%, transparent 68%);
    animation: glowPulse 3s ease-in-out infinite;
}
@keyframes glowPulse {
    0%, 100% { opacity: .45; transform: scale(1); }
    50%      { opacity: 1; transform: scale(1.25); }
}
.pearl-sparkle {
    position: absolute; top: -7px; right: -6px;
    font-size: 11px; color: #FFF;
    text-shadow: 0 0 6px rgba(217, 200, 158, .95);
    animation: sparkle 2.2s ease-in-out infinite;
}
@keyframes sparkle {
    0%, 100% { opacity: 0; transform: scale(.5) rotate(0deg); }
    50%      { opacity: 1; transform: scale(1.15) rotate(40deg); }
}

.env-hint {
    margin-top: 42px;
    font-family: var(--script);
    font-size: clamp(26px, 6.4vw, 34px);
    color: var(--gold-deep);
    animation: hintFloat 2.6s ease-in-out infinite;
}
@keyframes hintFloat {
    0%, 100% { transform: translateY(0); opacity: .85; }
    50%      { transform: translateY(-6px); opacity: 1; }
}

/* açılış durumları (JS sınıf ekler) */
.envelope.open .env-flap {
    transform: rotateX(-178deg);
    transition: transform 1.15s cubic-bezier(.65, 0, .3, 1);
}
/* kapak kalktıktan sonra kartın arkasına iner (JS zamanlar) */
.env-flap.behind { z-index: 1; }
.envelope.open .env-card-border { opacity: 1; }
.envelope.open .pearl {
    opacity: 0; transform: scale(.4);
    transition: opacity .4s ease, transform .4s ease;
}
.envelope.card-out .env-card {
    transform: translateY(-58%) scale(1.06);
    transition: transform 1.1s cubic-bezier(.2, .8, .25, 1) .1s;
}
.envelope-scene.leave {
    opacity: 0; transform: scale(1.12);
    transition: opacity .8s ease, transform .9s ease;
    pointer-events: none;
}
.env-hint.hide { opacity: 0; transition: opacity .4s; animation: none; }

/* ═══════════════════════════════════════════════════════════
   DAVETİYE GÖVDESİ
   ═══════════════════════════════════════════════════════════ */
.invitation { position: relative; z-index: 2; }

.section {
    position: relative;
    padding: clamp(72px, 13vw, 120px) 24px;
    max-width: 640px; margin: 0 auto;
    text-align: center;
}

.sec-title { margin-bottom: clamp(34px, 7vw, 52px); }
.sec-title span {
    display: inline-flex; align-items: center; gap: 18px;
    font-family: var(--serif); font-weight: 500;
    font-size: clamp(24px, 5.6vw, 32px);
    letter-spacing: .32em; text-transform: uppercase;
    color: var(--ink);
}
.sec-title span::before,
.sec-title span::after {
    content: ""; width: clamp(28px, 7vw, 54px); height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-soft));
}
.sec-title span::after {
    background: linear-gradient(90deg, var(--gold-soft), transparent);
}

/* scroll ile beliren öğeler */
.reveal { opacity: 0; transform: translateY(28px); }

/* ─── HERO ─── */
.hero {
    min-height: 100dvh;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    text-align: center; padding: 90px 24px 70px;
    position: relative; overflow: hidden;
    background:
        radial-gradient(ellipse 120% 60% at 50% -8%, #FFFFFF 0%, transparent 60%),
        linear-gradient(180deg, var(--paper) 0%, var(--ivory) 100%);
}
.hero-frame {
    position: absolute; inset: 16px;
    border: 1px solid rgba(185, 154, 91, .32);
    border-radius: 22px; pointer-events: none;
}
.hero-frame::before {
    content: ""; position: absolute; inset: 5px;
    border: 1px solid rgba(185, 154, 91, .16);
    border-radius: 18px;
}

.floral {
    position: absolute; width: clamp(120px, 30vw, 210px);
    pointer-events: none; opacity: .9;
}
.floral .draw path,
.floral .draw circle {
    fill: none; stroke: var(--gold-soft); stroke-width: 1.5;
    stroke-linecap: round;
}
.floral-tl { top: 26px; left: 26px; }
.floral-br { bottom: 26px; right: 26px; transform: rotate(180deg); }

.hero-top {
    font-family: var(--sans); font-weight: 400;
    font-size: clamp(11px, 2.8vw, 14px);
    letter-spacing: .5em; text-transform: uppercase;
    color: var(--muted);
}
.hero-rule {
    display: flex; align-items: center; gap: 14px;
    margin: 22px 0 10px; color: var(--gold);
}
.hero-rule span { width: clamp(40px, 12vw, 90px); height: 1px; background: var(--gold-soft); }
.hero-rule i { font-style: normal; font-size: 15px; }

.hero-names {
    display: flex; flex-direction: column; align-items: center;
    gap: 2px; margin: 10px 0 26px; font-weight: 500;
}
.hero-name {
    font-family: var(--serif);
    font-size: clamp(56px, 15vw, 96px);
    line-height: 1.04; letter-spacing: .04em;
    color: var(--ink);
}
.hero-name .ch { display: inline-block; will-change: transform, opacity; }
.hero-amp {
    font-family: var(--script);
    font-size: clamp(38px, 9.5vw, 58px);
    color: var(--gold); line-height: .9;
    margin: 4px 0;
}

.hero-date {
    font-family: var(--sans); font-weight: 400;
    font-size: clamp(13px, 3.4vw, 16px);
    letter-spacing: .3em; text-transform: uppercase; color: var(--ink);
}
.hero-venue {
    margin-top: 10px;
    font-family: var(--serif); font-style: italic;
    font-size: clamp(16px, 4vw, 19px); color: var(--muted);
}
.hero-actions { margin-top: 34px; }

.scroll-cue {
    position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%);
}
.scroll-cue-line {
    display: block; width: 1px; height: 44px;
    background: linear-gradient(180deg, var(--gold), transparent);
    animation: cueDrop 1.8s ease-in-out infinite;
    transform-origin: top;
}
@keyframes cueDrop {
    0%   { transform: scaleY(0); opacity: 0; }
    35%  { transform: scaleY(1); opacity: 1; }
    100% { transform: scaleY(1) translateY(10px); opacity: 0; }
}

/* ─── BUTONLAR ─── */
.btn {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: var(--sans); font-weight: 500;
    font-size: 13.5px; letter-spacing: .14em; text-transform: uppercase;
    padding: 15px 30px; border-radius: 999px;
    cursor: pointer; text-decoration: none;
    transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
    border: 1px solid transparent;
}
.btn svg { width: 17px; height: 17px; fill: currentColor; flex-shrink: 0; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-solid {
    background: linear-gradient(160deg, var(--sage) 0%, var(--sage-dark) 100%);
    color: #FBFAF6;
    box-shadow: 0 12px 26px rgba(71, 79, 61, .3);
}
.btn-solid:hover { box-shadow: 0 16px 32px rgba(71, 79, 61, .38); }

.btn-ghost {
    background: rgba(255, 255, 255, .7);
    border-color: var(--line); color: var(--ink);
    box-shadow: 0 6px 18px rgba(62, 58, 51, .08);
}
.btn-ghost:hover { border-color: var(--gold-soft); }

.btn-line {
    background: transparent; border-color: var(--gold-soft);
    color: var(--gold-deep);
}
.btn-line:hover { background: rgba(217, 200, 158, .16); }

.btn-wide { width: 100%; justify-content: center; }

/* ─── DAVET SÖZÜ ─── */
.invite-word { background: var(--paper); }
.script-lead {
    font-family: var(--script);
    font-size: clamp(30px, 7.5vw, 44px);
    color: var(--gold); margin-bottom: 26px;
}
.invite-text {
    font-size: clamp(17px, 4.4vw, 21px);
    line-height: 1.85; color: var(--ink);
}
.families {
    margin-top: 46px;
    display: flex; align-items: center; justify-content: center;
    gap: clamp(18px, 5vw, 40px); flex-wrap: wrap;
}
.family { display: flex; flex-direction: column; gap: 6px; }
.family-names {
    font-family: var(--serif); font-weight: 600;
    font-size: clamp(18px, 4.6vw, 22px);
}
.family-sub {
    font-family: var(--sans); font-size: 10.5px;
    letter-spacing: .34em; color: var(--muted);
}
.family-dot { color: var(--gold-soft); font-size: 18px; }

/* ─── GERİ SAYIM ─── */
.countdown-sec {
    background: linear-gradient(180deg, var(--ivory) 0%, var(--paper) 100%);
    max-width: none;
}
.countdown {
    display: flex; align-items: flex-start; justify-content: center;
    gap: clamp(8px, 2.6vw, 20px);
}
.cd-cell {
    display: flex; flex-direction: column; gap: 8px; min-width: clamp(58px, 16vw, 88px);
}
.cd-cell b {
    font-family: var(--serif); font-weight: 500;
    font-size: clamp(40px, 11vw, 64px); line-height: 1;
    color: var(--ink); font-variant-numeric: tabular-nums;
    transition: opacity .18s ease;
}
.cd-cell b.tick { opacity: .25; }
.cd-cell span {
    font-family: var(--sans); font-size: 10.5px;
    letter-spacing: .32em; text-transform: uppercase; color: var(--muted);
}
.cd-sep {
    font-family: var(--serif); font-style: normal;
    font-size: clamp(30px, 8vw, 46px); line-height: 1.25;
    color: var(--gold-soft);
}
.cd-actions {
    margin-top: 44px;
    display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
}

/* ─── TÖREN YERİ ─── */
.venue-sec { background: var(--paper); max-width: none; }
.venue-sketch {
    max-width: 560px; margin: 0 auto 12px;
    padding: 0 6px;
}
#venueSvg { width: 100%; height: auto; }
.vs {
    stroke: #A79877; stroke-width: 1.6;
    stroke-linecap: round; stroke-linejoin: round; fill: none;
}
.venue-name {
    font-family: var(--serif); font-weight: 600;
    font-size: clamp(24px, 6vw, 32px);
}
.venue-addr {
    margin-top: 8px; font-family: var(--sans); font-weight: 300;
    font-size: 14px; letter-spacing: .2em; text-transform: uppercase;
    color: var(--muted);
}
.venue-actions { margin-top: 30px; }

/* ─── PROGRAM AKIŞI ─── */
.program-sec {
    background: linear-gradient(180deg, var(--paper) 0%, var(--ivory) 100%);
}
.timeline {
    position: relative; text-align: left;
    max-width: 380px; margin: 0 auto;
    padding-left: 6px;
}
.tl-line {
    position: absolute; left: 27px; top: 10px; bottom: 10px;
    width: 1px; background: var(--line);
}
.tl-line i {
    display: block; width: 100%; height: 0;
    background: linear-gradient(180deg, var(--gold-soft), var(--gold));
}
.tl-item {
    position: relative;
    display: flex; align-items: center; gap: 22px;
    padding: 17px 0;
}
.tl-icon {
    position: relative; z-index: 1;
    width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
    background: #FFFFFF;
    border: 1px solid var(--gold-soft);
    box-shadow: 0 6px 16px rgba(62, 58, 51, .1);
    display: grid; place-items: center;
    color: var(--gold-deep);
}
.tl-icon svg { width: 22px; height: 22px; }
.tl-body { display: flex; flex-direction: column; gap: 3px; }
.tl-body b {
    font-family: var(--serif); font-weight: 600;
    font-size: clamp(18px, 4.6vw, 21px);
}
.tl-body span {
    font-family: var(--sans); font-size: 12px;
    letter-spacing: .3em; color: var(--muted);
}

/* ─── KAPANIŞ ─── */
.closing { padding-bottom: 40px; }
.closing-orn { width: min(220px, 56vw); margin: 0 auto 18px; display: block; }
.closing-script {
    font-family: var(--script);
    font-size: clamp(28px, 7vw, 40px);
    color: var(--gold);
}
.closing-names {
    margin-top: 14px;
    font-family: var(--serif); font-weight: 600;
    font-size: clamp(22px, 5.6vw, 28px); letter-spacing: .1em;
}
.site-footer {
    margin-top: 70px; padding-top: 26px;
    border-top: 1px solid var(--line);
    display: flex; flex-direction: column; gap: 8px;
}
.site-footer a {
    font-family: var(--sans); font-size: 13px; letter-spacing: .18em;
    color: var(--gold-deep); text-decoration: none;
}
.site-footer small {
    font-family: var(--sans); font-weight: 300; font-size: 10.5px;
    color: #B4ADA0;
}

/* ═══════════════════════════════════════════════════════════
   CANLI KATMANLAR — kuşlar, bulutlar, filigran, süslemeler
   ═══════════════════════════════════════════════════════════ */

/* ─── Uçuşan kuşlar ─── */
#birdLayer {
    position: fixed; inset: 0; overflow: hidden;
    pointer-events: none; z-index: 55;
}
.bird {
    position: absolute; left: 0; top: 0;
    will-change: transform; opacity: 0;
}
.bird svg { display: block; width: 100%; height: 100%; overflow: visible; }
.bird .b-body { fill: #7A7264; }
.bird .b-near { fill: #8A8071; }
.bird .b-far  { fill: #B4A98F; }
/* uzaktaki kuşlar daha soluk */
.bird.far .b-body { fill: #A89E8B; }
.bird.far .b-near { fill: #B3A995; }
.bird.far .b-far  { fill: #CCC2AC; }

/* ─── Hero bulut ışıkları ─── */
.clouds { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.cloud {
    position: absolute; border-radius: 50%;
    filter: blur(46px); opacity: .55;
    background: radial-gradient(ellipse, #FFFFFF 0%, rgba(255, 252, 244, .55) 55%, transparent 75%);
}
.cloud.c1 { width: 420px; height: 150px; top: 6%;  left: -8%;  animation: drift 46s ease-in-out infinite alternate; }
.cloud.c2 { width: 340px; height: 130px; top: 20%; right: -10%; animation: drift 58s ease-in-out infinite alternate-reverse; }
.cloud.c3 { width: 500px; height: 170px; bottom: 8%; left: 12%; opacity: .4; animation: drift 70s ease-in-out infinite alternate; }
@keyframes drift {
    from { transform: translateX(0); }
    to   { transform: translateX(90px); }
}

/* ─── Altın ışık süpürmesi ─── */
.light-sweep {
    position: absolute; top: -10%; bottom: -10%; left: 0;
    width: 34%; pointer-events: none;
    background: linear-gradient(100deg, transparent 0%, rgba(217, 200, 158, .22) 50%, transparent 100%);
    transform: translateX(-140%) skewX(-16deg);
    animation: sweep 9s ease-in-out infinite;
}
@keyframes sweep {
    0%, 55%  { transform: translateX(-140%) skewX(-16deg); }
    85%, 100% { transform: translateX(440%) skewX(-16deg); }
}

/* ─── "M&A" filigranı ─── */
.invite-word { overflow: hidden; }
.invite-word > p, .invite-word > .families { position: relative; }
.watermark {
    position: absolute; left: 50%; top: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--script);
    font-size: clamp(170px, 46vw, 300px);
    color: rgba(185, 154, 91, .08);
    white-space: nowrap; pointer-events: none;
    will-change: transform;
}

/* ─── Geri sayım arkasındaki alyanslar ─── */
.countdown-sec { overflow: hidden; }
.countdown-sec > h2, .countdown-sec > .countdown, .countdown-sec > .cd-actions { position: relative; }
.rings-art {
    position: absolute; left: 50%; top: 54%;
    width: min(340px, 78vw);
    transform: translate(-50%, -50%);
    opacity: .3; pointer-events: none;
}
.rings-art .ring { stroke-width: 2; }

/* ─── Program kenar dalları ─── */
.program-sec { overflow: hidden; }
.side-sprig {
    position: absolute; width: clamp(110px, 26vw, 180px);
    opacity: .5; pointer-events: none;
}
.side-sprig .draw path {
    fill: none; stroke: var(--gold-soft); stroke-width: 1.5; stroke-linecap: round;
}
.sprig-l { left: -34px; top: 16%; }
.sprig-r { right: -34px; bottom: 8%; transform: scaleX(-1); }
.side-sprig .draw {
    transform-box: fill-box; transform-origin: 20% 10%;
    animation: sprigSway 6s ease-in-out infinite;
}
.sprig-r .draw { animation-delay: 3s; }
@keyframes sprigSway {
    0%, 100% { transform: rotate(0deg); }
    50%      { transform: rotate(2.4deg); }
}

/* hero köşe çiçekleri de hafifçe salınsın */
.floral .draw {
    transform-box: fill-box; transform-origin: 15% 8%;
    animation: sprigSway 7s ease-in-out infinite;
}
.floral-br .draw { animation-delay: 3.5s; }

/* ─── Zarf bekleme sallantısı (JS .nudge ekler) ─── */
@keyframes envNudge {
    0%, 100% { transform: rotate(0deg); }
    20% { transform: rotate(-2.2deg); }
    40% { transform: rotate(1.9deg); }
    60% { transform: rotate(-1.2deg); }
    80% { transform: rotate(.7deg); }
}
.envelope.nudge { animation: envNudge .9s ease-in-out; }

/* ─── küçük ekran ayarları ─── */
@media (max-width: 420px) {
    .floral-tl { top: 20px; left: 14px; }
    .floral-br { bottom: 20px; right: 14px; }
    .cd-sep { display: none; }
    .countdown { gap: 14px; flex-wrap: wrap; }
}

/* hareket azaltma tercihi */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
    }
}
