/* SnapKenang — refined stationery-house aesthetic: ivory paper, espresso ink, oxblood + gold */
:root {
  --paper: #f6f0e6;
  --paper-2: #efe6d6;
  --card: #fffaf2;
  --ink: #2a1f1d;
  --ink-2: #5d4d47;
  --mute: #8f7f76;
  --line: #e2d6c3;
  --ox: #7a2331;
  --ox-2: #5c1724;
  --gold: #b8913f;
  --gold-2: #d9bd78;
  --sage: #7d8f6e;
  --r: 14px;
  --display: 'Cormorant Garamond', 'Times New Roman', serif;
  --body: 'Manrope', system-ui, sans-serif;
  --shadow: 0 1px 2px rgba(42, 31, 29, .06), 0 12px 32px -12px rgba(42, 31, 29, .18);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--body); color: var(--ink); background: var(--paper); line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body::before { /* paper grain */
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 1000; opacity: .32; mix-blend-mode: multiply;
  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='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .38 0 0 0 0 .3 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }
input, textarea, select { font: inherit; color: inherit; }
.wrap { width: min(1200px, 100% - 48px); margin-inline: auto; }
.serif { font-family: var(--display); }
.eyebrow { font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--ox); font-weight: 600; }
h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: 1.05; letter-spacing: -.01em; }
h1 em, h2 em { font-style: italic; color: var(--ox); }
.lede { font-size: 18px; color: var(--ink-2); max-width: 560px; }
svg.i { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 48px; padding: 0 26px;
  border-radius: 999px; font-weight: 600; font-size: 14.5px; letter-spacing: .02em; text-decoration: none;
  transition: transform .2s, background .2s, box-shadow .2s, color .2s; white-space: nowrap;
}
.btn-primary { background: var(--ox); color: #fff6ec; box-shadow: 0 10px 24px -10px rgba(122, 35, 49, .7); }
.btn-primary:hover { background: var(--ox-2); transform: translateY(-1px); }
.btn-ghost { border: 1px solid var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-gold { background: linear-gradient(120deg, #a77f2f, #e3c67f 45%, #b8913f); color: #2a1f1d; }
.btn-sm { height: 38px; padding: 0 18px; font-size: 13.5px; }
.btn[disabled] { opacity: .55; pointer-events: none; }
.link { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--gold); }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(246, 240, 230, .82); backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.nav.scrolled { border-color: var(--line); }
.nav .wrap { display: flex; align-items: center; height: 72px; gap: 32px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-size: 26px; font-weight: 600; letter-spacing: -.01em; }
.logo i { font-style: italic; color: var(--ox); font-weight: 500; }
.logo .seal-mini { width: 30px; height: 30px; }
.nav-links { display: flex; gap: 28px; margin-left: auto; font-size: 14px; font-weight: 500; }
.nav-links a { text-decoration: none; color: var(--ink-2); transition: color .2s; }
.nav-links a:hover, .nav-links a.on { color: var(--ox); }
.nav-burger { display: none; margin-left: auto; }
.nav-lang { margin-right: -12px; }
@media (max-width: 860px) {
  .nav-links { display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px 24px 20px; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav-burger { display: block; }
  .nav .btn-primary { display: none; }
  .nav .wrap { gap: 14px; }
  .nav-lang { margin: 0 0 0 auto; }
  .nav-lang ~ .nav-burger { margin-left: 0; }
}

/* Footer */
.foot { background: var(--ink); color: #d9cbb7; padding: 72px 0 32px; margin-top: 120px; }
.foot .logo { color: #fff6ec; }
.foot-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; }
.foot h4 { font-family: var(--body); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-2); margin-bottom: 14px; font-weight: 600; }
.foot a { display: block; text-decoration: none; padding: 4px 0; font-size: 14px; opacity: .8; }
.foot a:hover { opacity: 1; color: #fff; }
.foot-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 13px; opacity: .6; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } }

/* Sections */
section { position: relative; }
.sec { padding: 110px 0 0; }
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: 32px; margin-bottom: 48px; flex-wrap: wrap; }
.sec-head h2 { font-size: clamp(40px, 5vw, 64px); max-width: 720px; }
.sec-head p { max-width: 420px; color: var(--ink-2); }

/* Hero */
.hero { padding: 48px 0 40px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.02fr 1fr; gap: 48px; align-items: center; min-height: calc(100vh - 140px); }
.hero h1 { font-size: clamp(52px, 7.4vw, 104px); margin: 18px 0 24px; }
.hero h1 .script { font-family: 'Pinyon Script', cursive; font-weight: 400; color: var(--ox); font-size: 1.08em; display: inline-block; transform: translateY(.06em); }
.hero-cta { display: flex; gap: 14px; margin-top: 36px; flex-wrap: wrap; }
.hero-proof { display: flex; gap: 28px; margin-top: 44px; font-size: 13px; color: var(--mute); flex-wrap: wrap; }
.hero-proof b { display: block; font-family: var(--display); font-size: 30px; color: var(--ink); font-weight: 600; line-height: 1; }
.hero-stage { position: relative; aspect-ratio: 1 / 1.02; display: grid; place-items: center; }
.hero-stage::before { content: ''; position: absolute; inset: 6% 2% 4% 10%; border-radius: 50% 46% 52% 48%; background: radial-gradient(circle at 40% 35%, #ecd9c3, #e3cdb3 60%, transparent 61%); filter: blur(2px); }
.hero-stage .env-holder { position: relative; width: min(92%, 520px); margin-top: 26%; cursor: pointer; transition: transform .6s; }
.hero-stage canvas { position: absolute; inset: -10%; width: 120%; height: 120%; pointer-events: none; z-index: 5; }
.hero-tag { position: absolute; z-index: 6; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-size: 13px; box-shadow: var(--shadow); display: flex; gap: 8px; align-items: center; animation: floaty 6s ease-in-out infinite; }
.hero-tag.t1 { left: 0; top: 18%; }
.hero-tag.t2 { right: 0; top: 34%; animation-delay: -2s; }
.hero-tag.t3 { left: 6%; bottom: 8%; animation-delay: -4s; }
@keyframes floaty { 50% { transform: translateY(-8px); } }
.play-hint { position: absolute; z-index: 7; bottom: -4%; left: 50%; transform: translateX(-50%); font-size: 13px; color: var(--ink-2); display: flex; gap: 8px; align-items: center; white-space: nowrap; }
.play-hint .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ox); animation: ping 1.6s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(122, 35, 49, .5); } 100% { box-shadow: 0 0 0 12px rgba(122, 35, 49, 0); } }
@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr; min-height: 0; }
  .hero-stage { max-width: 560px; margin: 0 auto; width: 100%; }
}

