/* Helin & Anish — mobile-first wedding invitation */

:root {
  --paper: #ffffff;
  --cream: #fdf9f7;
  --blush-bg: #fff6f8;
  --ink: #2f2826;
  --ink-2: #5b514e;
  --muted: #8d827e;
  --line: rgba(47, 40, 38, 0.09);
  --blush: #f7c9d6;
  --pink: #eea3ba;
  --rose: #d6698d;
  --rose-deep: #b54a6e;
  --sage: #a9c3a1;
  --leaf: #6e9a6b;
  --forest: #3e6a4b;
  --shadow: 0 1px 2px rgba(80, 30, 50, 0.04), 0 10px 30px rgba(150, 70, 100, 0.08);
  --shadow-lg: 0 2px 6px rgba(80, 30, 50, 0.05), 0 26px 60px rgba(150, 70, 100, 0.16);
  --r: 22px;
  --ease: cubic-bezier(0.22, 0.8, 0.2, 1);
  --ease-io: cubic-bezier(0.7, 0, 0.2, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --script: 'Pinyon Script', 'Snell Roundhand', cursive;
  --serif: 'Cormorant Garamond', 'Times New Roman', Georgia, serif;
  --sans: 'Jost', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-l: env(safe-area-inset-left, 0px);
  --safe-r: env(safe-area-inset-right, 0px);
  --bar: 58px;
  color-scheme: light only;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--paper);
  scroll-padding-top: calc(var(--bar) + var(--safe-t));
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
  overflow-x: clip;
  text-rendering: optimizeLegibility;
}
html.is-locked, html.is-locked body { overflow: hidden; height: 100%; }
img, svg, canvas { display: block; max-width: 100%; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; touch-action: manipulation; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--rose); outline-offset: 3px; border-radius: 8px; }
::selection { background: var(--blush); color: var(--ink); }
[hidden] { display: none !important; }
.ico { width: 1.1em; height: 1.1em; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 200; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 999px; text-decoration: none; }
.skip:focus { top: calc(12px + var(--safe-t)); }
.noscript { text-align: center; padding: 40px 20px; }

.wrap { width: min(100% - 40px, 540px); margin-inline: auto; position: relative; }
.row-center { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 22px; }
.center { text-align: center; }
.prose { color: var(--ink-2); font-size: 1.02rem; margin: 0 auto; max-width: 34em; }
h1, h2, h3, h4, legend, .sec-lede, .faq-q, .hero-invite { text-wrap: balance; }
p { text-wrap: pretty; }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--rose);
  margin: 0 0 10px;
  text-align: center;
}

