/* the site's own fonts (free OFL licence, see assets/fonts/OFL-LICENSE.txt) — served from joyinvitation.com, no Google round-trip */
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/cormorant-garamond-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 400; font-display: swap; src: url(../fonts/cormorant-garamond-latin-400-italic.woff2) format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/cormorant-garamond-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 500; font-display: swap; src: url(../fonts/cormorant-garamond-latin-500-italic.woff2) format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/cormorant-garamond-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Great Vibes"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/great-vibes-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Jost"; font-style: normal; font-weight: 300; font-display: swap; src: url(../fonts/jost-latin-300-normal.woff2) format("woff2"); }
@font-face { font-family: "Jost"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/jost-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Jost"; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/jost-latin-500-normal.woff2) format("woff2"); }
/* stand-in fonts sized like the real ones, so text does not jump when the web fonts arrive */
@font-face { font-family: "Cormorant Fallback"; src: local("Times New Roman"), local("Times"); size-adjust: 96.2%; ascent-override: 95.6%; descent-override: 30.1%; line-gap-override: 0%; }
@font-face { font-family: "Cormorant Fallback"; font-style: italic; src: local("Times New Roman Italic"), local("Times-Italic"); size-adjust: 89.3%; ascent-override: 103%; descent-override: 32.5%; line-gap-override: 0%; }
@font-face { font-family: "Jost Fallback"; src: local("Arial"); size-adjust: 95.7%; ascent-override: 111.8%; descent-override: 39.7%; line-gap-override: 0%; }
/* ==========================================================
   Wedding Studio — shared styles
   ========================================================== */
:root {
  --bg: #fefbf5;
  --bg-2: #fbf4e8;
  --bg-3: #f5ebd9;
  --bg-4: #ecdcbc;
  --emerald: #0f5a46;
  --emerald-deep: #08392c;
  --emerald-light: #2f8f6f;
  --gold-soft: #d8b46a;
  --accent: #9a6b1e;
  --accent-2: #b8862f;
  --gold: #c9973d;
  --gold-deep: #8a5d17;
  --heading: #2a1e12;
  --ink: #2a1e12;
  --text: #3d2f22;
  --muted: #7a6a58;
  --line: rgba(154, 107, 30, .22);
  --card: rgba(255, 255, 255, .62);
  --shadow: 0 30px 70px -30px rgba(110, 80, 30, .38);
  --serif: "Cormorant Garamond", "Cormorant Fallback", "Times New Roman", serif;
  --script: "Great Vibes", cursive;
  --sans: "Jost", "Jost Fallback", "Segoe UI", system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1240px;
  --ease: cubic-bezier(.22, .8, .22, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--ink); }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.eyebrow {
  font-size: .74rem; letter-spacing: .32em; text-transform: uppercase;
  color: var(--accent); display: inline-flex; align-items: center; gap: .8em;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .7; }
.display {
  font-family: var(--serif); font-weight: 500; line-height: .95;
  letter-spacing: -.01em; color: var(--heading);
}
.display em { font-style: italic; font-weight: 400; color: var(--accent-2); }
.script { font-family: var(--script); font-weight: 400; color: var(--accent); }
.lead { color: var(--muted); font-size: clamp(1rem, 1.2vw, 1.12rem); max-width: 46ch; }
.section { padding: clamp(80px, 12vw, 160px) 0; position: relative; }
.section-head { text-align: center; max-width: 760px; margin: 0 auto clamp(40px, 6vw, 72px); }
.section-head h2 { font-size: clamp(2.4rem, 5.4vw, 4.4rem); margin: .3em 0 .25em; }
.section-head .lead { margin: 0 auto; }
.gold-text {
  background: linear-gradient(100deg, #b8862f 0%, #e3bd6a 30%, #fff1c9 50%, #a8761f 70%, #c9973d 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 6s linear infinite;
}
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  padding: .95em 1.7em; border-radius: 999px; font-size: .9rem; letter-spacing: .06em;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), background .3s;
  white-space: nowrap; position: relative; overflow: hidden;
}
.btn-primary {
  background: linear-gradient(135deg, #f6dfa6, #d4a548 50%, #a8761f);
  color: var(--ink); font-weight: 500;
  box-shadow: 0 10px 30px -10px rgba(217, 164, 111, .7);
}
.btn-primary::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.55) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .9s var(--ease);
}
.btn-primary:hover::after { transform: translateX(120%); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -12px rgba(217, 164, 111, .8); }
.btn-ghost { border: 1px solid var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); background: rgba(201,151,61, .08); }
.btn svg { width: 1.1em; height: 1.1em; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .4s, backdrop-filter .4s, transform .5s var(--ease);
}
.site-header.scrolled { background: rgba(251, 245, 234, .86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.site-header.hide { transform: translateY(-100%); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.logo { display: flex; align-items: center; gap: .55em; font-family: var(--serif); font-size: 1.55rem; font-weight: 600; color: var(--heading); letter-spacing: .01em; }
.logo-mark { width: 30px; height: 30px; flex: none; }
.nav-links { display: flex; gap: clamp(16px, 2.4vw, 34px); font-size: .84rem; letter-spacing: .08em; }
.nav-links a { position: relative; color: var(--muted); transition: color .3s; padding: 4px 0; }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: -2px; height: 1px; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease); }
.nav-links a:hover, .nav-links a.active { color: var(--heading); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); transform-origin: left; }
.nav-cta { padding: .7em 1.3em; font-size: .8rem; }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); position: relative; }
.menu-btn span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--text); transition: transform .4s var(--ease), opacity .3s; }
.menu-btn span:nth-child(1) { top: 17px; } .menu-btn span:nth-child(2) { top: 25px; }
.menu-open .menu-btn span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.menu-open .menu-btn span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }
.mobile-menu {
  position: fixed; inset: 0; z-index: 45; background: var(--bg);
  display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 90px var(--gutter) 40px;
  clip-path: circle(0 at calc(100% - 40px) 36px); transition: clip-path .8s var(--ease);
}
.menu-open .mobile-menu { clip-path: circle(150% at calc(100% - 40px) 36px); }
.mobile-menu a { font-family: var(--serif); font-size: 2.4rem; color: var(--heading); border-bottom: 1px solid var(--line); padding: 8px 0; }
.mobile-menu .btn { margin-top: 24px; font-family: var(--sans); font-size: 1rem; border: 0; }

@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
  .menu-btn { display: block; }
}

/* ---------- Ambient petals ---------- */
#petals { position: fixed; inset: 0; pointer-events: none; z-index: 1; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .12s; }
.reveal[data-delay="2"] { transition-delay: .24s; }
.reveal[data-delay="3"] { transition-delay: .36s; }

/* ==========================================================
   EDITION SWITCH (Traditional | Modern)
   ========================================================== */
.ed-switch { position: relative; display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 4px; border-radius: 999px; background: rgba(255,255,255,.7); border: 1px solid var(--line); box-shadow: inset 0 1px 3px rgba(110,80,30,.12); flex: none; }
.ed-switch button { position: relative; z-index: 1; padding: .5em 1.1em; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); border-radius: 999px; transition: color .4s; white-space: nowrap; }
.ed-switch button[aria-pressed="true"] { color: #fdf6e6; }
.ed-switch i { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 999px; background: linear-gradient(135deg, var(--emerald-light), var(--emerald)); box-shadow: 0 4px 12px -4px rgba(15,90,70,.6), inset 0 0 0 1px rgba(233,196,106,.6); transition: transform .5s var(--ease); }
[data-edition="modern"] .ed-switch i { transform: translateX(100%); }
.mobile-menu .ed-switch { margin: 0 auto 18px; }
@media (max-width: 900px) { .nav .ed-switch button { padding: .45em .8em; font-size: .64rem; letter-spacing: .08em; } }

/* ==========================================================
   ROTATING HEADLINES — words rise in, one line at a time
   ========================================================== */
.rot { display: grid; }
.rot-line { grid-area: 1 / 1; pointer-events: none; }
.rot-line.on { pointer-events: auto; }
.rot-line .w { display: inline-block; padding-bottom: .08em; }
.rot-line .w > span { display: inline-block; opacity: 0; transform: translateY(.5em); filter: blur(8px);
  transition: opacity .8s var(--ease), transform .9s var(--ease), filter .8s var(--ease); transition-delay: calc(.4s + var(--i) * 75ms); }
.rot-line.on .w > span { opacity: 1; transform: none; filter: none; }
.rot-line.off .w > span { opacity: 0; transform: translateY(-.35em); filter: blur(6px); transition-duration: .45s; transition-delay: calc(var(--i) * 30ms); }

/* ==========================================================
   HOME — the pop-up storybook (sticky stage)
   ========================================================== */
.story { position: relative; height: 900vh; }
.stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; transition: opacity .38s, filter .38s; }
.stage.switching { opacity: 0; filter: blur(6px); }
.stage-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(55% 65% at 70% 55%, rgba(240,214,150, .32), transparent 70%),
    radial-gradient(45% 55% at 8% 95%, rgba(15,90,70, .08), transparent 70%),
    radial-gradient(40% 50% at 95% 5%, rgba(15,90,70, .05), transparent 70%),
    linear-gradient(180deg, #fffdf8, #faf3e6);
}
.stage-bg::after { /* fine grain */
  content: ""; position: absolute; inset: 0; opacity: .06; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/></filter><rect width='160' height='160' filter='url(%23n)'/></svg>");
}