/* Load-in */
.rise { opacity: 0; transform: translateY(24px); animation: rise .9s cubic-bezier(.2, .7, .2, 1) forwards; }
.rise.d1 { animation-delay: .1s; } .rise.d2 { animation-delay: .22s; } .rise.d3 { animation-delay: .34s; } .rise.d4 { animation-delay: .46s; }
@keyframes rise { to { opacity: 1; transform: none; } }
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .9s, transform .9s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; transform: none; }

/* Marquee */
.marquee { border-block: 1px solid var(--line); padding: 18px 0; overflow: hidden; margin-top: 40px; background: var(--paper-2); }
.marquee-track { display: flex; gap: 48px; width: max-content; animation: marq 40s linear infinite; font-family: var(--display); font-size: 28px; font-style: italic; color: var(--ink-2); }
.marquee-track span::after { content: '✦'; font-style: normal; color: var(--gold); font-size: 14px; margin-left: 48px; vertical-align: middle; }
@keyframes marq { to { transform: translateX(-50%); } }

/* Feature: anatomy of the moment */
.anatomy { display: grid; grid-template-columns: repeat(5, 1fr); border: 1px solid var(--line); border-radius: var(--r); background: var(--card); overflow: hidden; }
.anatomy > div { padding: 30px 24px 34px; border-right: 1px solid var(--line); }
.anatomy > div:last-child { border: 0; }
.anatomy .num { font-family: var(--display); font-style: italic; color: var(--gold); font-size: 20px; }
.anatomy h3 { font-size: 28px; margin: 6px 0 10px; }
.anatomy p { font-size: 14px; color: var(--ink-2); }
.anatomy .vis { height: 110px; display: grid; place-items: center; margin-bottom: 18px; }
@media (max-width: 960px) { .anatomy { grid-template-columns: 1fr 1fr; } .anatomy > div { border-bottom: 1px solid var(--line); } }
@media (max-width: 560px) { .anatomy { grid-template-columns: 1fr; } }

