:root{
  --sand:#F4E9D4;
  --blue:#9ed3f8;
  --blue-dark:#24485f;
  --ink:#0b0b0b;
  --white:#fffdf7;
  --muted:rgba(11,11,11,.66);
  --paper:#fff8e9;
  --radius:28px;
  --border:3px solid var(--ink);
  --font-body:'Manrope',system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
  --font-heading:'Cormorant Garamond',Georgia,serif;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--sand);color:var(--ink);font-family:var(--font-body);font-size:16px;line-height:1.55;overflow-x:hidden;position:relative;min-height:100vh}
body.locked{overflow:hidden}
a{color:inherit;text-decoration:none}
button{font:inherit;color:inherit}
img{display:block;max-width:100%}

.grain{
  position:fixed;inset:0;pointer-events:none;z-index:60;opacity:.16;overflow:hidden;
  background-image:
    radial-gradient(circle at 25% 30%,rgba(0,0,0,.10) 0 1px,transparent 1px),
    radial-gradient(circle at 80% 10%,rgba(158,211,248,.13) 0 1px,transparent 1px);
  background-size:9px 9px,13px 13px;
  mix-blend-mode:multiply;
  animation:grainShift 18s steps(8) infinite alternate, grainPulse 14s ease-in-out infinite;
}
.grain::before,.grain::after{
  content:"";position:absolute;inset:-12%;
  background:
    radial-gradient(circle at 18% 26%, rgba(255,255,255,.22), transparent 22%),
    radial-gradient(circle at 78% 18%, rgba(158,211,248,.10), transparent 24%),
    radial-gradient(circle at 72% 76%, rgba(255,255,255,.16), transparent 18%);
  animation:ambientMove 22s ease-in-out infinite alternate;
}
.grain::after{
  background:
    radial-gradient(circle at 20% 72%, rgba(158,211,248,.08), transparent 20%),
    radial-gradient(circle at 86% 54%, rgba(255,255,255,.12), transparent 16%);
  animation-duration:28s;animation-direction:alternate-reverse;opacity:.85;
}

.container{width:min(1120px,calc(100% - 36px));margin:0 auto}
.section{padding:92px 0}
.poster-section{position:relative;overflow:hidden}

h1,h2,h3,p{margin-top:0}
h1,h2,h3,.brand,.formula,.phone__overlay strong,.counter span,.calendar__head span,.gorko{
  font-family:var(--font-heading);
  font-weight:600;
  letter-spacing:-.02em;
}

.eyebrow{
  margin:0 0 16px;
  font-size:12px;
  letter-spacing:.29em;
  text-transform:uppercase;
  font-weight:800;
  color:var(--blue);
}

h2{font-size:clamp(56px,8vw,108px);line-height:.9;margin-bottom:22px}
.section-title p{max-width:540px}
.section-title.center{text-align:center}
.section-title.center p{margin-left:auto;margin-right:auto}

.btn{
  display:inline-flex;align-items:center;justify-content:center;
  min-height:50px;padding:13px 23px;
  border:var(--border);border-radius:18px;
  font-weight:800;box-shadow:5px 5px 0 var(--ink);
  transition:transform .18s ease,box-shadow .18s ease;
}
.btn:hover{transform:translate(2px,2px);box-shadow:3px 3px 0 var(--ink)}
.btn--ink{background:var(--ink);color:var(--sand);box-shadow:5px 5px 0 var(--blue)}
.btn--outline{background:var(--sand)}
.btn--blue{background:var(--blue);color:var(--ink)}
.btn--sand{background:var(--sand);color:var(--ink)}

/* gate */
.gate{
  position:fixed;inset:0;z-index:100;display:grid;place-items:center;padding:18px;overflow:hidden;
  background:rgba(244,233,212,.98);
  transition:opacity .45s ease,transform .45s ease;
}
.gate.is-hidden{opacity:0;transform:scale(1.03);pointer-events:none}
.gate::before{
  content:"";position:absolute;inset:0;
  background:
    radial-gradient(circle at 20% 20%,rgba(158,211,248,.12),transparent 30%),
    radial-gradient(circle at 80% 75%,rgba(158,211,248,.08),transparent 34%);
}
.gate__card{
  position:relative;z-index:2;
  width:min(620px,calc(100vw - 28px));
  background:var(--white);border:4px solid var(--ink);border-radius:36px;
  padding:54px 34px;text-align:center;box-shadow:12px 12px 0 var(--blue);
}
.formula{
  font-size:clamp(50px,8vw,92px);line-height:.95;
  display:flex;gap:.12em;align-items:center;justify-content:center;flex-wrap:wrap;
  margin:4px 0 18px;
}
.formula b{font-family:var(--font-body);font-weight:800;color:var(--blue);font-size:.46em}
.formula em{font-style:normal;display:inline-grid;place-items:center;min-width:1.1em;color:var(--blue);transition:transform .25s ease}
.gate.opened .formula em{animation:answerPop .65s ease both}
.gate__hint{font-weight:600;margin-bottom:22px;color:var(--muted)}
.confetti-heart{position:fixed;z-index:140;left:50%;top:50%;font-size:28px;pointer-events:none;animation:heartFly 900ms ease-out forwards;color:var(--blue)}

/* nav */
.topbar{
  position:fixed;top:18px;left:50%;transform:translateX(-50%);z-index:50;
  width:min(1040px,calc(100% - 36px));height:58px;
  display:flex;align-items:center;justify-content:space-between;
  padding:0 18px 0 22px;
  background:rgba(244,233,212,.88);
  border:2px solid var(--ink);border-radius:999px;
  backdrop-filter:blur(12px);box-shadow:5px 5px 0 rgba(11,11,11,.18);
}
.brand{font-size:28px;font-weight:700}
.nav{display:flex;gap:4px}
.nav a{padding:9px 12px;border-radius:999px;font-size:13px;font-weight:800}
.nav a:hover{background:var(--blue);color:var(--ink)}

