/* ==========================================================================
   Wedding website — public styles
   Colours, fonts, corners and spacing come from CSS variables that are
   generated from the theme (see /js/theme.js). The defaults below mirror the
   "Garden Sage" palette so the page looks right even before the theme loads.
   ========================================================================== */

/* Fallback tokens — zero specificity so the generated theme always wins. */
:where(:root) {
  --fs-display: 1; --fs-body: 1;
  --cream: #F6F2E8; --cream-2: #EFE9DA; --surface: #FFFFFF;
  --ink: #2B2A20; --ink-soft: #58573F;
  --sage-deep: #445039; --sage: #7C8B6B; --sage-soft: #C9D2BC; --terracotta: #B9673F;
  --line: rgba(43,42,32,.14); --line-strong: rgba(43,42,32,.26);
  --ink-rgb: 43,42,32; --cream-rgb: 246,242,232; --sage-deep-rgb: 68,80,57; --accent-rgb: 185,103,63;
  --paper: #F6F2E8; --paper-2: #EFE9DA; --paper-ink: #2B2A20; --forest: #445039; --forest-soft: #C9D2BC; --clay: #B9673F; --forest-rgb: 68,80,57;
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-script: var(--font-display);
  --script-style: italic; --script-scale: 1;
  --radius: 10px; --radius-lg: 16px;
  --wood: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='900' height='450'%3E%3Cfilter id='w' x='0' y='0' width='100%' height='100%'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.003 0.16' numOctaves='4' seed='11' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.10  0 0 0 0 0.06  0 0 0 0 0.02  0 0 0 -1.05 0.62'/%3E%3C/filter%3E%3Crect width='100%' height='100%' filter='url(%23w)'/%3E%3C/svg%3E");
  --section-pad: 104px; --section-pad-sm: 72px;
  --ease: cubic-bezier(.2,.7,.2,1);
  --shadow: 0 1px 2px rgba(var(--ink-rgb),.04), 0 12px 32px -12px rgba(var(--ink-rgb),.18);
  --shadow-lg: 0 2px 6px rgba(var(--ink-rgb),.05), 0 30px 60px -24px rgba(var(--ink-rgb),.28);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
html[data-motion="none"] { scroll-behavior: auto; }
body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: calc(16px * var(--fs-body));
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.menu-open { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; line-height: 1.15; }
.ico { width: 1.15em; height: 1.15em; flex-shrink: 0; }
:focus-visible { outline: 2px solid var(--terracotta); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--sage-soft); color: var(--ink); }

/* paper grain */
html.grain body::after {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 999; opacity: .06; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@media (prefers-color-scheme: dark) { html.grain:not([data-theme="light"]) body::after { mix-blend-mode: screen; opacity: .04; } }

.wrap { max-width: 700px; margin: 0 auto; padding: 0 24px; }
.wrap-wide { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

.sec { padding: var(--section-pad) 0; position: relative; }
.alt-bg { background: var(--cream-2); }
@media (max-width: 700px) { .sec { padding: var(--section-pad-sm) 0; } .wrap, .wrap-wide { padding: 0 20px; } }

/* ---------------------------------------------------------------- reveal */
[data-motion="full"] .rv { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease) var(--d, 0ms), transform 1s var(--ease) var(--d, 0ms); }
[data-motion="subtle"] .rv { opacity: 0; transition: opacity 1.1s ease var(--d, 0ms); }
[data-motion] .rv.in { opacity: 1; transform: none; }

/* ---------------------------------------------------------------- ornaments */
.sprig-svg { width: 100%; height: auto; display: block; }
.draw path { stroke-dasharray: 1; stroke-dashoffset: 0; }
[data-motion="full"] .draw path { stroke-dashoffset: 1; }
[data-motion="full"] .hero-play .draw path, [data-motion="full"] .intro.show .draw path, [data-motion="full"] .nav-menu.open .draw path { animation: draw 2.6s var(--ease) forwards; }
[data-motion="full"] .draw path:nth-child(n+2) { animation-delay: .35s; }
[data-motion="full"] .draw path:nth-child(n+6) { animation-delay: .7s; }
[data-motion="full"] .draw path:nth-child(n+9) { animation-delay: 1s; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.ornament { width: 132px; height: 20px; color: var(--sage); display: block; margin: 0 auto 18px; }
.divider { width: 124px; margin: 72px auto 0; color: var(--sage); opacity: .85; }
.divider svg { width: 100%; height: auto; display: block; }
.sprig-sm { width: 40%; height: 40%; }
.img-ph { width: 100%; height: 100%; min-height: 160px; display: grid; place-items: center; color: var(--sage-deep); opacity: .5; background: linear-gradient(155deg, var(--sage-soft), var(--cream-2)); }

/* ---------------------------------------------------------------- headings */
.sec-head { text-align: center; margin-bottom: 56px; }
.sec-head h2 { font-size: calc(clamp(2.1rem, 5.4vw, 3.3rem) * var(--fs-display)); color: var(--ink); letter-spacing: -.01em; }
.sec-head p { margin: 14px auto 0; color: var(--ink-soft); font-size: calc(1.02rem * var(--fs-body)); max-width: 480px; }
.kicker { font-size: calc(.74rem * var(--fs-body)); letter-spacing: .16em; text-transform: uppercase; color: var(--terracotta); font-weight: 500; margin-bottom: 10px; }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 30px; border-radius: max(2px, calc(var(--radius) * 3));
  font-family: var(--font-body); font-size: calc(.78rem * var(--fs-body)); letter-spacing: .16em; text-transform: uppercase; font-weight: 500;
  text-decoration: none; border: 1px solid transparent; transition: transform .25s var(--ease), background .25s, box-shadow .25s, color .25s, border-color .25s;
  cursor: pointer; white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn .ico { width: 16px; height: 16px; }
.btn-accent { background: var(--terracotta); color: #fff; box-shadow: 0 10px 24px -12px rgba(var(--accent-rgb), .9); }
.btn-accent:hover { box-shadow: 0 16px 30px -12px rgba(var(--accent-rgb), .9); filter: brightness(1.04); }
.btn-primary { background: var(--sage-deep); color: var(--cream); }
.btn-ghost { border-color: var(--line-strong); color: var(--ink); }
.btn-ghost:hover { border-color: var(--sage-deep); background: rgba(var(--sage-deep-rgb), .06); }
.btn-ghost-light { border-color: rgba(255,255,255,.3); color: var(--paper); }
.btn-ghost-light:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.6); }
.btn-small { padding: 11px 18px; font-size: calc(.7rem * var(--fs-body)); letter-spacing: .12em; }
.btn-block { width: 100%; }
.text-link {
  display: inline-flex; align-items: center; gap: 6px; font-size: calc(.88rem * var(--fs-body)); color: var(--terracotta); text-decoration: none;
  border-bottom: 1px solid currentColor; padding-bottom: 1px; cursor: pointer; background: none;
}
.text-link .ico { width: 14px; height: 14px; }

/* ---------------------------------------------------------------- veil & toast */
.veil { position: fixed; inset: 0; z-index: 300; background: var(--cream); display: grid; place-items: center; transition: opacity .7s ease, visibility .7s; animation: veilAuto .6s 6s forwards; }
.veil.gone { opacity: 0; visibility: hidden; }
.veil-mark { width: 10px; height: 10px; border-radius: 50%; background: var(--sage); animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(2.2); opacity: .3; } }
@keyframes veilAuto { to { opacity: 0; visibility: hidden; } }

.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 400; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--ink); color: var(--cream); padding: 12px 22px; border-radius: 999px; font-size: calc(.88rem * var(--fs-body)); box-shadow: var(--shadow-lg);
  transition: opacity .3s, transform .3s var(--ease); max-width: calc(100vw - 40px); text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------------------------------------------------------------- nav */
/* The reading-progress line sits on the bar's lower edge, never in the phone's status-bar area. */
.progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--terracotta); transform-origin: left; transform: scaleX(0); pointer-events: none; }
.topnav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: max(16px, env(safe-area-inset-top)) 24px 16px;
  transition: background .35s ease, box-shadow .35s ease, padding .35s ease;
}
/* Opaque on purpose: Safari on iPhone fills the status-bar strip with the colour of a solid bar
   fixed at the top. A see-through bar lets the page scroll visibly behind the clock and battery. */