/* ---------- buttons ---------- */
.btn {
  --bg: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 50px; padding: 0 24px;
  border-radius: 999px;
  font-family: var(--sans); font-size: 0.82rem; font-weight: 400; letter-spacing: 0.16em; text-transform: uppercase;
  text-decoration: none; white-space: nowrap;
  background: var(--bg);
  transition: transform 0.25s var(--spring), background 0.25s, box-shadow 0.3s, color 0.25s, opacity 0.25s;
  position: relative; overflow: hidden; isolation: isolate;
  user-select: none; -webkit-user-select: none;
}
.btn:active { transform: scale(0.96); }
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #e483a3, #c95a80 55%, #b44a6f);
  box-shadow: 0 8px 22px rgba(201, 90, 128, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn-primary::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%);
  transform: translateX(-120%);
  animation: sheen 4.5s 2s ease-in-out infinite;
}
@keyframes sheen { 0%, 70% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
.btn-soft { color: var(--rose-deep); background: #fdeef3; }
.btn-ghost { color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); background: rgba(255, 255, 255, 0.7); }
.btn[disabled] { opacity: 0.55; pointer-events: none; }
.btn.is-loading { color: transparent; pointer-events: none; }
.btn.is-loading::before {
  content: ''; position: absolute; width: 20px; height: 20px; left: calc(50% - 10px); top: calc(50% - 10px);
  border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.4); border-top-color: #fff;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.ripple { position: absolute; border-radius: 50%; background: rgba(255, 255, 255, 0.45); transform: scale(0); animation: ripple 0.6s var(--ease) forwards; pointer-events: none; }
.btn-soft .ripple, .btn-ghost .ripple { background: rgba(214, 105, 141, 0.18); }
@keyframes ripple { to { transform: scale(1); opacity: 0; } }

/* ---------- petals canvas ---------- */
#petals { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 94; }

/* ---------- envelope intro ---------- */
.intro {
  position: fixed; inset: 0; z-index: 90;
  display: grid; place-items: center;
  background:
    radial-gradient(120% 60% at 50% 0%, #fff4f7 0%, rgba(255, 255, 255, 0) 60%),
    radial-gradient(90% 50% at 50% 100%, #f3f8f0 0%, rgba(255, 255, 255, 0) 60%),
    var(--paper);
  padding: calc(24px + var(--safe-t)) 20px calc(24px + var(--safe-b));
  overscroll-behavior: contain;
  touch-action: none;
  transition: opacity 0.9s var(--ease), transform 1.1s var(--ease), visibility 0s 1.1s;
}
.intro.is-gone { opacity: 0; transform: scale(1.06); visibility: hidden; pointer-events: none; }
.intro-sprig { position: absolute; width: 230px; height: 260px; pointer-events: none; }
.intro-sprig--tl { left: 0; top: var(--safe-t); }
.intro-sprig--br { right: 0; bottom: var(--safe-b); }
.intro-inner { display: flex; flex-direction: column; align-items: center; text-align: center; position: relative; }
.intro-eyebrow { font-size: 0.72rem; letter-spacing: 0.34em; text-transform: uppercase; color: var(--rose); margin: 0 0 6px; animation: rise 1s 0.2s var(--ease) both; }
.intro-to { font-family: var(--serif); font-style: italic; font-size: 1.5rem; color: var(--ink-2); margin: 0 0 4px; animation: rise 1s 0.35s var(--ease) both; }
.intro-hint { margin: 30px 0 0; font-size: 0.78rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); animation: rise 1s 0.8s var(--ease) both; }
.intro-hint span { display: inline-block; animation: breathe 2.4s 1.8s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: 0.45; } }
@keyframes rise { from { opacity: 0; transform: translateY(16px); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }

.envelope {
  --w: min(82vw, 340px);
  width: var(--w); aspect-ratio: 3 / 2.05;
  position: relative; margin-top: 26px;
  perspective: 1100px;
  animation: env-in 1.2s 0.4s var(--ease) both;
}
@keyframes env-in { from { opacity: 0; transform: translateY(40px) rotate(-4deg) scale(0.92); } to { opacity: 1; transform: none; } }
.envelope > span { position: absolute; display: block; }
.envelope > .env-letter { display: grid; }
.env-back { inset: 0; border-radius: 10px; background: linear-gradient(160deg, #f8ece8, #f2e0da); box-shadow: 0 22px 40px rgba(150, 70, 100, 0.18), 0 4px 8px rgba(120, 60, 80, 0.08); }
.env-letter {
  left: 6%; right: 6%; top: 7%; height: 86%;
  background: #fff; border-radius: 6px;
  box-shadow: 0 2px 10px rgba(120, 60, 80, 0.1);
  z-index: 2;
  transition: transform 1s var(--ease), z-index 0s;
  display: grid; place-items: center;
}
.env-letter::before { content: ''; position: absolute; inset: 8px; border: 1px solid rgba(214, 105, 141, 0.25); border-radius: 3px; }
.env-letter-in { display: flex; flex-direction: column; align-items: center; gap: 2px; opacity: 0; transition: opacity 0.6s 0.4s; }
.env-l1, .env-l2 { font-size: 0.6rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--muted); }
.env-names { font-family: var(--script); font-size: clamp(1.8rem, 9vw, 2.4rem); line-height: 1.2; color: var(--ink); }
.env-names i { font-family: var(--serif); font-size: 0.7em; color: var(--rose); }
.env-front {
  inset: 0; z-index: 3; border-radius: 10px;
  background: linear-gradient(175deg, #f6e6e0 0%, #efd9d1 100%);
  clip-path: polygon(0 0, 50% 54%, 100% 0, 100% 100%, 0 100%);
}
.env-front::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(0deg, #f9eeea, #f1dfd8);
  clip-path: polygon(0 100%, 50% 47%, 100% 100%);
}
.env-flap {
  left: 0; right: 0; top: 0; height: 60%; z-index: 4;
  background: linear-gradient(180deg, #f3e2db, #ead3ca);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  transform-origin: 50% 0;
  transition: transform 0.8s var(--ease-io), z-index 0s 0.4s;
  border-radius: 10px 10px 0 0;
}
.env-seal {
  width: 62px; height: 62px; z-index: 5;
  left: calc(50% - 31px); top: calc(60% - 36px);
  border-radius: 48% 52% 50% 50% / 52% 47% 53% 48%;
  background: radial-gradient(circle at 34% 30%, #f7a9c2 0%, #d75d86 46%, #b2416a 100%);
  box-shadow: 0 6px 14px rgba(150, 50, 90, 0.35), inset 0 -3px 6px rgba(100, 20, 50, 0.3), inset 0 2px 4px rgba(255, 255, 255, 0.35);
  display: grid; place-items: center;
  transition: transform 0.45s var(--spring), opacity 0.35s;
}
.env-seal::before {
  content: ''; position: absolute; inset: 6px; border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.4);
}
.env-seal::after {
  content: ''; position: absolute; inset: -8px; border-radius: 50%;
  border: 2px solid rgba(214, 105, 141, 0.45);
  animation: pulse 2.2s 1.6s var(--ease) infinite;
}
@keyframes pulse { 0% { transform: scale(0.85); opacity: 0.9; } 100% { transform: scale(1.5); opacity: 0; } }
.env-seal span { font-family: var(--script); font-size: 1.35rem; color: #fff3f6; text-shadow: 0 -1px 0 rgba(120, 20, 60, 0.4), 0 1px 0 rgba(255, 255, 255, 0.25); }
.env-seal i { font-family: var(--serif); font-size: 0.8em; margin: 0 1px; }

.intro.is-open .env-seal { transform: scale(1.25) rotate(-12deg); opacity: 0; transition-duration: 0.5s, 0.4s; }
.intro.is-open .env-seal::after { animation: none; opacity: 0; }
.intro.is-open .env-flap { transform: rotateX(180deg); z-index: 1; transition-delay: 0.18s, 0.55s; }
.intro.is-open .env-letter { transform: translateY(-58%) scale(1.04); z-index: 6; transition-delay: 0.7s, 0.7s; }
.intro.is-open .env-letter-in { opacity: 1; }
.intro.is-open .intro-hint, .intro.is-open .intro-eyebrow, .intro.is-open .intro-to { opacity: 0; transition: opacity 0.4s; animation: none; }

/* ---------- top bar ---------- */
.topbar {
  position: fixed; left: 0; right: 0; top: 0; z-index: 65;
  height: calc(var(--bar) + var(--safe-t));
  padding: var(--safe-t) calc(14px + var(--safe-r)) 0 calc(18px + var(--safe-l));
  display: flex; align-items: center; justify-content: space-between;
  transition: background 0.4s, box-shadow 0.4s, transform 0.5s var(--ease);
}
.topbar::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  box-shadow: 0 1px 0 var(--line);
  opacity: 0; transition: opacity 0.4s;
}
.topbar.is-solid::before { opacity: 1; }
.monogram { font-family: var(--script); font-size: 1.75rem; text-decoration: none; line-height: 1; display: inline-flex; align-items: center; min-height: 44px; padding: 4px; }
.monogram i { font-family: var(--serif); font-size: 0.72em; color: var(--rose); margin: 0 2px; }
.burger { width: 46px; height: 46px; border-radius: 50%; position: relative; z-index: 70; display: grid; place-items: center; }
.burger span {
  position: absolute; left: 13px; right: 13px; height: 1.5px; border-radius: 2px; background: var(--ink);
  transition: transform 0.5s var(--ease-io), opacity 0.3s, top 0.5s var(--ease-io), left 0.5s var(--ease-io);
}
.burger span:nth-child(1) { top: 16px; }
.burger span:nth-child(2) { top: 22.5px; left: 19px; }
.burger span:nth-child(3) { top: 29px; }
.menu-open .burger span:nth-child(1) { top: 22.5px; transform: rotate(45deg); }
.menu-open .burger span:nth-child(2) { opacity: 0; left: 30px; }
.menu-open .burger span:nth-child(3) { top: 22.5px; transform: rotate(-45deg); }
.menu-open .topbar::before { opacity: 0; }

/* ---------- menu ---------- */
.menu {
  position: fixed; inset: 0; z-index: 60;
  background:
    radial-gradient(90% 50% at 100% 0%, #fff0f5 0%, rgba(255, 255, 255, 0) 70%),
    radial-gradient(80% 40% at 0% 100%, #eef6ea 0%, rgba(255, 255, 255, 0) 70%),
    #fff;
  clip-path: circle(0 at calc(100% - 37px - var(--safe-r)) calc(29px + var(--safe-t)));
  transition: clip-path 0.75s var(--ease-io), visibility 0s 0.75s;
  visibility: hidden;
  overflow-y: auto; overscroll-behavior: contain;
}
.menu-open .menu { clip-path: circle(150vmax at calc(100% - 37px - var(--safe-r)) calc(29px + var(--safe-t))); visibility: visible; transition: clip-path 0.75s var(--ease-io), visibility 0s; }
.menu-sprig { position: absolute; right: 0; bottom: var(--safe-b); width: 240px; height: 200px; pointer-events: none; }
.menu-inner {
  min-height: 100%; display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--bar) + var(--safe-t) + 10px) calc(30px + var(--safe-r)) calc(30px + var(--safe-b)) calc(30px + var(--safe-l));
  max-width: 520px; margin: 0 auto; position: relative;
}
.menu-eyebrow { font-size: 0.7rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--rose); margin: 0 0 14px; }
.menu-links { list-style: none; margin: 0; padding: 0; counter-reset: m; }
.menu-links li { overflow: hidden; }
.menu-links a {
  display: flex; align-items: baseline; gap: 16px;
  font-family: var(--serif); font-size: clamp(1.75rem, 8.4vw, 2.3rem); line-height: 1.32; text-decoration: none;
  padding: 3px 0;
  transform: translateY(105%); opacity: 0;
  transition: transform 0.7s var(--ease), opacity 0.5s, color 0.25s;
}
.menu-links a .n { font-family: var(--sans); font-size: 0.68rem; letter-spacing: 0.15em; color: var(--muted); width: 22px; flex: none; }
.menu-links a.is-active, .menu-links a:active { color: var(--rose-deep); }
.menu-links a.is-active .n { color: var(--rose); }
.menu-open .menu-links a { transform: none; opacity: 1; }
.menu-foot { display: flex; gap: 10px; margin-top: 30px; flex-wrap: wrap; opacity: 0; transform: translateY(16px); transition: opacity 0.6s, transform 0.7s var(--ease); }
.menu-open .menu-foot { opacity: 1; transform: none; transition-delay: 0.55s; }
/* short phones (iPhone SE / mini): keep all ten links and the buttons on one screen */
@media (max-height: 720px) {
  .menu-inner { padding-top: calc(var(--bar) + var(--safe-t)); padding-bottom: calc(22px + var(--safe-b)); }
  .menu-eyebrow { margin-bottom: 8px; }
  .menu-links a { line-height: 1.24; }
  .menu-foot { margin-top: 20px; }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  padding: calc(var(--bar) + var(--safe-t) - 6px) 0 26px;
  display: flex; flex-direction: column; align-items: center;
  background: radial-gradient(120% 55% at 50% 30%, #fff7f9 0%, rgba(255, 255, 255, 0) 70%);
  overflow-x: hidden; overflow-x: clip; /* the swaying tree's corners must not widen the page */
}
.hero-art {
  width: min(100%, 560px);
  height: min(120vw, 60svh, 672px);
  position: relative; display: flex; justify-content: center;
  transform-origin: 50% 96%;
}
.hero-art.is-swaying { animation: sway 7s ease-in-out infinite; }
.hero-art.is-shaken { animation: shake 0.7s var(--ease); }
@keyframes sway { 0%, 100% { transform: rotate(-0.45deg); } 50% { transform: rotate(0.45deg); } }
@keyframes shake { 20% { transform: rotate(1.4deg); } 45% { transform: rotate(-1deg); } 70% { transform: rotate(0.5deg); } 100% { transform: rotate(0); } }
#heroTree { touch-action: manipulation; cursor: pointer; }
.tap-hint {
  position: absolute; top: 46%; left: 50%; transform: translate(-50%, 0);
  margin: 0; padding: 7px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.85); box-shadow: var(--shadow);
  font-size: 0.66rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--rose-deep);
  opacity: 0; pointer-events: none; transition: opacity 0.6s, transform 0.6s var(--ease);
}
.tap-hint.is-on { opacity: 1; animation: bob 2.4s ease-in-out infinite; }
.tap-hint.is-off { opacity: 0; transform: translate(-50%, -8px); }
@keyframes bob { 50% { transform: translate(-50%, -5px); } }

.hero-copy { text-align: center; margin-top: 8px; position: relative; padding: 0 20px; }
.hero-dear { font-family: var(--serif); font-style: italic; font-size: 1.3rem; color: var(--ink-2); margin: 0 0 6px; }
.names {
  font-family: var(--script); font-weight: 400;
  font-size: clamp(3.4rem, 17vw, 5.4rem); line-height: 1.02;
  margin: 2px 0 8px;
  display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 0 0.22em;
  text-shadow: 0 2px 18px #fff, 0 0 4px #fff;
}
.names .amp { font-family: var(--serif); font-style: italic; font-size: 0.5em; color: var(--rose); }
.hero-invite { font-family: var(--serif); font-style: italic; font-size: 1.22rem; color: var(--ink-2); margin: 0 0 14px; }
.hero-date {
  display: inline-flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: center;
  font-size: 0.74rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--ink); margin: 0;
}
.hero-date .sep { width: 5px; height: 5px; border-radius: 50%; background: var(--pink); }
.scroll-cue { display: block; width: 44px; height: 56px; margin: 19px auto 0; position: relative; border-radius: 22px; }
.scroll-cue::before { content: ''; position: absolute; left: 9px; top: 7px; width: 26px; height: 42px; border-radius: 14px; box-shadow: inset 0 0 0 1.5px rgba(47, 40, 38, 0.25); }
.scroll-cue span { position: absolute; left: 50%; top: 15px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--rose); animation: cue 2s ease-in-out infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(14px); opacity: 0; } }