/* hero */
.hero{
  min-height:100svh;
  padding:116px max(22px,calc((100vw - 1120px)/2)) 70px;
  display:grid;grid-template-columns:1.02fr .98fr;gap:42px;align-items:center;
  background:
    radial-gradient(circle at 18% 22%, rgba(158,211,248,.10), transparent 26%),
    radial-gradient(circle at 80% 78%, rgba(158,211,248,.08), transparent 24%),
    linear-gradient(180deg, #f6ecd9 0%, var(--sand) 100%);
}
.hero::before{
  content:"";position:absolute;right:-17vw;top:-22vw;width:58vw;height:58vw;
  background:var(--blue);border-radius:42% 58% 44% 56%;z-index:0;
  animation:blob 10s ease-in-out infinite alternate;opacity:.95;
}
.hero::after{
  content:"";position:absolute;left:-10vw;bottom:-14vw;width:36vw;height:36vw;
  border:2px solid rgba(158,211,248,.18);border-radius:50%;opacity:.5;
  animation:floatRing 16s ease-in-out infinite alternate;
}
.hero__copy,.phone-scene{position:relative;z-index:1}
.hero-title{
  position:relative;display:flex;align-items:flex-end;gap:18px;flex-wrap:nowrap;
  margin:0 0 18px;max-width:680px
}
.hero-title::after{
  content:"";position:absolute;left:10px;bottom:14px;width:78%;height:18px;
  background:rgba(158,211,248,.10);border-radius:999px;z-index:-1
}
.hero-title__name{font-size:clamp(90px,9.8vw,150px);line-height:.86;display:block}
.hero-title__connector{
  width:60px;height:60px;border-radius:50%;display:grid;place-items:center;
  background:var(--blue);color:var(--ink);font-family:var(--font-body);font-size:28px;font-weight:800;
  box-shadow:5px 5px 0 var(--ink);flex:0 0 auto;margin-bottom:16px;
}
.date-badge{
  display:inline-flex;align-items:center;justify-content:center;
  margin-bottom:22px;padding:12px 20px;
  background:var(--blue);color:var(--ink);border:var(--border);border-radius:999px;
  font-weight:800;letter-spacing:.08em;box-shadow:5px 5px 0 var(--ink);
  animation:pulseBadge 2.6s ease-in-out infinite;
}
.hero__text{max-width:500px;margin-bottom:28px;font-size:20px;font-weight:600}
.hero__buttons{display:flex;gap:14px;flex-wrap:wrap}
.phone-scene{display:grid;place-items:center;min-height:640px;perspective:1000px}
.phone{
  position:relative;width:min(380px,78vw);aspect-ratio:9/16;
  border:7px solid var(--ink);border-radius:42px;background:var(--ink);padding:14px;
  box-shadow:18px 18px 0 rgba(11,11,11,.22);
  transform:rotate(3deg);transition:transform .25s ease;
}
.phone::before{content:"";position:absolute;inset:0;border-radius:36px;box-shadow:inset 0 0 0 2px rgba(255,255,255,.8);pointer-events:none}
.phone__speaker{position:absolute;top:21px;left:50%;transform:translateX(-50%);width:94px;height:23px;background:var(--ink);border-radius:0 0 18px 18px;z-index:2}
.phone img{width:100%;height:100%;object-fit:cover;border-radius:28px;filter:grayscale(1) contrast(1.08)}
.phone__overlay{
  position:absolute;left:30px;right:30px;bottom:32px;padding:20px;
  background:var(--sand);border:3px solid var(--ink);border-radius:24px;
  text-align:center;box-shadow:5px 5px 0 var(--blue);
}
.phone__overlay strong{font-size:34px;display:block;line-height:.95;color:var(--blue)}
.phone__overlay span{font-weight:800;letter-spacing:.08em;text-transform:uppercase;font-size:13px}
.floating-sticker{
  position:absolute;z-index:4;background:rgba(255,253,247,.98);border:var(--border);
  box-shadow:5px 5px 0 var(--ink);font-weight:800;cursor:pointer;
  transition:transform .18s ease, background .18s ease;color:var(--blue);
}
.floating-sticker:hover{transform:rotate(-6deg) scale(1.04);background:var(--sand)}
.floating-sticker--heart{right:4%;top:20%;padding:15px 16px;border-radius:999px;font-size:22px;transform:rotate(-10deg)}
.floating-sticker--date{left:-6%;bottom:11%;padding:12px 18px;border-radius:18px;transform:rotate(-8deg);font-size:16px}
.running{
  position:absolute;left:0;right:0;z-index:0;white-space:nowrap;
  font-size:14px;font-weight:800;letter-spacing:.28em;text-transform:uppercase;
  color:rgba(158,211,248,.88);pointer-events:none;
}
.running--top{top:92px;animation:marqueeLeft 22s linear infinite}
.running--bottom{bottom:26px;animation:marqueeRight 26s linear infinite;color:rgba(11,11,11,.55)}
/* content */
.intro{background:var(--blue);color:var(--ink);border-top:var(--border);border-bottom:var(--border)}
.intro .eyebrow{color:var(--blue-dark)}
.intro-grid{display:grid;grid-template-columns:1.15fr .85fr;gap:28px;align-items:stretch}
.big-card,.text-card{border:var(--border);border-radius:var(--radius);padding:38px;background:var(--sand);color:var(--ink);box-shadow:8px 8px 0 var(--ink)}
.big-card h2{font-size:clamp(44px,6vw,78px);margin:0;line-height:.95}
.text-card{background:var(--white);display:flex;flex-direction:column;justify-content:center}
.text-card p{font-size:20px;font-weight:600}
.text-card strong{font-size:34px;color:var(--blue)}

.date{background:linear-gradient(180deg,var(--sand),#fff7e6)}
.date-grid{display:grid;grid-template-columns:.92fr 1.08fr;gap:28px;align-items:stretch}
.date-poster,.calendar{background:var(--white);border:var(--border);border-radius:var(--radius);padding:38px;box-shadow:8px 8px 0 var(--blue)}
.date-poster h2{font-size:clamp(70px,9vw,120px);line-height:.8;margin-bottom:28px}
.date-poster p{font-size:19px;font-weight:600;max-width:430px}
.counter{display:flex;align-items:flex-end;gap:12px;margin-top:38px}
.counter span{font-size:94px;line-height:.7;color:var(--blue)}
.counter small{max-width:100px;font-weight:900;text-transform:uppercase;line-height:1.1}
.calendar__head{display:flex;justify-content:space-between;align-items:end;border-bottom:2px solid rgba(11,11,11,.18);padding-bottom:18px;margin-bottom:12px}
.calendar__head span{font-size:58px;line-height:.8}
.calendar__head b{color:var(--blue);letter-spacing:.24em}
.calendar__game{font-size:13px;font-weight:800;color:var(--blue);margin:0 0 18px}
.calendar__week,.calendar__days{display:grid;grid-template-columns:repeat(7,1fr);gap:10px;text-align:center}
.calendar__week{font-size:12px;text-transform:uppercase;font-weight:900;color:var(--muted);margin-bottom:12px}
.calendar__days span,.calendar__days button,.calendar__days i{min-height:48px;display:grid;place-items:center;border-radius:50%;font-weight:900;font-size:20px;font-style:normal}
.calendar__days button{background:var(--blue);color:var(--ink);border:var(--border);box-shadow:4px 4px 0 var(--ink);cursor:pointer;animation:wobble 1.7s ease-in-out infinite}
.calendar__days button.caught{animation:none;transform:rotate(0) scale(1.05);background:var(--ink);color:var(--sand)}

.schedule{background:var(--blue);color:var(--ink);border-top:var(--border);border-bottom:var(--border)}
.schedule .eyebrow{color:var(--blue-dark)}
.schedule-grid{display:grid;grid-template-columns:.75fr 1.25fr;gap:44px;align-items:start}
.schedule .section-title{position:sticky;top:96px}
.schedule .section-title h2{white-space:nowrap;font-size:clamp(56px,7vw,96px)}
.timeline{position:relative;padding:8px 0}
.timeline::before{content:"";position:absolute;left:170px;top:0;bottom:0;width:3px;background:var(--sand);border-radius:20px}
.timeline article{display:grid;grid-template-columns:132px 32px 1fr;gap:22px;align-items:center;padding:28px 0;border-bottom:2px dashed rgba(244,233,212,.28)}
.timeline article:last-child{border-bottom:0}
.timeline time{font-size:46px;line-height:.95;color:var(--ink);text-align:right;padding-right:18px}
.timeline article>span{justify-self:center;align-self:center;width:18px;height:18px;margin-top:0;border-radius:50%;background:var(--sand);border:3px solid var(--ink);box-shadow:4px 4px 0 rgba(11,11,11,.5);z-index:1}
.timeline h3{margin:0 0 6px;font-size:20px}
.timeline p{margin:0;color:rgba(11,11,11,.72)}

.places{background:var(--sand)}
.place-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px}
.place-card{position:relative;min-height:520px;background:var(--white);border:var(--border);border-radius:var(--radius);padding:32px;box-shadow:8px 8px 0 var(--ink);overflow:hidden}
.place-card h3{font-size:52px;line-height:.95;margin-bottom:20px;color:var(--blue)}
.place-card p:not(.eyebrow){font-size:19px;font-weight:600}
.place-card--blue{background:var(--blue);color:var(--ink);box-shadow:8px 8px 0 var(--ink)}
.place-card--blue .eyebrow,.place-card--blue h3{color:var(--ink)}
.polaroid{width:210px;background:var(--white);border:var(--border);padding:10px 10px 36px;border-radius:18px;transform:rotate(-6deg);float:right;margin:0 0 16px 16px;box-shadow:6px 6px 0 var(--ink)}
.polaroid img{height:220px;width:100%;object-fit:cover;filter:grayscale(1);border-radius:10px}
.polaroid--tilt{transform:rotate(5deg)}
.polaroid--tilt img{filter:grayscale(.2) saturate(.7)}

.dress{background:var(--white)}
.dress-grid{display:grid;grid-template-columns:1fr 1fr;gap:42px;align-items:center}
.dress p{font-size:18px;font-weight:600}
.palette{display:grid;grid-template-columns:repeat(2,minmax(160px,1fr));gap:14px}
.palette button{display:flex;align-items:center;min-height:72px;padding:16px 18px;border:var(--border);border-radius:22px;background:var(--c);box-shadow:5px 5px 0 var(--ink);font-weight:900;color:#111;cursor:pointer;transition:transform .18s ease}
.palette button:hover{transform:translateY(-3px) rotate(-1deg)}
.palette button:nth-child(5),.palette button:nth-child(8){color:#fff}

.details{background:var(--blue);color:var(--ink);border-top:var(--border);border-bottom:var(--border)}
.details .eyebrow{color:var(--blue-dark)}
.mission{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-top:34px}
.mission__card{display:grid;gap:16px;text-align:left;background:var(--sand);color:var(--ink);border:var(--border);border-radius:26px;padding:22px;box-shadow:6px 6px 0 var(--ink);font-weight:800;min-height:130px;cursor:pointer;transition:transform .2s ease, box-shadow .2s ease, background .2s ease}
.mission__card b{display:inline-grid;place-items:center;width:42px;height:42px;background:var(--blue);color:var(--ink);border:2px solid var(--ink);border-radius:50%}
.mission__card span{font-size:28px;line-height:1;color:var(--blue)}
.mission__card:hover{transform:translateY(-4px) rotate(-1deg)}
.mission__card.is-active{background:#fff8ee;box-shadow:10px 10px 0 var(--ink);transform:translateY(-6px) rotate(-1deg)}
.mission__card.pop{animation:missionPop .45s ease}
.mission-note{max-width:760px;margin:30px auto 0;text-align:center;font-weight:700;font-size:18px}

.rsvp{position:relative;overflow:hidden;isolation:isolate;background:var(--sand)}
.rsvp::before{content:"";position:absolute;right:-190px;top:120px;width:540px;height:540px;background:rgba(158,211,248,.92);border-radius:42% 58% 44% 56%;z-index:0;animation:heroBlobPrimary 9.5s ease-in-out infinite alternate;pointer-events:none}
.rsvp::after{content:"";position:absolute;left:-110px;bottom:40px;width:190px;height:190px;border:2px solid rgba(158,211,248,.18);border-radius:50%;opacity:.42;z-index:0;animation:orbitRing 11s ease-in-out infinite alternate;pointer-events:none}
.form-wrap{position:relative;z-index:1;max-width:850px}
.form-card{position:relative;z-index:1;margin-top:28px;background:var(--white);border:var(--border);border-radius:var(--radius);padding:22px;box-shadow:8px 8px 0 var(--blue);overflow:hidden}
.form-card iframe{width:100%;min-height:980px;border:0;border-radius:22px;background:transparent}

.final{position:relative;background:var(--sand);text-align:center;overflow:hidden}
.final-card{display:inline-grid;place-items:center;position:relative;overflow:hidden;isolation:isolate;background:var(--blue);color:var(--ink);border:var(--border);border-radius:var(--radius);padding:44px 54px;box-shadow:8px 8px 0 var(--ink)}
.final-card > *{position:relative;z-index:1}
.final-card::before{content:"";position:absolute;right:-110px;top:-70px;width:340px;height:340px;border-radius:50%;background:rgba(255,255,255,.18);border:2px solid rgba(255,255,255,.22);box-shadow:inset 0 0 0 1px rgba(255,255,255,.16);z-index:0;animation:finalCardFloat 8.5s ease-in-out infinite alternate}
.final-card::after{content:"";position:absolute;left:-40px;bottom:-60px;width:170px;height:170px;border-radius:58% 42% 47% 53%;background:rgba(244,233,212,.14);border:2px solid rgba(244,233,212,.18);z-index:0;animation:softMorph 9s ease-in-out infinite alternate-reverse}
.final h2{margin-bottom:8px}
.final p{font-weight:700;margin:0 0 22px}
.gorko{background:var(--sand);color:var(--ink);border:var(--border);border-radius:22px;padding:14px 34px;font-size:42px;line-height:1;box-shadow:5px 5px 0 var(--ink);cursor:pointer;transition:transform .18s ease}
.gorko:hover{transform:rotate(-3deg) scale(1.04)}
.final small{display:block;margin-top:14px;font-weight:800}

.footer{padding:28px 20px;text-align:center;background:var(--ink);color:var(--sand);font-weight:900;letter-spacing:.08em}
.reveal{opacity:0;transform:translateY(26px);transition:opacity .65s ease,transform .65s ease}
.reveal.is-visible{opacity:1;transform:translateY(0)}

@keyframes heartFly{0%{opacity:1;transform:translate(-50%,-50%) scale(.8) rotate(0)}100%{opacity:0;transform:translate(calc(-50% + var(--x)),calc(-50% + var(--y))) scale(1.7) rotate(var(--r))}}
@keyframes answerPop{0%{transform:scale(.4) rotate(-15deg)}60%{transform:scale(1.15) rotate(5deg)}100%{transform:scale(1) rotate(0)}}
@keyframes blob{from{border-radius:42% 58% 44% 56%;transform:rotate(0deg)}to{border-radius:55% 45% 57% 43%;transform:rotate(6deg)}}
@keyframes pulseBadge{0%,100%{transform:scale(1)}50%{transform:scale(1.035)}}
@keyframes wobble{0%,100%{transform:rotate(-4deg)}50%{transform:rotate(5deg)}}

@media(max-width:980px){
  .section{padding:72px 0}
  .hero{grid-template-columns:1fr;gap:20px;padding-top:104px}
  .hero::before{right:-50vw;top:54%;width:110vw;height:110vw}
  .phone-scene{min-height:auto}
  .phone{width:min(330px,78vw)}
  .intro-grid,.date-grid,.schedule-grid,.place-grid,.dress-grid{grid-template-columns:1fr}
  .schedule .section-title{position:static}
  .mission{grid-template-columns:1fr 1fr}
  .timeline::before{left:148px}
  .timeline article{grid-template-columns:116px 28px 1fr;gap:18px}
  .timeline time{font-size:40px;padding-right:14px}
  .nav{display:none}
  .topbar{height:54px}
  .brand{font-size:26px}
}

@media(max-width:620px){
  .section{padding:58px 0}
  .container{width:min(100% - 24px,1120px)}
  .hero{padding-left:16px;padding-right:16px}
  .hero-title{max-width:100%;gap:12px;flex-wrap:wrap}.hero-title::after{height:12px;bottom:8px;width:92%}.hero-title__name{font-size:72px}.hero-title__connector{width:48px;height:48px;font-size:22px;margin-bottom:10px}
  .hero__text{font-size:17px}
  .hero__buttons{display:grid}
  .btn{width:100%}
  .phone{width:min(280px,86vw);border-width:5px}.floating-sticker--heart{right:-1%;top:10%;font-size:18px;padding:12px 14px}.floating-sticker--date{left:-2%;bottom:8%;font-size:14px;padding:10px 14px}.running{font-size:11px;letter-spacing:.22em}
  .big-card,.text-card,.date-poster,.calendar,.place-card,.form-card,.final-card,.gate__card{border-width:2px;box-shadow:5px 5px 0 var(--ink)}
  h2{font-size:58px}
  .date-poster h2{font-size:70px}
  .calendar__head span{font-size:44px}
  .calendar__days span,.calendar__days button,.calendar__days i{min-height:38px;font-size:16px}
  .timeline::before{left:95px}
  .timeline article{grid-template-columns:72px 24px 1fr;gap:10px}
  .timeline time{font-size:31px;padding-right:10px}
  .timeline article>span{width:14px;height:14px;margin-top:9px}
  .place-card{min-height:unset}
  .polaroid{float:none;width:170px;margin:0 0 18px 0}
  .polaroid img{height:170px}
  .mission,.palette{grid-template-columns:1fr}
  .form-card{padding:10px}
  .form-card iframe{min-height:1040px}
  .topbar{width:calc(100% - 20px);top:10px}
  .hero__copy{padding-top:10px}
  .formula{font-size:46px}
  .gate__card{padding:36px 18px}
}

@keyframes marqueeLeft{0%{transform:translateX(0)}100%{transform:translateX(-18%)}}
@keyframes marqueeRight{0%{transform:translateX(-12%)}100%{transform:translateX(0)}}
@keyframes floatRing{0%{transform:translate3d(0,0,0) rotate(0deg)}100%{transform:translate3d(28px,-20px,0) rotate(8deg)}}

@keyframes grainShift{0%{background-position:0 0,0 0}100%{background-position:18px -16px,-24px 20px}}
@keyframes grainPulse{0%,100%{opacity:.13}50%{opacity:.18}}
@keyframes ambientMove{0%{transform:translate3d(0,0,0) scale(1)}100%{transform:translate3d(24px,-20px,0) scale(1.04)}}
@keyframes missionPop{0%{transform:scale(1)}40%{transform:scale(1.05) rotate(-1deg)}100%{transform:scale(1)}}


/* --- v13 refinements --- */
:root{--accent-text:#6f9fc4}
.eyebrow{color:var(--accent-text)}
.hero h1{
  font-size:clamp(88px,9vw,138px);line-height:.86;margin:0 0 20px;
  display:flex;align-items:center;gap:18px;flex-wrap:wrap;max-width:620px;
}
.hero h1 span{
  display:inline-grid;place-items:center;width:68px;height:68px;border-radius:50%;
  background:var(--blue);color:var(--ink);font-family:var(--font-body);font-size:30px;font-weight:800;
  box-shadow:5px 5px 0 var(--ink);flex:0 0 auto;
}
.frame-scene{display:grid;place-items:center;min-height:640px;perspective:1000px}
.photo-frame{
  position:relative;width:min(420px,80vw);background:var(--white);border:6px solid var(--ink);
  border-radius:34px;padding:16px 16px 84px;box-shadow:18px 18px 0 rgba(11,11,11,.22);
  transform:rotate(4deg);transition:transform .25s ease;
}
.photo-frame::before{
  content:"";position:absolute;inset:auto -16px -16px auto;width:88%;height:88%;
  background:rgba(158,211,248,.24);border-radius:34px;z-index:-1;
}
.photo-frame img{width:100%;aspect-ratio:4/5;object-fit:cover;border-radius:22px}
.frame-caption{
  position:absolute;left:22px;right:22px;bottom:18px;padding:14px 18px;background:var(--sand);
  border:3px solid var(--ink);border-radius:20px;text-align:center;box-shadow:5px 5px 0 var(--blue);
}
.frame-caption strong{display:block;font-size:31px;line-height:.95;color:var(--blue-dark)}
.frame-caption span{font-size:12px;font-weight:900;letter-spacing:.08em;text-transform:uppercase}
.text-card strong{line-height:1.18;color:var(--blue-dark)}
.phone__overlay strong,.place-card h3,.counter span,.calendar__head b,.calendar__game,.mission__card span{color:var(--blue-dark)}
.place-card--blue h3,.place-card--blue .eyebrow{color:var(--ink)}
.polaroid--place{width:240px;padding:10px 10px 20px}
.polaroid--place img{height:180px;filter:none}
.schedule{position:relative;background:linear-gradient(180deg,#add9f8 0%, #9ed3f8 50%, #a8d7f8 100%)}
.schedule::before{
  content:"";position:absolute;inset:0;pointer-events:none;opacity:.8;
  background:
    radial-gradient(circle at 18% 25%, rgba(255,255,255,.28), transparent 18%),
    radial-gradient(circle at 82% 72%, rgba(244,233,212,.18), transparent 16%),
    radial-gradient(circle at 72% 18%, rgba(255,255,255,.18), transparent 14%);
  animation:ambientMove 18s ease-in-out infinite alternate;
}
.schedule-grid{position:relative;z-index:1}
.schedule-sticker{
  margin-top:14px;display:inline-flex;align-items:center;padding:10px 16px;background:rgba(255,253,247,.98);
  border:var(--border);border-radius:999px;box-shadow:5px 5px 0 var(--ink);font-weight:800;
  color:var(--blue-dark);cursor:pointer;animation:floaty 3.2s ease-in-out infinite;
}
.timeline article{transition:transform .18s ease}
.timeline article:hover{transform:translateX(4px)}
.timeline article div{padding:8px 14px 8px 0;border-radius:18px;transition:background .2s ease}
.timeline article:hover div{background:rgba(255,255,255,.18)}
.timeline article>span{background:var(--white);animation:dotPulse 2.4s ease-in-out infinite}
.timeline article:nth-child(2)>span{animation-delay:.24s}
.timeline article:nth-child(3)>span{animation-delay:.48s}
.timeline article:nth-child(4)>span{animation-delay:.72s}
.timeline article:nth-child(5)>span{animation-delay:.96s}
.dress .section-title h2{font-size:clamp(54px,7vw,92px)}
.palette button{color:#141414}
.mission__card span{color:var(--blue-dark)}
.mission-note{font-weight:800}

@keyframes dotPulse{0%,100%{transform:scale(1)}50%{transform:scale(1.16)}}
@keyframes floaty{0%,100%{transform:translateY(0) rotate(-2deg)}50%{transform:translateY(-6px) rotate(2deg)}}

@media(max-width:980px){
  .frame-scene{min-height:auto}
  .photo-frame{width:min(360px,80vw)}
}
@media(max-width:620px){
  .hero h1{font-size:64px;gap:12px}
  .hero h1 span{width:50px;height:50px;font-size:24px}
  .photo-frame{width:min(310px,86vw);padding:12px 12px 70px;border-width:4px}
  .frame-caption{left:14px;right:14px;bottom:12px;padding:12px 14px}
  .frame-caption strong{font-size:24px}
  .polaroid--place{width:190px}
  .polaroid--place img{height:145px}
}


/* --- v14 visual polish --- */
.hero h1.hero-title-merged{
  display:block;
  max-width:720px;
  font-size:clamp(88px,8.4vw,128px);
  line-height:.92;
  letter-spacing:-.03em;
  margin:0 0 20px;
}
.hero h1.hero-title-merged em{
  font-style:normal;
  color:var(--blue-dark);
  font-size:.8em;
  padding:0 .08em;
}
.big-card h2{max-width:8.8em;line-height:1.02}
.counter span{color:var(--accent-text) !important}
.text-card strong{line-height:1.24}

.schedule{
  position:relative;
  overflow:hidden;
  background:linear-gradient(180deg,#add9f8 0%, #9ed3f8 50%, #a8d7f8 100%);
}
.schedule::before{
  content:"";position:absolute;inset:0;pointer-events:none;opacity:.86;
  background:
    radial-gradient(circle at 20% 24%, rgba(255,255,255,.28), transparent 18%),
    radial-gradient(circle at 82% 72%, rgba(244,233,212,.18), transparent 16%),
    radial-gradient(circle at 72% 18%, rgba(255,255,255,.18), transparent 14%);
  animation:ambientMove 18s ease-in-out infinite alternate;
}
.schedule::after{
  content:"";position:absolute;inset:0;pointer-events:none;opacity:.9;
  background:
    radial-gradient(circle at -8% 62%, rgba(244,233,212,.92) 0 13%, transparent 13.5%),
    radial-gradient(circle at 106% 20%, rgba(244,233,212,.62) 0 12%, transparent 12.5%),
    radial-gradient(circle at 108% 80%, rgba(255,253,247,.45) 0 10%, transparent 10.5%),
    radial-gradient(circle at -6% 12%, rgba(255,253,247,.35) 0 9%, transparent 9.5%);
  animation:floatSideBlobs 20s ease-in-out infinite alternate;
}
.schedule-grid{position:relative;z-index:1}
.timeline article{transition:transform .18s ease}
.timeline article:hover{transform:translateX(4px)}
.timeline article div{
  padding:10px 16px 10px 0;
  border-radius:18px;
  transition:background .2s ease;
}
.timeline article:hover div{background:rgba(255,255,255,.18)}
.timeline time{font-size:52px;font-weight:700;color:#111}
.timeline h3{
  margin:0 0 7px;
  font-family:var(--font-body);
  font-size:22px;
  font-weight:800;
  line-height:1.15;
  color:#111;
}
.timeline p{
  margin:0;
  color:rgba(11,11,11,.84);
  font-weight:600;
  line-height:1.45;
}

.place-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:28px}
.place-card{
  min-height:430px;
  padding:28px;
  display:grid;
  grid-template-columns:minmax(0,1.18fr) minmax(220px,.82fr);
  grid-template-areas:
    'eyebrow photo'
    'title photo'
    'text photo'
    'button photo';
  align-content:start;
  gap:10px 18px;
}
.place-card > .eyebrow{grid-area:eyebrow;margin:0}
.place-card h3{grid-area:title;font-size:48px;line-height:.98;margin:0;color:var(--blue-dark)}
.place-card p:not(.eyebrow){grid-area:text;margin:0;font-size:18px;line-height:1.4;font-weight:700}
.place-card .btn{grid-area:button;align-self:end;justify-self:start;width:max-content;margin-top:8px}
.place-card .polaroid{grid-area:photo;align-self:start;justify-self:end;float:none;margin:0;width:100%;max-width:220px}
.place-card--blue h3,.place-card--blue .eyebrow{color:var(--ink)}
.place-card--blue p:not(.eyebrow){color:rgba(11,11,11,.92)}

.palette button{color:#141414}
.palette button:nth-child(5){color:#6d5463}
.palette button:nth-child(8){color:#8c8578}

.final h2{margin-bottom:22px;line-height:1.06}
.final p{margin:0 0 24px;line-height:1.45;max-width:640px}

@keyframes floatSideBlobs{
  0%{transform:translate3d(0,0,0) scale(1)}
  100%{transform:translate3d(18px,-16px,0) scale(1.04)}
}

@media(max-width:980px){
  .hero h1.hero-title-merged{font-size:clamp(74px,12vw,100px)}
  .place-grid{grid-template-columns:1fr}
  .place-card{grid-template-columns:minmax(0,1fr) 200px;min-height:auto}
}
@media(max-width:620px){
  .hero h1.hero-title-merged{font-size:58px;line-height:.96}
  .big-card h2{max-width:none}
  .timeline h3{font-size:18px}
  .timeline p{font-size:15px}
  .place-card{grid-template-columns:1fr;grid-template-areas:'eyebrow' 'title' 'photo' 'text' 'button';gap:12px}
  .place-card .polaroid{justify-self:start;max-width:190px}
  .place-card h3{font-size:38px}
  .final h2{margin-bottom:18px}
}


/* --- v15 timeline refinement --- */
.schedule-grid{
  align-items:start;
}
.schedule .section-title{
  top:64px;
  margin-top:-10px;
}
.schedule .section-title .eyebrow{
  margin-bottom:10px;
}
.schedule .section-title h2{
  margin-bottom:14px;
}
.schedule .section-title p{
  max-width:460px;
}
.timeline::before{
  left:183px;
}
.timeline article{
  grid-template-columns:140px 34px 1fr;
  gap:26px;
  align-items:center;
}
.timeline time{
  font-size:48px;
  font-weight:600;
  letter-spacing:-0.03em;
  padding-right:14px;
}
.timeline article > span{
  width:18px;
  height:18px;
}

@media (max-width:980px){
  .schedule .section-title{
    margin-top:0;
  }
  .timeline::before{
    left:168px;
  }
  .timeline article{
    grid-template-columns:128px 28px 1fr;
    gap:16px;
  }
  .timeline time{
    font-size:40px;
    padding-right:10px;
  }
}

@media (max-width:620px){
  .schedule .section-title{
    padding-top:0;
  }
  .timeline::before{
    left:122px;
  }
  .timeline article{
    grid-template-columns:98px 20px 1fr;
    gap:12px;
    align-items:start;
    padding:26px 0;
  }
  .timeline time{
    font-size:29px;
    line-height:0.96;
    font-weight:600;
    padding-right:6px;
  }
  .timeline article > span{
    width:16px;
    height:16px;
    margin-top:7px;
    border-width:2px;
  }
  .timeline article div{
    padding-top:2px;
  }
}


/* --- v16 animated background enrichment --- */
.hero,
.intro,
.date,
.places,
.details,
.final{
  position:relative;
  overflow:hidden;
  isolation:isolate;
}

/* hero: faster and more visible moving circles */
.hero::before{
  right:-14vw;
  top:-18vw;
  width:60vw;
  height:60vw;
  opacity:1;
  animation:heroBlobPrimary 6.8s ease-in-out infinite alternate;
}
.hero::after{
  left:-12vw;
  bottom:-16vw;
  width:32vw;
  height:32vw;
  background:rgba(158,211,248,.28);
  border:2px solid rgba(158,211,248,.25);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.45);
  border-radius:58% 42% 55% 45%;
  opacity:.95;
  animation:heroBlobSecondary 7.6s ease-in-out infinite alternate;
}
.hero__copy::after{
  content:"";
  position:absolute;
  left:-86px;
  bottom:-110px;
  width:180px;
  height:180px;
  background:rgba(255,255,255,.18);
  border:2px solid rgba(158,211,248,.24);
  border-radius:45% 55% 52% 48%;
  z-index:-1;
  animation:miniMorph 5.6s ease-in-out infinite alternate;
}
.frame-scene::before{
  content:"";
  position:absolute;
  right:10%;
  top:5%;
  width:110px;
  height:110px;
  border-radius:50%;
  border:2px solid rgba(255,255,255,.52);
  opacity:.45;
  z-index:-1;
  animation:orbitRing 8.5s ease-in-out infinite alternate;
}

/* animated decorative shapes on other sections */
.intro::before,
.date::before,
.places::before,
.details::before,
.final::before,
.final::after,
.places::after,
.date::after{
  content:"";
  position:absolute;
  pointer-events:none;
  z-index:0;
}

.intro::before{
  left:-120px;
  top:-90px;
  width:260px;
  height:260px;
  background:rgba(255,255,255,.14);
  border:2px solid rgba(244,233,212,.3);
  border-radius:57% 43% 62% 38%;
  animation:softMorph 9s ease-in-out infinite alternate;
}
.intro::after{
  content:"";
  position:absolute;
  right:-90px;
  bottom:-90px;
  width:220px;
  height:220px;
  border:2px solid rgba(244,233,212,.34);
  border-radius:50%;
  opacity:.55;
  animation:outlineDrift 10s ease-in-out infinite alternate;
  pointer-events:none;
}

.date::before{
  right:-60px;
  top:46px;
  width:170px;
  height:170px;
  background:rgba(158,211,248,.16);
  border-radius:42% 58% 52% 48%;
  animation:softMorph 8.5s ease-in-out infinite alternate;
}
.date::after{
  left:-70px;
  bottom:20px;
  width:130px;
  height:130px;
  border:2px solid rgba(158,211,248,.18);
  border-radius:50%;
  opacity:.45;
  animation:outlineDrift 9s ease-in-out infinite alternate-reverse;
}

.places::before{
  right:-76px;
  top:120px;
  width:190px;
  height:190px;
  background:rgba(158,211,248,.11);
  border:2px solid rgba(158,211,248,.12);
  border-radius:60% 40% 48% 52%;
  animation:softMorph 10.5s ease-in-out infinite alternate;
}
.places::after{
  left:-80px;
  bottom:36px;
  width:170px;
  height:170px;
  background:rgba(255,255,255,.38);
  border-radius:50%;
  opacity:.55;
  animation:ambientMove 9.5s ease-in-out infinite alternate;
}

.details::before{
  left:-50px;
  top:58px;
  width:180px;
  height:180px;
  background:rgba(244,233,212,.12);
  border:2px solid rgba(244,233,212,.24);
  border-radius:49% 51% 40% 60%;
  animation:softMorph 9.2s ease-in-out infinite alternate-reverse;
}
.details::after{
  content:"";
  position:absolute;
  right:-70px;
  bottom:32px;
  width:150px;
  height:150px;
  border:2px solid rgba(255,255,255,.24);
  border-radius:50%;
  opacity:.48;
  animation:outlineDrift 11s ease-in-out infinite alternate;
  pointer-events:none;
}

.final::before{
  left:-56px;
  top:28px;
  width:150px;
  height:150px;
  background:rgba(158,211,248,.16);
  border-radius:55% 45% 60% 40%;
  animation:softMorph 8s ease-in-out infinite alternate;
}
.final::after{
  right:-64px;
  bottom:-42px;
  width:170px;
  height:170px;
  border:2px solid rgba(158,211,248,.18);
  border-radius:50%;
  opacity:.56;
  animation:outlineDrift 9.5s ease-in-out infinite alternate-reverse;
}

.intro > .container,
.date > .container,
.schedule > .container,
.places > .container,
.details > .container,
.final > .container{
  position:relative;
  z-index:1;
}

@keyframes heroBlobPrimary{
  0%{transform:translate3d(0,0,0) scale(1) rotate(0deg);border-radius:42% 58% 44% 56%}
  50%{transform:translate3d(-10px,12px,0) scale(1.04) rotate(4deg);border-radius:55% 45% 58% 42%}
  100%{transform:translate3d(20px,-18px,0) scale(1.08) rotate(8deg);border-radius:48% 52% 38% 62%}
}
@keyframes heroBlobSecondary{
  0%{transform:translate3d(0,0,0) scale(1) rotate(0deg);border-radius:58% 42% 55% 45%}
  100%{transform:translate3d(18px,-16px,0) scale(1.08) rotate(-8deg);border-radius:41% 59% 46% 54%}
}
@keyframes miniMorph{
  0%{transform:translate3d(0,0,0) scale(1);border-radius:45% 55% 52% 48%}
  100%{transform:translate3d(14px,-12px,0) scale(1.1);border-radius:58% 42% 44% 56%}
}
@keyframes orbitRing{
  0%{transform:translate3d(0,0,0) scale(1)}
  100%{transform:translate3d(18px,-14px,0) scale(1.08)}
}
@keyframes softMorph{
  0%{transform:translate3d(0,0,0) scale(1) rotate(0deg);border-radius:57% 43% 62% 38%}
  100%{transform:translate3d(18px,-16px,0) scale(1.07) rotate(6deg);border-radius:43% 57% 46% 54%}
}
@keyframes outlineDrift{
  0%{transform:translate3d(0,0,0) scale(1)}
  100%{transform:translate3d(-16px,14px,0) scale(1.05)}
}

@media (max-width:980px){
  .hero::before{width:66vw;height:66vw;right:-20vw;top:-12vw}
  .rsvp::before{width:420px;height:420px;right:-170px;top:180px}
  .rsvp::after{width:150px;height:150px;left:-80px;bottom:26px}
  .hero::after{width:34vw;height:34vw;left:-14vw;bottom:-12vw}
  .hero__copy::after{left:-52px;bottom:-72px;width:130px;height:130px}
  .frame-scene::before{width:82px;height:82px}
}
@media (max-width:620px){
  .hero::before{width:92vw;height:92vw;right:-38vw;top:-8vw}
  .rsvp::before{width:320px;height:320px;right:-150px;top:170px;opacity:.82}
  .rsvp::after{width:110px;height:110px;left:-48px;bottom:22px}
  .hero::after{width:46vw;height:46vw;left:-16vw;bottom:-14vw}
  .hero__copy::after{left:-32px;bottom:-42px;width:88px;height:88px;opacity:.75}
  .frame-scene::before{display:none}
  .intro::before,.places::before,.details::before,.final::before{opacity:.8}
  .intro::after,.date::after,.places::after,.details::after,.final::after{opacity:.4}
}


@keyframes finalCardFloat{
  0%{transform:translate3d(0,0,0) scale(1)}
  100%{transform:translate3d(-24px,18px,0) scale(1.1)}
}

@media (max-width: 620px){
  .final-card::before{width:230px;height:230px;right:-80px;top:-45px}
  .final-card::after{width:120px;height:120px;left:-30px;bottom:-35px}
}





/* =========================
   v29 clean intro card
   ========================= */
.welcome-gate.welcome-card-gate{
  position:fixed !important;
  inset:0 !important;
  z-index:9999 !important;
  min-height:100svh !important;
  display:grid !important;
  place-items:center !important;
  overflow:hidden !important;
  background:
    radial-gradient(circle at 14% 15%, rgba(158,211,248,.28), transparent 22%),
    radial-gradient(circle at 86% 76%, rgba(158,211,248,.22), transparent 28%),
    var(--sand, #f4e9d4) !important;
  transition:opacity .7s ease, visibility .7s ease !important;
}
.welcome-gate.welcome-card-gate.is-hidden{
  opacity:0 !important;
  visibility:hidden !important;
  pointer-events:none !important;
}
.welcome-bg-orb{
  position:absolute;
  width:34vmax;
  height:34vmax;
  border-radius:46% 54% 56% 44%;
  background:rgba(158,211,248,.20);
  animation:welcomeOrb 7s ease-in-out infinite alternate;
  pointer-events:none;
}
.welcome-bg-orb--one{left:-10vmax;top:-9vmax}
.welcome-bg-orb--two{right:-12vmax;bottom:-12vmax;animation-delay:-2.7s}

.welcome-card-wrap{
  position:relative !important;
  z-index:2 !important;
  width:min(760px, calc(100vw - 28px)) !important;
  display:grid !important;
  place-items:center !important;
  gap:30px !important;
}
.welcome-card{
  width:min(640px, calc(100vw - 40px)) !important;
  aspect-ratio:1.34 / 1 !important;
  perspective:1600px !important;
}
.welcome-card__inner{
  position:relative !important;
  width:100% !important;
  height:100% !important;
  transform-style:preserve-3d !important;
  transition:transform 1s cubic-bezier(.2,.8,.2,1) !important;
}
.welcome-card__face{
  position:absolute !important;
  inset:0 !important;
  display:flex !important;
  flex-direction:column !important;
  align-items:center !important;
  justify-content:center !important;
  gap:18px !important;
  padding:42px 34px !important;
  background:#fffdf7 !important;
  border:4px solid var(--ink, #0b0b0b) !important;
  border-radius:34px !important;
  box-shadow:12px 12px 0 var(--blue, #9ed3f8) !important;
  backface-visibility:hidden !important;
  -webkit-backface-visibility:hidden !important;
}
.welcome-card__face--front{
  text-align:center !important;
}
.welcome-card__face--back{
  transform:rotateY(180deg) !important;
  text-align:center !important;
}
.welcome-card__equation,
.welcome-card__answer{
  font-family:var(--font-heading, Georgia, serif) !important;
  color:var(--ink, #0b0b0b) !important;
  line-height:.9 !important;
  letter-spacing:-.04em !important;
}
.welcome-card__equation{
  font-size:clamp(52px, 8vw, 92px) !important;
  white-space:nowrap !important;
}
.welcome-card__small{
  font-size:clamp(18px, 2.2vw, 24px) !important;
  font-weight:700 !important;
  letter-spacing:.06em !important;
  text-transform:uppercase !important;
  color:var(--blue, #3f78a5) !important;
}
.welcome-card__answer{
  font-size:clamp(72px, 10vw, 122px) !important;
}
.welcome-card__hint{
  margin:0 !important;
  font-size:clamp(18px, 2.2vw, 24px) !important;
  color:rgba(11,11,11,.75) !important;
}
.welcome-card__button{
  position:relative !important;
  z-index:5 !important;
  min-height:72px !important;
  padding:18px 46px !important;
  border-radius:24px !important;
  font-size:20px !important;
  box-shadow:8px 8px 0 var(--blue, #9ed3f8) !important;
  animation:gateButtonPulse 2.2s ease-in-out infinite !important;
}
.welcome-card-gate.is-opening .welcome-card__inner{
  transform:rotateY(180deg) !important;
}
.welcome-card-gate.is-opening .welcome-card__button{
  animation:none !important;
}
.gate-heart{
  position:fixed !important;
  z-index:10020 !important;
  pointer-events:none !important;
  font-size:24px;
  animation:gateHeartFly 1.35s ease-out forwards;
}
@keyframes gateButtonPulse{
  0%,100%{transform:translateY(0)}
  50%{transform:translateY(-5px)}
}
@keyframes gateHeartFly{
  0%{opacity:0;transform:translate(-50%,-50%) scale(.55) rotate(0deg)}
  14%{opacity:1}
  100%{opacity:0;transform:translate(calc(-50% + var(--x)), calc(-50% + var(--y))) scale(1.6) rotate(var(--r))}
}
@media(max-width:620px){
  .welcome-card-wrap{
    width:min(94vw,520px) !important;
    gap:24px !important;
  }
  .welcome-card{
    width:min(94vw,520px) !important;
  }
  .welcome-card__face{
    border-width:3.5px !important;
    border-radius:26px !important;
    padding:34px 20px !important;
    gap:14px !important;
  }
  .welcome-card__equation{
    font-size:clamp(38px, 9.2vw, 58px) !important;
    white-space:normal !important;
  }
  .welcome-card__answer{
    font-size:clamp(56px, 13vw, 86px) !important;
  }
  .welcome-card__hint{
    font-size:16px !important;
  }
  .welcome-card__button{
    min-height:64px !important;
    padding:16px 36px !important;
    font-size:18px !important;
  }
}


/* =========================
   v30 final content + mobile gallery
   ========================= */

.date-poster .date-heading{
  font-size:clamp(66px, 7.6vw, 108px) !important;
  line-height:.84 !important;
  letter-spacing:-.055em !important;
  max-width:100% !important;
}
.date-poster .date-heading span{
  display:block !important;
  white-space:nowrap !important;
}

.places .section-title h2{
  white-space:normal !important;
}
.place-card h3{
  word-break:normal !important;
  overflow-wrap:normal !important;
}
.dress .section-title h2{
  line-height:.88 !important;
}
.palette button:nth-child(5),
.palette button:nth-child(8){
  color:var(--ink) !important;
}

/* Inspiration gallery after dress-code */
.gallery{
  position:relative;
  overflow:hidden;
  isolation:isolate;
  background:var(--sand);
}
.gallery::before,
.gallery::after{
  content:"";
  position:absolute;
  z-index:-1;
  pointer-events:none;
  border-radius:52% 48% 44% 56%;
  background:rgba(158,211,248,.18);
  border:2px solid rgba(158,211,248,.15);
  animation:galleryBlob 8s ease-in-out infinite alternate;
}
.gallery::before{
  width:360px;
  height:360px;
  left:-160px;
  top:10%;
}
.gallery::after{
  width:290px;
  height:290px;
  right:-125px;
  bottom:8%;
  animation-delay:-2.5s;
}
.gallery .section-title p:not(.eyebrow){
  max-width:680px;
  margin-inline:auto;
  font-weight:700;
}
.gallery-grid{
  display:grid;
  grid-template-columns:repeat(12, 1fr);
  gap:20px;
  margin-top:34px;
}
.gallery-card{
  position:relative;
  margin:0;
  overflow:hidden;
  background:var(--white);
  border:var(--border);
  border-radius:28px;
  box-shadow:7px 7px 0 var(--ink);
  transform:rotate(var(--tilt, 0deg));
  min-height:260px;
}
.gallery-card:nth-child(1){--tilt:-1.2deg}
.gallery-card:nth-child(2){--tilt:1deg}
.gallery-card:nth-child(3){--tilt:-.6deg}
.gallery-card:nth-child(4){--tilt:.8deg}
.gallery-card:nth-child(5){--tilt:-.8deg}
.gallery-card--look{
  grid-column:span 6;
  aspect-ratio:4 / 5;
}
.gallery-card--hall{
  grid-column:span 6;
  aspect-ratio:3 / 2;
}
.gallery-card img{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
  object-position:center;
  transition:transform .55s ease, filter .55s ease;
}
.gallery-card:hover img{
  transform:scale(1.04);
  filter:saturate(1.04);
}
.gallery-card figcaption{
  position:absolute;
  left:14px;
  right:14px;
  bottom:14px;
  display:inline-flex;
  width:max-content;
  max-width:calc(100% - 28px);
  padding:10px 14px;
  border:3px solid var(--ink);
  border-radius:18px;
  background:rgba(255,253,247,.92);
  box-shadow:4px 4px 0 var(--blue);
  color:var(--ink);
  font-weight:900;
  font-size:15px;
  line-height:1.1;
}

@keyframes galleryBlob{
  0%{transform:translate3d(0,0,0) scale(1);border-radius:52% 48% 44% 56%}
  100%{transform:translate3d(28px,-18px,0) scale(1.08);border-radius:42% 58% 55% 45%}
}

@media (max-width:980px){
  .date-poster .date-heading{
    font-size:clamp(64px, 12vw, 96px) !important;
  }
  .gallery-grid{
    grid-template-columns:repeat(2, minmax(0,1fr));
    gap:18px;
  }
  .gallery-card--look,
  .gallery-card--hall{
    grid-column:auto;
  }
  .gallery-card--hall{
    aspect-ratio:4 / 3;
  }
}

@media (max-width:620px){
  .date-poster .date-heading{
    font-size:clamp(58px, 16.4vw, 76px) !important;
    line-height:.86 !important;
    letter-spacing:-.07em !important;
  }
  .places .section-title h2,
  .gallery .section-title h2{
    font-size:clamp(46px, 13.5vw, 62px) !important;
    line-height:.9 !important;
  }
  .dress .section-title h2{
    font-size:clamp(56px, 16vw, 72px) !important;
  }
  .gallery{
    padding-top:64px !important;
    padding-bottom:64px !important;
  }
  .gallery-grid{
    grid-template-columns:1fr;
    gap:18px;
    margin-top:24px;
  }
  .gallery-card{
    border-width:2px;
    box-shadow:5px 5px 0 var(--ink);
    border-radius:24px;
    transform:none;
  }
  .gallery-card--look{
    aspect-ratio:4 / 5;
  }
  .gallery-card--hall{
    aspect-ratio:4 / 3;
  }
  .gallery-card figcaption{
    left:10px;
    right:10px;
    bottom:10px;
    max-width:calc(100% - 20px);
    font-size:14px;
    padding:9px 12px;
    border-width:2px;
    border-radius:14px;
  }
  .gallery::before{
    width:230px;
    height:230px;
    left:-110px;
    top:8%;
  }
  .gallery::after{
    width:210px;
    height:210px;
    right:-120px;
    bottom:12%;
  }
}


/* =========================
   v32 mobile centering polish
   ========================= */
@media (max-width:620px){
  .container{
    width:100% !important;
    padding-left:24px !important;
    padding-right:24px !important;
    margin-left:auto !important;
    margin-right:auto !important;
  }

  .welcome-card-wrap{
    width:min(520px, calc(100vw - 52px)) !important;
    margin-left:auto !important;
    margin-right:auto !important;
    place-items:center !important;
  }
  .welcome-card{
    width:100% !important;
    max-width:520px !important;
    margin-left:auto !important;
    margin-right:auto !important;
  }
  .welcome-card__face{
    box-shadow:6px 6px 0 var(--blue, #9ed3f8) !important;
  }
  .welcome-card__button{
    width:min(100%, 520px) !important;
    max-width:calc(100vw - 52px) !important;
    margin-left:auto !important;
    margin-right:auto !important;
    box-shadow:6px 6px 0 var(--blue, #9ed3f8) !important;
  }

  .date-grid,
  .place-grid,
  .gallery-grid{
    width:100% !important;
    margin-left:auto !important;
    margin-right:auto !important;
    justify-items:center !important;
  }

  .date-poster,
  .calendar,
  .place-card,
  .gallery-card,
  .final-card,
  .rsvp-card{
    width:calc(100% - 8px) !important;
    max-width:560px !important;
    margin-left:auto !important;
    margin-right:auto !important;
  }

  .place-card,
  .gallery-card{
    box-shadow:4px 4px 0 var(--ink) !important;
  }

  .gallery-card figcaption{
    max-width:calc(100% - 24px) !important;
  }
}

/* =========================
   v35 romantic wedding mood
   ========================= */
body.wedding-romantic{
  background:
    radial-gradient(circle at 18% 14%, rgba(255,255,255,.42), transparent 24%),
    radial-gradient(circle at 84% 82%, rgba(158,211,248,.14), transparent 22%),
    var(--sand);
}

.hero,
.intro,
.date,
.places,
.dress,
.gallery,
.details,
.rsvp,
.final{
  position:relative;
}

.hero-romance{
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin:0 0 14px;
  padding:8px 14px;
  background:rgba(255,253,247,.76);
  border:2px solid rgba(36,72,95,.12);
  border-radius:999px;
  box-shadow:0 8px 24px rgba(36,72,95,.06);
  color:var(--blue-dark);
}
.hero-romance span{
  font-size:18px;
  line-height:1;
  display:inline-block;
  animation:romanticBeat 2.4s ease-in-out infinite;
}
.hero-romance span:nth-child(2){
  color:#86b8dd;
  animation-delay:.28s;
}
.hero-romance span:nth-child(3){animation-delay:.56s}

.hero h1.hero-title-merged{
  position:relative;
  padding-bottom:16px;
}
.hero h1.hero-title-merged::before{
  content:"♡";
  position:absolute;
  right:4%;
  top:-6px;
  font-size:34px;
  color:rgba(36,72,95,.58);
  transform:rotate(14deg);
}
.hero h1.hero-title-merged::after{
  content:"";
  position:absolute;
  left:4px;
  bottom:2px;
  width:min(360px,72%);
  height:12px;
  border-radius:999px;
  background:linear-gradient(90deg, rgba(158,211,248,0), rgba(158,211,248,.36), rgba(158,211,248,0));
}
.date-badge::before{
  content:"♡";
  margin-right:10px;
  font-size:18px;
}
.hero__text{
  position:relative;
  padding-left:18px;
}
.hero__text::before{
  content:"♥";
  position:absolute;
  left:0;
  top:.1em;
  font-size:14px;
  color:rgba(36,72,95,.58);
}

.welcome-card__face{
  overflow:hidden;
}
.welcome-card__face::before,
.welcome-card__face::after{
  position:absolute;
  color:rgba(158,211,248,.36);
  font-family:var(--font-heading, Georgia, serif);
  pointer-events:none;
}
.welcome-card__face::before{
  content:"♡";
  left:20px;
  top:16px;
  font-size:28px;
  transform:rotate(-12deg);
}
.welcome-card__face::after{
  content:"♥";
  right:22px;
  bottom:16px;
  font-size:24px;
  transform:rotate(10deg);
}
.welcome-card__face--back .welcome-card__answer{
  text-shadow:0 10px 26px rgba(158,211,248,.18);
}

.big-card,
.text-card,
.date-poster,
.calendar,
.place-card,
.form-card,
.gallery-card,
.final-card,
.mission__card{
  position:relative;
}
.big-card::after,
.date-poster::after,
.form-card::before{
  content:"♡";
  position:absolute;
  right:24px;
  top:18px;
  font-size:28px;
  color:rgba(158,211,248,.45);
  transform:rotate(8deg);
  pointer-events:none;
}
.text-card::after{
  content:"♥";
  position:absolute;
  right:26px;
  bottom:18px;
  font-size:24px;
  color:rgba(158,211,248,.38);
  transform:rotate(-12deg);
}
.mini-heartline{
  margin-top:16px;
  color:rgba(36,72,95,.56);
  font-size:18px;
  letter-spacing:.12em;
}

.section-title h2{
  position:relative;
  display:inline-block;
}
.section-title h2::after{
  content:"♡";
  position:absolute;
  right:-.65em;
  top:-.12em;
  font-size:.32em;
  color:rgba(158,211,248,.58);
  transform:rotate(10deg);
}
.section-title.center h2::before{
  content:"";
  position:absolute;
  left:50%;
  bottom:-10px;
  transform:translateX(-50%);
  width:76px;
  height:10px;
  border-radius:999px;
  background:linear-gradient(90deg, rgba(158,211,248,0), rgba(158,211,248,.36), rgba(158,211,248,0));
}

.schedule .section-title h2::after{color:rgba(255,253,247,.8)}
.timeline::after{
  content:"♡";
  position:absolute;
  left:174px;
  bottom:-8px;
  font-size:22px;
  color:rgba(255,253,247,.88);
  transform:translateX(-50%);
}

.place-card::after{
  content:"♥";
  position:absolute;
  top:18px;
  right:18px;
  width:42px;
  height:42px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:rgba(255,253,247,.94);
  border:2px solid var(--ink);
  box-shadow:4px 4px 0 rgba(36,72,95,.18);
  color:var(--blue-dark);
  font-size:18px;
}
.place-card--blue::after{
  background:rgba(244,233,212,.96);
}

.polaroid::after{
  content:"for our day";
  position:absolute;
  left:14px;
  right:14px;
  bottom:10px;
  font-size:11px;
  letter-spacing:.16em;
  text-transform:uppercase;
  text-align:center;
  font-weight:800;
  color:rgba(36,72,95,.58);
}

.palette{
  position:relative;
}
.palette::after{
  content:"самое главное — приходите с улыбкой ♡";
  grid-column:1 / -1;
  display:block;
  padding:14px 18px;
  border:2px dashed rgba(36,72,95,.2);
  border-radius:20px;
  background:rgba(244,233,212,.45);
  font-weight:700;
  color:rgba(36,72,95,.84);
  text-align:center;
}

.gallery-card::before{
  content:"♡";
  position:absolute;
  top:12px;
  right:14px;
  width:34px;
  height:34px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:rgba(255,253,247,.9);
  color:var(--blue-dark);
  border:2px solid var(--ink);
  box-shadow:3px 3px 0 rgba(36,72,95,.2);
  z-index:2;
}
.gallery-card figcaption{
  backdrop-filter:blur(8px);
}

.mission__card b{
  background:linear-gradient(180deg, #d8ecfb 0%, var(--blue) 100%);
}
.mission__card::after{
  content:"♡";
  position:absolute;
  right:18px;
  top:16px;
  color:rgba(36,72,95,.35);
  font-size:20px;
}

.form-card::after{
  content:"Мы очень ждём ваши ответы";
  position:absolute;
  left:22px;
  top:18px;
  padding:8px 14px;
  border-radius:999px;
  background:rgba(158,211,248,.16);
  color:var(--blue-dark);
  font-size:12px;
  font-weight:800;
  letter-spacing:.12em;
  text-transform:uppercase;
}
.form-card iframe{margin-top:40px}

.section-kiss{
  display:grid;
  place-items:center;
  width:54px;
  height:54px;
  margin:0 auto 18px;
  border-radius:50%;
  background:rgba(255,253,247,.86);
  border:3px solid var(--ink);
  box-shadow:5px 5px 0 rgba(36,72,95,.2);
  color:var(--blue-dark);
  font-size:28px;
  animation:romanticBeat 2.8s ease-in-out infinite;
}
.final-card{
  background:linear-gradient(180deg, #a9d7f8 0%, #9ed3f8 100%);
}
.final-card::before{
  opacity:.22;
}
.final-card::after{
  opacity:.28;
}

.footer{
  position:relative;
}
.footer::before{
  content:"♡";
  margin-right:10px;
  color:var(--blue);
}
.footer::after{
  content:"♡";
  margin-left:10px;
  color:var(--blue);
}

@keyframes romanticBeat{
  0%,100%{transform:translateY(0) scale(1)}
  50%{transform:translateY(-2px) scale(1.12)}
}

@media (max-width:980px){
  .timeline::after{left:160px}
}

@media (max-width:620px){
  .hero-romance{
    margin-bottom:12px;
    padding:7px 12px;
  }
  .hero-romance span{font-size:16px}
  .hero h1.hero-title-merged{
    padding-bottom:12px;
  }
  .hero h1.hero-title-merged::before{
    font-size:26px;
    right:2%;
    top:-2px;
  }
  .hero h1.hero-title-merged::after{
    width:70%;
    height:10px;
  }
  .hero__text{
    padding-left:16px;
  }
  .section-title h2::after{
    right:-.52em;
  }
  .section-title.center h2::before{
    width:56px;
    bottom:-8px;
  }
  .timeline::after{
    left:118px;
    bottom:-2px;
    font-size:18px;
  }
  .place-card::after,
  .gallery-card::before{
    width:30px;
    height:30px;
    font-size:15px;
    border-width:2px;
  }
  .polaroid::after{
    font-size:9px;
    letter-spacing:.12em;
  }
  .palette::after{
    font-size:14px;
    padding:12px 14px;
  }
  .form-card::after{
    left:12px;
    right:12px;
    top:10px;
    text-align:center;
    font-size:10px;
    padding:7px 10px;
  }
  .form-card iframe{margin-top:44px}
  .section-kiss{
    width:48px;
    height:48px;
    margin-bottom:14px;
    font-size:24px;
    box-shadow:4px 4px 0 rgba(36,72,95,.2);
  }
}

.mobile-title-break{display:inline;}
@media (max-width:620px){
  .mobile-title-break{display:block;}
}