.topnav.solid { background-color: var(--cream); box-shadow: 0 1px 0 var(--line); padding-top: max(12px, env(safe-area-inset-top)); padding-bottom: 12px; }
.mono-names { font-family: var(--font-script); font-style: var(--script-style); font-size: calc(1.15rem * var(--script-scale)); color: var(--ink); text-decoration: none; letter-spacing: .02em; line-height: 1; }
.nav-right { display: flex; align-items: center; gap: 12px; }
.nav-rsvp {
  font-size: calc(.7rem * var(--fs-body)); letter-spacing: .18em; text-transform: uppercase; font-weight: 500; text-decoration: none;
  padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--ink); transition: .25s;
}
.nav-rsvp:hover { background: var(--terracotta); border-color: var(--terracotta); color: #fff; }
.nav-toggle { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; transition: .25s; position: relative; z-index: 52; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 16px; height: 1.5px; background: var(--ink); border-radius: 2px; transition: transform .35s var(--ease), background .2s, opacity .2s; }
.nav-toggle span { position: relative; }
.nav-toggle span::before, .nav-toggle span::after { content: ''; position: absolute; left: 0; }
.nav-toggle span::before { top: -5px; } .nav-toggle span::after { top: 5px; }
.nav-toggle.open { border-color: rgba(255,255,255,.4); }
.nav-toggle.open span { background: transparent; }
.nav-toggle.open span::before { transform: translateY(5px) rotate(45deg); background: var(--paper); }
.nav-toggle.open span::after { transform: translateY(-5px) rotate(-45deg); background: var(--paper); }
body.menu-open .topnav .mono-names, body.menu-open .topnav .nav-rsvp { opacity: 0; pointer-events: none; }
body.menu-open .topnav.solid { background-color: transparent; box-shadow: none; }
body.menu-open .topnav .progress { opacity: 0; }
@media (max-width: 480px) { .nav-rsvp { display: none; } }

.nav-menu {
  position: fixed; inset: 0; z-index: 49; background: var(--forest); color: var(--paper);
  display: grid; place-items: center; overflow-y: auto; padding: 90px 24px 48px;
  clip-path: circle(0% at calc(100% - 46px) 38px); transition: clip-path .7s var(--ease); visibility: hidden;
}
.nav-menu.open { clip-path: circle(150% at calc(100% - 46px) 38px); visibility: visible; }
.nm-inner { text-align: center; position: relative; z-index: 1; }
.nm-kicker { font-family: var(--font-script); font-style: var(--script-style); font-size: calc(1.3rem * var(--script-scale)); color: var(--forest-soft); margin-bottom: 26px; }
.nav-menu ul { list-style: none; display: grid; gap: 6px; }
.nav-menu a { font-family: var(--font-display); font-size: calc(clamp(1.7rem, 5vw, 2.4rem) * var(--fs-display)); color: var(--paper); text-decoration: none; display: inline-block; padding: 2px 8px; position: relative; opacity: 0; transform: translateY(16px); transition: opacity .5s, transform .5s var(--ease), color .2s; }
.nav-menu.open a { opacity: 1; transform: none; }
.nav-menu.open li:nth-child(1) a { transition-delay: .15s; } .nav-menu.open li:nth-child(2) a { transition-delay: .2s; }
.nav-menu.open li:nth-child(3) a { transition-delay: .25s; } .nav-menu.open li:nth-child(4) a { transition-delay: .3s; }
.nav-menu.open li:nth-child(5) a { transition-delay: .35s; } .nav-menu.open li:nth-child(6) a { transition-delay: .4s; }
.nav-menu.open li:nth-child(7) a { transition-delay: .45s; } .nav-menu.open li:nth-child(8) a { transition-delay: .5s; }
.nav-menu.open li:nth-child(n+9) a { transition-delay: .55s; }
.nav-menu a::after { content: ''; position: absolute; left: 8px; right: 8px; bottom: 4px; height: 1px; background: var(--clay); transform: scaleX(0); transition: transform .35s var(--ease); }
.nav-menu a:hover::after { transform: scaleX(1); }
.nm-date { margin-top: 30px; font-size: calc(.78rem * var(--fs-body)); letter-spacing: .14em; text-transform: uppercase; color: var(--forest-soft); max-width: 340px; margin-left: auto; margin-right: auto; }
.nm-sprig { position: absolute; width: 170px; color: var(--forest-soft); opacity: .35; }
.nm-sprig.l { top: 6%; left: -30px; transform: rotate(8deg); }
.nm-sprig.r { bottom: 6%; right: -30px; transform: rotate(-10deg) scaleX(-1); }

/* ---------------------------------------------------------------- hero */
.sec-hero { min-height: 100vh; min-height: 100svh; padding: 110px 0 90px; display: flex; align-items: center; overflow: hidden; }
.hero-glow { position: absolute; inset: 0; background: radial-gradient(circle at 18% 12%, rgba(var(--sage-deep-rgb), .16), transparent 45%), radial-gradient(circle at 85% 88%, rgba(var(--accent-rgb), .12), transparent 42%); pointer-events: none; }
.hero-sprig { position: absolute; width: 190px; color: var(--sage); opacity: .55; pointer-events: none; }
.hero-sprig.l { top: 7%; left: -34px; transform: rotate(8deg); }
.hero-sprig.r { bottom: 7%; right: -40px; transform: rotate(-10deg) scaleX(-1); }
.hero-inner { position: relative; z-index: 2; width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.hero-center { text-align: center; }
.hero-split { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 56px; }
.hero-split .hero-text { text-align: left; }
.hero-eyebrow { font-size: calc(.78rem * var(--fs-body)); letter-spacing: .24em; text-transform: uppercase; color: var(--sage-deep); margin-bottom: 26px; font-weight: 500; }
.hero-names { font-size: calc(clamp(3.4rem, 9.4vw, 7.2rem) * var(--fs-display)); line-height: .92; letter-spacing: -.02em; color: var(--ink); font-weight: 300; }
.hero-names .n1, .hero-names .n2 { display: block; white-space: nowrap; }
.hero-names .amp { display: block; font-family: var(--font-script); font-style: var(--script-style); font-weight: 300; color: var(--terracotta); font-size: calc(.5em * var(--script-scale)); line-height: 1.1; margin: .06em 0; }
.hero-split .hero-names .amp { padding-left: .8em; }
.hero-split .hero-names .n2 { padding-left: .45em; }
.hero-date { margin-top: 30px; font-size: calc(1.04rem * var(--fs-body)); color: var(--ink-soft); max-width: 440px; }
.hero-center .hero-date { margin-left: auto; margin-right: auto; }
.hero-loc { margin-top: 10px; font-size: calc(.9rem * var(--fs-body)); color: var(--ink-soft); display: inline-flex; align-items: center; gap: 8px; letter-spacing: .04em; }
.hero-loc .ico { color: var(--terracotta); width: 16px; height: 16px; }
.hero-cta { margin-top: 34px; display: flex; gap: 12px; flex-wrap: wrap; }
.hero-center .hero-cta { justify-content: center; }

.hero-media { position: relative; justify-self: center; width: min(100%, 440px); }
.arch-frame { position: relative; aspect-ratio: 4 / 5.2; border-radius: 1000px 1000px var(--radius-lg) var(--radius-lg); overflow: hidden; background: var(--sage-soft); box-shadow: var(--shadow-lg); z-index: 1; }
.arch-frame img, .arch-frame .img-ph { width: 100%; height: 100%; object-fit: cover; }
.arch-outline { position: absolute; inset: -16px 16px 16px -16px; border: 1px solid var(--sage); border-radius: 1000px 1000px var(--radius-lg) var(--radius-lg); opacity: .6; }
.hero-badge { position: absolute; left: -46px; bottom: 34px; width: 128px; height: 128px; border-radius: 50%; background: var(--cream); box-shadow: var(--shadow); z-index: 3; display: grid; place-items: center; }
.hero-badge > svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 26s linear infinite; }
.hero-badge text { font-family: var(--font-body); font-size: 13.4px; letter-spacing: .2em; fill: var(--ink-soft); font-weight: 500; }
.hero-badge-mid { color: var(--terracotta); display: grid; place-items: center; }
.hero-badge-mid .ico { width: 26px; height: 26px; }
@keyframes spin { to { transform: rotate(360deg); } }

.hero-scroll { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 3; font-size: calc(.66rem * var(--fs-body)); letter-spacing: .24em; text-transform: uppercase; color: var(--ink-soft); display: flex; flex-direction: column; align-items: center; gap: 10px; text-decoration: none; }
.hero-scroll::after { content: ''; width: 1px; height: 38px; background: var(--sage); animation: scrolly 2s ease-in-out infinite; }
@keyframes scrolly { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* full-bleed photo */
.v-photo.sec-hero { color: #fff; }
.hero-photo-bg { position: absolute; inset: -8% 0; z-index: 0; }
.hero-photo-bg img { width: 100%; height: 100%; object-fit: cover; }
[data-motion="full"] .hero-photo-bg img { animation: kenburns 22s ease-out forwards; }
@keyframes kenburns { from { transform: scale(1.14); } to { transform: scale(1); } }
.hero-shade { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,.15) 40%, rgba(0,0,0,.55) 100%); }
.on-photo .hero-names, .on-photo .hero-date, .on-photo .hero-loc, .on-photo .hero-eyebrow { color: #fff; }
.on-photo .hero-names .amp { color: #F3D9C8; }
.on-photo .hero-loc .ico { color: #F3D9C8; }
.v-photo .hero-scroll { color: rgba(255,255,255,.85); }
.v-photo .hero-scroll::after { background: rgba(255,255,255,.7); }
.v-photo .hero-badge { left: auto; right: 6%; bottom: 12%; background: rgba(255,255,255,.12); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); box-shadow: none; border: 1px solid rgba(255,255,255,.3); }
.v-photo .hero-badge text { fill: #fff; }
.v-photo .hero-badge-mid { color: #fff; }
/* nav over a photo hero */
.topnav.over-photo:not(.solid) .mono-names { color: #fff; }
.topnav.over-photo:not(.solid) .nav-rsvp { color: #fff; border-color: rgba(255,255,255,.45); }
.topnav.over-photo:not(.solid) .nav-toggle { border-color: rgba(255,255,255,.45); }
.topnav.over-photo:not(.solid) .nav-toggle:not(.open) span, .topnav.over-photo:not(.solid) .nav-toggle:not(.open) span::before, .topnav.over-photo:not(.solid) .nav-toggle:not(.open) span::after { background: #fff; }

/* hero entrance choreography */
[data-motion="full"] .sec-hero .ch { display: inline-block; opacity: 0; transform: translateY(.35em) rotate(3deg); filter: blur(8px); }
[data-motion="full"] .sec-hero.hero-play .ch { animation: chIn 1.1s var(--ease) forwards; animation-delay: calc(var(--i) * 60ms + 250ms); }
@keyframes chIn { to { opacity: 1; transform: none; filter: blur(0); } }
[data-motion="full"] .sec-hero .hero-eyebrow, [data-motion="full"] .sec-hero .amp, [data-motion="full"] .sec-hero .hero-date,
[data-motion="full"] .sec-hero .hero-loc, [data-motion="full"] .sec-hero .hero-cta, [data-motion="full"] .sec-hero .hero-scroll { opacity: 0; }
[data-motion="full"] .sec-hero.hero-play .hero-eyebrow { animation: fadeUp 1s var(--ease) .1s forwards; }
[data-motion="full"] .sec-hero.hero-play .amp { animation: ampIn 1.3s var(--ease) .75s forwards; }
[data-motion="full"] .sec-hero.hero-play .hero-date { animation: fadeUp 1s var(--ease) 1.25s forwards; }
[data-motion="full"] .sec-hero.hero-play .hero-loc { animation: fadeUp 1s var(--ease) 1.4s forwards; }
[data-motion="full"] .sec-hero.hero-play .hero-cta { animation: fadeUp 1s var(--ease) 1.55s forwards; }
[data-motion="full"] .sec-hero.hero-play .hero-scroll { animation: fadeIn 1s ease 2.2s forwards; }
[data-motion="full"] .sec-hero .arch-frame { clip-path: inset(100% 0 0 0 round 1000px 1000px 0 0); }
[data-motion="full"] .sec-hero.hero-play .arch-frame { animation: archIn 1.6s var(--ease) .35s forwards; }
[data-motion="full"] .sec-hero .arch-frame img { transform: scale(1.18); }
[data-motion="full"] .sec-hero.hero-play .arch-frame img { animation: imgSettle 2.4s var(--ease) .35s forwards; }
[data-motion="full"] .sec-hero .arch-outline, [data-motion="full"] .sec-hero .hero-badge { opacity: 0; }
[data-motion="full"] .sec-hero.hero-play .arch-outline { animation: fadeIn 1.2s ease 1.2s forwards; }
[data-motion="full"] .sec-hero.hero-play .hero-badge { animation: popIn .9s var(--ease) 1.7s forwards; }
[data-motion="subtle"] .sec-hero:not(.hero-play) .hero-inner { opacity: 0; }
[data-motion="subtle"] .sec-hero.hero-play .hero-inner { animation: fadeIn 1.2s ease forwards; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes ampIn { from { opacity: 0; transform: scale(.6) rotate(-12deg); } to { opacity: 1; transform: none; } }
@keyframes archIn { to { clip-path: inset(0 0 0 0 round 1000px 1000px 0 0); } }
@keyframes imgSettle { to { transform: scale(1); } }
@keyframes popIn { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }

@media (max-width: 900px) {
  .sec-hero { padding: 96px 0 84px; }
  .hero-split { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .hero-split .hero-text { text-align: center; order: 2; }
  .hero-split .hero-media { order: 1; width: min(76vw, 360px); }
  .hero-split .hero-names .amp, .hero-split .hero-names .n2 { padding-left: 0; }
  .hero-split .hero-date { margin-left: auto; margin-right: auto; }
  .hero-split .hero-cta { justify-content: center; }
  .hero-badge { width: 104px; height: 104px; left: -30px; bottom: 20px; }
  .hero-badge text { font-size: 13.4px; }
  .hero-sprig { width: 120px; }
  .hero-sprig.l { left: -30px; top: 5%; } .hero-sprig.r { right: -30px; bottom: 5%; }
  .hero-scroll { display: none; }
}
@media (max-width: 420px) { .hero-names { font-size: calc(clamp(3rem, 16vw, 4.2rem) * var(--fs-display)); } }

/* ---------------------------------------------------------------- countdown */
.sec-countdown.v-band { background: radial-gradient(circle at 10% 0%, rgba(255,255,255,.08), transparent 40%), radial-gradient(circle at 90% 100%, rgba(var(--accent-rgb), .2), transparent 45%), var(--forest); color: var(--paper); overflow: hidden; }
.v-band .sec-head h2 { color: var(--paper); }
.v-band .sec-head p { color: var(--forest-soft); }
.v-band .ornament { color: var(--forest-soft); }
.countdown { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; position: relative; }
.cd-unit { width: 118px; padding: 24px 0 18px; text-align: center; border: 1px solid rgba(255,255,255,.2); border-radius: var(--radius); background: rgba(255,255,255,.03); }
.cd-num { font-family: var(--font-display); font-size: calc(3rem * var(--fs-display)); font-weight: 400; line-height: 1; font-variant-numeric: tabular-nums; display: inline-block; }
.cd-num.flip { animation: flip .6s var(--ease); }
@keyframes flip { from { transform: translateY(-40%); opacity: 0; } to { transform: none; opacity: 1; } }
.cd-label { font-size: calc(.66rem * var(--fs-body)); letter-spacing: .2em; text-transform: uppercase; color: var(--forest-soft); margin-top: 10px; }
.cd-done { font-family: var(--font-display); font-size: calc(clamp(1.4rem, 4vw, 2rem) * var(--fs-display)); font-style: italic; text-align: center; }
.cd-cal { margin-top: 38px; display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; position: relative; }
.v-minimal .cd-unit { border: 0; background: none; width: auto; padding: 0 clamp(14px, 3vw, 36px); position: relative; }
.v-minimal .cd-unit + .cd-unit::before { content: ''; position: absolute; left: 0; top: 14%; bottom: 30%; width: 1px; background: var(--line-strong); }
.v-minimal .cd-num { font-size: calc(clamp(2.8rem, 8vw, 5rem) * var(--fs-display)); font-weight: 300; color: var(--ink); }
.v-minimal .cd-label { color: var(--ink-soft); }
.v-minimal .btn-ghost-light { color: var(--ink); border-color: var(--line-strong); }
@media (max-width: 640px) {
  .countdown { gap: 8px; flex-wrap: nowrap; }
  .cd-unit { width: auto; flex: 1; max-width: 88px; padding: 16px 0 12px; }
  .cd-num { font-size: calc(2rem * var(--fs-display)); }
  .cd-label { font-size: calc(.58rem * var(--fs-body)); letter-spacing: .14em; }
  .v-minimal .cd-unit { padding: 0 8px; max-width: none; }
}

/* ---------------------------------------------------------------- story */
.zigzag { display: grid; gap: 96px; position: relative; }
.zigzag::before { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: linear-gradient(var(--line), var(--line) 50%, transparent); }
.zz-item { display: grid; grid-template-columns: 1fr 1fr; gap: 88px; align-items: center; position: relative; }
.zz-item::after { content: ''; position: absolute; left: 50%; top: 50%; width: 13px; height: 13px; border-radius: 50%; background: var(--cream); border: 2px solid var(--terracotta); transform: translate(-50%, -50%); }
.zz-item.rev .zz-media { order: 2; }
.zz-media { position: relative; }
.zz-img { aspect-ratio: 4 / 5; border-radius: var(--radius-lg); overflow: hidden; background: var(--sage-soft); box-shadow: var(--shadow); }
.zz-img img { width: 100%; height: 112%; margin-top: -6%; object-fit: cover; }
.zz-num { position: absolute; top: -28px; right: -18px; font-family: var(--font-display); font-style: italic; font-size: calc(4.4rem * var(--fs-display)); line-height: 1; color: var(--terracotta); opacity: .9; font-weight: 300; }
.zz-item.rev .zz-num { right: auto; left: -18px; }
.zz-text { max-width: 420px; }
.zz-item.rev .zz-text { justify-self: end; }
.t-year { font-size: calc(.74rem * var(--fs-body)); letter-spacing: .16em; text-transform: uppercase; color: var(--terracotta); margin-bottom: 10px; font-weight: 500; }
.zz-text h3 { font-size: calc(clamp(1.6rem, 3vw, 2.2rem) * var(--fs-display)); margin-bottom: 14px; }
.zz-text p { color: var(--ink-soft); font-size: calc(1.02rem * var(--fs-body)); }
@media (max-width: 800px) {
  .zigzag { gap: 64px; }
  .zigzag::before, .zz-item::after { display: none; }
  .zz-item { grid-template-columns: 1fr; gap: 28px; }
  .zz-item.rev .zz-media { order: 0; }
  .zz-img { aspect-ratio: 4 / 3.6; }
  .zz-num { font-size: calc(3.2rem * var(--fs-display)); top: -22px; right: 6px; }
  .zz-item.rev .zz-num { left: auto; right: 6px; }
  .zz-item.rev .zz-text { justify-self: start; }
}

.timeline { position: relative; padding-left: 32px; }
.timeline::before { content: ''; position: absolute; left: 5px; top: 6px; bottom: 6px; width: 1px; background: var(--line); }
.t-item { position: relative; padding-bottom: 48px; }
.t-item:last-child { padding-bottom: 0; }
.t-item::before { content: ''; position: absolute; left: -32px; top: 4px; width: 11px; height: 11px; border-radius: 50%; background: var(--cream); border: 2px solid var(--sage); }
.t-thumb { width: 100%; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; margin-bottom: 18px; background: var(--sage-soft); }
.t-thumb img { width: 100%; height: 100%; object-fit: cover; }
.t-item h3 { font-size: calc(1.45rem * var(--fs-display)); margin-bottom: 8px; }
.t-item p { color: var(--ink-soft); }

/* ---------------------------------------------------------------- quote */
.sec-quote.v-photo { min-height: 78vh; display: grid; place-items: center; overflow: hidden; color: var(--paper); padding: 140px 0; }
.quote-bg { position: absolute; inset: -18% 0; }
.quote-bg img, .quote-bg .img-ph { width: 100%; height: 100%; object-fit: cover; }
.quote-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(var(--forest-rgb), .55), rgba(20, 22, 16, .55)); }
.sec-quote .wrap { position: relative; z-index: 1; }
.quote-body { text-align: center; }
.quote-mark { display: block; font-family: var(--font-display); font-size: calc(6rem * var(--fs-display)); line-height: .6; height: .5em; color: var(--terracotta); opacity: .9; }
.v-photo .quote-mark { color: #F3D9C8; }
.quote-body p { font-family: var(--font-display); font-style: italic; font-weight: 300; font-size: calc(clamp(1.5rem, 3.6vw, 2.5rem) * var(--fs-display)); line-height: 1.35; }
.quote-body cite { display: block; margin-top: 26px; font-style: normal; font-size: calc(.76rem * var(--fs-body)); letter-spacing: .2em; text-transform: uppercase; opacity: .85; }
.sec-quote.v-plain .quote-body p { color: var(--ink); }
.sec-quote.v-plain cite { color: var(--ink-soft); }

/* ---------------------------------------------------------------- feature */
.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.v-left .feature-media { order: -1; }
.v-right .feature-media { order: 2; }
.feature-media { border-radius: 1000px 1000px var(--radius-lg) var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 5; box-shadow: var(--shadow); max-width: 460px; width: 100%; justify-self: center; }
.feature-media img { width: 100%; height: 100%; object-fit: cover; }
.feature-text h2 { font-size: calc(clamp(2rem, 4.4vw, 3rem) * var(--fs-display)); margin-bottom: 18px; }
.feature-text p { color: var(--ink-soft); font-size: calc(1.04rem * var(--fs-body)); margin-bottom: 26px; }
.v-center .feature-grid { grid-template-columns: 1fr; text-align: center; gap: 40px; }
.v-center .feature-text { max-width: 620px; margin: 0 auto; }
.v-center .feature-media { order: 2; aspect-ratio: 16 / 9; max-width: none; border-radius: var(--radius-lg); }
@media (max-width: 800px) { .feature-grid { grid-template-columns: 1fr; gap: 40px; text-align: center; } .v-right .feature-media { order: -1; } .feature-media { max-width: 340px; } }

/* ---------------------------------------------------------------- events */
.event-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.event-grid.n1 { grid-template-columns: minmax(0, 560px); justify-content: center; }
.event-grid.n3 { grid-template-columns: repeat(3, 1fr); }
.event-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.event-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.ec-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--sage-soft); }
.ec-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.event-card:hover .ec-media img { transform: scale(1.05); }
.ec-kicker-float { position: absolute; left: 18px; top: 18px; background: rgba(var(--cream-rgb), .9); backdrop-filter: blur(6px); color: var(--ink); font-size: calc(.66rem * var(--fs-body)); letter-spacing: .2em; padding: 7px 12px; border-radius: 999px; font-weight: 600; }
.ec-media + .ec-body .ec-kicker { display: none; }
.ec-body { padding: 30px 30px 32px; display: flex; flex-direction: column; flex: 1; }
.ec-kicker { font-size: calc(.72rem * var(--fs-body)); letter-spacing: .18em; color: var(--terracotta); font-weight: 600; }
.ec-body h3 { font-size: calc(1.7rem * var(--fs-display)); margin: 4px 0 18px; }
.ec-rows { flex: 1; }
.ec-row { display: grid; grid-template-columns: 18px 72px 1fr; gap: 10px; align-items: start; padding: 11px 0; border-top: 1px solid var(--line); font-size: calc(.93rem * var(--fs-body)); }
.ec-row:first-child { border-top: 0; }
.ec-row .ico { width: 16px; height: 16px; color: var(--sage); margin-top: 3px; }
.ec-label { color: var(--ink-soft); }
.ec-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.ec-map { max-height: 0; overflow: hidden; transition: max-height .6s var(--ease), margin .4s; border-radius: var(--radius); }
.ec-map.open { max-height: 320px; margin-top: 18px; }
.ec-map iframe { width: 100%; height: 280px; border: 0; display: block; }
.v-stacked .event-grid { grid-template-columns: 1fr; }
.v-stacked .event-card { flex-direction: row; }
.v-stacked .ec-media { width: 44%; aspect-ratio: auto; min-height: 320px; flex-shrink: 0; }
@media (max-width: 960px) { .event-grid.n3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px) {
  .event-grid, .event-grid.n3 { grid-template-columns: 1fr; }
  .v-stacked .event-card { flex-direction: column; }
  .v-stacked .ec-media { width: 100%; min-height: 0; aspect-ratio: 16 / 10; }
  .ec-body { padding: 24px 22px 26px; }
}

/* ---------------------------------------------------------------- schedule */
.sched { position: relative; }
.sched::before { content: ''; position: absolute; left: 50%; top: 20px; bottom: 20px; width: 1px; background: var(--line-strong); transform: translateX(-50%); }
.sched-item { display: grid; grid-template-columns: 1fr 64px 1fr; align-items: center; gap: 22px; padding: 16px 0; position: relative; }
.sched-time { text-align: right; font-family: var(--font-display); font-size: calc(1.35rem * var(--fs-display)); color: var(--terracotta); font-style: italic; }
.sched-node { width: 60px; height: 60px; border-radius: 50%; background: var(--cream); border: 1px solid var(--sage-soft); display: grid; place-items: center; color: var(--sage-deep); position: relative; z-index: 1; transition: transform .4s var(--ease), background .3s; }
.alt-bg .sched-node { background: var(--cream-2); }
.sched-item:hover .sched-node { transform: scale(1.08); background: var(--sage-deep); color: var(--cream); }
.sched-node .ico { width: 24px; height: 24px; }
.sched-body h3 { font-size: calc(1.3rem * var(--fs-display)); }
.sched-body p { color: var(--ink-soft); font-size: calc(.92rem * var(--fs-body)); }
.sched-item.rev .sched-time { order: 3; text-align: left; }
.sched-item.rev .sched-body { order: 1; text-align: right; }
.sched-item.rev .sched-node { order: 2; }
@media (max-width: 640px) {
  .sched::before { left: 30px; }
  .sched-item, .sched-item.rev { grid-template-columns: 60px 1fr; grid-template-areas: "node time" "node body"; gap: 0 18px; align-items: start; }
  .sched-item .sched-node, .sched-item.rev .sched-node { grid-area: node; order: 0; }
  .sched-item .sched-time, .sched-item.rev .sched-time { grid-area: time; text-align: left; order: 0; font-size: calc(1.1rem * var(--fs-display)); padding-top: 6px; }
  .sched-item .sched-body, .sched-item.rev .sched-body { grid-area: body; text-align: left; order: 0; }
}
.sched-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; }
.sg-item { text-align: center; padding: 32px 22px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.sg-ico { width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center; background: var(--cream-2); color: var(--sage-deep); }
.sg-ico .ico { width: 24px; height: 24px; }
.sg-time { font-family: var(--font-display); font-style: italic; color: var(--terracotta); font-size: calc(1.15rem * var(--fs-display)); }
.sg-item h3 { font-size: calc(1.25rem * var(--fs-display)); margin: 4px 0 6px; }
.sg-item p { color: var(--ink-soft); font-size: calc(.9rem * var(--fs-body)); }

/* ---------------------------------------------------------------- entourage */
.ent-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px 32px; text-align: center; }
.ent-group.full { grid-column: 1 / -1; }
.ent-group h4 { font-family: var(--font-body); font-size: calc(.72rem * var(--fs-body)); letter-spacing: .2em; color: var(--sage-deep); font-weight: 600; margin-bottom: 16px; text-transform: uppercase; }
.ent-names p { font-family: var(--font-display); font-size: calc(1.14rem * var(--fs-display)); color: var(--ink); line-height: 1.7; }
.ent-group.full .ent-names { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 28px; max-width: 560px; margin: 0 auto; }
.ent-group.full .ent-names p { flex: 0 0 calc(50% - 14px); }
.ent-grid.as-cards .ent-group { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px 20px; }
@media (max-width: 560px) { .ent-grid { grid-template-columns: 1fr; gap: 36px; } .ent-group.full .ent-names p { flex-basis: 100%; } }

/* ---------------------------------------------------------------- gallery */
.gallery.masonry { columns: 3 260px; column-gap: 14px; }
.gallery.masonry .g-item { break-inside: avoid; margin-bottom: 14px; }
.gallery.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.gallery.grid .g-item { aspect-ratio: 1; }
.gallery.grid .g-item img { height: 100%; }
.g-item { position: relative; overflow: hidden; border-radius: var(--radius); cursor: zoom-in; background: var(--sage-soft); }
.g-item img { width: 100%; height: auto; object-fit: cover; transition: transform 1.2s var(--ease), filter .6s; }
.g-item:hover img { transform: scale(1.05); }
.g-item figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 36px 16px 14px; color: #fff; font-size: calc(.84rem * var(--fs-body)); background: linear-gradient(transparent, rgba(0,0,0,.55)); opacity: 0; transform: translateY(8px); transition: .4s var(--ease); }
.g-item:hover figcaption, .g-item:focus-visible figcaption { opacity: 1; transform: none; }
.gallery-tag { text-align: center; margin-top: 36px; color: var(--ink-soft); }
.gallery-tag strong { color: var(--terracotta); font-weight: 500; }
@media (max-width: 640px) { .gallery.masonry { columns: 2; column-gap: 8px; } .gallery.masonry .g-item { margin-bottom: 8px; } .gallery.grid { grid-template-columns: repeat(2, 1fr); gap: 8px; } }

.filmstrip-wrap { position: relative; }
.filmstrip { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px max(24px, calc((100vw - 1072px) / 2)) 18px; scrollbar-width: none; }
.filmstrip::-webkit-scrollbar { display: none; }
.filmstrip .g-item { flex: 0 0 auto; height: clamp(280px, 52vh, 480px); scroll-snap-align: center; }
.filmstrip .g-item img { height: 100%; width: auto; max-width: none; }
.fs-btn { position: absolute; top: calc(50% - 9px); transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; background: var(--surface); box-shadow: var(--shadow); display: grid; place-items: center; z-index: 2; transition: .2s; }
.fs-btn:hover { background: var(--sage-deep); color: var(--cream); }
.fs-btn.prev { left: 16px; } .fs-btn.next { right: 16px; }
@media (max-width: 640px) { .fs-btn { display: none; } .filmstrip .g-item { height: 58vw; min-height: 240px; } }

.lightbox { position: fixed; inset: 0; z-index: 250; background: rgba(18, 19, 14, .95); display: grid; place-items: center; opacity: 0; transition: opacity .3s ease; touch-action: pan-y; }
.lightbox.open { opacity: 1; }
.lb-stage { max-width: min(92vw, 1400px); text-align: center; }
.lb-stage img { max-width: 100%; max-height: 82vh; margin: 0 auto; border-radius: 4px; opacity: 0; transform: scale(.98); transition: opacity .35s, transform .5s var(--ease); user-select: none; -webkit-user-drag: none; }
.lightbox.loaded .lb-stage img { opacity: 1; transform: none; }
.lb-stage figcaption { color: rgba(255,255,255,.8); margin-top: 14px; font-family: var(--font-display); font-style: italic; min-height: 1.4em; }
.lb-btn { position: absolute; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: rgba(255,255,255,.08); transition: background .2s; }
.lb-btn:hover { background: rgba(255,255,255,.18); }
.lb-close { top: max(18px, env(safe-area-inset-top)); right: 18px; }
.lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 18px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; bottom: max(20px, env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.6); font-size: calc(.78rem * var(--fs-body)); letter-spacing: .2em; }
@media (max-width: 640px) { .lb-prev, .lb-next { top: auto; bottom: 10px; transform: none; } }

/* ---------------------------------------------------------------- video */
.video-frame { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-lg); overflow: hidden; background: #111; box-shadow: var(--shadow-lg); }
.video-frame.framed { padding: 14px; background: var(--surface); border: 1px solid var(--line); aspect-ratio: auto; }
.video-frame.framed .video-facade, .video-frame.framed iframe { aspect-ratio: 16 / 9; border-radius: var(--radius); }
.video-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.video-facade { position: relative; width: 100%; height: 100%; display: block; overflow: hidden; cursor: pointer; }
.video-facade img, .video-facade .img-ph { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.video-facade:hover img { transform: scale(1.04); }
.video-facade::after { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,.18); }
.video-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 84px; height: 84px; border-radius: 50%; background: var(--terracotta); color: #fff; display: grid; place-items: center; z-index: 1; box-shadow: 0 0 0 0 rgba(var(--accent-rgb), .6); animation: ring 2.4s infinite; }
.video-play .ico { width: 30px; height: 30px; margin-left: 4px; fill: currentColor; }
@keyframes ring { 70% { box-shadow: 0 0 0 26px rgba(var(--accent-rgb), 0); } 100% { box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0); } }
.video-note { position: absolute; left: 0; right: 0; bottom: 18px; z-index: 1; color: #fff; font-size: calc(.82rem * var(--fs-body)); text-align: center; }

/* ---------------------------------------------------------------- dress code */
.swatches { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; margin-bottom: 44px; }
.swatch { text-align: center; width: 76px; }
.swatch .chip { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 10px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08), 0 0 0 5px var(--cream-2), 0 0 0 6px var(--line); transition: transform .4s var(--ease); }
.swatch:hover .chip { transform: translateY(-4px) scale(1.06); }
.swatch span { font-size: calc(.72rem * var(--fs-body)); color: var(--ink-soft); letter-spacing: .04em; }
.dc-text { text-align: center; color: var(--ink-soft); max-width: 520px; margin: 0 auto 40px; font-size: calc(1.02rem * var(--fs-body)); }
.dc-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.dc-col { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; }
.dc-ico { width: 44px; height: 44px; border-radius: 50%; background: var(--cream-2); display: grid; place-items: center; color: var(--terracotta); margin-bottom: 14px; }
.dc-col h3 { font-size: calc(1.3rem * var(--fs-display)); margin-bottom: 8px; }
.dc-col p { color: var(--ink-soft); font-size: calc(.94rem * var(--fs-body)); }
@media (max-width: 640px) { .dc-cols { grid-template-columns: 1fr; } .swatches { gap: 10px; } .swatch { width: 64px; } .swatch .chip { width: 52px; height: 52px; } }

/* ---------------------------------------------------------------- info cards */
.info-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.info-cards.n1 { grid-template-columns: minmax(0, 520px); justify-content: center; }
.info-cards.n2 { grid-template-columns: repeat(2, 1fr); }
.info-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; transition: transform .4s var(--ease), box-shadow .4s; }
.info-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.ic-media { aspect-ratio: 3 / 2; overflow: hidden; background: var(--sage-soft); }
.ic-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.info-card:hover .ic-media img { transform: scale(1.05); }
.ic-body { padding: 26px; display: flex; flex-direction: column; align-items: flex-start; flex: 1; }
.ic-body h3 { font-size: calc(1.4rem * var(--fs-display)); margin-bottom: 8px; }
.ic-body p { color: var(--ink-soft); font-size: calc(.94rem * var(--fs-body)); flex: 1; margin-bottom: 16px; }
.info-cards.as-list { grid-template-columns: 1fr; gap: 0; max-width: 720px; margin: 0 auto; border-top: 1px solid var(--line); }
.as-list .info-card { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: none; }
.as-list .info-card:hover { transform: none; box-shadow: none; }
.as-list .ic-body { padding: 24px 4px; }
@media (max-width: 900px) { .info-cards, .info-cards.n2 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .info-cards, .info-cards.n2 { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- RSVP */
.rsvp-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 44px 40px; max-width: 520px; margin: 0 auto; box-shadow: var(--shadow); position: relative; }
.rsvp-card::before { content: ''; position: absolute; inset: 8px; border: 1px solid var(--line); border-radius: calc(var(--radius-lg) - 4px); pointer-events: none; }
.f-row { margin-bottom: 22px; position: relative; }
.f-row label, .f-label { display: block; font-size: calc(.74rem * var(--fs-body)); color: var(--ink-soft); margin-bottom: 8px; letter-spacing: .12em; text-transform: uppercase; font-weight: 500; }
.opt { text-transform: none; letter-spacing: 0; opacity: .7; }
.f-row input, .f-row textarea, .f-row select {
  width: 100%; border: 0; border-bottom: 1px solid var(--line-strong); background: transparent; padding: 10px 2px; font-size: calc(1rem * var(--fs-body)); color: var(--ink); border-radius: 0; transition: border-color .2s;
}
.f-row select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink-soft) 50%), linear-gradient(135deg, var(--ink-soft) 50%, transparent 50%); background-position: calc(100% - 14px) 55%, calc(100% - 9px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
.f-row input:focus, .f-row textarea:focus, .f-row select:focus { outline: none; border-bottom-color: var(--terracotta); }
.f-row textarea { resize: vertical; min-height: 76px; }
.attend-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.attend-btn { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 8px; border: 1px solid var(--line-strong); border-radius: var(--radius); font-size: calc(.9rem * var(--fs-body)); color: var(--ink-soft); transition: .25s; }
.attend-btn .ico { width: 16px; height: 16px; opacity: 0; width: 0; transition: .25s; }
.attend-btn.active { border-color: var(--sage-deep); background: var(--sage-deep); color: var(--cream); }
.attend-btn.active .ico { opacity: 1; width: 16px; }
.attending-only { overflow: hidden; max-height: 600px; transition: max-height .5s var(--ease), opacity .4s; }
.attending-only.collapsed { max-height: 0; opacity: 0; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: 999px; }
.stepper button { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; color: var(--sage-deep); }
.stepper button:hover { background: var(--cream-2); }
.stepper output { min-width: 36px; text-align: center; font-family: var(--font-display); font-size: calc(1.3rem * var(--fs-display)); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.rsvp-submit { margin-top: 10px; position: relative; }
.rsvp-submit.loading span { opacity: 0; }
.rsvp-submit.loading::after { content: ''; position: absolute; width: 18px; height: 18px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
.form-error { color: var(--terracotta); font-size: calc(.88rem * var(--fs-body)); margin-top: 12px; text-align: center; }
.f-hint { display: block; margin-top: 6px; font-size: calc(.78rem * var(--fs-body)); color: var(--ink-soft); }
.done-mail { max-width: 380px; margin: -8px auto 20px; padding: 10px 16px; border-radius: var(--radius); background: var(--cream-2); color: var(--sage-deep); font-size: calc(.85rem * var(--fs-body)); line-height: 1.5; }
.rsvp-done { text-align: center; padding: 18px 0; }
.rsvp-done h3 { font-size: calc(2rem * var(--fs-display)); margin: 18px 0 4px; }
.done-who { color: var(--ink); font-family: var(--font-display); font-style: italic; margin-bottom: 8px; }
.done-text { color: var(--ink-soft); max-width: 360px; margin: 0 auto 22px; }
.done-check { width: 72px; height: 72px; margin: 0 auto; }
.done-check svg { width: 100%; height: 100%; stroke: var(--sage-deep); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.done-check circle { stroke-dasharray: 160; stroke-dashoffset: 160; }
.done-check path { stroke: var(--terracotta); stroke-width: 3; stroke-dasharray: 40; stroke-dashoffset: 40; }
.rsvp-done.show circle { animation: dash .9s var(--ease) forwards; }
.rsvp-done.show path { animation: dash .5s var(--ease) .7s forwards; }
@keyframes dash { to { stroke-dashoffset: 0; } }
.rsvp-closed { text-align: center; color: var(--ink-soft); }
.rsvp-closed .sprig-sm { width: 48px; height: 48px; color: var(--sage); margin: 0 auto 12px; }
.rsvp-split { display: grid; grid-template-columns: 1fr 1fr; gap: 0; align-items: stretch; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.rsvp-split .rsvp-card { border-radius: 0; box-shadow: none; max-width: none; border: 0; display: flex; flex-direction: column; justify-content: center; }
.rsvp-split .rsvp-card::before { display: none; }
.rsvp-photo { position: relative; min-height: 420px; }
.rsvp-photo img, .rsvp-photo .img-ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rsvp-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.05), rgba(var(--forest-rgb), .75)); }
.rsvp-photo-text { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 36px; color: #fff; }
.rsvp-photo-text .sec-head { margin: 0; text-align: left; }
.rsvp-photo-text .sec-head h2, .rsvp-photo-text .sec-head p { color: #fff; margin-left: 0; }
.rsvp-photo-text .ornament { margin-left: 0; color: rgba(255,255,255,.7); }
@media (max-width: 800px) { .rsvp-split { grid-template-columns: 1fr; } .rsvp-photo { min-height: 300px; } }
@media (max-width: 560px) { .rsvp-card { padding: 32px 22px; } .attend-btn { font-size: calc(.84rem * var(--fs-body)); } }

.petals { position: fixed; inset: 0; pointer-events: none; z-index: 500; }
.petals i { position: absolute; width: 10px; height: 14px; border-radius: 70% 0 70% 0; animation: petal 1.6s var(--ease) forwards; opacity: 0; }
@keyframes petal { 0% { opacity: 1; transform: translate(0,0) rotate(0); } 70% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--x), calc(var(--y) + 120px)) rotate(var(--r)); } }

/* ---------------------------------------------------------------- registry */
.registry { display: grid; border-top: 1px solid var(--line); }
.reg-item { display: grid; grid-template-columns: 48px 1fr auto; gap: 18px; align-items: center; padding: 24px 4px; border-bottom: 1px solid var(--line); }
.reg-ico { width: 48px; height: 48px; border-radius: 50%; background: var(--cream-2); display: grid; place-items: center; color: var(--terracotta); }
.reg-ico .ico { width: 20px; height: 20px; }
.reg-item h4 { font-size: calc(1.25rem * var(--fs-display)); }
.reg-item p { color: var(--ink-soft); font-size: calc(.9rem * var(--fs-body)); margin-top: 2px; }
.reg-act { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.reg-details { margin-top: 12px; background: var(--cream-2); padding: 16px 18px; border-radius: var(--radius); }
.reg-details pre { font-family: var(--font-body); white-space: pre-wrap; font-size: calc(.92rem * var(--fs-body)); margin-bottom: 10px; }
.registry.as-cards { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; border: 0; }
.as-cards .reg-item { grid-template-columns: 1fr; text-align: center; justify-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px 22px; }
.as-cards .reg-act { align-items: center; }
@media (max-width: 560px) { .reg-item { grid-template-columns: 40px 1fr; } .reg-ico { width: 40px; height: 40px; } .reg-act { grid-column: 2; align-items: flex-start; flex-direction: row; } }

/* ---------------------------------------------------------------- FAQ */
.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; text-align: left; padding: 22px 4px; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-family: var(--font-display); font-size: calc(1.15rem * var(--fs-display)); color: var(--ink); }
.plus { width: 22px; height: 22px; position: relative; flex-shrink: 0; border-radius: 50%; border: 1px solid var(--line-strong); transition: .3s; }
.plus::before, .plus::after { content: ''; position: absolute; left: 50%; top: 50%; width: 9px; height: 1.5px; background: var(--sage-deep); transform: translate(-50%, -50%); transition: transform .3s var(--ease); }
.plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item.open .plus { background: var(--sage-deep); border-color: var(--sage-deep); }
.faq-item.open .plus::before, .faq-item.open .plus::after { background: var(--cream); }
.faq-item.open .plus::after { transform: translate(-50%, -50%) rotate(0); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .4s var(--ease); }
.faq-a p { padding: 0 4px 22px; color: var(--ink-soft); max-width: 560px; }
.faq-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.faq-card { padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.faq-card h3 { font-size: calc(1.2rem * var(--fs-display)); margin-bottom: 8px; }
.faq-card p { color: var(--ink-soft); font-size: calc(.94rem * var(--fs-body)); }
@media (max-width: 640px) { .faq-cols { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- wishes */
.wish-form { max-width: 620px; margin: 0 auto 56px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow); display: grid; gap: 14px; }
.wish-fields { display: grid; gap: 10px; }
.wish-form input, .wish-form textarea { width: 100%; border: 1px solid var(--line); background: var(--cream); border-radius: var(--radius); padding: 13px 14px; font-size: calc(.98rem * var(--fs-body)); resize: vertical; transition: border-color .2s; }
.wish-form input:focus, .wish-form textarea:focus { outline: none; border-color: var(--sage); }
.wish-form .btn { justify-self: end; }
.wish-wall { columns: 3 260px; column-gap: 18px; }
.wish { break-inside: avoid; margin-bottom: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px 26px 22px; position: relative; }
.wish-mark { position: absolute; top: 4px; left: 18px; font-family: var(--font-display); font-size: calc(4rem * var(--fs-display)); color: var(--terracotta); opacity: .35; line-height: 1; }
.wish p { font-family: var(--font-display); font-style: italic; font-size: calc(1.08rem * var(--fs-display)); line-height: 1.55; position: relative; }
.wish footer { margin-top: 16px; display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: calc(.78rem * var(--fs-body)); color: var(--ink-soft); }
.wish footer strong { font-weight: 500; color: var(--sage-deep); letter-spacing: .06em; text-transform: uppercase; font-size: calc(.72rem * var(--fs-body)); }
.wish-empty { text-align: center; color: var(--ink-soft); font-family: var(--font-display); font-style: italic; column-span: all; }
.wish-wall.carousel { columns: auto; display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; scrollbar-width: thin; }
.wish-wall.carousel .wish { flex: 0 0 min(340px, 82vw); scroll-snap-align: start; margin: 0; }
@media (max-width: 640px) { .wish-wall { columns: 1; } .wish-form .btn { justify-self: stretch; } }

/* ---------------------------------------------------------------- footer */
.site-footer { background: var(--forest); color: var(--paper); text-align: center; padding: 72px 0 calc(56px + env(safe-area-inset-bottom)); position: relative; overflow: hidden; }
.site-footer .divider { margin: 0 auto 24px; color: var(--forest-soft); }
.foot-mono { font-family: var(--font-script); font-style: var(--script-style); font-size: calc(3rem * var(--script-scale)); line-height: 1.1; color: var(--paper); }
.foot-names { font-family: var(--font-display); font-size: calc(1.2rem * var(--fs-display)); margin-top: 10px; }
.foot-date { font-size: calc(.74rem * var(--fs-body)); letter-spacing: .2em; text-transform: uppercase; color: var(--forest-soft); margin-top: 8px; }
.foot-tag { margin-top: 22px; color: #F3D9C8; font-family: var(--font-display); font-style: italic; font-size: calc(1.1rem * var(--fs-display)); }
.foot-msg { margin-top: 10px; color: var(--forest-soft); font-size: calc(.92rem * var(--fs-body)); }
.to-top { display: inline-flex; align-items: center; gap: 8px; margin-top: 36px; font-size: calc(.7rem * var(--fs-body)); letter-spacing: .2em; text-transform: uppercase; color: var(--paper); text-decoration: none; opacity: .8; }
.to-top:hover { opacity: 1; }
.to-top .ico { width: 14px; height: 14px; }

/* ---------------------------------------------------------------- music */
.music-btn { position: fixed; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 45; width: 52px; height: 52px; border-radius: 50%; background: var(--surface); color: var(--sage-deep); box-shadow: var(--shadow-lg); display: grid; place-items: center; border: 1px solid var(--line); transition: transform .25s var(--ease); }
.music-btn:hover { transform: scale(1.06); }
.music-btn .music-ico { width: 20px; height: 20px; }
.music-btn .eq { display: none; gap: 3px; align-items: flex-end; height: 18px; }
.music-btn.playing .eq { display: flex; }
.music-btn.playing .music-ico { display: none; }
.eq i { width: 3px; background: var(--terracotta); border-radius: 2px; animation: eq 1s ease-in-out infinite; }
.eq i:nth-child(1) { height: 40%; animation-delay: -.2s; } .eq i:nth-child(2) { height: 90%; animation-delay: -.5s; }
.eq i:nth-child(3) { height: 60%; animation-delay: -.8s; } .eq i:nth-child(4) { height: 75%; animation-delay: -.35s; }
@keyframes eq { 50% { transform: scaleY(.3); } }
.music-btn .eq i { transform-origin: bottom; }

/* ---------------------------------------------------------------- live-preview ribbon */
.demo-ribbon { position: fixed; left: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 45; display: inline-flex; align-items: center; gap: 8px; padding: 11px 16px; border-radius: 999px; background: var(--forest); color: var(--paper); font-size: calc(.78rem * var(--fs-body)); font-weight: 500; letter-spacing: .04em; text-decoration: none; box-shadow: var(--shadow-lg); transition: transform .25s var(--ease); }
.demo-ribbon:hover { transform: translateY(-2px); }
.demo-ribbon .ico { width: 16px; height: 16px; }

/* ---------------------------------------------------------------- intro / envelope
   Timing is driven by two variables set from the studio settings:
   --k  speed multiplier (slow 1.4 · normal 1 · fast .65)
   --d  extra lead-in before the flap opens (seal break, ribbon, flip) */
.intro {
  --k: 1; --d: 0s; --rd: 0s; --intro-bg: var(--forest);
  --env-a: var(--paper); --env-b: var(--paper-2); --env-line: rgba(0,0,0,.07);
  --seal: var(--clay); --seal-ink: #F8E9DD;
  position: fixed; inset: 0; z-index: 260; display: grid; place-items: center; overflow: hidden; padding: 24px;
  color: var(--paper); opacity: 0; transition: opacity .6s ease;
}
.intro.show { opacity: 1; }
.intro.bd-sage { --intro-bg: var(--sage-band); }
.intro.bd-clay { --intro-bg: color-mix(in srgb, var(--clay) 70%, #1a1410); }
.intro.bd-night { --intro-bg: #1D1A17; }
.intro.env-blush { --env-a: color-mix(in srgb, var(--forest-soft) 55%, #fff); --env-b: color-mix(in srgb, var(--forest-soft) 88%, #fff); }
.intro.env-sage { --env-a: color-mix(in srgb, var(--sage-band) 22%, #F4F1E8); --env-b: color-mix(in srgb, var(--sage-band) 38%, #EDE9DD); }
.intro.env-kraft { --env-a: #D2B48C; --env-b: #BF9D72; --env-line: rgba(60,35,10,.12); }
.intro.env-white { --env-a: #FFFEFB; --env-b: #F1EEE7; }
.intro.env-walnut { --env-a: color-mix(in srgb, var(--forest) 80%, #fff 8%); --env-b: var(--forest); --env-line: rgba(255,255,255,.08); }
.intro.seal-wine { --seal: #7B2D3A; }
.intro.seal-forest { --seal: #3E4A35; }
.intro.seal-gold { --seal: #B38A45; --seal-ink: #FFF6E3; }
.intro.seal-rose { --seal: #C07A7F; }
.intro.seal-navy { --seal: #2E3B52; }

/* the backdrop is drawn twice and clipped to halves, so it can part like a curtain */
.intro-panel { position: absolute; inset: 0; overflow: hidden; background: radial-gradient(circle at 50% 30%, rgba(255,255,255,.08), transparent 55%), radial-gradient(circle at 50% 110%, rgba(var(--accent-rgb), .22), transparent 50%), var(--intro-bg); }
.intro-panel.l { clip-path: inset(0 calc(50% - 1px) 0 0); }
.intro-panel.r { clip-path: inset(0 0 0 50%); }
.intro-panel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.intro-panel .ip-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18,14,10,.5), rgba(18,14,10,.82)); opacity: var(--shade, .6); }
html.wood .intro.bd-walnut .intro-panel { background: var(--wood), radial-gradient(circle at 50% 30%, rgba(255,255,255,.1), transparent 55%), radial-gradient(circle at 50% 110%, rgba(var(--accent-rgb), .25), transparent 50%), var(--forest); }

.intro-sprig { position: absolute; width: 220px; color: var(--forest-soft); opacity: .32; pointer-events: none; transition: opacity .45s ease; }
.intro-sprig.l { top: -10px; left: -40px; transform: rotate(12deg); }
.intro-sprig.r { bottom: -10px; right: -40px; transform: rotate(-12deg) scaleX(-1); }
.intro.has-photo .intro-sprig { opacity: .2; }
.intro-content { text-align: center; position: relative; z-index: 1; max-width: 520px; width: 100%; transition: opacity .45s ease; }
.intro-kicker { font-size: calc(.72rem * var(--fs-body)); letter-spacing: .24em; text-transform: uppercase; color: var(--forest-soft); max-width: 300px; margin: 0 auto 12px; line-height: 1.8; }
.intro-names { font-family: var(--font-display); font-weight: 300; font-size: calc(clamp(2.2rem, 8vw, 3.4rem) * var(--fs-display)); line-height: 1.05; }
.intro-names .amp { font-family: var(--font-script); font-style: var(--script-style); color: #F3D9C8; font-size: calc(.8em * var(--script-scale)); }
.intro-guest { margin: 4px 0 20px; font-size: calc(.78rem * var(--fs-body)); letter-spacing: .14em; text-transform: uppercase; color: var(--forest-soft); }
.intro-guest strong { display: block; font-family: var(--font-display); font-size: calc(1.35rem * var(--fs-display)); letter-spacing: 0; text-transform: none; color: var(--paper); font-weight: 400; margin-top: 4px; }
.intro-btn { display: inline-flex; align-items: center; gap: 10px; padding: 15px 30px; border-radius: 999px; background: var(--paper); color: var(--paper-ink); font-size: calc(.74rem * var(--fs-body)); letter-spacing: .2em; text-transform: uppercase; font-weight: 500; box-shadow: 0 16px 40px -14px rgba(0,0,0,.5); transition: transform .3s var(--ease), box-shadow .3s, opacity .4s; animation: breathe 2.8s ease-in-out infinite; }
.intro-btn:hover { transform: translateY(-2px); }
.intro-btn .ico { width: 16px; height: 16px; color: var(--clay); }
@keyframes breathe { 50% { box-shadow: 0 16px 40px -14px rgba(0,0,0,.5), 0 0 0 10px rgba(255,255,255,.06); } }
.intro-kicker, .intro-names, .intro-guest { transition: opacity .5s ease, transform .6s var(--ease); }
.intro.opening .intro-btn { opacity: 0; transform: translateY(10px); animation: none; pointer-events: none; }
.intro.opening .intro-kicker, .intro.opening .intro-names, .intro.opening .intro-guest { opacity: 0; transform: translateY(-12px); }
.intro-continue { position: absolute; left: 0; right: 0; bottom: calc(26px + env(safe-area-inset-bottom)); z-index: 2; text-align: center; font-size: calc(.7rem * var(--fs-body)); letter-spacing: .24em; text-transform: uppercase; color: var(--forest-soft); opacity: 0; transition: opacity .6s ease; pointer-events: none; }
.intro.held .intro-continue { opacity: .85; }
.intro.held { cursor: pointer; }

/* the envelope */
.envelope { position: relative; width: min(340px, 78vw); aspect-ratio: 1.5; margin: 34px auto 26px; cursor: pointer; }
.env-body { position: absolute; inset: 0; perspective: 1400px; }
.env-back { position: absolute; inset: 0; background: color-mix(in srgb, var(--env-b) 82%, #000 8%); border-radius: 6px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.55); }
.env-letter { position: absolute; left: 6%; right: 6%; top: 7%; bottom: 6%; background: var(--paper); border-radius: 4px; z-index: 2; display: grid; place-items: center; color: var(--paper-ink); box-shadow: 0 -4px 14px rgba(0,0,0,.08); }
.letter-in { display: grid; gap: 4px; text-align: center; padding: 9% 10px 10px; opacity: 0; align-self: start; }
.letter-kicker { font-size: calc(.6rem * var(--fs-body)); letter-spacing: .24em; text-transform: uppercase; color: var(--clay); }
.letter-names { font-family: var(--font-display); font-size: calc(clamp(1.1rem, 4.4vw, 1.5rem) * var(--fs-display)); }
.letter-names em { font-family: var(--font-script); font-style: var(--script-style); color: var(--clay); }
.letter-date, .letter-note { font-size: calc(.66rem * var(--fs-body)); letter-spacing: .22em; color: #7a7a66; }
.letter-note { font-size: calc(.6rem * var(--fs-body)); letter-spacing: .14em; text-transform: uppercase; }
.env-pocket { position: absolute; inset: 0; z-index: 3; border-radius: 6px; background: linear-gradient(160deg, var(--env-a) 0%, var(--env-b) 100%); clip-path: polygon(0 0, 50% 54%, 100% 0, 100% 100%, 0 100%); }
.env-pocket::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top right, transparent 49.6%, var(--env-line) 50%, transparent 50.6%), linear-gradient(to top left, transparent 49.6%, var(--env-line) 50%, transparent 50.6%); }
.env-flap { position: absolute; left: 0; right: 0; top: 0; height: 58%; z-index: 4; transform-origin: top center; background: linear-gradient(180deg, color-mix(in srgb, var(--env-b) 90%, #000 6%), var(--env-b)); clip-path: polygon(0 0, 100% 0, 50% 100%); filter: drop-shadow(0 2px 2px rgba(0,0,0,.1)); }
.env-seals { position: absolute; left: 50%; top: 56%; z-index: 5; width: 68px; height: 68px; transform: translate(-50%, -50%); transition: transform .5s var(--ease); }
.envelope:hover .env-seals { transform: translate(-50%, -50%) scale(1.06) rotate(-4deg); }
.env-seal { position: absolute; inset: 0; border-radius: 50%; display: grid; place-items: center; color: var(--seal-ink);
  background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--seal) 80%, #fff 20%), var(--seal) 45%, color-mix(in srgb, var(--seal) 75%, #000 25%));
  box-shadow: 0 6px 14px rgba(0,0,0,.3), inset 0 0 0 5px rgba(255,255,255,.08), inset 0 0 0 6px rgba(0,0,0,.12);
  font-family: var(--font-script); font-style: var(--script-style); font-size: calc(.9rem * var(--script-scale)); white-space: nowrap; }
.env-seal::before { content: ''; position: absolute; inset: -5px; border-radius: 50%; background: inherit; z-index: -1; clip-path: polygon(50% 0, 61% 4%, 72% 2%, 79% 10%, 90% 13%, 92% 24%, 99% 32%, 97% 44%, 100% 55%, 94% 64%, 94% 76%, 84% 82%, 79% 93%, 67% 94%, 57% 100%, 46% 96%, 34% 99%, 26% 91%, 15% 88%, 12% 77%, 3% 69%, 5% 57%, 0 46%, 5% 36%, 4% 24%, 14% 18%, 18% 7%, 30% 6%, 39% 0); }
/* the seal is two halves that sit together, so it can crack */
.env-seal.l { clip-path: polygon(-20% -20%, 54% -20%, 47% 22%, 56% 44%, 45% 66%, 53% 84%, 48% 120%, -20% 120%); }
.env-seal.r { clip-path: polygon(54% -20%, 120% -20%, 120% 120%, 48% 120%, 53% 84%, 45% 66%, 56% 44%, 47% 22%); }

/* ribbon & bow */
.env-ribbon { position: absolute; inset: 0; z-index: 5; pointer-events: none; display: none; }
.anim-ribbon .env-ribbon { display: block; }
.anim-ribbon .env-seals { display: none; }
.rb-band { position: absolute; top: 56%; height: 13%; width: 50.5%; transform: translateY(-50%); background: linear-gradient(180deg, color-mix(in srgb, var(--seal) 68%, #fff 32%), var(--seal) 38%, color-mix(in srgb, var(--seal) 78%, #000 22%)); box-shadow: 0 3px 8px rgba(0,0,0,.18); }
.rb-band.l { left: 0; border-radius: 2px 0 0 2px; }
.rb-band.r { right: 0; border-radius: 0 2px 2px 0; }
.rb-bow { position: absolute; left: 50%; top: 56%; width: 30%; transform: translate(-50%, -42%); color: var(--seal); filter: drop-shadow(0 5px 7px rgba(0,0,0,.3)); }
.rb-bow svg { display: block; width: 100%; height: auto; overflow: visible; }

/* the front of the envelope, for "Turn it over" */
.env-front { position: absolute; inset: 0; z-index: 7; border-radius: 6px; display: none; place-items: center; color: var(--paper-ink); background: linear-gradient(160deg, var(--env-a), var(--env-b)); box-shadow: 0 30px 60px -20px rgba(0,0,0,.55); }
.anim-flip .env-front { display: grid; }
.anim-flip .intro-guest { display: none; }
.env-walnut .env-front { color: var(--paper); }
.ef-stamp { position: absolute; top: 11%; right: 7%; width: 14%; aspect-ratio: .82; display: grid; place-items: center; border: 2px dotted color-mix(in srgb, var(--seal) 55%, transparent); background: color-mix(in srgb, var(--seal) 16%, var(--env-a)); color: var(--seal); font-family: var(--font-script); font-style: var(--script-style); font-size: calc(.7rem * var(--script-scale)); }
.ef-post { position: absolute; top: 7%; right: 25%; width: 19%; aspect-ratio: 1; border-radius: 50%; border: 1.5px solid color-mix(in srgb, currentColor 22%, transparent); display: grid; place-items: center; font-size: calc(.5rem * var(--fs-body)); letter-spacing: .14em; opacity: .7; transform: rotate(-12deg); }
.ef-to { display: grid; gap: 6px; text-align: center; padding: 0 14%; }
.ef-to small { font-size: calc(.58rem * var(--fs-body)); letter-spacing: .24em; text-transform: uppercase; color: var(--clay); }
.ef-to strong { font-family: var(--font-script); font-style: var(--script-style); font-weight: 400; font-size: calc(1.45rem * var(--script-scale)); line-height: 1.2; }
.ef-to i { display: block; width: 70%; margin: 2px auto 0; border-top: 1px solid color-mix(in srgb, currentColor 22%, transparent); }

/* waiting for a tap */
[data-motion="full"] .intro.wait-float.show .envelope, [data-motion="full"] .intro.wait-float.show .intro-mono { animation: float 4.5s ease-in-out infinite; }
[data-motion="full"] .intro.wait-sway.show .envelope { transform-origin: 50% -60%; animation: sway 3.8s ease-in-out infinite; }
[data-motion="full"] .intro.wait-sway.show .intro-mono { animation: sway 3.8s ease-in-out infinite; }
.intro.wait-glow.show:not(.opening) :is(.env-seals, .rb-bow, .intro-mono) { animation: glow 2.4s ease-in-out infinite; }
[data-motion="none"] .intro .intro-mono, [data-motion="none"] .intro :is(.env-seals, .rb-bow) { animation: none; }
@keyframes float { 50% { transform: translateY(-8px) rotate(-.6deg); } }
@keyframes sway { 0%, 100% { transform: rotate(-2deg); } 50% { transform: rotate(2deg); } }
@keyframes glow { 50% { filter: drop-shadow(0 0 16px rgba(255, 232, 200, .8)); } }

/* opening — shared steps, offset by --d */
@keyframes envSettle { to { transform: translateY(18%) scale(1.04); } }
@keyframes flapOpen { 0% { transform: rotateX(0); z-index: 4; } 49% { z-index: 4; } 50% { z-index: 1; } 100% { transform: rotateX(180deg); z-index: 1; } }
@keyframes letterRise { to { transform: translateY(-64%); } }
@keyframes fadeIn { to { opacity: 1; } }
@keyframes sealPop { to { transform: translate(-50%, -50%) scale(1.3); opacity: 0; } }
.intro.opening .env-body { animation: envSettle calc(1s * var(--k)) var(--ease) calc(var(--d) * var(--k)) both; }
.intro.opening .env-seals { animation: sealPop calc(.5s * var(--k)) var(--ease) calc(var(--d) * var(--k)) both; }
.intro.opening .env-flap { animation: flapOpen calc(.8s * var(--k)) var(--ease) calc((var(--d) + .25s) * var(--k)) both; }
.intro.opening .env-letter { animation: letterRise calc(1s * var(--k)) var(--ease) calc((var(--d) + .75s) * var(--k)) both; }
.intro.opening .letter-in { animation: fadeIn calc(.5s * var(--k)) ease calc((var(--d) + 1s) * var(--k)) both; }

/* break the seal: it trembles, cracks in two and falls */
@keyframes sealShake { 0%, 100% { transform: translate(-50%, -50%); } 20% { transform: translate(-50%, -50%) rotate(-7deg) scale(1.06); } 40% { transform: translate(-50%, -50%) rotate(6deg) scale(1.06); } 60% { transform: translate(-50%, -50%) rotate(-4deg); } 80% { transform: translate(-50%, -50%) rotate(3deg); } }
@keyframes sealL { to { transform: translate(-45%, 170%) rotate(-40deg); opacity: 0; } }
@keyframes sealR { to { transform: translate(45%, 180%) rotate(36deg); opacity: 0; } }
.intro.opening.anim-seal .env-seals { animation: sealShake calc(.6s * var(--k)) ease-in-out both; }
.intro.opening.anim-seal .env-seal.l { animation: sealL calc(.9s * var(--k)) cubic-bezier(.5, 0, .8, .5) calc(.55s * var(--k)) both; }
.intro.opening.anim-seal .env-seal.r { animation: sealR calc(.9s * var(--k)) cubic-bezier(.5, 0, .8, .5) calc(.55s * var(--k)) both; }

/* untie the ribbon: the bow lifts away and the ribbon slides off both sides */
@keyframes bowOff { 30% { transform: translate(-50%, -42%) scale(1.12) rotate(-6deg); } to { transform: translate(-50%, -140%) scale(.5) rotate(24deg); opacity: 0; } }
@keyframes bandL { to { transform: translate(-80%, -50%); opacity: 0; } }
@keyframes bandR { to { transform: translate(80%, -50%); opacity: 0; } }
.intro.opening.anim-ribbon .rb-bow { animation: bowOff calc(.75s * var(--k)) var(--ease) both; }
.intro.opening.anim-ribbon .rb-band.l { animation: bandL calc(.8s * var(--k)) var(--ease) calc(.25s * var(--k)) both; }
.intro.opening.anim-ribbon .rb-band.r { animation: bandR calc(.8s * var(--k)) var(--ease) calc(.25s * var(--k)) both; }

/* turn it over: the addressed front spins round to the sealed back */
@keyframes flipTurn { 0% { scale: 1 1; rotate: 0deg; } 50% { scale: 0 1; rotate: -3deg; } 100% { scale: 1 1; rotate: 0deg; } }
@keyframes hideHalf { 0% { opacity: 1; } 50%, 100% { opacity: 0; visibility: hidden; } }
.intro.show.opening.anim-flip .envelope { animation: flipTurn calc(1s * var(--k)) cubic-bezier(.5, 0, .3, 1) both; }
.intro.opening.anim-flip .env-front { animation: hideHalf calc(1s * var(--k)) steps(1, end) both; }

/* grand reveal: the card grows until it fills the screen */
.intro.anim-unfold { --rd: .6s; }
.anim-unfold .env-letter { transition: scale calc(.95s * var(--k)) cubic-bezier(.55, 0, .35, 1), translate calc(.95s * var(--k)) cubic-bezier(.55, 0, .35, 1), opacity calc(.4s * var(--k)) ease calc(.6s * var(--k)); }
/* scale also multiplies the letter's -64% rise, so move it back 9 × 64% to grow around the envelope */
.intro.leaving.anim-unfold .env-letter { scale: 9; translate: 0 576%; opacity: 0; z-index: 8; }
.anim-unfold :is(.env-back, .env-pocket, .env-flap) { transition: opacity calc(.35s * var(--k)) ease; }
.intro.leaving.anim-unfold :is(.env-back, .env-pocket, .env-flap) { opacity: 0; }

/* letter lifts out: the envelope falls away and the card stays centre stage */
.anim-flyaway :is(.env-back, .env-pocket, .env-flap, .env-seals) { transition: translate calc(.9s * var(--k)) cubic-bezier(.5, 0, .75, 0) calc(1.75s * var(--k)), opacity calc(.6s * var(--k)) ease calc(2s * var(--k)); }
.intro.opening.anim-flyaway :is(.env-back, .env-pocket, .env-flap) { translate: 0 90vh; opacity: 0; }
.anim-flyaway .env-letter { transition: translate calc(.9s * var(--k)) var(--ease) calc(1.8s * var(--k)), scale calc(.9s * var(--k)) var(--ease) calc(1.8s * var(--k)), box-shadow .6s; }
.intro.opening.anim-flyaway .env-letter { translate: 0 40%; scale: 1.28; box-shadow: 0 24px 50px -18px rgba(0,0,0,.55); }

/* monogram */
.intro-mono { width: 150px; height: 150px; margin: 34px auto 30px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); display: grid; place-items: center; position: relative; cursor: pointer; }
.intro-mono::before { content: ''; position: absolute; inset: 8px; border-radius: 50%; border: 1px solid rgba(255,255,255,.18); }
.intro-mono span { font-family: var(--font-script); font-style: var(--script-style); font-size: calc(2rem * var(--script-scale)); }
@keyframes monoOut { 40% { transform: scale(.94); } to { transform: scale(1.25); opacity: 0; } }
@keyframes monoCardIn { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }
.intro-monogram.opening .intro-mono { animation: monoOut calc(.9s * var(--k)) var(--ease) both; }
/* after the monogram opens, the names and date stay on screen during the pause */
.mono-card { position: absolute; inset: 0; display: grid; place-content: center; gap: 10px; text-align: center; opacity: 0; pointer-events: none; }
.mono-card .letter-kicker { color: var(--forest-soft); font-size: calc(.72rem * var(--fs-body)); }
.mono-card .letter-names { font-size: calc(clamp(2.4rem, 9vw, 3.8rem) * var(--fs-display)); font-weight: 300; line-height: 1.1; }
.mono-card .letter-names em { color: #F3D9C8; }
.mono-card .letter-date, .mono-card .letter-note { color: var(--paper); opacity: .8; font-size: calc(.78rem * var(--fs-body)); }
.intro-monogram.opening .mono-card { animation: monoCardIn calc(.8s * var(--k)) var(--ease) calc(.55s * var(--k)) both; }

/* how the website appears */
.intro.leaving { pointer-events: none; }
.intro.reveal-fade.leaving { opacity: 0; transform: scale(1.08); filter: blur(4px); transition: opacity calc(.9s * var(--k)) ease calc(var(--rd) * var(--k)), transform calc(.9s * var(--k)) var(--ease) calc(var(--rd) * var(--k)), filter calc(.9s * var(--k)) ease calc(var(--rd) * var(--k)); }
.intro.reveal-zoom.leaving { opacity: 0; transform: scale(1.9); transition: transform calc(.95s * var(--k)) cubic-bezier(.6, .05, .9, .4) calc(var(--rd) * var(--k)), opacity calc(.7s * var(--k)) ease calc((.25s + var(--rd)) * var(--k)); }
.intro.reveal-lift { box-shadow: 0 30px 80px rgba(0,0,0,.4); }
.intro.reveal-lift.leaving { transform: translateY(-106%); transition: transform calc(1.1s * var(--k)) cubic-bezier(.75, 0, .2, 1) calc(var(--rd) * var(--k)); }
.intro-panel { transition: transform calc(1.25s * var(--k)) cubic-bezier(.7, 0, .2, 1) calc(var(--rd) * var(--k)); }
.intro.reveal-curtain.leaving .intro-panel.l { transform: translateX(-51%); }
.intro.reveal-curtain.leaving .intro-panel.r { transform: translateX(51%); }
.intro.reveal-curtain.leaving :is(.intro-content, .intro-sprig, .intro-continue), .intro.reveal-iris.leaving :is(.intro-content, .intro-continue) { opacity: 0; transition-duration: calc(.4s * var(--k)); transition-delay: calc(var(--rd) * var(--k)); }
.intro.reveal-iris {
  -webkit-mask-image: linear-gradient(#000 0 0), radial-gradient(circle closest-side, #000 97%, transparent 100%); mask-image: linear-gradient(#000 0 0), radial-gradient(circle closest-side, #000 97%, transparent 100%);
  -webkit-mask-composite: xor; mask-composite: exclude; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: 0 0, 50% 50%; mask-position: 0 0, 50% 50%; -webkit-mask-size: 100% 100%, 0 0; mask-size: 100% 100%, 0 0;
}
.intro.reveal-iris.leaving { -webkit-mask-size: 100% 100%, 300vmax 300vmax; mask-size: 100% 100%, 300vmax 300vmax; transition: -webkit-mask-size calc(1.3s * var(--k)) cubic-bezier(.4, 0, .2, 1) calc(var(--rd) * var(--k)), mask-size calc(1.3s * var(--k)) cubic-bezier(.4, 0, .2, 1) calc(var(--rd) * var(--k)); }
.intro.quick *, .intro.quick { animation-duration: .01s !important; animation-delay: 0s !important; transition-duration: .3s !important; transition-delay: 0s !important; }

/* celebration effects, drawn above the page as it appears */
.fx-layer { position: fixed; inset: 0; z-index: 270; pointer-events: none; overflow: hidden; }
.fx { position: absolute; top: 0; left: var(--x); width: var(--s); height: var(--s); opacity: 0; background: var(--c); animation: fxFall var(--dur) cubic-bezier(.35, .2, .6, 1) var(--delay) forwards; will-change: transform, opacity; }
.fx-petals .fx { height: calc(var(--s) * .78); border-radius: 0 85% 0 85%; box-shadow: inset -2px -2px 4px rgba(0,0,0,.08); }
.fx-confetti .fx { width: calc(var(--s) * .45); border-radius: 1px; animation-name: fxConfetti; animation-timing-function: linear; }
.fx-sparkles .fx { top: 40%; left: 50%; background: var(--c); filter: drop-shadow(0 0 5px rgba(255, 214, 140, .95)); clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%); animation-name: fxBurst; animation-timing-function: cubic-bezier(.15, .7, .3, 1); }
.fx-hearts .fx { top: auto; bottom: -8vh; background: none; color: var(--c); animation-name: fxRise; animation-timing-function: cubic-bezier(.3, .4, .6, 1); }
.fx-hearts .fx svg { width: 100%; height: 100%; display: block; fill: currentColor; }
@keyframes fxFall { 0% { opacity: 0; transform: translate3d(0, -8vh, 0) rotate(0); } 8% { opacity: .95; } 85% { opacity: .9; } 100% { opacity: 0; transform: translate3d(var(--dx), 108vh, 0) rotate(var(--r)) rotateX(var(--rx)); } }
@keyframes fxConfetti { 0% { opacity: 0; transform: translate3d(0, -6vh, 0) rotate3d(1, .3, 0, 0deg); } 6% { opacity: 1; } 90% { opacity: 1; } 100% { opacity: 0; transform: translate3d(var(--dx), 108vh, 0) rotate3d(1, .3, 0, var(--r)); } }
@keyframes fxBurst { 0% { opacity: 0; transform: translate(-50%, -50%) scale(.2); } 12% { opacity: 1; } 100% { opacity: 0; transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(1) rotate(var(--r)); } }
@keyframes fxRise { 0% { opacity: 0; transform: translate3d(0, 0, 0) scale(.6); } 10% { opacity: .9; } 80% { opacity: .8; } 100% { opacity: 0; transform: translate3d(var(--dx), -112vh, 0) scale(1.1) rotate(var(--r)); } }

@media (max-height: 640px) { .envelope { width: min(260px, 70vw); margin: 20px auto 16px; } .intro-names { font-size: calc(2rem * var(--fs-display)); } }

/* ---------------------------------------------------------------- preview mode (inside the admin studio) */
.is-preview .sec[data-sid] { cursor: pointer; }
.is-preview .sec[data-sid]::after { content: ''; position: absolute; inset: 0; border: 2px dashed transparent; pointer-events: none; z-index: 40; transition: border-color .2s; }
.is-preview .sec[data-sid]:hover::after { border-color: rgba(var(--accent-rgb), .55); }
.is-preview .sec[data-sid].sel::after { border: 2px solid var(--terracotta); }
.is-preview .sec[data-sid]::before { content: '✎  ' attr(data-label); position: absolute; top: 10px; left: 10px; z-index: 41; background: var(--terracotta); color: #fff; font: 600 11px/1 var(--font-body); letter-spacing: .08em; text-transform: uppercase; padding: 7px 10px; border-radius: 999px; opacity: 0; transform: translateY(-4px); transition: .2s; pointer-events: none; }
.is-preview .sec[data-sid]:hover::before, .is-preview .sec[data-sid].sel::before { opacity: 1; transform: none; }
.sec-empty { min-height: 80px; }

/* ---------------------------------------------------------------- textures: wood & linen */
html.wood .sec-countdown.v-band:not([class*=" bg-"]) { background: var(--wood), radial-gradient(circle at 10% 0%, rgba(255,255,255,.08), transparent 40%), radial-gradient(circle at 90% 100%, rgba(var(--accent-rgb), .2), transparent 45%), var(--forest); }
html.wood .site-footer, html.wood .nav-menu, html.wood .sec.bg-walnut { background: var(--wood), var(--forest); }
html.linen .alt-bg, html.linen .sec.bg-linen, html.linen .sec.bg-blush, html.linen .sec.bg-cream {
  background-image: repeating-linear-gradient(0deg, rgba(var(--ink-rgb), .026) 0 1px, transparent 1px 3px), repeating-linear-gradient(90deg, rgba(var(--ink-rgb), .02) 0 1px, transparent 1px 3px);
}

/* ---------------------------------------------------------------- per-section backgrounds (set in the studio) */
.sec.bg-cream { background-color: var(--cream); }
.sec.bg-linen { background-color: var(--cream-2); }
.sec.bg-blush { background-color: var(--blush-tint); }
.sec.bg-sage { background: var(--sage-band); }
.sec.bg-walnut { background-color: var(--forest); }
.sec.bg-terracotta { background: var(--clay); }
.sec.has-bgimg { overflow: hidden; isolation: isolate; }
.sec-bgimg { position: absolute; inset: 0; z-index: -2; }
.sec-bgimg[data-parallax] { inset: -14% 0; }
.sec-bgimg img { width: 100%; height: 100%; object-fit: cover; }
.sec-bgshade { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.sec-bgshade.light { background: var(--cream); }
.sec-bgshade.dark { background: linear-gradient(180deg, rgba(28, 20, 14, .92), rgba(40, 28, 20, .86)); }
.sec-bgshade.none { background: linear-gradient(180deg, rgba(0,0,0,.18), rgba(0,0,0,.38)); }

/* Dark-toned sections (walnut, sage, terracotta or a dark wash) switch text to light,
   while cards inside keep their normal colours. */
.tone-dark { --ink: #FBF6EE; --ink-soft: rgba(251, 246, 238, .84); --line: rgba(255, 255, 255, .2); --line-strong: rgba(255, 255, 255, .38); color: var(--ink); }
.tone-dark .hero-eyebrow, .tone-dark .ent-group h4 { color: var(--paper); }
.tone-dark .ornament, .tone-dark .divider, .tone-dark .sprig-svg { color: rgba(255, 255, 255, .6); }
.tone-dark .gallery-tag strong, .tone-dark > .wrap > .sec-head .kicker { color: var(--forest-soft); }
.tone-dark .btn-ghost:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .6); }
.tone-dark :is(.event-card, .info-card, .rsvp-card, .dc-col, .faq-card, .wish, .sg-item, .wish-form, .hero-badge, .video-frame.framed, .as-cards .reg-item, .ent-grid.as-cards .ent-group) {
  --ink: var(--ink-base); --ink-soft: var(--ink-soft-base); --line: var(--line-base); --line-strong: var(--line-strong-base); color: var(--ink);
}

/* Edits in the studio preview re-render without replaying entrance animations. */
html.instant main *, html.instant main *::before, html.instant main *::after { animation-duration: 0s !important; animation-delay: 0s !important; transition-duration: 0s !important; transition-delay: 0s !important; }

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