/* the book */
.book-stage { position: absolute; inset: 0; perspective: 2400px; perspective-origin: 50% 35%; z-index: 2; }
.book { position: absolute; left: 0; top: 0; width: 1000px; height: 640px; transform-style: preserve-3d; will-change: transform; }
.book-board { position: absolute; left: -14px; right: -14px; top: -14px; bottom: -14px; border-radius: 10px; transform: translateZ(-8px);
  background: linear-gradient(160deg, #1d6e55, #0a3d30); box-shadow: 0 40px 70px -20px rgba(60,40,10,.45), inset 0 0 0 3px rgba(233,196,106,.5); opacity: 0; transition: opacity .3s; }
.book.is-open .book-board { opacity: 1; }
.page { position: absolute; top: 0; width: 500px; height: 640px; background: linear-gradient(90deg, #fbf3e3, #fffdf7 40%); }
.page-left { left: 0; background: linear-gradient(270deg, #e9dcc0 0%, #fbf3e3 8%, #fffdf7 50%); box-shadow: inset 0 0 0 1px rgba(201,151,61,.35); opacity: 0; transition: opacity .3s; }
.book.is-open .page-left { opacity: 1; }
.page-right { left: 500px; background: linear-gradient(90deg, #e9dcc0 0%, #fbf3e3 8%, #fffdf7 50%);
  box-shadow: inset 0 0 0 1px rgba(201,151,61,.35), 3px 3px 0 #efe3c9, 6px 6px 0 #e7d6b4, 9px 9px 0 #ddc79c; }
.page::after { content: ""; position: absolute; inset: 22px; border: 1.5px solid rgba(201,151,61,.45); border-radius: 4px; }
.spread { position: absolute; inset: 0; transform-style: preserve-3d; }
.scene { position: absolute; inset: 0; transform-style: preserve-3d; }
.pl { position: absolute; transform-origin: 50% 100%; will-change: transform, opacity; filter: drop-shadow(0 6px 8px rgba(90,60,15,.22)); }
.pl svg { display: block; width: 100%; height: 100%; overflow: visible; }
.pl.floor { filter: none; }
.pv { background: radial-gradient(circle at 50% 40%, #fffaf0, #efdfc2); filter: none; }
.pv video { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .4s; }
.pv.clickable { cursor: pointer; }

.leaf, .cover { position: absolute; top: 0; left: 500px; width: 500px; height: 640px; transform-style: preserve-3d; transform-origin: 0 50%; }
.face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.face.back { transform: rotateY(180deg); }
.leaf .face { background: linear-gradient(90deg, #e9dcc0 0%, #fbf3e3 8%, #fffdf7 50%); box-shadow: inset 0 0 0 1px rgba(201,151,61,.35); }
.leaf .face::after { content: ""; position: absolute; inset: 22px; border: 1.5px solid rgba(201,151,61,.45); border-radius: 4px; }
.leaf .face.back { background: linear-gradient(270deg, #e9dcc0 0%, #fbf3e3 8%, #fffdf7 50%); }
.cover { top: -10px; height: 660px; width: 512px; }
.cover .face { border-radius: 4px 12px 12px 4px; }
.cover .face.back { background: linear-gradient(270deg, #e3d4b4, #fbf3e3 10%, #fffdf7); box-shadow: inset 0 0 0 8px #0f5a46, inset 0 0 0 10px #d4a548; border-radius: 12px 4px 4px 12px; }
.cover-front {
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,.025) 0 2px, transparent 2px 5px),
    radial-gradient(80% 60% at 30% 20%, rgba(95,174,142,.45), transparent 60%),
    linear-gradient(160deg, #1d7259, #0f5a46 45%, #082f24);
  box-shadow: inset 6px 0 14px rgba(0,0,0,.35), inset -2px 0 0 rgba(233,196,106,.4), 0 30px 60px -20px rgba(40,25,5,.55);
}
.cover-frame { position: absolute; inset: 26px; border: 3px solid #d4a548; border-radius: 6px; box-shadow: inset 0 0 0 6px rgba(15,90,70,.0), inset 0 0 0 8px #e9c46a40;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 6px; }
.cover-frame::before { content: ""; position: absolute; inset: 12px; border: 1px solid rgba(233,196,106,.6); border-radius: 4px; }
.cover-orn { width: 210px; height: 210px; margin-bottom: 4px; filter: drop-shadow(0 2px 3px rgba(0,0,0,.3)); }
.cover-title { font-family: var(--script); font-size: 92px; line-height: 1; background: linear-gradient(100deg, #b8862f, #f6dc8c 35%, #fffaf0 50%, #e2b04a 65%, #a8761f); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 2px 2px rgba(0,0,0,.35)); }
.cover-sub { font-family: var(--serif); font-size: 22px; letter-spacing: .22em; text-transform: uppercase; color: #f2d48a; }
.cover-small { font-size: 15px; letter-spacing: .4em; text-transform: uppercase; color: rgba(243,234,214,.7); margin-top: 6px; }

/* words around the book */
.copy { position: absolute; z-index: 5; will-change: transform, opacity; }
.hero-copy { left: var(--gutter); top: 50%; transform: translateY(calc(-50% + var(--dy, 0px))); max-width: min(560px, 46vw); }
.hero-copy h1 { font-size: clamp(3.2rem, 7.4vw, 7.6rem); margin-top: 18px; }
.hero-script { font-size: clamp(1.6rem, 3vw, 2.8rem); line-height: 1.2; margin-top: 4px; }
.hero-copy .lead { margin: 18px 0 28px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.trust { display: flex; align-items: center; gap: 14px; margin-top: 34px; font-size: .82rem; color: var(--muted); }
.avatars { display: flex; }
.avatars span { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--bg-2); margin-left: -10px; display: grid; place-items: center; font-family: var(--serif); font-size: .9rem; color: var(--ink); background: linear-gradient(135deg, #f6dfa6, #c49335); }
.avatars span:first-child { margin-left: 0; }
.trust b { color: var(--heading); font-weight: 500; }
.stars { color: #c4912c; letter-spacing: .1em; }

.scroll-cue { position: absolute; left: var(--gutter); bottom: 34px; display: flex; align-items: center; gap: 14px; font-size: .68rem; letter-spacing: .28em; text-transform: uppercase; color: var(--muted); z-index: 5; }
.scroll-cue i { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; }
.scroll-cue i::after { content: ""; width: 1px; height: 14px; background: var(--accent); animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateY(-6px); opacity: 0; } 40% { opacity: 1; } 100% { transform: translateY(8px); opacity: 0; } }

.scene-copy { left: 50%; top: clamp(78px, 11vh, 120px); width: min(900px, calc(100% - 2 * var(--gutter))); transform: translate(-50%, var(--dy, 0px)); text-align: center; opacity: 0; }
.scene-copy .eyebrow { justify-content: center; }
.scene-copy h2 { font-size: clamp(2.2rem, 4.6vw, 4.4rem); margin: 10px 0 8px; }
.scene-copy .lead { margin: 0 auto; max-width: 60ch; font-size: clamp(.92rem, 1.1vw, 1.05rem); }

.trio-labels { position: absolute; inset: 0; pointer-events: none; z-index: 6; opacity: 0; }
.trio-label { position: absolute; text-align: center; transform: translateX(-50%); width: 260px; }
.trio-label h3 { font-family: var(--serif); font-size: clamp(1.3rem, 2vw, 1.9rem); font-weight: 500; color: var(--heading); line-height: 1.1; }
.trio-label p { font-size: .78rem; color: var(--muted); }
.trio-label .stars { font-size: .8rem; }
.trio-label a { display: inline-block; margin-top: 4px; font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--emerald); border-bottom: 1px solid currentColor; }

.progress-rail { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); display: grid; gap: 10px; z-index: 6; }
.progress-rail i { width: 6px; height: 6px; border-radius: 50%; background: var(--line); transition: background .3s, transform .3s; }
.progress-rail i.on { background: var(--emerald); transform: scale(1.5); }

@media (max-width: 760px) {
  .hero-copy { top: auto; bottom: 6vh; transform: translateY(var(--dy, 0px)); max-width: none; right: var(--gutter); text-align: center; }
  .hero-copy h1 { font-size: clamp(2.5rem, 11vw, 3.6rem); margin-top: 0; }
  .hero-copy .eyebrow { display: none; }
  .hero-script { font-size: 1.5rem; }
  .hero-copy .lead { margin: 8px auto 14px; font-size: .88rem; }
  .hero-actions { justify-content: center; }
  .hero-copy .hero-actions { flex-wrap: nowrap; gap: 8px; }
  .hero-copy .btn { padding: .85em 1.15em; font-size: .82rem; }
  .trust { justify-content: center; margin-top: 14px; }
  .scroll-cue { display: none; }
  .scene-copy h2 { font-size: clamp(1.8rem, 8vw, 2.5rem); }
  .scene-copy .lead { font-size: .85rem; }
  .trio-label { width: 31vw; }
  .trio-label h3 { font-size: 1rem; }
  .trio-label p { display: none; }
  .trio-label a { font-size: .58rem; letter-spacing: .08em; }
  .progress-rail { right: 8px; }
}
@media (max-width: 760px) and (max-height: 740px) {
  .hero-copy .trust, .hero-script { display: none; }
  .hero-copy { bottom: 4vh; }
}

/* ---------- Stats band ---------- */
.stats { --heading: #fdf6e6; --text: #f3ead6; --muted: rgba(243,234,214,.72); --accent: #e9c46a; --accent-2: #f2d48a; --line: rgba(233,196,106,.28); --card: rgba(255,255,255,.06); border-top: 2px solid #d4a548; border-bottom: 2px solid #d4a548; background: radial-gradient(60% 120% at 50% 0%, rgba(47,143,111,.45), transparent 70%), linear-gradient(180deg, var(--emerald), var(--emerald-deep)); }
.stats .num span { background: linear-gradient(100deg, #f6dc8c, #fffaf0 45%, #e2b04a 70%, #f6dc8c); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: clamp(28px, 4vw, 54px) 12px; text-align: center; position: relative; }
.stat + .stat::before { content: ""; position: absolute; left: 0; top: 25%; bottom: 25%; width: 1px; background: var(--line); }
.stat .num { font-family: var(--serif); font-size: clamp(2.4rem, 5vw, 4.2rem); line-height: 1; color: var(--heading); }
.stat .num small { font-size: .5em; color: var(--accent); margin-left: 2px; }
.stat p { color: var(--muted); font-size: .82rem; margin-top: 8px; letter-spacing: .04em; }
@media (max-width: 700px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3)::before { display: none; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* ---------- Name preview ---------- */
.try-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 6vw, 90px); align-items: center; }
.try-form { display: grid; gap: 16px; margin-top: 28px; }
.field { position: relative; }
.field input, .field textarea, .field select {
  width: 100%; padding: 18px 18px 10px; border-radius: 14px; border: 1px solid var(--line);
  background: rgba(255,255,255,.7); outline: none; transition: border-color .3s, background .3s; font-size: 1rem;
}
.field textarea { min-height: 130px; resize: vertical; padding-top: 24px; }
.field select { padding: 14px 18px; appearance: none; }
.field label { position: absolute; left: 18px; top: 15px; color: var(--muted); font-size: .95rem; pointer-events: none; transition: all .25s var(--ease); }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--accent); background: #fff; }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label, .field input[type="date"] + label { top: 5px; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.phone-wrap { display: grid; place-items: center; perspective: 1200px; }
.phone {
  width: min(320px, 78vw); height: calc((min(320px, 78vw) - 24px) * 16 / 9 + 24px); border-radius: 44px; padding: 12px;   /* the screen is exactly 9:16, like the invitation */
  background: linear-gradient(145deg, #f0d896, #b88a3a 55%, #e6c47c); box-shadow: var(--shadow), inset 0 0 0 1px rgba(255,255,255,.08);
  transform: rotateY(-12deg) rotateX(4deg); transition: transform 1s var(--ease); position: relative;
}
.phone:hover { transform: rotateY(0) rotateX(0); }
.phone-screen { position: relative; width: 100%; height: 100%; border-radius: 34px; overflow: hidden; background: #000; }
.phone-screen video { width: 100%; height: 100%; object-fit: cover; }
.phone-screen iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; pointer-events: none; background: #f6efe4; }
.try-veil { position: absolute; inset: 0; z-index: 2; background: #f6efe4; opacity: 0; transition: opacity .3s ease; pointer-events: none; }
.try-veil.on { opacity: 1; }
.phone-notch { position: absolute; top: 20px; left: 50%; transform: translateX(-50%); width: 90px; height: 24px; border-radius: 20px; background: #000; z-index: 3; }
.overlay-names { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 20px; color: #6b3a1f; z-index: 2; background: radial-gradient(ellipse 62% 30% at 50% 50%, rgba(255,250,242,.95), rgba(255,250,242,.75) 55%, transparent 100%); }
.overlay-names .on-names { font-family: var(--script); font-size: clamp(2rem, 9vw, 2.9rem); line-height: 1.1; color: #8a5326; text-shadow: 0 1px 0 rgba(255,255,255,.6); }
.overlay-names .on-amp { font-family: var(--serif); font-style: italic; font-size: 1.2rem; color: #a8683f; }
.overlay-names .on-date { margin-top: 10px; font-family: var(--serif); letter-spacing: .3em; text-transform: uppercase; font-size: .78rem; color: #7a4a2a; }
.overlay-names .on-small { font-size: .62rem; letter-spacing: .32em; text-transform: uppercase; color: #a8683f; margin-bottom: 6px; }
.overlay-names > * { opacity: 0; transform: translateY(10px); animation: nameIn 1s var(--ease) forwards; }
@keyframes nameIn { to { opacity: 1; transform: none; } }
@media (max-width: 860px) { .try-grid { grid-template-columns: 1fr; } .phone { transform: none; } }

/* ---------- Library: framed designs float above an open book ---------- */
.library { overflow: hidden; }
[data-edition="traditional"] .library { background: url("../film/bg.webp") center / cover no-repeat; }
.carousel { position: relative; height: clamp(560px, 50vw, 680px); max-width: 1500px; margin: 0 auto; perspective: 1600px; }
.carousel-cards { position: absolute; inset: 0; transform-style: preserve-3d; }
.ccard { position: absolute; left: 0; top: 0; aspect-ratio: 9 / 16; transform-origin: 50% 100%; will-change: transform, opacity; cursor: pointer; filter: drop-shadow(0 18px 22px rgba(90,60,15,.3)); transition: filter .4s; }
.ccard.centre { filter: drop-shadow(0 26px 30px rgba(90,60,15,.4)) drop-shadow(0 0 22px rgba(246,220,140,.55)); }
.ccard-video { position: absolute; left: 12%; right: 12%; top: 6%; bottom: 6%; overflow: hidden; background: #efe2c6; border-radius: 4px; }
.ccard-video video, .ccard-video img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ccard-frame { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.carousel-book { position: absolute; left: 50%; bottom: 0; width: min(920px, 90%); transform: translateX(-50%); z-index: 200; pointer-events: none; }
.book-mod { width: min(560px, 90%); display: none; filter: drop-shadow(0 24px 30px rgba(90,60,15,.3)); }
.carousel-glow { position: absolute; left: 50%; bottom: 8%; width: 70%; height: 60%; transform: translateX(-50%); background: radial-gradient(50% 60% at 50% 100%, rgba(255,240,200,.75), transparent 70%); pointer-events: none; }
.carousel-caption { position: absolute; left: 50%; bottom: 3%; transform: translate(-50%, 8px); z-index: 210; text-align: center; padding: 8px 18px 10px; border-radius: 16px; background: rgba(255,250,240,.9); border: 1px solid rgba(201,151,61,.35); box-shadow: 0 10px 24px -14px rgba(90,60,15,.5); opacity: 0; transition: opacity .4s, transform .4s; white-space: nowrap; }
.carousel-caption.show { opacity: 1; transform: translate(-50%, 0); }
.carousel-caption b { display: block; font-family: var(--serif); font-size: 1.35rem; font-weight: 500; color: var(--heading); }
.carousel-caption span { font-size: .78rem; color: var(--muted); }
.car-btn { position: absolute; top: 42%; z-index: 220; width: 48px; height: 48px; border-radius: 50%; background: rgba(255,250,240,.9); border: 1px solid rgba(201,151,61,.45); font-size: 1.8rem; line-height: 1; color: var(--accent); box-shadow: 0 8px 20px -10px rgba(90,60,15,.5); transition: transform .3s; }
.car-btn:hover { transform: scale(1.08); }
.car-prev { left: max(10px, 3%); } .car-next { right: max(10px, 3%); }
@media (max-width: 700px) { .carousel { height: 470px; } .book-trad { width: 115%; } .car-btn { width: 40px; height: 40px; top: 38%; } .carousel-caption b { font-size: 1.1rem; } }
.vcard { position: relative; flex: none; width: clamp(200px, 20vw, 260px); border-radius: 22px; overflow: hidden; background: var(--bg-3); box-shadow: var(--shadow); transition: transform .6s var(--ease), box-shadow .6s; cursor: pointer; isolation: isolate; }
.vcard:hover { transform: translateY(-10px) scale(1.02); box-shadow: 0 40px 80px -30px rgba(110,75,20,.5), 0 0 0 1px rgba(201,151,61,.4); }
.vcard-media { aspect-ratio: 9 / 15; position: relative; overflow: hidden; }
.vcard-media video { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.vcard:hover .vcard-media video { transform: scale(1.06); }
.vcard-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(35,22,10,.88)); }
.vcard .badge { position: absolute; top: 14px; left: 14px; z-index: 2; font-size: .64rem; letter-spacing: .14em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; background: rgba(35,22,10,.5); backdrop-filter: blur(6px); border: 1px solid rgba(246,223,166,.55); color: #f6dfa6; }
.vcard-info { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px; z-index: 2; }
.vcard-info h3 { font-family: var(--serif); font-weight: 500; font-size: 1.45rem; color: #fffaf0; line-height: 1.1; }
.vcard-meta { display: flex; justify-content: space-between; align-items: center; font-size: .76rem; color: rgba(255,245,225,.82); margin-top: 6px; gap: 8px; }
.vcard-meta .price { white-space: nowrap; color: #f6dfa6; font-weight: 500; font-size: .9rem; }
.vcard .play { position: absolute; top: 14px; right: 14px; z-index: 2; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.14); backdrop-filter: blur(6px); }
.vcard .play svg { width: 12px; height: 12px; fill: #fff; margin-left: 2px; }
.library-foot { text-align: center; margin-top: 30px; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.step { padding: 32px 26px; border-radius: 24px; background: var(--card); border: 1px solid var(--line); position: relative; overflow: hidden; transition: transform .5s var(--ease), border-color .4s; }
.step:hover { transform: translateY(-6px); border-color: rgba(201,151,61,.45); }
.step::before { counter-increment: s; content: "0" counter(s); font-family: var(--serif); font-size: 4.6rem; line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(176,127,44,.35); position: absolute; right: 18px; top: 10px; }
.step .ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, rgba(15,90,70,.14), rgba(15,90,70,.04)); color: var(--emerald); margin-bottom: 22px; }
.step .ico svg { width: 22px; height: 22px; }
.step h3 { font-family: var(--serif); font-size: 1.6rem; font-weight: 500; color: var(--heading); }
.step p { color: var(--muted); font-size: .9rem; margin-top: 6px; }
@media (max-width: 960px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Packages ---------- */
.pricing { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 400px)); justify-content: center; gap: 26px; align-items: stretch; }
.plan-actions { display: grid; gap: 10px; justify-items: center; }
.plan-mail { font-size: .82rem; color: var(--muted); border-bottom: 1px solid var(--line); }
.plan-mail:hover { color: var(--emerald); }
.plan { position: relative; padding: 38px 32px 34px; border-radius: 28px; background: var(--card); border: 1px solid var(--line); display: flex; flex-direction: column; transition: transform .5s var(--ease), box-shadow .5s; }
.plan:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.plan.featured { background: linear-gradient(170deg, rgba(201,151,61,.16), rgba(246,230,195,.7) 60%, rgba(255,250,240,.7)); border-color: rgba(201,151,61,.55); transform: translateY(-14px); }
.plan.featured:hover { transform: translateY(-20px); }
.plan .flag { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); padding: 5px 16px; border-radius: 999px; font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; background: linear-gradient(135deg, var(--emerald-light), var(--emerald)); color: #f6dc8c; border: 1px solid #d4a548; white-space: nowrap; }
.plan h3 { font-family: var(--serif); font-size: 2rem; font-weight: 500; color: var(--heading); }
.plan .tag { color: var(--muted); font-size: .88rem; }
.plan .cost { margin: 22px 0 6px; display: flex; align-items: baseline; gap: 10px; }
.plan .cost b { font-family: var(--serif); font-size: 3.2rem; font-weight: 500; color: var(--heading); line-height: 1; }
.plan .cost s { color: var(--muted); font-size: .95rem; }
.plan .save { font-size: .74rem; color: var(--accent); letter-spacing: .08em; }
.plan ul { list-style: none; margin: 24px 0 30px; display: grid; gap: 11px; flex: 1; }
.plan li { display: flex; gap: 10px; font-size: .9rem; }
.plan li svg { flex: none; width: 18px; height: 18px; color: var(--emerald); margin-top: 3px; }
.plan .btn { width: 100%; }
@media (max-width: 700px) { .plan.featured, .plan.featured:hover { transform: none; } }

/* ---------- Reviews ---------- */
.rcard { padding: 28px; border-radius: 24px; background: var(--card); border: 1px solid var(--line); break-inside: avoid; margin-bottom: 20px; }
.rcard .stars { font-size: .9rem; }
.rcard blockquote { font-family: var(--serif); font-size: 1.3rem; line-height: 1.4; color: var(--heading); margin: 12px 0 18px; }
.rcard .who { display: flex; align-items: center; gap: 12px; }
.rcard .who span { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-family: var(--serif); font-size: 1.1rem; color: var(--ink); background: linear-gradient(135deg, #f6dfa6, #c49335); flex: none; }
.rcard .who b { display: block; font-weight: 500; font-size: .92rem; }
.rcard .who small { color: var(--muted); font-size: .76rem; }
.review-row { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 14px; scrollbar-width: thin; scrollbar-color: var(--gold-soft) transparent; }
.review-row .rcard { flex: none; width: min(380px, 84vw); scroll-snap-align: start; margin: 0; }

/* ---------- CTA ---------- */
.cta-band { position: relative; text-align: center; padding: clamp(70px, 10vw, 130px) var(--gutter); border-radius: 36px; overflow: hidden; --heading: #fdf6e6; --text: #f3ead6; --muted: rgba(243,234,214,.72); --accent: #e9c46a; --accent-2: #f2d48a; --line: rgba(233,196,106,.28); --card: rgba(255,255,255,.06); background: radial-gradient(70% 90% at 50% 0%, rgba(233,196,106,.22), transparent 70%), linear-gradient(160deg, var(--emerald), var(--emerald-deep)); border: 2px solid #d4a548; box-shadow: var(--shadow); }
.cta-band h2 { font-size: clamp(2.4rem, 6vw, 5rem); margin: 14px 0; }
.cta-band .lead { margin: 0 auto 30px; }
.cta-band .hero-actions { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { --heading: #fdf6e6; --text: #f3ead6; --muted: rgba(243,234,214,.72); --accent: #e9c46a; --accent-2: #f2d48a; --line: rgba(233,196,106,.28); --card: rgba(255,255,255,.06); border-top: 3px solid #d4a548; padding: 80px 0 30px; color: var(--text); background: radial-gradient(60% 80% at 50% 0%, rgba(47,143,111,.35), transparent 70%), linear-gradient(180deg, var(--emerald), var(--emerald-deep)); position: relative; z-index: 2; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 40px; }
.footer-grid h4 { font-size: .74rem; letter-spacing: .26em; text-transform: uppercase; color: var(--accent); margin-bottom: 18px; font-weight: 500; }
.footer-grid ul { list-style: none; display: grid; gap: 10px; font-size: .92rem; color: var(--muted); }
.footer-grid ul a:hover { color: var(--heading); }
.footer-about p { color: var(--muted); font-size: .92rem; margin: 16px 0 22px; max-width: 34ch; }
.socials { display: flex; gap: 10px; }
.socials a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; transition: border-color .3s, background .3s; }
.socials a:hover { border-color: var(--accent); background: rgba(201,151,61,.1); }
.socials svg { width: 17px; height: 17px; }
.footer-big { font-family: var(--serif); font-size: clamp(2.2rem, 8.2vw, 8.6rem); line-height: .9; text-align: center; margin: 60px 0 30px; color: transparent; -webkit-text-stroke: 1px rgba(233,196,106,.3); white-space: nowrap; overflow: hidden; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: .8rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 24px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-about { grid-column: 1 / -1; } }

/* ---------- Floating WhatsApp ---------- */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: #25d366; color: #fff; box-shadow: 0 12px 30px -8px rgba(37,211,102,.6); transition: transform .4s var(--ease); }
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 28px; height: 28px; }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25d366; animation: ping 2.4s var(--ease) infinite; }
@keyframes ping { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.7); opacity: 0; } }

/* ==========================================================
   INNER PAGES
   ========================================================== */
.page-hero { padding: 150px 0 50px; text-align: center; position: relative; }
.page-hero h1 { font-size: clamp(3rem, 8vw, 6.4rem); margin: 14px 0 12px; }
.page-hero .lead { margin: 0 auto; }
.page-hero .eyebrow { justify-content: center; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(50% 70% at 50% 0%, rgba(226,196,130,.6), transparent 70%); }

.filters { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 18px; }
.chip { padding: .6em 1.2em; border-radius: 999px; border: 1px solid var(--line); font-size: .84rem; color: var(--muted); transition: all .3s; }
.chip:hover { color: var(--heading); border-color: rgba(201,151,61,.5); }
.chip.on { background: linear-gradient(135deg, #f6dfa6, #d4a548); color: var(--ink); border-color: transparent; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin: 26px 0 30px; flex-wrap: wrap; color: var(--muted); font-size: .88rem; }
.toolbar select { padding: .6em 1em; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-2); }
.grid-designs { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 24px; }
.grid-designs .vcard { width: auto; }
.grid-designs .vcard.hidden { display: none; }

/* modal */
.modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 20px; background: rgba(45,32,14,.55); backdrop-filter: blur(8px); opacity: 0; pointer-events: none; transition: opacity .4s; }
.modal.open { opacity: 1; pointer-events: auto; }
.modal-box { width: min(980px, 100%); max-height: calc(100vh - 40px); overflow: auto; display: grid; grid-template-columns: minmax(0, .85fr) 1fr; border-radius: 28px; background: var(--bg-2); border: 1px solid var(--line); box-shadow: var(--shadow); transform: translateY(30px) scale(.97); transition: transform .5s var(--ease); }
.modal.open .modal-box { transform: none; }
.modal-media { background: #000; position: relative; min-height: 420px; }
.modal-media video { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.modal-body { padding: 40px 36px; display: flex; flex-direction: column; gap: 14px; }
.modal-body h2 { font-family: var(--serif); font-size: 2.8rem; font-weight: 500; line-height: 1; color: var(--heading); }
.modal-body .price { font-family: var(--serif); font-size: 2rem; color: var(--accent-2); }
.modal-close { position: absolute; top: 14px; right: 14px; width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.85); border: 1px solid var(--line); font-size: 1.3rem; z-index: 3; }
.modal-incl { list-style: none; display: grid; gap: 8px; font-size: .9rem; color: var(--muted); }
.modal-incl li::before { content: "✦ "; color: var(--accent); }
.sound-btn { position: absolute; left: 14px; bottom: 14px; z-index: 3; padding: .5em 1em; border-radius: 999px; background: rgba(35,22,10,.6); color: #fff; border: 1px solid rgba(255,255,255,.3); font-size: .76rem; }
@media (max-width: 760px) { .modal-box { grid-template-columns: 1fr; } .modal-media { min-height: 0; aspect-ratio: 9/12; } .modal-body { padding: 26px 22px; } .modal-body h2 { font-size: 2.2rem; } }

/* reviews page */
.rating-summary { display: grid; grid-template-columns: auto 1fr; gap: clamp(30px, 6vw, 80px); align-items: center; padding: 40px; border-radius: 28px; background: var(--card); border: 1px solid var(--line); max-width: 860px; margin: 0 auto 50px; }
.big-score { text-align: center; }
.big-score b { font-family: var(--serif); font-size: 6rem; line-height: 1; color: var(--heading); font-weight: 500; display: block; }
.big-score small { color: var(--muted); }
.bars { display: grid; gap: 10px; }
.bar { display: grid; grid-template-columns: 30px 1fr 50px; gap: 12px; align-items: center; font-size: .82rem; color: var(--muted); }
.bar i { height: 8px; border-radius: 99px; background: rgba(154,107,30,.12); overflow: hidden; display: block; }
.bar i em { display: block; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, #c9973d, #f0d38a); transition: width 1.4s var(--ease); }
.masonry { columns: 3 320px; column-gap: 20px; }
@media (max-width: 600px) { .rating-summary { grid-template-columns: 1fr; padding: 28px; } }

/* faq */
.faq-wrap { max-width: 860px; margin: 0 auto; }
.faq-search { position: relative; margin-bottom: 26px; }
.faq-search input { width: 100%; padding: 18px 22px 18px 54px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,.75); outline: none; font-size: 1rem; }
.faq-search input:focus { border-color: var(--accent); }
.faq-search svg { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--muted); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item.hidden { display: none; }
.faq-q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px 4px; text-align: left; font-family: var(--serif); font-size: clamp(1.25rem, 2.2vw, 1.6rem); color: var(--heading); }
.faq-q i { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); position: relative; transition: transform .5s var(--ease), background .3s; }
.faq-q i::before, .faq-q i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; background: var(--accent); transform: translate(-50%, -50%); }
.faq-q i::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .4s var(--ease); }
.faq-item.open .faq-q i { background: rgba(201,151,61,.12); transform: rotate(180deg); }
.faq-item.open .faq-q i::after { transform: translate(-50%, -50%) rotate(0); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease); }
.faq-a > div { overflow: hidden; }
.faq-a p { color: var(--muted); padding: 0 4px 26px; max-width: 70ch; }
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-cat { margin: 40px 0 6px; font-size: .74rem; letter-spacing: .28em; text-transform: uppercase; color: var(--accent); }
.faq-cat.hidden { display: none; }

/* contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(30px, 6vw, 80px); align-items: start; }
.contact-card { padding: 28px; border-radius: 22px; background: var(--card); border: 1px solid var(--line); display: flex; gap: 16px; align-items: center; margin-bottom: 16px; transition: border-color .3s; }
.contact-card:hover { border-color: rgba(201,151,61,.5); }
.contact-card .ico { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; background: rgba(201,151,61,.12); color: var(--accent-2); flex: none; }
.contact-card .ico svg { width: 22px; height: 22px; }
.contact-card b { display: block; font-weight: 500; color: var(--heading); }
.contact-card small { color: var(--muted); }
.form-card { padding: clamp(26px, 4vw, 44px); border-radius: 28px; background: var(--card); border: 1px solid var(--line); display: grid; gap: 16px; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}

/* designs toolbar + contact brief */
.toolbar-right { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.check { display: inline-flex; gap: 8px; align-items: center; cursor: pointer; }
.check input { accent-color: var(--emerald); width: 16px; height: 16px; }
.form-title { font-family: var(--serif); font-size: 2rem; font-weight: 500; color: var(--heading); }
.form-note { color: var(--muted); font-size: .9rem; margin-top: -8px; }
.form-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.form-actions .btn { flex: 1; }

@media (max-width: 520px) {
  .logo { font-size: 1.15rem; white-space: nowrap; gap: .4em; }
  .logo-mark { width: 24px; height: 24px; }
  .nav { gap: 10px; }
}

/* ==========================================================
   HOME — Traditional scroll film (film.js)
   ========================================================== */
.stage[data-mode="film"] .stage-bg { background: url("../film/bg.webp") center / cover no-repeat, #fbf3e4; }
.stage[data-mode="film"] .stage-bg::after { display: none; }
.film { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.film-box { position: absolute; left: 0; top: 0; width: 1000px; height: 562.5px; transform-origin: 0 0; will-change: transform; pointer-events: auto;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 10%, #000 90%, transparent 100%), linear-gradient(180deg, transparent 0, #000 11%, #000 97%, transparent 100%);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent 0, #000 10%, #000 90%, transparent 100%), linear-gradient(180deg, transparent 0, #000 11%, #000 97%, transparent 100%); mask-composite: intersect; }
.fl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.fl-single, .fl-three { opacity: 0; }
.fw { position: absolute; overflow: hidden; opacity: 0; background: #12606a; border-radius: 14% 14% 2% 2% / 7% 7% 1% 1%; box-shadow: inset 0 0 18px rgba(0,0,0,.35); }
.fw video, .fw img { display: block; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .4s; }
.fw-three { border-radius: 12% 12% 2% 2% / 7% 7% 1% 1%; }
.fw.clickable { cursor: pointer; }
.stage[data-mode="film"] .trio-label { background: rgba(255,250,240,.88); padding: 8px 14px 10px; border-radius: 16px; box-shadow: 0 10px 24px -14px rgba(90,60,15,.5); border: 1px solid rgba(201,151,61,.35); width: auto; min-width: 190px; }
@media (max-width: 760px) { .stage[data-mode="film"] .trio-label { min-width: 0; padding: 4px 7px 5px; border-radius: 10px; } .stage[data-mode="film"] .trio-label h3 { font-size: .8rem; white-space: nowrap; } .stage[data-mode="film"] .trio-label a { font-size: .5rem; margin-top: 1px; white-space: nowrap; } }

/* film: palace text as a tall column on the left; pavilion heading kept short */
.scene-copy.side { left: var(--gutter); top: 50%; transform: translateY(calc(-50% + var(--dy, 0px))); text-align: left; }
.scene-copy.side .eyebrow { justify-content: flex-start; }
.scene-copy.side h2 { font-size: clamp(2.8rem, 4.8vw, 5.6rem); line-height: 1.02; margin: 18px 0 20px; }
.scene-copy.side .lead { margin: 0; max-width: 34ch; font-size: clamp(1rem, 1.2vw, 1.15rem); }
.scene-copy .scene-actions { display: none; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.scene-copy.side .scene-actions { display: flex; }
.scene-copy.compact { top: clamp(70px, 8vh, 96px); }
.scene-copy.compact h2 { font-size: clamp(2rem, 3.4vw, 3.4rem); margin: 6px 0 0; }
.scene-copy.compact .lead { display: none; }

.logo { white-space: nowrap; }

/* ==========================================================
   MODERN EDITION — white paper, deep plum and gold (modern.js)
   ========================================================== */
[data-edition="modern"] {
  --bg: #fcfbfa; --bg-2: #f7f3f2; --bg-3: #efe7e8; --bg-4: #e4d6da;
  --heading: #3f1533; --ink: #3f1533; --text: #3b2b35; --muted: #7b6a73;
  --accent: #7d3a66; --accent-2: #8f4a74;
  --emerald: #5a1f45; --emerald-deep: #3a1230; --emerald-light: #7d3a66;
  --line: rgba(125, 58, 102, .18);
}
[data-edition="modern"] body { background: var(--bg); }
[data-edition="modern"] .btn-primary { background: linear-gradient(135deg, #7d3a66, #5a1f45); color: #fff; box-shadow: 0 10px 26px -12px rgba(90, 31, 69, .7); }
[data-edition="modern"] .display em { color: #9c6a2e; }
[data-edition="modern"] .library { background: linear-gradient(180deg, #fcfbfa, #f6f0f1); }
body.switching main { opacity: .2; }
main { transition: opacity .3s; }

/* hero: the heart <-> rose loop */
.mhero { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; background: #fbfbfb; }
.mhero[hidden], .mstory[hidden], .story[hidden] { display: none; }
.mhero-film { position: absolute; inset: 0; }
.mhero-film img, .mhero-film canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 22% 50%; }
.mf-canvas { opacity: 0; transition: opacity .25s; }
.mhero::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(252,251,250,.96) 0%, rgba(252,251,250,.85) 30%, rgba(252,251,250,0) 55%); }
.mhero-copy { position: absolute; z-index: 2; left: var(--gutter); top: 50%; transform: translateY(-46%); width: min(600px, 46vw); }
.mhero-copy h1 { font-size: clamp(3rem, 6.2vw, 6.4rem); line-height: 1; margin: 16px 0 18px; min-height: 2em; }   /* room for the changing headline, so nothing jumps */
.mhero-copy .lead { margin-bottom: 26px; max-width: 44ch; }
.mhero-note { margin-top: 18px; font-size: .86rem; color: var(--muted); letter-spacing: .02em; }
.trust-list { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 26px; font-size: .84rem; color: var(--muted); }
.trust-list li { display: flex; align-items: center; gap: 7px; }
.trust-list li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--emerald); }
.mhero-preview { position: absolute; z-index: 3; left: var(--gutter); bottom: 26px; display: flex; align-items: center; gap: 16px; text-align: left; background: none; }
.mhero-preview .vf { width: clamp(78px, 7vw, 108px); }
.mhero-preview-text { font-family: var(--serif); font-size: 1.25rem; line-height: 1.15; color: var(--heading); max-width: 11ch; }
.mhero-preview-text small { display: block; font-family: var(--sans); font-size: .64rem; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.mhero-cue { left: auto; right: var(--gutter); }

/* the framed vertical video (frame, video in its window, flowers on top) */
.vf { position: relative; display: block; aspect-ratio: 1055 / 1658; filter: drop-shadow(0 18px 28px rgba(63, 21, 51, .22)); }
.vf-win { position: absolute; left: 13.4%; top: 10.1%; width: 73.3%; height: 81.2%; overflow: hidden; background: #f3eeee; }
.vf-win video, .vf-win img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .8s; }
.vf-win video.on, .vf-win img.on, .mhero-preview .vf-win img { opacity: 1; }
.vf-frame, .vf-flowers { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

/* scene film: one swipe per scene */
.mstory { position: relative; }
.mstage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: #fbfbfb; }
.ms-film { position: absolute;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%), linear-gradient(180deg, transparent 0, #000 8%, #000 100%);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%), linear-gradient(180deg, transparent 0, #000 8%, #000 100%); mask-composite: intersect; }
.ms-stills img, .ms-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.ms-canvas { opacity: 0; }
.ms-copy { position: absolute; z-index: 3; left: var(--gutter); top: clamp(84px, 11vh, 120px); width: min(560px, 42vw); transition: opacity .3s; }
.ms-copy h2 { font-size: clamp(2.4rem, 4.6vw, 4.6rem); line-height: 1.02; margin: 12px 0 10px; }
.ms-copy .lead { margin-bottom: 20px; font-size: clamp(.95rem, 1.1vw, 1.08rem); max-width: 42ch; }
.ms-vertical { position: absolute; z-index: 3; right: var(--gutter); top: 50%; transform: translate(30px, -46%); opacity: 0; transition: opacity .9s var(--ease), transform .9s var(--ease); text-align: center; }
.ms-vertical.show { opacity: 1; transform: translate(0, -46%); }
.ms-vertical .eyebrow { justify-content: center; margin-bottom: 10px; font-size: .66rem; }
.ms-vertical .eyebrow::before { display: none; }
.ms-tabs { position: absolute; z-index: 3; left: var(--gutter); bottom: 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: .9rem; color: var(--muted); }
.ms-tabs span { opacity: .5; }
.ms-tabs button { color: var(--muted); padding: 4px 0; border-bottom: 2px solid transparent; transition: color .3s, border-color .3s; }
.ms-tabs button.on { color: var(--heading); border-color: var(--accent); }
.ms-hint { position: absolute; z-index: 3; right: var(--gutter); bottom: 24px; display: flex; align-items: center; gap: 10px; font-size: .66rem; letter-spacing: .28em; text-transform: uppercase; color: var(--muted); transition: opacity .4s; }
.ms-hint i { width: 1px; height: 26px; background: var(--accent); animation: cue 1.8s var(--ease) infinite; }

@media (max-width: 760px) {
  .mhero::after { background: linear-gradient(180deg, rgba(252,251,250,0) 30%, rgba(252,251,250,.92) 58%, rgba(252,251,250,.98)); }
  .mhero-film img, .mhero-film canvas { object-position: 62% 30%; height: 62%; }
  .mhero-copy { top: auto; bottom: 120px; transform: none; width: auto; right: var(--gutter); text-align: center; }
  .mhero-copy .eyebrow { justify-content: center; font-size: .62rem; }
  .mhero-copy h1 { font-size: clamp(2.3rem, 10vw, 3.2rem); margin: 8px 0 10px; }
  .mhero-copy .lead { font-size: .9rem; margin: 0 auto 16px; }
  .mhero-copy .hero-actions { justify-content: center; flex-wrap: nowrap; gap: 8px; }
  .mhero-copy .btn { padding: .85em 1.05em; font-size: .8rem; }
  .mhero-note { display: none; }
  .mhero-preview { left: 50%; transform: translateX(-50%); bottom: 18px; }
  .mhero-preview .vf { width: 58px; }
  .mhero-preview-text { font-size: 1rem; }
  .mhero-cue { display: none; }
  .ms-copy { top: 76px; width: auto; right: var(--gutter); text-align: center; }
  .ms-copy .eyebrow { justify-content: center; }
  .ms-copy h2 { font-size: clamp(1.9rem, 8.6vw, 2.6rem); }
  .ms-copy .lead { font-size: .86rem; margin: 0 auto 12px; }
  .ms-copy .btn { padding: .7em 1.2em; font-size: .8rem; }
  .ms-vertical { width: 30vw !important; top: auto; bottom: 64px; transform: translate(20px, 0); }
  .ms-vertical.show { transform: none; }
  .ms-vertical .eyebrow { display: none; }
  .ms-tabs { bottom: 14px; right: var(--gutter); flex-wrap: nowrap; overflow-x: auto; font-size: .78rem; scrollbar-width: none; }
  .ms-hint { display: none; }
}
@media (max-width: 760px) and (max-height: 700px) { .mhero-copy .lead { display: none; } }

/* library cards: Modern uses the rose frame (its window sits where .vf-win does) */
[data-edition="modern"] .ccard { aspect-ratio: 1055 / 1658; }
[data-edition="modern"] .ccard-video { inset: auto; left: 13.4%; top: 10.1%; width: 73.3%; height: 81.2%; border-radius: 0; box-shadow: none; }
[data-edition="modern"] .ccard-frame { display: block; }

@media (max-height: 820px) and (min-width: 761px) { .mhero-note { display: none; } .mhero-copy { transform: translateY(-54%); } }
@media (max-width: 1180px) and (min-width: 901px) { .nav-cta { display: none; } }
.ms-copy::before { content: ''; position: absolute; inset: -50px -70px -40px -60px; z-index: -1; pointer-events: none; background: radial-gradient(closest-side, rgba(251,251,251,.94), rgba(251,251,251,.75) 55%, rgba(251,251,251,0)); }
.ms-tabs button { white-space: nowrap; }

.vcard-media img, .phone-screen img { display: block; width: 100%; height: 100%; object-fit: cover; }
.vcard:hover .vcard-media img { transform: scale(1.06); }
.vcard-media img { transition: transform 1.2s var(--ease); }

/* ---- Modern hero v2: the heart loop shown at a size where it stays sharp ---- */
.mhero-film { inset: auto; right: var(--gutter); top: 54%; width: min(56vw, 980px); aspect-ratio: 16 / 9; transform: translateY(-50%);
  -webkit-mask-image: radial-gradient(ellipse 72% 72% at 50% 50%, #000 62%, transparent 100%); mask-image: radial-gradient(ellipse 72% 72% at 50% 50%, #000 62%, transparent 100%); }
.mhero-film img, .mhero-film canvas { object-fit: cover; object-position: 50% 50%; }
.mhero::after { display: none; }
.mhero-copy { width: min(560px, 40vw); top: 54%; transform: translateY(-50%); }
.mhero-copy h1 { font-size: clamp(2.8rem, 5.2vw, 5.6rem); }
.mhero-preview { position: static; margin-top: 26px; gap: 18px; }
.mhero-preview .vf { width: clamp(110px, 9vw, 140px); }
.mhero-preview-text { font-size: 1.35rem; }
@media (max-height: 820px) and (min-width: 761px) { .mhero-copy { transform: translateY(-50%); } .mhero-preview .vf { width: 96px; } .mhero-copy h1 { font-size: clamp(2.6rem, 4.6vw, 4.6rem); } }
@media (max-height: 700px) and (min-width: 761px) { .mhero-preview { display: none; } }
@media (max-width: 760px) {
  .mhero-film { right: 0; left: 0; top: 64px; width: 100%; transform: none; -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent); mask-image: linear-gradient(180deg, #000 70%, transparent); }
  .mhero-film img, .mhero-film canvas { height: 100%; }
  .mhero-copy { top: auto; bottom: 24px; transform: none; width: auto; }
  .mhero-preview { justify-content: center; margin-top: 16px; }
  .mhero-preview .vf { width: 70px; }
}
/* the framed invitation beside the scenes: bigger label spacing */
.ms-vertical .eyebrow { margin-bottom: 14px; }
.mstage.waiting .ms-hint span::after { content: " · loading"; }
@media (max-width: 760px) { .ms-vertical { width: 42vw !important; bottom: 56px; } }

/* ---- watch popup: the invitation plays in a tall vertical frame ---- */
.modal-box { grid-template-columns: auto minmax(0, 1fr); width: min(1060px, 100%); }
.modal-media { min-height: 0; height: min(84vh, 760px); aspect-ratio: 9 / 16; }
.modal-media video { object-fit: cover; }
@media (max-width: 760px) {
  .modal-box { grid-template-columns: 1fr; }
  .modal-media { height: auto; width: min(100%, 58vh * 9 / 16); justify-self: center; margin-top: 12px; border-radius: 16px; overflow: hidden; }
}
@media (min-width: 761px) { .mhero { background: #fafafa; } .mhero-film { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 16%, #000 90%, transparent 100%), linear-gradient(180deg, transparent 0, #000 14%, #000 86%, transparent 100%); -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent 0, #000 16%, #000 90%, transparent 100%), linear-gradient(180deg, transparent 0, #000 14%, #000 86%, transparent 100%); mask-composite: intersect; } }
.ms-copy::before { inset: -70px -90px -50px -80px; background: radial-gradient(closest-side, rgba(251,251,251,.97), rgba(251,251,251,.9) 62%, rgba(251,251,251,0)); }
.ms-copy .lead { color: var(--text); }
.ms-tabs { background: rgba(251,251,251,.88); padding: 6px 16px; border-radius: 999px; left: calc(var(--gutter) - 16px); box-shadow: 0 6px 20px -12px rgba(63,21,51,.3); }
@media (max-width: 760px) { .mhero-preview { transform: none; left: auto; bottom: auto; margin-left: auto; margin-right: auto; } }

/* ==========================================================
   MODERN — two auto-playing scene sections (modern.js)
   ========================================================== */
.mscenes[hidden] { display: none; }
.mscene { position: relative; height: 100vh; height: 100svh; min-height: 640px; max-height: 1080px; overflow: hidden; background: #fbfbfb;
  --cardH: min(83vh, 840px); --cardW: calc(var(--cardH) * .636); }
.mscene + .mscene { border-top: 1px solid var(--line); }
.msc-film { position: absolute; left: 0; top: 70px; bottom: 120px; right: calc(var(--cardW) + 6vw);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%), linear-gradient(180deg, transparent 0, #000 6%, #000 96%, transparent 100%);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%), linear-gradient(180deg, transparent 0, #000 6%, #000 96%, transparent 100%); mask-composite: intersect; }
.msc-stills img, .msc-canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: 70% 100%; display: block; }
.msc-canvas { opacity: 0; }
.msc-copy { position: absolute; z-index: 3; left: var(--gutter); top: clamp(80px, 10vh, 116px); width: min(620px, 44vw); }
.msc-copy::before { content: ""; position: absolute; inset: -70px -90px -50px -80px; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(251,251,251,.94), rgba(251,251,251,.78) 58%, rgba(251,251,251,0)); }
.msc-copy h2 { font-size: clamp(2.4rem, 4.4vw, 4.6rem); line-height: 1.02; margin: 12px 0 10px; }
.msc-copy .lead { color: var(--text); margin-bottom: 20px; max-width: 46ch; font-size: clamp(.95rem, 1.05vw, 1.06rem); }
.msc-thumbs { position: absolute; z-index: 3; left: var(--gutter); bottom: 18px; display: flex; gap: 14px; }
.msc-thumbs button { width: 86px; text-align: center; font-size: .7rem; color: var(--muted); }
.msc-thumbs img { display: block; width: 86px; height: 86px; border-radius: 14px; object-fit: cover; border: 2px solid transparent;
  box-shadow: 0 8px 18px -10px rgba(63,21,51,.45); transition: border-color .3s, transform .3s; }
.msc-thumbs button:hover img { transform: translateY(-3px); }
.msc-thumbs button.on img { border-color: var(--accent); }
.msc-thumbs button.on span { color: var(--heading); }
.msc-thumbs span { display: block; margin-top: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msc-thumbs i { display: block; height: 2px; margin-top: 4px; border-radius: 2px;
  background: linear-gradient(var(--accent), var(--accent)) left / calc(var(--p, 0) * 100%) 100% no-repeat, var(--line); }
.msc-vertical { position: absolute; z-index: 3; right: 6vw; top: 50%; transform: translateY(-46%); width: var(--cardW); text-align: center; }
.msc-vertical .eyebrow { justify-content: center; margin-bottom: 12px; font-size: .66rem; }
.msc-vertical .eyebrow::before { display: none; }
.msc-vertical .vf-win video { opacity: 1; }
/* the scene pictures keep their couple on the left of the frame: slide the film right so the story clears the words
   (its empty right side tucks under the framed video) */
@media (min-width: 761px) {
  .msc-film { transform: translateX(var(--shift)); --shift: clamp(0px, 10vw - 50px, 160px); }
  /* every second section is the mirror image: the scene comes from the right, words right, framed video left */
  .mscene.flip .msc-film { left: calc(var(--cardW) + 6vw); right: 0; transform: translateX(calc(-1 * var(--shift))) scaleX(-1); --shift: clamp(0px, 48vw - 300px, 470px); }
  .mscene.flip .msc-copy { left: auto; right: var(--gutter); text-align: right; }
  .mscene.flip .msc-copy .eyebrow { justify-content: flex-end; flex-direction: row-reverse; }
  .mscene.flip .msc-copy .lead { margin-left: auto; }
  .mscene.flip .msc-thumbs { left: auto; right: var(--gutter); }
  .mscene.flip .msc-vertical { right: auto; left: 6vw; }
}
@media (max-width: 760px) {
  .mscene.flip .msc-film { transform: scaleX(-1); }
  .mscene { height: auto; min-height: 0; max-height: none; padding: 80px 0 30px; display: flex; flex-direction: column; gap: 16px; }
  .msc-copy { position: relative; left: auto; top: auto; width: auto; padding: 0 var(--gutter); text-align: center; order: 1; }
  .msc-copy .eyebrow { justify-content: center; }
  .msc-copy h2 { font-size: clamp(1.9rem, 8.6vw, 2.6rem); }
  .msc-copy .lead { margin: 0 auto 12px; font-size: .9rem; }
  .msc-film { position: relative; inset: auto; width: 100%; aspect-ratio: 16 / 9; order: 2; }
  .msc-thumbs { position: relative; left: auto; bottom: auto; order: 3; padding: 0 var(--gutter) 4px; overflow-x: auto; scrollbar-width: none; gap: 10px; }
  .msc-thumbs button, .msc-thumbs img { width: 68px; flex: none; }
  .msc-thumbs img { height: 68px; }
  .msc-vertical { position: relative; right: auto; top: auto; transform: none; order: 4; width: 66vw; margin: 4px auto 0; }
}

/* ---- Modern hero: wider words, wider preview label (desktop only) ---- */
@media (min-width: 761px) {
  .mhero-copy { width: min(660px, 44vw); }
  .mhero-copy h1 { font-size: clamp(2.8rem, 4.9vw, 5.4rem); }
  .mhero-film { width: min(52vw, 940px); }
}
.mhero-preview-text { max-width: 16ch; }
.mhero-preview .vf-win video { opacity: 1; }

/* ---- Modern library: one line of big framed invitations, gliding slowly ---- */
.mlib { display: none; overflow: hidden; padding: 10px 0 34px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
[data-edition="modern"] .mlib { display: block; }
[data-edition="modern"] .carousel { display: none; }
.mlib-track { display: flex; gap: 30px; width: max-content; animation: mlib var(--dur, 90s) linear infinite; }
.mlib:hover .mlib-track { animation-play-state: paused; }
@keyframes mlib { to { transform: translateX(-50%); } }
.mcard { flex: none; width: clamp(220px, 18vw, 290px); text-align: center; cursor: pointer; }
.mcard .vf { transition: transform .5s var(--ease); }
.mcard:hover .vf { transform: translateY(-8px); }
.mcard .vf-win img { opacity: 1; }
.mcard h3 { font-family: var(--serif); font-weight: 500; font-size: 1.3rem; color: var(--heading); margin-top: 12px; }
.mcard p { font-size: .78rem; color: var(--muted); }
@media (max-width: 700px) { .mcard { width: 58vw; } .mlib-track { gap: 18px; } }

/* ---------- policies ---------- */
.policy-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.policy-tabs a { padding: .55em 1.2em; border: 1px solid var(--line); border-radius: 999px; font-size: .9rem; color: var(--heading); background: rgba(255,255,255,.7); }
.policy { max-width: 820px; }
.policy article { padding: 34px 0 10px; border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.policy article:first-child { border-top: 0; padding-top: 0; }
.policy h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(2rem, 4vw, 2.8rem); color: var(--heading); margin: 0 0 12px; }
.policy h3 { font-family: var(--serif); font-weight: 600; font-size: 1.3rem; color: var(--heading); margin: 26px 0 6px; }
.policy p, .policy li { color: var(--text); line-height: 1.75; }
.policy ul { padding-left: 1.2em; display: grid; gap: 6px; }
.policy-sum { font-size: 1.08rem; color: var(--heading); }
.policy a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* ==========================================================
   PHONES — everything fits one hand, nothing squeezed
   ========================================================== */
.menu-btn { flex: none; }
@media (max-width: 560px) {
  .stat .num { font-size: clamp(1.9rem, 8.4vw, 2.4rem); white-space: nowrap; }
  .stat p { font-size: .76rem; }
  .two { grid-template-columns: 1fr; gap: 12px; }
  .steps { gap: 12px; }
  .step { padding: 20px 20px 18px; display: grid; grid-template-columns: 42px 1fr; column-gap: 14px; align-items: center; }
  .step::before { font-size: 2.8rem; right: 14px; top: 8px; }
  .step .ico { width: 42px; height: 42px; margin: 0; grid-row: span 2; }
  .step h3 { font-size: 1.3rem; padding-right: 48px; }
  .step p { margin-top: 2px; font-size: .86rem; }
  .policy-tabs a { font-size: .82rem; }
}
@media (max-width: 440px) {
  .nav { gap: 8px; }
  .logo { font-size: 1.02rem; gap: .35em; }
  .logo-mark { width: 22px; height: 22px; }
  .nav .ed-switch button { padding: .5em .62em; font-size: .56rem; letter-spacing: .06em; }
  .menu-btn { width: 40px; height: 40px; }
  .menu-btn span { left: 11px; right: 11px; }
  .menu-btn span:nth-child(1) { top: 15px; } .menu-btn span:nth-child(2) { top: 23px; }
}
@media (max-width: 350px) { .logo span { display: none; } }

/* the sample couple's names on full-film designs */
.vcard-names, .mcard-names { font-family: var(--script); color: var(--accent); font-size: 1.25rem; line-height: 1.1; margin: 2px 0 4px; }
.vcard-names { color: #f6dc9c; text-shadow: 0 1px 6px rgba(0,0,0,.45); font-size: 1.35rem; }
.mcard-names { text-align: center; }
.modal-names { font-family: var(--script); color: var(--accent); font-size: 1.6rem; margin: -4px 0 8px; }

/* "Open the live invitation" in the design window */
.live-demo { display: flex; flex-direction: column; align-items: center; gap: 2px; width: 100%; margin: 6px 0 4px; border-style: dashed; }
.live-demo small { font-size: .72rem; letter-spacing: .04em; color: var(--muted); font-weight: 400; }

/* the first screen of the inner pages shows at once (no fade wait): it is what visitors see first */
.page-hero .reveal { opacity: 1; transform: none; }
/* the design grid keeps its room while the cards are being added, so the page below does not jump */
.grid-designs:empty { min-height: 110vh; }