/* Chips & filters */
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { height: 38px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font-size: 13.5px; font-weight: 500; transition: all .2s; }
.chip:hover { border-color: var(--ink); }
.chip.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* Template gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 36px 28px; }
.tcard { position: relative; text-decoration: none; display: block; }
.tcard .frame { position: relative; border-radius: 6px; transition: transform .5s cubic-bezier(.2, .7, .2, 1), box-shadow .5s; box-shadow: 0 2px 4px rgba(0, 0, 0, .06), 0 18px 30px -18px rgba(42, 31, 29, .45); }
.tcard:hover .frame { transform: translateY(-8px) rotate(-1deg); box-shadow: 0 4px 8px rgba(0, 0, 0, .06), 0 30px 50px -20px rgba(42, 31, 29, .5); }
.tcard .frame .ic { border-radius: 6px; }
.tcard .mini-seal { position: absolute; width: 22%; right: -6%; bottom: 8%; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .35)); transform: rotate(-12deg); transition: transform .5s; }
.tcard:hover .mini-seal { transform: rotate(6deg) scale(1.08); }
.tcard .overlay { position: absolute; inset: 0; display: flex; align-items: end; justify-content: center; padding-bottom: 18px; gap: 8px; opacity: 0; transition: opacity .3s; background: linear-gradient(transparent 55%, rgba(42, 31, 29, .45)); border-radius: 6px; }
.tcard:hover .overlay { opacity: 1; }
.tcard .meta { display: flex; justify-content: space-between; align-items: baseline; margin-top: 16px; }
.tcard .meta h3 { font-size: 22px; }
.tcard .meta span { font-size: 12px; color: var(--mute); text-transform: capitalize; }
.badge { position: absolute; top: 10px; left: 10px; z-index: 2; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; background: var(--card); color: var(--ox); padding: 4px 10px; border-radius: 999px; box-shadow: var(--shadow); }

