/* ---------- Tokens (taken from the existing Bietly site) ---------- */
:root{
  --cream:#f7f2ec;
  --cream-deep:#ede7dc;
  --ink:#16110f;
  --muted:#7d6e66;
  --burgundy:#7b2b3d;
  --burgundy-dark:#5f1f2e;
  --gold:#c19a56;
  --blush:#e9c9c9;
  --numeral:#e1d8ca;
  --serif:"Playfair Display", Georgia, serif;
  --sans:"DM Sans", system-ui, sans-serif;
}
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{background:var(--cream);color:var(--ink);font-family:var(--sans);font-size:1.0625rem;line-height:1.7;-webkit-font-smoothing:antialiased}
a{color:inherit}
h1,h2,h3{font-family:var(--serif);font-weight:400;line-height:1.1;letter-spacing:-.01em}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
:focus-visible{outline:2px solid var(--burgundy);outline-offset:3px}

/* ---------- Buttons ---------- */
.btn{display:inline-block;background:var(--burgundy);color:#fff;border:0;border-radius:3px;padding:1rem 1.9rem;font:500 .95rem var(--sans);text-decoration:none;cursor:pointer;transition:background .2s}
.btn:hover{background:var(--burgundy-dark)}
.btn-sm{padding:.7rem 1.3rem;font-size:.9rem}

/* ---------- Header ---------- */
.site-header{position:sticky;top:0;z-index:10;display:flex;justify-content:space-between;align-items:center;padding:1rem clamp(1.25rem,5vw,4rem);background:rgba(247,242,236,.92);backdrop-filter:blur(8px);border-bottom:1px solid var(--cream-deep)}
.logo{font:500 1.7rem var(--serif);color:var(--burgundy);text-decoration:none;letter-spacing:-.02em}
.site-header nav{display:flex;align-items:center;gap:2rem;font-size:.95rem}
.site-header nav a:not(.btn){text-decoration:none;color:var(--muted)}
.site-header nav a:not(.btn):hover{color:var(--ink)}

/* ---------- Hero ---------- */
.hero{position:relative;display:grid;grid-template-columns:1.05fr .95fr;gap:clamp(2rem,6vw,6rem);align-items:center;padding:clamp(3rem,8vw,7rem) clamp(1.25rem,5vw,4rem);background:linear-gradient(115deg,var(--cream) 55%,#f1e3dc 100%);overflow:hidden}
.eyebrow{font-size:.8rem;letter-spacing:.25em;text-transform:uppercase;color:var(--burgundy);margin-bottom:1.5rem}
.hero h1{font-size:clamp(2.8rem,6.2vw,5.4rem);margin-bottom:1.75rem}
.lead{max-width:34rem;color:var(--muted);margin-bottom:2.25rem}

/* Arched "window" image: the one memorable shape on the page */
.arch{position:relative;justify-self:center;width:min(100%,460px)}
.arch-img{aspect-ratio:4/5;border-radius:999px 999px 6px 6px;background-size:cover;background-position:center;box-shadow:0 30px 60px -25px rgba(95,31,46,.45)}
.arch::before{content:"";position:absolute;inset:-14px -14px 14px 14px;border:1px solid var(--gold);border-radius:999px 999px 6px 6px;z-index:-1}
.tag{position:absolute;left:50%;bottom:-1.1rem;transform:translateX(-50%);white-space:nowrap;background:#fff;padding:.7rem 1.4rem;border-radius:3px;font-size:.85rem;color:var(--burgundy);box-shadow:0 12px 30px -12px rgba(0,0,0,.25)}

/* Images: drop your own files into /images. Gradients show until then. */
.img-hero{background-image:url("images/hero.jpg"),linear-gradient(160deg,#e8b4b8,#a8465c 60%,#6d2a3c)}
.img-table{background-image:url("images/table.jpg"),linear-gradient(160deg,#4a3a34,#a07c72 60%,#2a1f1b)}

/* Subtle celebratory sparkles (hero only, gentle twinkle) */
.spark{position:absolute;width:10px;height:10px;background:var(--gold);transform:rotate(45deg);opacity:.0;animation:twinkle 5s ease-in-out infinite}
.spark::before{content:"";position:absolute;inset:0;background:inherit;transform:rotate(90deg) scale(.55)}
.s1{top:14%;left:46%}
.s2{top:70%;left:42%;animation-delay:1.4s;width:7px;height:7px}
.s3{top:12%;right:8%;animation-delay:2.4s}
.s4{bottom:10%;right:12%;animation-delay:3.4s;width:7px;height:7px}
@keyframes twinkle{0%,100%{opacity:0;transform:rotate(45deg) scale(.6)}50%{opacity:.9;transform:rotate(45deg) scale(1.1)}}

/* ---------- Value proposition ---------- */
.value{padding:clamp(4rem,9vw,7rem) clamp(1.25rem,5vw,4rem);text-align:center;background:var(--cream-deep)}
.value p{max-width:52rem;margin:0 auto;font:400 clamp(1.5rem,3.2vw,2.4rem)/1.4 var(--serif)}
.value em{color:var(--burgundy)}

/* ---------- How it works ---------- */
.how{display:grid;grid-template-columns:1fr 1fr;background:var(--cream)}
.how-steps{padding:clamp(3rem,7vw,6rem) clamp(1.25rem,5vw,4rem)}
.how-steps h2{font-size:clamp(2rem,4vw,3rem);margin-bottom:3rem}
.how ol{list-style:none;display:grid;gap:2.75rem}
.how li{display:grid;grid-template-columns:5.5rem 1fr;gap:1rem;align-items:start}
.num{font:400 4.2rem/1 var(--serif);color:var(--numeral)}
.how h3{font-size:1.6rem;margin-bottom:.4rem}
.how li p{color:var(--muted);max-width:30rem}
.how-img{min-height:480px;background-size:cover;background-position:center}

/* ---------- Notify ---------- */
.notify{padding:clamp(4rem,9vw,7rem) clamp(1.25rem,5vw,4rem);background:var(--cream-deep);border-top:1px solid #e0d6c8}
.notify-inner{max-width:44rem;margin:0 auto}
.notify h2{font-size:clamp(2.6rem,5.5vw,4.6rem);margin-bottom:1.25rem}
.notify p{color:var(--muted);margin-bottom:2rem}
#notify-form{display:flex;max-width:34rem}
#notify-form input[type=email]{flex:1;min-width:0;padding:1rem 1.25rem;border:1px solid #ddd3c6;border-right:0;border-radius:3px 0 0 3px;background:#fff;font:inherit;font-size:1rem;color:var(--ink)}
#notify-form input::placeholder{color:#a39a95}
#notify-form .btn{border-radius:0 3px 3px 0}
#notify-form .btn:disabled{opacity:.6;cursor:wait}
#form-status{margin:1rem 0 0;min-height:1.7rem;font-size:.95rem}
#form-status.ok{color:#2f6b45}
#form-status.err{color:#b3261e}

/* ---------- Contact ---------- */
.contact{padding:clamp(4rem,8vw,6rem) clamp(1.25rem,5vw,4rem);text-align:center;background:var(--cream)}
.contact h2{font-size:clamp(2rem,4vw,3rem);margin-bottom:1rem}
.contact>p{color:var(--muted);max-width:32rem;margin:0 auto 2.5rem}
.contact dl{display:flex;justify-content:center;gap:clamp(2rem,8vw,6rem);flex-wrap:wrap}
.contact dt{font-size:.8rem;letter-spacing:.2em;text-transform:uppercase;color:var(--gold);margin-bottom:.3rem}
.contact dd{font:400 1.4rem var(--serif)}
.contact dd a{text-decoration:none;border-bottom:1px solid var(--blush)}
.contact dd a:hover{color:var(--burgundy);border-color:var(--burgundy)}

/* ---------- Footer ---------- */
.site-footer{display:flex;justify-content:space-between;align-items:center;gap:1rem;flex-wrap:wrap;padding:2rem clamp(1.25rem,5vw,4rem);border-top:1px solid var(--cream-deep);color:var(--muted);font-size:.9rem}
.site-footer .logo{font-size:1.4rem}

/* ---------- Responsive ---------- */
@media (max-width:860px){
  .site-header nav a:not(.btn){display:none}
  .hero{grid-template-columns:1fr}
  .arch{margin-top:1.5rem;width:min(100%,380px)}
  .how{grid-template-columns:1fr}
  .how-img{min-height:320px;order:-1}
}
@media (max-width:520px){
  #notify-form{flex-direction:column;gap:.75rem}
  #notify-form input[type=email]{border-right:1px solid #ddd3c6;border-radius:3px}
  #notify-form .btn{border-radius:3px}
  .how li{grid-template-columns:3.5rem 1fr}
  .num{font-size:2.8rem}
}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .spark{animation:none;opacity:.5}
}

/* ---------- Hero extras ---------- */
#confetti{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
.hero-text,.arch{position:relative;z-index:1}
.seal{position:absolute;top:-2.2rem;right:-2.2rem;width:118px;height:118px;z-index:2;animation:spin 24s linear infinite;filter:drop-shadow(0 10px 18px rgba(95,31,46,.35))}
@keyframes spin{to{transform:rotate(360deg)}}

/* ---------- Sliding moments ---------- */
.moments{padding:clamp(4rem,9vw,7rem) 0;background:radial-gradient(ellipse at 50% 0%,#4a1a2a,#220c15 70%);color:#f7f2ec;text-align:center;overflow:hidden}
.moments h2{font-size:clamp(2.2rem,5vw,4rem);padding:0 1.25rem;margin-bottom:1rem}
.moments>p{color:#d9c4b4;max-width:34rem;margin:0 auto 3.5rem;padding:0 1.25rem}
.slider{overflow:hidden;padding:2rem 0 3rem;-webkit-mask-image:linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent);mask-image:linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent)}
.track{display:flex;gap:1.75rem;width:max-content;animation:slide 50s linear infinite}
.slider:hover .track{animation-play-state:paused}
@keyframes slide{to{transform:translateX(-50%)}}
.slide{position:relative;flex:none;width:230px;height:330px;border-radius:999px 999px 8px 8px;overflow:hidden;background:linear-gradient(170deg,var(--a),var(--b));box-shadow:0 25px 50px -20px rgba(0,0,0,.6),inset 0 0 0 1px rgba(243,220,176,.5);transition:transform .4s}
.slide:nth-child(even){transform:translateY(34px)}
.slide:hover{transform:translateY(-10px) scale(1.04)}
.slide svg{position:absolute;inset:0;width:100%;height:100%}
.photo{position:absolute;inset:0;background-size:cover;background-position:center}
.slide figcaption{position:absolute;left:0;right:0;bottom:0;padding:2.5rem 0 1.1rem;font:400 1.35rem var(--serif);color:#fff;background:linear-gradient(transparent,rgba(34,12,21,.8))}

/* ---------- Cursor sparkle trail ---------- */
.trail{position:fixed;z-index:50;width:9px;height:9px;margin:-4px 0 0 -4px;background:var(--gold);pointer-events:none;transform:rotate(45deg);animation:fade .9s ease-out forwards}
@keyframes fade{to{opacity:0;transform:translateY(18px) rotate(225deg) scale(.1)}}
@media (max-width:860px){.seal{width:90px;height:90px;right:-.5rem;top:-2rem}}
@media (prefers-reduced-motion:reduce){.track{animation:none;overflow-x:auto}.slider{overflow-x:auto}.seal{animation:none}.trail{display:none}}

/* ---------- Diagonal slices inside the arch ---------- */
.slices{position:relative;background:#f3dcb0;overflow:hidden}
.slice{position:absolute;inset:0;animation:slicein 1s cubic-bezier(.2,.7,.2,1) both}
.slice svg{width:100%;height:100%;display:block}
.slice .photo{position:absolute;inset:0;background-size:cover;background-position:center}
.s-a{clip-path:polygon(0 0,100% 0,100% 36%,0 52%)}
.s-b{clip-path:polygon(0 54%,100% 38%,100% 68%,0 84%);animation-delay:.15s}
.s-c{clip-path:polygon(0 86%,100% 70%,100% 100%,0 100%);animation-delay:.3s}
@keyframes slicein{from{opacity:0;transform:translateX(var(--from))}}
@media (prefers-reduced-motion:reduce){.slice{animation:none}}

.site-footer small{font-size:.78rem}.site-footer small a{color:inherit}
.site-footer p{text-align:right}

/* ---------- How-it-works image: never empty ---------- */
.how-img{position:relative;overflow:hidden;background:#2a1520}
.how-img svg{position:absolute;inset:0;width:100%;height:100%}
.how-img .photo{position:absolute;inset:0;background-size:cover;background-position:center}
.how-img::after{content:"";position:absolute;inset:0;background:linear-gradient(transparent 55%,rgba(23,11,18,.7));pointer-events:none}
.chips{position:absolute;left:1.25rem;right:1.25rem;bottom:1.25rem;z-index:2;display:flex;flex-wrap:wrap;gap:.5rem;list-style:none}
.chips li{padding:.4rem .95rem;border-radius:999px;font-size:.85rem;color:#fff;background:rgba(255,255,255,.16);border:1px solid rgba(243,220,176,.55);backdrop-filter:blur(6px)}

/* ---------- Rectangular photo collage ---------- */
.arch{width:min(100%,520px);aspect-ratio:1/1.08}
.arch::before{inset:9% -5% -5% 12%;border-radius:4px;border:1px solid var(--gold);background:linear-gradient(160deg,rgba(233,201,201,.55),rgba(243,220,176,.35))}
.collage{position:absolute;inset:0}
.card{position:absolute;padding:10px 10px 0;background:#fff;border-radius:3px;transform:rotate(var(--r));box-shadow:0 34px 60px -22px rgba(60,15,30,.55),0 8px 16px rgba(0,0,0,.12);animation:drop .9s cubic-bezier(.2,.7,.2,1) both;transition:transform .35s,box-shadow .35s}
.card:hover{transform:rotate(0) translateY(-10px) scale(1.03);z-index:5;box-shadow:0 44px 70px -22px rgba(60,15,30,.6),0 10px 20px rgba(0,0,0,.14)}
.pic{position:relative;aspect-ratio:4/4.6;overflow:hidden;background:#2a1520}
.pic svg{position:absolute;inset:0;width:100%;height:100%}
.pic .photo{position:absolute;inset:0;background-size:cover;background-position:center}
.cap{display:block;padding:.6rem 0 .7rem;text-align:center;font:italic 400 1.05rem var(--serif);color:var(--burgundy)}
.c1{width:54%;left:0;top:6%;z-index:1}
.c2{width:50%;right:0;top:0;z-index:2;animation-delay:.15s}
.c3{width:54%;left:24%;bottom:0;z-index:3;animation-delay:.3s}
@keyframes drop{from{opacity:0;transform:translateY(-36px) rotate(var(--r))}}
@media (max-width:860px){.arch{width:min(100%,400px)}}
@media (prefers-reduced-motion:reduce){.card{animation:none}}

/* ---------- Rectangular container with shadow (keeps the diagonal slices) ---------- */
.arch{width:min(100%,470px);aspect-ratio:auto}
.arch-img{aspect-ratio:4/5;border-radius:6px;box-shadow:0 45px 80px -28px rgba(95,31,46,.6),0 12px 28px rgba(0,0,0,.14)}
.arch::before{inset:7% -6% -6% 10%;border-radius:6px}
@media (max-width:860px){.arch{width:min(100%,400px)}}
.s-a .photo{background-position:center 30%}
.s-b .photo{top:20%;background-position:center top}
.s-c .photo{top:70%;background-position:center top}