.h-in { opacity: 0; transform: translateY(18px); filter: blur(6px); transition: opacity 1.1s var(--ease), transform 1.2s var(--ease), filter 1.1s var(--ease); }
.hero-on .h-in { opacity: 1; transform: none; filter: none; }
.hero-on .eyebrow.h-in { transition-delay: 1.1s; }
.hero-on .name.h-in:nth-child(1) { transition-delay: 1.3s; }
.hero-on .amp.h-in { transition-delay: 1.55s; }
.hero-on .name.h-in:nth-child(3) { transition-delay: 1.7s; }
.hero-on .hero-invite.h-in { transition-delay: 2s; }
.hero-on .hero-date.h-in { transition-delay: 2.2s; }
.hero-on .scroll-cue.h-in { transition-delay: 2.6s; }

/* ---------- sections ---------- */
.section { position: relative; padding: 76px 0; }
.section:nth-of-type(even) { background: linear-gradient(180deg, #fff 0%, var(--cream) 18%, var(--cream) 82%, #fff 100%); }
.sec-head { text-align: center; margin-bottom: 34px; }
.sec-title { font-family: var(--serif); font-weight: 400; font-size: clamp(2.4rem, 11vw, 3.2rem); line-height: 1.05; margin: 0; letter-spacing: -0.01em; }
.sec-title.sm { font-size: clamp(1.9rem, 8vw, 2.4rem); }
.sec-lede { font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: var(--ink-2); margin: 12px 0 0; }
.sub-title { font-family: var(--serif); font-weight: 500; font-size: 1.6rem; text-align: center; margin: 44px 0 18px; }
.flourish { width: 170px; height: 22px; margin: 14px auto 0; overflow: visible; color: var(--pink); }
.flourish path { fill: none; stroke: var(--pink); stroke-width: 1; stroke-dasharray: 80; stroke-dashoffset: 80; transition: stroke-dashoffset 1.4s 0.3s var(--ease); }
.flourish use { transform-box: fill-box; transform-origin: center; transform: scale(0) rotate(-120deg); transition: transform 1s 0.2s var(--spring); }
.in .flourish path { stroke-dashoffset: 0; }
.in .flourish use { transform: none; }
.card { background: #fff; border-radius: var(--r); box-shadow: var(--shadow); border: 1px solid rgba(214, 105, 141, 0.08); }

/* section sprigs: the canvas is sized so each branch is drawn whole (no clipped edges),
   then lifted into the gap above the heading so it never crosses the title */
.sprig { position: absolute; top: -32px; width: 150px; height: 150px; pointer-events: none; z-index: 0; }
.sprig--r { right: 0; }
.sprig--l { left: 0; }
.sprig[data-sprig="l"] { height: 300px; top: -57px; }
.sprig[data-sprig="r2"] { height: 280px; top: -92px; }
.section > .wrap { z-index: 1; }

/* reveal */
[data-reveal] { opacity: 0; transform: translateY(28px); filter: blur(5px); transition: opacity 0.9s var(--ease), transform 1s var(--ease), filter 0.9s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
[data-reveal].in { opacity: 1; transform: none; filter: none; }

/* ---------- countdown ---------- */
.countdown { padding-top: 40px; }
.cd { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 12px auto 0; max-width: 420px; }
.cd-unit {
  display: flex; flex-direction: column; align-items: center; padding: 16px 4px 12px;
  border-radius: 18px; background: #fff; box-shadow: var(--shadow); border: 1px solid rgba(214, 105, 141, 0.08);
}
.cd-num { font-family: var(--serif); font-size: clamp(2rem, 9vw, 2.6rem); line-height: 1; font-variant-numeric: lining-nums tabular-nums; display: inline-block; }
.cd-num.tick { animation: tick 0.5s var(--ease); }
@keyframes tick { from { transform: translateY(-40%); opacity: 0; filter: blur(3px); } }
.cd-lbl { font-size: 0.6rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
.cd-done { text-align: center; font-family: var(--serif); font-size: 1.4rem; font-style: italic; }

/* ---------- story timeline ---------- */
.timeline { list-style: none; margin: 0; padding: 0 0 0 34px; position: relative; }
.timeline::before, .timeline::after { content: ''; position: absolute; left: 11px; top: 8px; bottom: 8px; width: 1.5px; border-radius: 2px; }
.timeline::before { background: var(--line); }
.timeline::after { background: linear-gradient(var(--pink), var(--rose)); transform-origin: top; transform: scaleY(var(--p, 0)); }
.tl-item { position: relative; margin-bottom: 22px; }
.tl-dot {
  position: absolute; left: -34px; top: 18px; width: 24px; height: 24px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 0 1.5px var(--blush), var(--shadow); color: var(--pink);
  display: grid; place-items: center;
  transition: color 0.4s, box-shadow 0.4s, transform 0.6s var(--spring);
}
.tl-dot svg { width: 15px; height: 15px; transition: transform 1.2s var(--ease); }
.tl-item.in .tl-dot { color: var(--rose); box-shadow: 0 0 0 1.5px var(--pink), 0 4px 14px rgba(214, 105, 141, 0.3); }
.tl-item.in .tl-dot svg { transform: rotate(144deg); }
.tl-card { padding: 20px 20px 18px; }
.tl-when { font-size: 0.68rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--rose); }
.tl-card h3 { font-family: var(--serif); font-weight: 500; font-size: 1.55rem; line-height: 1.15; margin: 4px 0 6px; }
.tl-card p { margin: 0; color: var(--ink-2); font-size: 0.96rem; }
.tl-photo {
  margin: -6px -6px 14px; border-radius: 16px; aspect-ratio: 16 / 10; overflow: hidden;
  background: linear-gradient(135deg, #fdeef3, #f2f7ef);
  display: grid; place-items: center; color: var(--pink);
}
.tl-photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- events ---------- */
.events { display: grid; gap: 18px; }
.event { padding: 24px 22px 22px; position: relative; overflow: hidden; }
.event::before {
  content: ''; position: absolute; right: -34px; top: -34px; width: 132px; height: 132px; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-9 -9 18 18'%3E%3Cdefs%3E%3Cpath id='p' d='M0 0C3.4-1.1 4-5.9 1.2-7.9Q.45-7.7 0-6.8Q-.45-7.7-1.2-7.9C-4-5.9-3.4-1.1 0 0Z'/%3E%3C/defs%3E%3Cg fill='%23f7c9d6'%3E%3Cuse href='%23p'/%3E%3Cuse href='%23p' transform='rotate(72)'/%3E%3Cuse href='%23p' transform='rotate(144)'/%3E%3Cuse href='%23p' transform='rotate(216)'/%3E%3Cuse href='%23p' transform='rotate(288)'/%3E%3C/g%3E%3Ccircle r='1.4' fill='%23fff'/%3E%3C/svg%3E") center / contain no-repeat;
  opacity: 0.38; transform: rotate(16deg);
}
.event > * { position: relative; }
.event-kicker { font-size: 0.68rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--rose); }
.event h3 { font-family: var(--serif); font-weight: 500; font-size: 1.9rem; line-height: 1.1; margin: 4px 0 16px; }
.event-meta { margin: 0; display: grid; gap: 12px; }
.event-meta div { display: flex; gap: 12px; align-items: flex-start; }
.event-meta dt { width: 36px; height: 36px; border-radius: 12px; background: #fdf0f4; color: var(--rose); display: grid; place-items: center; flex: none; }
.event-meta dt .ico { width: 18px; height: 18px; }
.event-meta dd { margin: 0; font-size: 0.97rem; line-height: 1.45; padding-top: 6px; }
.event-meta strong { font-weight: 500; }
.event-note { color: var(--ink-2); font-size: 0.95rem; margin: 16px 0 0; padding-top: 14px; border-top: 1px dashed rgba(214, 105, 141, 0.25); }
.event-actions { display: flex; gap: 8px; margin-top: 20px; flex-wrap: wrap; }
.event-actions .btn { flex: 1 1 120px; min-height: 48px; padding: 0 12px; gap: 7px; font-size: 0.72rem; letter-spacing: 0.13em; }

/* ---------- schedule ---------- */
.sched { list-style: none; margin: 0 auto; padding: 0; max-width: 440px; position: relative; }
.sched-item { display: grid; grid-template-columns: 88px 26px 1fr; align-items: start; padding-bottom: 22px; position: relative; }
.sched-item:not(:last-child)::after { content: ''; position: absolute; left: 100px; top: 22px; bottom: -2px; width: 1px; background: linear-gradient(var(--blush), var(--line)); }
.sched-time { font-family: var(--serif); font-size: 1.12rem; font-weight: 500; text-align: right; padding-right: 14px; color: var(--rose-deep); line-height: 1.5; }
.sched-dot { width: 11px; height: 11px; margin: 7px auto 0; border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px var(--pink); position: relative; z-index: 1; transition: background 0.5s 0.3s, transform 0.6s 0.3s var(--spring); }
.sched-item.in .sched-dot { background: var(--pink); transform: scale(1.15); }
.sched-body { padding-left: 12px; }
.sched-body h3 { font-family: var(--serif); font-weight: 500; font-size: 1.32rem; line-height: 1.25; margin: 0; }
.sched-body p { margin: 2px 0 0; color: var(--muted); font-size: 0.92rem; }

/* ---------- travel ---------- */
.modes { display: grid; gap: 12px; }
.mode { display: flex; gap: 16px; align-items: flex-start; padding: 18px; }
.mode-ico { width: 46px; height: 46px; border-radius: 15px; flex: none; display: grid; place-items: center; color: var(--forest); background: linear-gradient(135deg, #eef6ea, #e2efdc); }
.mode-ico .ico { width: 22px; height: 22px; }
.mode h3 { font-family: var(--serif); font-weight: 500; font-size: 1.3rem; margin: 0; line-height: 1.3; }
.mode p { margin: 2px 0 0; color: var(--ink-2); font-size: 0.94rem; }
.stays { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 20px 18px; margin: 0 -20px; scrollbar-width: none; }
.stays::-webkit-scrollbar { display: none; }
.stay { flex: 0 0 82%; scroll-snap-align: center; padding: 0; overflow: hidden; }
.stay-img { height: 120px; background: linear-gradient(135deg, #fbe7ee 0%, #f5f0e8 50%, #e8f1e3 100%); display: grid; place-items: center; color: var(--pink); position: relative; }
.stay-img .ico { width: 34px; height: 34px; stroke-width: 1.2; }
.stay-body { padding: 18px 20px 20px; }
.stay h4 { font-family: var(--serif); font-weight: 500; font-size: 1.4rem; margin: 0; line-height: 1.2; }
.stay .area { font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--leaf); margin: 4px 0 8px; }
.stay p { margin: 0 0 14px; color: var(--ink-2); font-size: 0.93rem; }
.stay .btn { min-height: 44px; font-size: 0.72rem; }

/* ---------- dress ---------- */
.palette { list-style: none; padding: 0; margin: 30px auto 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px 10px; max-width: 360px; }
.swatch { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.swatch i {
  width: 62px; height: 62px; border-radius: 50%; background: var(--c);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.07), inset 0 -6px 12px rgba(0, 0, 0, 0.05), inset 0 4px 8px rgba(255, 255, 255, 0.5);
  transform: scale(0.4); opacity: 0; transition: transform 0.8s var(--spring), opacity 0.4s;
  transition-delay: calc(var(--i) * 80ms);
}
.palette.in .swatch i { transform: none; opacity: 1; }

/* ---------- gallery ---------- */
.reel { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px max(20px, calc(50% - 270px)) 20px; scrollbar-width: none; overscroll-behavior-x: contain; }
.reel::-webkit-scrollbar { display: none; }
.frame {
  flex: 0 0 74%; max-width: 380px; aspect-ratio: 4 / 5; scroll-snap-align: center; margin: 0;
  border-radius: 24px; overflow: hidden; position: relative; box-shadow: var(--shadow);
  background: var(--bg, linear-gradient(160deg, #fde9ef, #f7f1ea 55%, #e9f2e4));
  transition: transform 0.5s var(--ease);
}
.frame img { width: 100%; height: 100%; object-fit: cover; }
.frame-ph { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: var(--rose); }
.frame-ph .ico { width: 34px; height: 34px; stroke-width: 1.2; opacity: 0.7; }
.frame-ph span { font-size: 0.66rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.frame figcaption {
  position: absolute; left: 12px; right: 12px; bottom: 12px; padding: 10px 14px; border-radius: 14px;
  background: rgba(255, 255, 255, 0.82); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font-family: var(--serif); font-size: 1.1rem; font-style: italic; text-align: center;
}
.dots { display: flex; justify-content: center; gap: 7px; }
.dots i { width: 6px; height: 6px; border-radius: 3px; background: var(--blush); transition: width 0.4s var(--ease), background 0.4s; }
.dots i.on { width: 22px; background: var(--rose); }

/* ---------- forms ---------- */
.rsvp-card { padding: 26px 20px 22px; background: #fff; border-radius: 28px; box-shadow: var(--shadow-lg); border: 1px solid rgba(214, 105, 141, 0.1); position: relative; overflow: hidden; }
.rsvp-progress { height: 3px; border-radius: 3px; background: #f7e3ea; overflow: hidden; }
.rsvp-progress span { display: block; height: 100%; width: 25%; border-radius: 3px; background: linear-gradient(90deg, var(--pink), var(--rose)); transition: width 0.6s var(--ease); }
.rsvp-stepno { font-size: 0.66rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); margin: 12px 0 4px; }
.rsvp-stepno b { font-weight: 500; color: var(--rose); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.step { border: 0; padding: 0; margin: 0; min-width: 0; display: none; }
.step.is-active { display: block; animation: step-in 0.55s var(--ease); }
.step.is-back { animation-name: step-back; }
@keyframes step-in { from { opacity: 0; transform: translateX(30px); } }
@keyframes step-back { from { opacity: 0; transform: translateX(-30px); } }
.step-title { font-family: var(--serif); font-size: 1.7rem; line-height: 1.2; padding: 0; margin: 0 0 18px; }

.field { display: block; position: relative; margin-bottom: 14px; }
.field input, .field textarea {
  width: 100%; font-size: 16px; font-weight: 400;
  padding: 24px 16px 9px; border-radius: 16px;
  border: 1px solid rgba(47, 40, 38, 0.12); background: #fff;
  outline: none; resize: none; -webkit-appearance: none; appearance: none;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.field textarea { min-height: 64px; line-height: 1.5; }
.field > span {
  position: absolute; left: 17px; top: 17px; font-size: 1rem; color: var(--muted); pointer-events: none;
  transform-origin: left top; transition: transform 0.25s var(--ease), color 0.25s;
}
.field input:focus, .field textarea:focus { border-color: var(--pink); box-shadow: 0 0 0 4px rgba(238, 163, 186, 0.2); }
.field input:focus + span, .field textarea:focus + span,
.field input:not(:placeholder-shown) + span, .field textarea:not(:placeholder-shown) + span { transform: translateY(-10px) scale(0.74); color: var(--rose); }
.field.is-bad input, .field.is-bad textarea { border-color: #e07a7a; box-shadow: 0 0 0 4px rgba(224, 122, 122, 0.14); }
.field.is-bad { animation: nope 0.4s; }
@keyframes nope { 25% { transform: translateX(-6px); } 50% { transform: translateX(5px); } 75% { transform: translateX(-3px); } }

.choices { display: grid; gap: 12px; }
.choice { position: relative; display: grid; grid-template-columns: 48px 1fr; grid-template-rows: auto auto; column-gap: 14px; align-items: center; padding: 16px; border-radius: 18px; border: 1px solid rgba(47, 40, 38, 0.12); cursor: pointer; transition: border-color 0.3s, background 0.3s, transform 0.3s var(--spring), box-shadow 0.3s; }
.choice:active { transform: scale(0.98); }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice-ico { grid-row: span 2; width: 48px; height: 48px; border-radius: 50%; background: #fdf0f4; color: var(--rose); display: grid; place-items: center; transition: background 0.3s, color 0.3s, transform 0.5s var(--spring); }
.choice-ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.choice-t { font-family: var(--serif); font-size: 1.35rem; font-weight: 500; line-height: 1.2; }
.choice-s { font-size: 0.86rem; color: var(--muted); }
.choice:has(input:checked) { border-color: var(--pink); background: #fff7f9; box-shadow: 0 0 0 3px rgba(238, 163, 186, 0.22); }
.choice:has(input:checked) .choice-ico { background: var(--rose); color: #fff; transform: scale(1.08); }
.choice:has(input:checked) .choice-ico svg { fill: currentColor; }
.choice:has(input:focus-visible) { outline: 2px solid var(--rose); outline-offset: 2px; }

.stepper-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px 12px 16px; border-radius: 16px; border: 1px solid rgba(47, 40, 38, 0.12); margin-bottom: 14px; }
.stepper-lbl { display: flex; flex-direction: column; font-size: 0.98rem; line-height: 1.3; text-wrap: balance; }
.stepper-lbl small { color: var(--muted); font-size: 0.78rem; }
.stepper { display: flex; align-items: center; gap: 4px; flex: none; }
.stepper button { width: 44px; height: 44px; border-radius: 50%; background: #fdf0f4; color: var(--rose-deep); display: grid; place-items: center; transition: transform 0.2s var(--spring), background 0.2s; }
.stepper button:active { transform: scale(0.88); }
.stepper button[disabled] { opacity: 0.35; }
.stepper svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.stepper output { min-width: 28px; text-align: center; font-family: var(--serif); font-size: 1.6rem; font-weight: 500; }
.chips-lbl { font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin: 6px 0 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; }
.chip span { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 18px 0 14px; border-radius: 999px; border: 1px solid rgba(47, 40, 38, 0.14); font-size: 0.9rem; transition: all 0.25s var(--ease); cursor: pointer; }
.chip span::before { content: ''; width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--pink); transition: all 0.25s; }
.chip input:checked + span { background: #fff4f7; border-color: var(--pink); color: var(--rose-deep); }
.chip input:checked + span::before { background: var(--rose); box-shadow: inset 0 0 0 3px #fff, 0 0 0 1.5px var(--rose); }
.chip input:focus-visible + span { outline: 2px solid var(--rose); outline-offset: 2px; }
.fine { font-size: 0.8rem; color: var(--muted); margin: 0; }
.form-error { color: #b4474f; background: #fdf0f0; padding: 10px 14px; border-radius: 12px; font-size: 0.9rem; margin: 12px 0 0; }
.rsvp-nav { display: flex; gap: 10px; margin-top: 22px; }
.rsvp-nav [data-next] { flex: 1; }

.rsvp-done { text-align: center; padding: 16px 4px 6px; animation: step-in 0.6s var(--ease); }
.done-heart { width: 92px; height: 84px; margin: 0 auto 6px; overflow: visible; }
.done-heart path { fill: rgba(238, 163, 186, 0); stroke: var(--rose); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 340; stroke-dashoffset: 340; animation: draw 1.4s 0.2s var(--ease) forwards, fillin 0.8s 1.3s forwards, beat 1.6s 2.1s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fillin { to { fill: rgba(238, 163, 186, 0.45); } }
@keyframes beat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.1); } 30% { transform: scale(1); } 45% { transform: scale(1.06); } }
.done-title { font-family: var(--script); font-weight: 400; font-size: 2.6rem; line-height: 1.2; margin: 0; }
.done-text { color: var(--ink-2); margin: 6px auto 0; max-width: 26em; }

/* ---------- wishes ---------- */
.wish-reel { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px max(20px, calc(50% - 270px)) 22px; scrollbar-width: none; }
.wish-reel::-webkit-scrollbar { display: none; }
.wish {
  flex: 0 0 76%; max-width: 360px; scroll-snap-align: center;
  padding: 22px 22px 18px; border-radius: 22px; background: #fff; box-shadow: var(--shadow); position: relative;
  border: 1px solid rgba(214, 105, 141, 0.08);
  display: flex; flex-direction: column;
}
.wish::before { content: '\201C'; position: absolute; top: -6px; left: 16px; font-family: var(--serif); font-size: 4.4rem; line-height: 1; color: var(--blush); }
.wish p { font-family: var(--serif); font-size: 1.2rem; font-style: italic; line-height: 1.45; margin: 16px 0 14px; flex: 1; overflow-wrap: anywhere; }
.wish footer { display: flex; justify-content: space-between; align-items: center; font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--rose-deep); }
.wish footer time { color: var(--muted); letter-spacing: 0.06em; text-transform: none; }
.wish.is-new { animation: wish-in 0.9s var(--spring); }
@keyframes wish-in { from { transform: scale(0.6) translateY(30px); opacity: 0; } }
.wish.skeleton { min-height: 160px; background: linear-gradient(100deg, #fff 30%, #fdf3f6 50%, #fff 70%); background-size: 300% 100%; animation: shimmer 1.6s linear infinite; }
@keyframes shimmer { to { background-position: -150% 0; } }
.wish-form { padding: 20px 18px 16px; margin-top: 6px; }
.wish-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.count { font-size: 0.78rem; color: var(--muted); font-variant-numeric: tabular-nums; }

/* ---------- gifts ---------- */
.gift { text-align: center; padding: 36px 24px 30px; background: linear-gradient(160deg, #fff 0%, #fff7f9 100%); }
.gift-ico { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; color: var(--rose); background: #fdeef3; }
.gift-ico .ico { width: 28px; height: 28px; stroke-width: 1.3; }
.gift .sec-title { margin-bottom: 12px; }

/* ---------- faq ---------- */
.faqs { display: grid; gap: 10px; }
.faq-item { border-radius: 18px; background: #fff; box-shadow: var(--shadow); border: 1px solid rgba(214, 105, 141, 0.07); overflow: hidden; }
.faq-q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 14px; text-align: left; padding: 18px 18px 18px 20px; font-family: var(--serif); font-size: 1.22rem; font-weight: 500; line-height: 1.3; }
.faq-q i { width: 30px; height: 30px; border-radius: 50%; flex: none; position: relative; background: #fdf0f4; transition: transform 0.5s var(--ease), background 0.3s; }
.faq-q i::before, .faq-q i::after { content: ''; position: absolute; left: 9px; right: 9px; top: 14.25px; height: 1.5px; border-radius: 1px; background: var(--rose); transition: transform 0.5s var(--ease); }
.faq-q i::after { transform: rotate(90deg); }
.faq-item.open .faq-q i { transform: rotate(180deg); background: var(--rose); }
.faq-item.open .faq-q i::before, .faq-item.open .faq-q i::after { background: #fff; }
.faq-item.open .faq-q i::after { transform: rotate(0); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.5s var(--ease); }
.faq-a > div { overflow: hidden; }
.faq-a p { margin: 0; padding: 0 20px 20px; color: var(--ink-2); }
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.contact { text-align: center; margin: 30px 0 0; color: var(--ink-2); font-family: var(--serif); font-size: 1.15rem; font-style: italic; }
.contact a { color: var(--rose-deep); }

/* ---------- footer ---------- */
.footer { position: relative; padding: 10px 0 calc(40px + var(--safe-b)); text-align: center; background: linear-gradient(180deg, #fff 0%, #f6faf3 100%); }
#grove { margin: 0 auto; }
.footer-in { margin-top: 10px; }
.footer-names { font-family: var(--script); font-size: 3rem; line-height: 1.1; margin: 0; }
.footer-names i { font-family: var(--serif); font-size: 0.55em; color: var(--rose); }
.footer-date { letter-spacing: 0.3em; font-size: 0.78rem; margin: 6px 0 2px; }
.footer-tag { color: var(--leaf); font-size: 0.9rem; letter-spacing: 0.06em; margin: 0; }
.a2hs { font-size: 0.82rem; color: var(--muted); margin: 18px auto 0; max-width: 24em; }
.a2hs .ico { display: inline; vertical-align: -3px; width: 15px; height: 15px; }
.made { font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); margin: 26px 0 0; display: inline-flex; gap: 6px; align-items: center; }
.made .ico { color: var(--rose); fill: var(--rose); stroke: none; width: 14px; height: 14px; animation: beat 1.8s ease-in-out infinite; }

/* ---------- floating RSVP ---------- */
.fab {
  position: fixed; z-index: 44; right: calc(16px + var(--safe-r)); bottom: calc(18px + var(--safe-b));
  height: 52px; padding: 0 24px; border-radius: 999px; display: grid; place-items: center;
  font-size: 0.8rem; letter-spacing: 0.2em; text-decoration: none; color: #fff;
  background: linear-gradient(135deg, #e483a3, #c95a80 55%, #b44a6f);
  box-shadow: 0 12px 28px rgba(201, 90, 128, 0.38);
  transform: translateY(140%) scale(0.8); opacity: 0;
  transition: transform 0.6s var(--spring), opacity 0.4s;
}
.fab.is-on { transform: none; opacity: 1; }
.fab:active { transform: scale(0.94); }

/* ---------- bottom sheet ---------- */
.sheet-scrim { position: fixed; inset: 0; z-index: 95; background: rgba(40, 20, 28, 0.32); opacity: 0; transition: opacity 0.35s; }
.sheet-scrim.on { opacity: 1; }
.sheet {
  position: fixed; z-index: 96; left: 0; right: 0; bottom: 0; margin: 0 auto; max-width: 540px;
  padding: 10px 18px calc(18px + var(--safe-b)); border-radius: 26px 26px 0 0; background: #fff;
  box-shadow: 0 -20px 60px rgba(80, 30, 50, 0.2);
  transform: translateY(105%); transition: transform 0.45s var(--ease);
}
.sheet.on { transform: none; }
.sheet-grab { width: 40px; height: 5px; border-radius: 3px; background: #e9dfe2; margin: 0 auto 14px; }
.sheet-title { font-family: var(--serif); font-size: 1.4rem; text-align: center; margin: 0 0 14px; }
.sheet-actions { display: grid; gap: 10px; }
.sheet-actions .btn { width: 100%; justify-content: flex-start; padding: 0 20px; text-transform: none; letter-spacing: 0.02em; font-size: 1rem; }
.sheet-cancel { width: 100%; margin-top: 10px; }

/* ---------- toasts ---------- */
.toasts { position: fixed; z-index: 120; left: 0; right: 0; top: calc(var(--safe-t) + 12px); display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; padding: 0 16px; }
.toast {
  max-width: 420px; padding: 12px 18px; border-radius: 16px; font-size: 0.92rem; line-height: 1.4;
  background: rgba(47, 40, 38, 0.92); color: #fff; box-shadow: var(--shadow-lg);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  animation: toast-in 0.5s var(--spring);
}
.toast.out { animation: toast-out 0.4s var(--ease) forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-24px) scale(0.9); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(-16px); } }

/* ---------- larger screens ---------- */
.margin-notes { display: none; }

@media (min-width: 600px) {
  /* both hotels side by side once there is room, instead of a clipped carousel */
  .stays { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); overflow: visible; margin: 0; padding: 4px 0 6px; }
}

@media (min-width: 720px) {
  .section { padding: 100px 0; }
  .events { grid-template-columns: 1fr; }
  .frame { flex-basis: 300px; }
  .wish { flex-basis: 300px; }
}

/* tablets & desktop: the invitation becomes a centred paper column on a soft linen backdrop */
@media (min-width: 760px) {
  :root { --col: 560px; --gutter: calc(50% - var(--col) / 2); }
  html { background: #faf6f4; }
  body {
    background:
      radial-gradient(60% 55% at 0% 0%, rgba(251, 228, 236, 0.9) 0%, rgba(251, 228, 236, 0) 70%),
      radial-gradient(55% 50% at 100% 100%, rgba(232, 242, 227, 0.95) 0%, rgba(232, 242, 227, 0) 70%),
      radial-gradient(40% 35% at 100% 8%, rgba(253, 240, 244, 0.8) 0%, rgba(253, 240, 244, 0) 70%),
      #faf6f4;
    background-attachment: fixed;
  }
  main {
    position: relative; max-width: var(--col); margin: 0 auto; background: var(--paper);
    box-shadow: 0 0 0 1px rgba(214, 105, 141, 0.07), 0 30px 90px rgba(150, 70, 100, 0.1), 0 2px 10px rgba(120, 60, 80, 0.04);
  }
  .topbar, .menu { left: var(--gutter); right: var(--gutter); }
  .menu { box-shadow: 0 0 0 1px rgba(214, 105, 141, 0.07); }
  .fab { right: calc(var(--gutter) + 18px); }
  .sheet { max-width: var(--col); }
  .sprig { width: 190px; top: -14px; height: 180px; }
  .sprig[data-sprig="l"] { height: 360px; top: -44px; }
  .sprig[data-sprig="r2"] { height: 330px; top: -54px; }
  #heroTree { -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
}

/* wide screens: quiet editorial notes in the margins */
@media (min-width: 1000px) and (min-height: 560px) {
  .margin-notes { display: block; }
  .mn {
    position: fixed; top: 50%; z-index: 1; margin: 0;
    display: flex; align-items: center; gap: 20px; white-space: nowrap;
    font-size: 0.68rem; font-weight: 400; letter-spacing: 0.42em; text-transform: uppercase; color: var(--muted);
  }
  .mn::before, .mn::after { content: ''; width: 64px; height: 1px; background: linear-gradient(90deg, rgba(214, 105, 141, 0), rgba(214, 105, 141, 0.55)); }
  .mn::after { transform: scaleX(-1); }
  .mn i { font-family: var(--serif); font-size: 1.35em; letter-spacing: 0; text-transform: none; color: var(--rose); margin: 0 0.2em; }
  .mn-l { left: calc(var(--gutter) / 2); transform: translate(-50%, -50%) rotate(-90deg); }
  .mn-r { right: calc(var(--gutter) / 2); transform: translate(50%, -50%) rotate(90deg); }
  .mn-r .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--pink); margin: 0 0.2em 0 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
  [data-reveal], .h-in { opacity: 1; transform: none; filter: none; }
}