/* Showcase: seals/envelopes */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.seal-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.seal-row .s { filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .25)); transition: transform .4s; }
.seal-row .s:hover { transform: rotate(-10deg) scale(1.08); }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.swatches i { width: 40px; height: 28px; border-radius: 4px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08), 0 4px 8px -4px rgba(0, 0, 0, .3); position: relative; overflow: hidden; }
.swatches i::after { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 60%; clip-path: polygon(0 0, 100% 0, 50% 100%); background: rgba(0, 0, 0, .1); }
.sticker-cloud { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.sticker-cloud .stk-d { filter: drop-shadow(1px 0 0 #fff) drop-shadow(-1px 0 0 #fff) drop-shadow(0 1px 0 #fff) drop-shadow(0 -1px 0 #fff) drop-shadow(0 4px 6px rgba(0, 0, 0, .18)); transition: transform .3s; }
.sticker-cloud .stk-d:nth-child(odd) { transform: rotate(-8deg); }
.sticker-cloud .stk-d:hover { transform: scale(1.15) rotate(6deg); }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 36px; }

/* Landing: features and occasions */
.feats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.feats > div { background: var(--card); padding: 28px 24px 30px; }
.feats h3 { font-size: 24px; margin: 14px 0 6px; }
.feats p { font-size: 14px; color: var(--ink-2); }
.feat-i { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); color: var(--ox); }
.feat-i .i { width: 20px; height: 20px; }
.occ { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.occ a { display: flex; flex-direction: column; gap: 6px; padding: 22px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; color: inherit; text-decoration: none; transition: transform .2s, border-color .2s; }
.occ a:hover { transform: translateY(-3px); border-color: var(--gold); }
.occ b { font-family: var(--display); font-size: 22px; font-weight: 500; margin-top: 8px; }
.occ small { font-size: 13px; color: var(--mute); }
@media (max-width: 960px) { .feats, .occ { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .feats { grid-template-columns: 1fr; } }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: s; }
.steps > div { border-top: 1px solid var(--ink); padding-top: 22px; }
.steps > div::before { counter-increment: s; content: '0' counter(s); font-family: var(--display); font-style: italic; color: var(--ox); font-size: 44px; display: block; line-height: 1; margin-bottom: 14px; }
.steps h3 { font-size: 28px; margin-bottom: 8px; }
.steps p { color: var(--ink-2); font-size: 15px; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* Pricing */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.plan { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 34px 30px; display: flex; flex-direction: column; position: relative; }
.plan.pop { background: var(--ink); color: #f3e9da; border-color: var(--ink); transform: translateY(-12px); box-shadow: 0 30px 60px -30px rgba(42, 31, 29, .7); }
.plan.pop .plan-guests, .plan.pop li { color: #d9cbb7; }
.plan .ribbon-tag { position: absolute; top: -13px; left: 30px; background: var(--gold); color: var(--ink); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; }
.plan h3 { font-size: 34px; }
.plan-price { font-family: var(--display); font-size: 64px; line-height: 1; margin: 16px 0 4px; font-weight: 500; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; }
.plan-price sup { font-size: 26px; align-self: flex-start; position: relative; top: 10px; margin-right: -6px; }
.plan-price small { font-family: var(--body); font-size: 13px; color: var(--mute); white-space: nowrap; }
.plan-guests { font-size: 14px; color: var(--ink-2); margin-bottom: 22px; }
.plan ul { list-style: none; display: grid; gap: 10px; margin-bottom: 30px; flex: 1; }
.plan li { display: flex; gap: 10px; font-size: 14.5px; color: var(--ink-2); }
.plan li::before { content: ''; flex: none; width: 16px; height: 16px; margin-top: 3px; border-radius: 50%; background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' stroke='%23fff' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); }
.plan.pop .btn-primary { background: var(--gold); color: var(--ink); }
@media (max-width: 900px) { .pricing { grid-template-columns: 1fr; } .plan.pop { transform: none; } }
/* Currency switcher above the plans */
.cur-row { display: flex; justify-content: center; margin: -8px 0 34px; }
.cur-pick { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.cur-pick select { appearance: none; border: 1px solid var(--line); border-radius: 999px; padding: 8px 34px 8px 16px; font-size: 14px; letter-spacing: 0; text-transform: none; font-weight: 600; color: var(--ink); cursor: pointer;
  background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' stroke='%235d4d47' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 12px center / 14px; }
.cur-pick select:focus-visible { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(184, 145, 63, .18); }

/* Testimonials */
.quotes { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 24px; }
.quote { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 32px; }
.quote p { font-family: var(--display); font-size: 23px; line-height: 1.3; font-style: italic; }
.quote:first-child { background: var(--ox); color: #fbeee6; border: 0; }
.quote:first-child p { font-size: 32px; }
.quote footer { margin-top: 22px; font-size: 13px; opacity: .75; }
.stars { color: var(--gold); letter-spacing: 3px; margin-bottom: 14px; }
@media (max-width: 900px) { .quotes { grid-template-columns: 1fr; } }

/* FAQ */
.faq { max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); padding: 22px 0; }
.faq summary { font-family: var(--display); font-size: 26px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 20px; }
.faq summary::after { content: '+'; font-family: var(--body); font-weight: 300; font-size: 28px; color: var(--ox); transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin-top: 12px; color: var(--ink-2); max-width: 720px; }

/* CTA band */
.cta-band { margin-top: 120px; background: var(--ink); color: #f3e9da; border-radius: 24px; padding: 72px 64px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; position: relative; overflow: hidden; }
.cta-band h2 { font-size: clamp(40px, 5vw, 64px); }
.cta-band h2 em { color: var(--gold-2); }
.cta-band .seal-float { width: 220px; justify-self: center; filter: drop-shadow(0 20px 30px rgba(0, 0, 0, .5)); animation: spinslow 30s linear infinite; }
@keyframes spinslow { to { transform: rotate(360deg); } }
@media (max-width: 760px) { .cta-band { grid-template-columns: 1fr; padding: 48px 28px; } }

/* Forms */
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.input, .field input, .field textarea, .field select {
  width: 100%; border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 11px 13px; font-size: 14.5px; outline: none; transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 80px; }
.input:focus, .field input:focus, .field textarea:focus, .field select:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(184, 145, 63, .18); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* Modal */
.modal { position: fixed; inset: 0; z-index: 200; display: none; place-items: center; padding: 20px; background: rgba(28, 20, 18, .62); backdrop-filter: blur(6px); }
.modal.open { display: grid; animation: fade .3s; }
.modal-box { background: var(--paper); border-radius: 20px; width: min(960px, 100%); max-height: calc(100vh - 40px); overflow: auto; padding: 36px; position: relative; animation: pop .4s cubic-bezier(.2, .8, .2, 1); }
.modal-x { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; z-index: 3; }
.modal-x:hover { background: var(--paper-2); }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { transform: translateY(20px) scale(.97); opacity: 0; } }

.toast { position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 120px); background: var(--ink); color: var(--paper); padding: 12px 22px; border-radius: 999px; font-size: 14px; z-index: 300; transition: transform .4s cubic-bezier(.2, .8, .2, 1); box-shadow: var(--shadow); }
.toast.show { transform: translate(-50%, 0); }
.spinner { width: 18px; height: 18px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* =================== Invitation card =================== */
.ic {
  position: relative; aspect-ratio: 2 / 3; container-type: inline-size; overflow: hidden; color: var(--ink);
  background-size: cover; background-position: center; background-color: #fbf6ec; font-family: var(--head);
}
.ic-body { position: absolute; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 2.2cqw; }
.ic-body > * { max-width: 100%; }
.ic-intro { font-size: 3.1cqw; letter-spacing: .22em; text-transform: uppercase; line-height: 1.5; opacity: .9; }
.ic-names { font-family: var(--script); font-size: 12.5cqw; font-weight: 400; line-height: 1.08; color: color-mix(in srgb, var(--ink) 72%, var(--accent)); margin: .8cqw 0; letter-spacing: 0; overflow-wrap: anywhere; }
.ic-names.sm { font-size: 9.6cqw; }
.ic-names.xs { font-size: 7.6cqw; }
.ic-sub { font-size: 3.6cqw; font-style: italic; line-height: 1.4; max-width: 92%; }
.ic-orn { width: 34cqw; color: var(--accent); margin: .6cqw 0; }
.ic-orn svg { width: 100%; display: block; }
.ic-date { display: grid; gap: .6cqw; justify-items: center; }
.ic-month { font-size: 3.3cqw; letter-spacing: .3em; text-transform: uppercase; }
.ic-daterow { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 3cqw; }
.ic-daterow span { font-size: 2.9cqw; letter-spacing: .18em; text-transform: uppercase; border-block: 1px solid color-mix(in srgb, var(--ink) 45%, transparent); padding: 1cqw 1.4cqw; white-space: nowrap; }
.ic-daterow b { font-size: 11cqw; font-weight: 500; line-height: 1; }
.ic-year { font-size: 3.1cqw; letter-spacing: .3em; }
.ic-venue { font-size: 3.4cqw; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; margin-top: 1.4cqw; }
.ic-addr { font-size: 3cqw; opacity: .85; line-height: 1.4; }
.ic-note { font-size: 3.2cqw; font-style: italic; opacity: .9; }
.ic.is-dark .ic-names { color: color-mix(in srgb, var(--ink) 80%, #fff); }
.ic.has-names-c .ic-names { color: var(--ic-names); }

/* Stickers */
.stk-layer { position: absolute; inset: 0; pointer-events: none; z-index: 6; }
.stk { position: absolute; width: calc(var(--sz) * 1cqw); transform: translate(-50%, -50%) rotate(var(--rot)); filter: drop-shadow(.25cqw 0 0 #fff) drop-shadow(-.25cqw 0 0 #fff) drop-shadow(0 .25cqw 0 #fff) drop-shadow(0 -.25cqw 0 #fff) drop-shadow(0 .6cqw .8cqw rgba(0, 0, 0, .25)); }
.stk svg { width: 100%; display: block; overflow: visible; }

/* =================== Envelope =================== */
.env { position: relative; width: 100%; aspect-ratio: 1.45; container-type: inline-size; perspective: 180cqw; user-select: none; }
.env-back { position: absolute; inset: 0; border-radius: 1cqw; z-index: 0; background: linear-gradient(rgba(0, 0, 0, .18), rgba(0, 0, 0, .05) 40%), var(--liner); box-shadow: 0 3cqw 6cqw -2cqw rgba(30, 20, 15, .45), 0 .5cqw 1cqw rgba(30, 20, 15, .15); }
.env-back::after { content: ''; position: absolute; inset: 2.4cqw 2.4cqw 0; border-radius: .6cqw .6cqw 0 0; box-shadow: inset 0 0 0 .3cqw rgba(255, 255, 255, .15); }
.env-cardwrap { position: absolute; left: 0; right: 0; top: -200cqw; bottom: 2cqw; overflow: hidden; z-index: 2; pointer-events: none; }
.env-card { position: absolute; left: 19%; width: 62%; top: calc(200cqw + 4cqw); transform-origin: 50% 100%; will-change: transform; }
.env-card .ic { border-radius: .6cqw; box-shadow: 0 .6cqw 1.2cqw rgba(0, 0, 0, .18); }
.env-pocket { position: absolute; inset: 0; z-index: 3; border-radius: 1cqw; overflow: hidden; clip-path: polygon(0 0, 50% 55%, 100% 0, 100% 100%, 0 100%); background: var(--tex, linear-gradient(transparent, transparent)), linear-gradient(170deg, var(--env-hi), var(--env) 55%, var(--env-lo)); box-shadow: inset 0 -.4cqw .6cqw rgba(0, 0, 0, .08); }
.env-pocket::before { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, var(--env-lo), transparent 40%), linear-gradient(260deg, var(--env-lo), transparent 40%); clip-path: polygon(0 0, 41% 48%, 0 100%, 100% 100%, 59% 48%, 100% 0); opacity: .55; }
.env-pocket::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, var(--env), var(--env-hi)); clip-path: polygon(0 100%, 43% 46%, 57% 46%, 100% 100%); filter: drop-shadow(0 -1cqw 1cqw rgba(0, 0, 0, .2)); }
.env-pocket svg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
.env-to { position: absolute; left: 0; right: 0; bottom: 9%; z-index: 4; text-align: center; font-family: var(--to-font, 'Pinyon Script', cursive); font-size: 5.2cqw; color: color-mix(in srgb, var(--env) 30%, #2a1f1d); transition: opacity .6s; }
.env.is-dark .env-to { color: color-mix(in srgb, var(--env) 20%, #f3e2b7); }
.env-flap { position: absolute; left: 0; right: 0; top: 0; height: 57%; z-index: 5; transform-origin: 50% 0; transform-style: preserve-3d; }
.env-flap > div { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
/* Outside: point at the bottom. Lining: drawn point-up, because after the flap swings over its hinge it stands above the envelope */
.flap-out { clip-path: polygon(0 0, 100% 0, 53% 97%, 50% 100%, 47% 97%); border-radius: 1cqw 1cqw 0 0; background: var(--tex, linear-gradient(transparent, transparent)), linear-gradient(to bottom, var(--env-hi), var(--env) 60%, var(--env-lo)); }
.flap-out::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 70%, rgba(0, 0, 0, .12)); }
.flap-in { transform: rotateX(180deg); clip-path: polygon(0 100%, 100% 100%, 53% 3%, 50% 0, 47% 3%); border-radius: 0 0 1cqw 1cqw; background: var(--liner); }
/* the lining is darker where it folds over the hinge */
.flap-in::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, .22), rgba(0, 0, 0, .04) 45%, rgba(255, 255, 255, .06)); }
/* soft shadow the closed flap casts on the pocket */
.env-fshade { position: absolute; left: 0; right: 0; top: 0; height: 59%; z-index: 4; pointer-events: none; clip-path: polygon(0 0, 100% 0, 52% 100%, 48% 100%); background: linear-gradient(to bottom, transparent 55%, rgba(40, 25, 20, .16)); filter: blur(.5cqw); }
/* paper textures */
.env[data-tex="linen"] { --tex: repeating-linear-gradient(0deg, rgba(255, 255, 255, .07) 0 1px, transparent 1px 3px), repeating-linear-gradient(90deg, rgba(0, 0, 0, .035) 0 1px, transparent 1px 3px); }
.env[data-tex="laid"] { --tex: repeating-linear-gradient(0deg, rgba(0, 0, 0, .045) 0 1px, rgba(255, 255, 255, .05) 1px 2px, transparent 2px 5px), repeating-linear-gradient(90deg, transparent 0 9cqw, rgba(0, 0, 0, .04) 9cqw calc(9cqw + 1px)); }
.env[data-tex="felt"] { --tex: 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='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .3 0 0 0 0 .22 0 0 0 0 .15 0 0 0 .16 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E"); }
.env[data-tex="pearl"] { --tex: linear-gradient(115deg, transparent 25%, rgba(255, 255, 255, .3) 42%, rgba(255, 240, 250, .12) 50%, transparent 65%); }
.env > .stk-layer { z-index: 6; transition: opacity .6s; }

.env-seal { position: absolute; left: 50%; top: 57%; width: 19cqw; aspect-ratio: 1; transform: translate(-50%, -50%); z-index: 8; filter: drop-shadow(0 .7cqw .9cqw rgba(0, 0, 0, .38)); transition: transform .3s; }
.env-seal .half { position: absolute; inset: 0; }
.env-seal .half svg { width: 100%; height: 100%; display: block; }
.env-seal .half.l { clip-path: polygon(0 0, 53% 0, 46% 28%, 55% 52%, 45% 74%, 52% 100%, 0 100%); }
.env-seal .half.r { clip-path: polygon(53% 0, 100% 0, 100% 100%, 52% 100%, 45% 74%, 55% 52%, 46% 28%); }
.env-seal.is-sticker { width: 15cqw; }
.env-seal.is-bow { width: 26cqw; aspect-ratio: 4 / 3; }
.env-seal.is-bow svg { width: 100%; display: block; }
.env:not(.is-breaking):hover .env-seal { transform: translate(-50%, -50%) scale(1.06); }
.env-ribbon { position: absolute; inset: 0; z-index: 7; pointer-events: none; overflow: hidden; border-radius: 1cqw; }
.env-ribbon .band { position: absolute; left: 50%; top: 0; bottom: 0; width: 6.5cqw; transform: translateX(-50%); background: linear-gradient(90deg, var(--rb-lo), var(--rb-hi) 30%, var(--rb) 62%, var(--rb-lo)); box-shadow: 0 0 1cqw rgba(0, 0, 0, .25); }
.env-hint { position: absolute; left: 50%; bottom: -14cqw; transform: translateX(-50%); font-size: 13px; white-space: nowrap; color: var(--ink-2); display: flex; gap: 8px; align-items: center; transition: opacity .4s; }
.env.is-breaking .env-hint { opacity: 0; }

/* Spam trap on guest forms: off-screen for people, still filled in by bots */
.sb-trap { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
