/* =========================================================
   DreamyVibes — classic stationery, modern motion
   ========================================================= */

:root {
  --ink: #121A2A;
  --ink-deep: #0B1120;
  --ink-soft: #1A2438;
  --ink-line: #2A3448;
  --ivory: #F5F2EC;
  --cream: #EDE6D8;
  --line: #D8D1C3;
  --gold: #D9C49A;
  --gold-deep: #7A6234;
  --on-dark-muted: #B9BDC8;
  --on-light-muted: #4E5666;

  --display: 'Cormorant Garamond', Garamond, Georgia, serif;
  --serif: 'Bodoni Moda', 'Didot', 'Bodoni MT', Georgia, serif;
  --sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --foil: linear-gradient(100deg, #A98B52 0%, #F4E6C3 28%, #D9C49A 46%, #9C7B3F 64%, #F0DFB6 84%, #B8975A 100%);

  --gutter: clamp(20px, 4vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
/* no blue flash on tap, no double-tap zoom delay: taps feel instant */
a, button, label, [role="button"], .card { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button, .btn, .filter, .showcase__arrow { -webkit-user-select: none; user-select: none; }
:focus:not(:focus-visible) { outline: none; }

/* opening a template: the page melts into the template's own colour, then the template fades in */
.page-veil {
  position: fixed; inset: 0; z-index: 9999; pointer-events: none;
  background: var(--veil, #0E1524); opacity: 0;
  transition: opacity .55s cubic-bezier(.4, 0, .2, 1);
}
.page-veil.is-on { opacity: 1; pointer-events: auto; }
.page-veil::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px;
  border-radius: 50%; border: 1px solid var(--veil-ink, rgba(217, 196, 154, .7)); border-top-color: transparent;
  opacity: 0; transform: scale(.8); transition: opacity .4s ease .35s, transform .6s ease .35s;
  animation: veil-spin 1.1s linear infinite;
}
.page-veil.is-on::after { opacity: .8; transform: none; }
@keyframes veil-spin { to { rotate: 360deg; } }
.is-leaving main, .is-leaving .nav { transform: scale(.985); filter: blur(2px); transition: transform .6s cubic-bezier(.4, 0, .2, 1), filter .6s ease; }
@media (prefers-reduced-motion: reduce) { .is-leaving main, .is-leaving .nav { transform: none; filter: none; } }

body {
  margin: 0;
  background: var(--ink-deep);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.75;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 500; text-wrap: balance; }
em { font-style: italic; }
a { color: inherit; text-decoration: none; }
svg { display: block; }
button { font: inherit; color: inherit; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; border-radius: 2px; }
.collection :focus-visible, .closing :focus-visible { outline-color: var(--ink); }

::selection { background: var(--gold); color: var(--ink); }

.wrap { max-width: 1320px; margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- shared type ---------- */
.eyebrow {
  display: flex; align-items: center; gap: 14px;
  font-size: 11px; font-weight: 600; letter-spacing: .28em; text-transform: uppercase;
  color: var(--gold);
}
.eyebrow--center { justify-content: center; }
.eyebrow__rule { width: 44px; height: 1px; background: currentColor; opacity: .7; }
.eyebrow__dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; }

.display { font-size: clamp(3.3rem, 9vw, 8.8rem); line-height: .9; letter-spacing: -.01em; }
.display--md { font-size: clamp(2.4rem, 5.2vw, 4.7rem); line-height: 1.05; letter-spacing: 0; }

.foil {
  background: var(--foil); background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
  animation: foil 7s ease-in-out infinite alternate;
  padding-right: .08em;
}
@keyframes foil { to { background-position: 100% 0; } }

/* ---------- buttons ---------- */
.btn {
  --bg: var(--ivory); --fg: var(--ink); --bg-h: var(--gold); --fg-h: var(--ink);
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 34px;
  border-radius: 999px; border: 1px solid transparent;
  background: var(--bg); color: var(--fg);
  font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; white-space: nowrap;
  transition: color .45s var(--ease), border-color .45s var(--ease), transform .5s var(--ease);
  will-change: transform;
}
.btn::before {
  content: ""; position: absolute; inset: -1px; z-index: -1;
  background: var(--bg-h); border-radius: inherit;
  transform: translateY(101%); transition: transform .55s var(--ease);
}
.btn:hover { color: var(--fg-h); }
.btn:hover::before { transform: none; }
.btn span { display: inline-block; pointer-events: none; }
.btn--sm { min-height: 44px; padding: 0 24px; }
.btn--gold { --bg: var(--gold); --bg-h: var(--ivory); }
.btn--ghost { --bg: transparent; --fg: var(--cream); --bg-h: var(--cream); border-color: #4A5468; }
.btn--ghost:hover { border-color: var(--cream); }
.btn--ink { --bg: var(--ink); --fg: var(--cream); --bg-h: var(--gold-deep); --fg-h: #fff; }
.btn--line { --bg: transparent; --fg: var(--ink); --bg-h: var(--ink); --fg-h: var(--cream); border-color: var(--ink); }

/* ---------- chrome: grain, progress, cursor ---------- */
.grain {
  position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.progress { position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 80; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--foil); transform: scaleX(0); transform-origin: 0 50%; }

.cursor {
  position: fixed; left: 0; top: 0; z-index: 95; pointer-events: none;
  width: 36px; height: 36px; margin: -18px 0 0 -18px; border-radius: 50%;
  border: 1px solid #fff; mix-blend-mode: difference;
  opacity: 0; transition: opacity .3s, width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), background-color .35s;
}
.cursor.is-on { opacity: .9; }
.cursor.is-hover { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: rgba(255, 255, 255, .12); }
.cursor.is-down { width: 26px; height: 26px; margin: -13px 0 0 -13px; }
@media not all and (hover: hover) and (pointer: fine) { .cursor { display: none; } }

/* ---------- curtain ---------- */
.loader {
  position: fixed; inset: 0; z-index: 100; display: none; place-items: center;
  background: var(--ink-deep); color: var(--cream);
  clip-path: inset(0 0 0 0); transition: clip-path 1s var(--ease-io), visibility 0s 1s;
}
.js .loader { display: grid; }
.is-ready .loader { clip-path: inset(0 0 100% 0); visibility: hidden; }
.loader__mark { display: grid; justify-items: center; gap: 14px; transition: transform 1s var(--ease-io), opacity .5s; }
.is-ready .loader__mark { transform: translateY(-40px); opacity: 0; }
.loader__moon { width: 96px; height: 96px; opacity: 0; animation: moonrise 1.1s var(--ease) .1s forwards; }
@keyframes moonrise { from { opacity: 0; transform: translateY(14px) scale(.9); } to { opacity: 1; transform: none; } }
.loader__word { font-family: var(--serif); font-size: 20px; letter-spacing: .5em; margin-right: -.5em; text-transform: uppercase; opacity: 0; animation: rise .9s var(--ease) .35s forwards; }
.loader__est { font-family: var(--serif); font-style: italic; font-size: 14px; color: var(--gold); opacity: 0; animation: rise .9s var(--ease) .55s forwards; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ---------- masthead ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 70; color: var(--cream);
  transition: background-color .5s, backdrop-filter .5s, border-color .5s, transform .6s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-stuck { background: rgba(11, 17, 32, .9); -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%); border-color: rgba(217, 196, 154, .16); }
.nav__in {
  max-width: 1320px; margin: 0 auto; padding: 22px var(--gutter);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px;
  transition: padding .5s var(--ease);
}
.nav.is-stuck .nav__in { padding-top: 12px; padding-bottom: 12px; }
.nav__links { display: flex; gap: 30px; font-size: 12px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; }
.nav__links a { position: relative; padding: 12px 0; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: 100% 50%; transition: transform .5s var(--ease); }
.nav__links a:hover::after { transform: scaleX(1); transform-origin: 0 50%; }
.nav__logo { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.nav__mark { width: 36px; height: 36px; transition: transform .8s var(--ease); }
.nav__logo:hover .nav__mark { transform: translateY(-2px) scale(1.06); }
.nav__logo span { font-family: var(--serif); font-size: 21px; line-height: 1.2; letter-spacing: .32em; margin-right: -.32em; text-transform: uppercase; }
.nav.is-stuck .nav__mark { display: none; }
.nav__cta { display: flex; justify-content: flex-end; }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden;
  display: flex; flex-direction: column; justify-content: center;
  padding: 150px 0 110px; color: var(--cream);
  background:
    radial-gradient(60% 62% at 76% 42%, rgba(60, 82, 132, .36) 0%, transparent 64%),
    linear-gradient(180deg, #121A2A 0%, #0E1524 100%);
}

.hero__inner { position: relative; width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 var(--gutter); display: grid; gap: clamp(26px, 3.4vw, 44px); will-change: transform, opacity; }
.hero__title { font-size: clamp(3rem, 8.2vw, 8.2rem); line-height: .98; letter-spacing: -.01em; text-wrap: nowrap; }
.line { display: block; overflow: hidden; padding: .04em .1em .16em 0; margin-bottom: -.16em; }
.line > span { display: block; }
.hero__foot { display: grid; gap: 28px; max-width: 540px; }
.hero__lede { font-size: 17px; color: var(--on-dark-muted); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }

.hero__base {
  position: absolute; left: 0; right: 0; bottom: 0; max-width: 1320px; margin: 0 auto; padding: 0 var(--gutter) 30px;
  display: flex; justify-content: space-between; align-items: flex-end; gap: 20px;
  font-size: 11px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--on-dark-muted);
}
.hero__scroll { display: inline-flex; align-items: center; gap: 14px; padding: 12px 0; transition: color .4s; }
.hero__scroll:hover { color: var(--gold); }
.hero__scroll-line { position: relative; width: 1px; height: 46px; background: rgba(237, 230, 216, .2); overflow: hidden; }
.hero__scroll-line::after { content: ""; position: absolute; inset: 0; background: var(--gold); animation: drip 2.4s var(--ease-io) infinite; }
@keyframes drip { 0% { transform: translateY(-100%); } 55%, 100% { transform: translateY(100%); } }
.hero__count { display: inline-flex; align-items: center; gap: 12px; padding: 12px 0; }
.hero__count svg { width: 9px; height: 9px; fill: var(--gold); animation: twirl 9s linear infinite; }
@keyframes twirl { to { transform: rotate(360deg); } }

/* hero entrance */
.js .hero .line > span { transform: translateY(118%); }
.js .hero__eyebrow, .js .hero__foot, .js .hero__base { opacity: 0; transform: translateY(18px); }
.is-ready .hero .line > span { transform: none; transition: transform 1.3s var(--ease); }
.is-ready .hero .line:nth-child(1) > span { transition-delay: .5s; }
.is-ready .hero .line:nth-child(2) > span { transition-delay: .62s; }
.is-ready .hero .line:nth-child(3) > span { transition-delay: .74s; }
.is-ready .hero__eyebrow, .is-ready .hero__foot, .is-ready .hero__base { opacity: 1; transform: none; transition: opacity 1.1s ease, transform 1.2s var(--ease); }
.is-ready .hero__eyebrow { transition-delay: .45s; }
.is-ready .hero__foot { transition-delay: 1.05s; }
.is-ready .hero__base { transition-delay: 1.3s; }

/* ---------- paper to pixel ---------- */
.unseal { position: relative; height: 380vh; background: linear-gradient(180deg, #0E1524 0%, #0B1120 60%, #0E1524 100%); color: var(--cream); }
.unseal__stage {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: center;
  max-width: 1320px; margin: 0 auto; padding: 80px var(--gutter) 0;
}
.unseal__copy { position: relative; z-index: 2; display: grid; gap: 30px; max-width: 480px; }
.unseal__steps { display: grid; }
.unseal__step { grid-area: 1 / 1; display: grid; gap: 18px; align-content: start; opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .9s var(--ease); pointer-events: none; }
.unseal__step.is-active { opacity: 1; transform: none; transition-delay: .12s; }
.unseal__step.is-past { transform: translateY(-26px); }
.unseal__num { font-family: var(--serif); font-size: 15px; font-style: italic; color: var(--gold); letter-spacing: .1em; }
.unseal__step h2 { font-size: clamp(2.2rem, 4.5vw, 3.9rem); line-height: 1.04; letter-spacing: 0; }
.unseal__step h2 em { color: var(--gold); }
.unseal__step p { color: var(--on-dark-muted); max-width: 400px; }
.unseal__ticks { display: flex; gap: 8px; }
.unseal__ticks span { width: 34px; height: 2px; background: var(--ink-line); transition: background-color .5s, width .6s var(--ease); }
.unseal__ticks span.is-on { background: var(--gold); width: 56px; }

.scene {
  --flap: 0; --seal: 0; --rise: 0; --out: 0; --fs: 1.3; --lap: 12px;
  --W: min(420px, 74vw, 46vh);
  --H: calc(var(--W) * .72);
  --cw: calc(var(--W) * .5);
  --ch: calc(var(--W) * .648);
  --pw: calc(var(--W) * .25 * var(--fs));   /* finished phone: half width */
  --ph: calc(var(--W) * 1.004 * var(--fs)); /* finished phone: full height */
  position: relative; height: 100%; min-height: 0;
}
.scene__tilt { position: absolute; inset: 0; will-change: transform; }
.scene__glow {
  position: absolute; left: 50%; top: 50%; width: calc(var(--W) * 2.3); aspect-ratio: 1; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(217, 196, 154, .2), rgba(86, 110, 170, .1) 45%, transparent 72%);
  opacity: calc(.75 + var(--out) * .25);
}

.env {
  position: absolute; left: 50%; top: 50%; width: var(--W); height: var(--H);
  margin: calc(var(--H) * -.15) 0 0 calc(var(--W) * -.5);
  transform: translateY(calc(var(--out) * 96vh)) rotate(calc(var(--out) * -9deg));
  opacity: calc(3.4 - var(--out) * 3.4);
  will-change: transform, opacity;
}
.env--back { z-index: 1; }
.env--front { z-index: 3; filter: drop-shadow(0 30px 34px rgba(0, 0, 0, .45)); }
.env__lining {
  position: absolute; inset: 0; border-radius: 3px; background-color: var(--ink-soft);
  background-image: radial-gradient(circle, rgba(217, 196, 154, .55) 1px, transparent 1.6px), radial-gradient(circle, rgba(217, 196, 154, .3) 1px, transparent 1.6px);
  background-size: 16px 16px; background-position: 0 0, 8px 8px;
  box-shadow: inset 0 0 0 4px var(--ivory);
}
.env__pocket { position: absolute; inset: 0; width: 100%; height: 100%; }
.flap { position: absolute; left: 0; width: 100%; height: calc(var(--W) * .44); backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.flap--closed { top: 0; transform-origin: 50% 0; transform: perspective(900px) rotateX(calc(var(--flap) * 180deg)); }
.flap--open { bottom: calc(100% - 1px); transform-origin: 50% 100%; transform: perspective(900px) rotateX(calc((var(--flap) - 1) * 180deg)); }
.seal {
  position: absolute; left: 50%; top: calc(var(--W) * .43); width: calc(var(--W) * .17); aspect-ratio: 1;
  display: grid; place-items: center; border-radius: 47% 53% 50% 50% / 52% 48% 52% 48%;
  background: radial-gradient(circle at 34% 28%, #F4E3B8 0%, #CDAE6C 46%, #8C6C2B 100%);
  box-shadow: inset 0 0 0 calc(var(--W) * .012) rgba(122, 98, 52, .45), inset 0 -3px 6px rgba(60, 40, 5, .45), 0 6px 12px rgba(0, 0, 0, .35);
  transform: translate(-50%, -50%) translateY(calc(var(--seal) * 34px)) rotate(calc(var(--seal) * -32deg)) scale(calc(1 - var(--seal) * .45));
  opacity: calc(1 - var(--seal) * 1.15);
}
/* the logo pressed into the wax: dark impression with a light lower edge, like a real stamp */
.seal img { display: block; width: 66%; height: auto; opacity: .88; filter: drop-shadow(0 1px 0 rgba(255, 240, 200, .65)) drop-shadow(0 -1px 0 rgba(60, 40, 5, .35)); }

/* The card keeps the finished phone's size the whole time, so nothing is re-laid-out
   while it grows: a clip mask reveals it, and the shadow is a pre-blurred layer that
   only scales and fades. Every frame is a cheap repaint instead of layout + big blur. */
.invite {
  --cy: calc(var(--ch) * .275 * (1 - var(--out)));      /* top/bottom of the card inside the phone */
  --r: calc(.25em + var(--out) * 2em);
  --ring: calc(var(--out) * .5em);
  position: absolute; left: 50%; top: 50%; z-index: 2;
  width: var(--cw); height: calc(var(--ch) * 1.55);
  font-size: calc(var(--W) / 42);
  transform: translate(-50%, -50%)
    translateY(calc((.36 - 1.04 * var(--rise)) * (1 - var(--out)) * var(--H)))
    rotate(calc(var(--rise) * (1 - var(--out)) * -4deg))
    scale(calc(1 + (var(--fs) - 1) * var(--out)));
  color: var(--ink);
  will-change: transform;
}
.invite.is-front { z-index: 4; }
.invite__shade {
  position: absolute; inset: 0; border-radius: 2.25em;
  box-shadow: 0 3em 6em rgba(0, 0, 0, .6);
  transform: scaleY(calc(.645 + .355 * var(--out)));
  opacity: calc(.5 + var(--out) * .5);
  will-change: transform, opacity;
}
.invite__bezel {
  position: absolute; inset: -1em; background: rgba(217, 196, 154, .5);
  clip-path: inset(calc(var(--cy) + 1em - var(--ring)) calc(1em - var(--ring)) round calc(var(--r) + var(--ring)));
  opacity: calc(var(--out) * 25);
}
.invite__bezel::after {
  content: ""; position: absolute; inset: 0; background: #05080F;
  clip-path: inset(calc(var(--cy) + 1em - var(--ring) * .84) calc(1em - var(--ring) * .84) round calc(var(--r) + var(--ring) * .84));
}
.invite__screen {
  position: absolute; inset: 0; overflow: hidden; background: var(--ivory);
  clip-path: inset(var(--cy) 0 round var(--r));
}
.invite__paper { position: absolute; inset: calc(var(--ch) * .275) 0; padding: 1em; display: flex; opacity: calc(1 - var(--out) * 2.4); }
.invite__frame { flex: 1; border: 1px solid var(--ink); outline: 1px solid var(--ink); outline-offset: -.45em; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .8em; text-align: center; }
.t-cap { font-size: .72em; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; }
.t-name { font-family: var(--serif); font-size: 2em; line-height: 1.1; letter-spacing: .18em; margin-right: -.18em; text-transform: uppercase; }
.t-and { font-family: var(--serif); font-style: italic; font-size: 1.5em; line-height: 1; }
.t-rule { width: 2.6em; height: 1px; background: var(--ink); }

.invite__web { position: absolute; inset: 0; display: flex; flex-direction: column; opacity: calc(var(--out) * 2.4 - 1.1); }
.web__top {
  position: relative; flex: 0 0 43%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .55em; text-align: center; color: var(--cream);
  background: radial-gradient(90% 70% at 50% 0%, #26345A 0%, var(--ink) 70%);
}
.web__bar { position: absolute; top: .8em; left: 50%; width: 5.4em; height: 1.3em; margin-left: -2.7em; border-radius: 1em; background: #05080F; }
.web__mark { display: block; width: 3em; height: 3em; margin-top: 1.1em; }
.web__kicker { font-size: .68em; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); }
.web__names { font-family: var(--serif); font-size: 2.35em; line-height: 1.05; }
.web__names i { color: var(--gold); }
.web__date { font-size: .78em; letter-spacing: .16em; text-transform: uppercase; color: var(--on-dark-muted); }
.web__body { flex: 1; display: flex; flex-direction: column; gap: 1.3em; padding: 1.6em 1.5em 1.7em; }
.web__count { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5em; text-align: center; }
.web__count div { display: grid; gap: .1em; padding: .7em 0 .6em; border: 1px solid var(--line); border-radius: .7em; }
.web__count b { font-family: var(--serif); font-weight: 400; font-size: 1.75em; line-height: 1; font-variant-numeric: tabular-nums; }
.web__count span { font-size: .56em; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--on-light-muted); }
.web__events { display: grid; }
.web__events div { display: flex; justify-content: space-between; align-items: baseline; padding: .62em 0; border-bottom: 1px solid var(--line); font-size: .92em; line-height: 1.3; }
.web__events span:first-child { font-family: var(--serif); font-size: 1.2em; }
.web__events span:last-child { font-size: .85em; font-weight: 500; letter-spacing: .1em; color: var(--on-light-muted); }
.web__rsvp { margin-top: auto; display: grid; place-items: center; height: 3.5em; border-radius: 2em; background: var(--ink); color: var(--cream); font-size: .82em; font-weight: 600; letter-spacing: .3em; }

.chip {
  --x: 0px; --f: .5; --y: calc((var(--f) - .5) * var(--ph));
  position: absolute; left: 50%; top: 50%; z-index: 5;
  display: inline-flex; align-items: center; gap: 9px; padding: 11px 18px;
  border-radius: 999px; border: 1px solid rgba(217, 196, 154, .34);
  background: rgba(20, 28, 46, .7); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  font-size: 12px; font-weight: 500; letter-spacing: .06em; line-height: 1.2; white-space: nowrap; color: var(--cream);
  opacity: 0; transform: translate(var(--x), var(--y)) translateY(18px) scale(.9);
  visibility: hidden; --dl: 0s;
  transition: opacity .5s ease, transform .9s var(--ease), visibility 0s linear;
  transition-delay: var(--dl), var(--dl), calc(var(--dl) + .9s);
}
.chip svg { width: 8px; height: 8px; fill: var(--gold); flex: none; }
.chip i { font-style: normal; }
.scene.is-done .chip { opacity: 1; visibility: visible; transform: translate(var(--x), var(--y)); transition-delay: var(--dl), var(--dl), var(--dl); }
.chip--1, .chip--3 { --x: calc(-100% - var(--pw) + var(--lap)); }
.chip--2, .chip--4 { --x: calc(var(--pw) - var(--lap)); }
.chip--1 { --f: .15; --dl: 0s; }
.chip--2 { --f: .355; --dl: .08s; }
.chip--3 { --f: .6; --dl: .16s; }
.chip--4 { --f: .79; --dl: .24s; }

/* ---------- occasions ribbon ---------- */
.ribbon { position: relative; z-index: 1; background: var(--cream); color: var(--ink); padding: clamp(38px, 5vw, 70px) 0; overflow: hidden; border-bottom: 1px solid #DDD3C0; }
.marquee { display: flex; overflow: hidden; }
.marquee__track { display: flex; align-items: center; flex: none; gap: clamp(22px, 3vw, 46px); padding-right: clamp(22px, 3vw, 46px); will-change: transform; }
.marquee span { font-family: 'Cormorant Garamond', Garamond, Georgia, serif; font-style: italic; font-weight: 500; font-size: clamp(2.6rem, 7vw, 6.6rem); line-height: 1.15; white-space: nowrap; }
.marquee svg { width: clamp(12px, 1.5vw, 22px); height: clamp(12px, 1.5vw, 22px); fill: var(--gold-deep); flex: none; animation: twirl 10s linear infinite; }
.marquee--b span { font-family: 'Cormorant Garamond', Garamond, Georgia, serif; font-style: normal; font-weight: 600; font-size: clamp(1.05rem, 2vw, 1.7rem); letter-spacing: .28em; text-transform: uppercase; color: var(--gold-deep); }
.marquee--b svg { width: 8px; height: 8px; animation: none; }
.marquee--b { margin-top: clamp(10px, 1.6vw, 22px); }

/* ---------- collection ---------- */
.collection { position: relative; z-index: 1; background: var(--ivory); padding: clamp(84px, 10vw, 150px) 0 clamp(96px, 11vw, 170px); }
.collection__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 32px; }
.collection__intro { display: grid; gap: 18px; max-width: 390px; font-size: 15px; color: var(--on-light-muted); }
.collection__count { font-size: 11px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--gold-deep); }
.collection__count b { font-family: var(--serif); font-weight: 400; font-size: 22px; letter-spacing: 0; margin-right: 6px; color: var(--ink); font-variant-numeric: tabular-nums; }

.filters { display: flex; flex-wrap: wrap; gap: 0 32px; margin-top: clamp(40px, 5vw, 64px); border-bottom: 1px solid var(--line); }
.filter {
  position: relative; background: none; border: 0; padding: 14px 0; min-height: 48px; cursor: pointer;
  font-size: 13px; font-weight: 500; letter-spacing: .08em; color: var(--on-light-muted); transition: color .35s;
}
.filter sup { font-family: var(--serif); font-style: italic; font-size: 11px; margin-left: 5px; color: var(--gold-deep); }
.filter::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--ink); transform: scaleX(0); transform-origin: 0 50%; transition: transform .55s var(--ease); }
.filter:hover { color: var(--ink); }
.filter[aria-pressed="true"] { color: var(--ink); font-weight: 600; }
.filter[aria-pressed="true"]::after { transform: scaleX(1); }

.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(40px, 4.4vw, 64px) clamp(18px, 2.2vw, 32px); margin-top: clamp(40px, 5vw, 64px); }
.card { container-type: inline-size; position: relative; display: grid; gap: 18px; align-content: start; }
.card__link { position: absolute; inset: 0; z-index: 2; border-radius: 4px; }
.card__live { display: inline-flex; align-items: center; gap: 8px; margin-top: 4px; font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--ink); }
.card__live::after { content: "→"; letter-spacing: 0; transition: transform .5s var(--ease); }
.card.is-tilting .card__live::after { transform: translateX(6px); }
.card[hidden] { display: none; }
.card:nth-child(even of :not([hidden])) { margin-top: 64px; }

.card__art {
  --rx: 0deg; --ry: 0deg; --gx: 50%; --gy: 50%;
  position: relative; aspect-ratio: 13 / 18; border-radius: 4px; display: flex;
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;
  box-shadow: 0 30px 44px -32px rgba(18, 26, 42, .5);
  transition: transform .9s var(--ease), box-shadow .6s ease;
}
.card__art * { transform-style: preserve-3d; }
.card__art::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; transform: translateZ(1px);
  background: radial-gradient(70% 55% at var(--gx) var(--gy), rgba(255, 255, 255, .34), rgba(255, 255, 255, 0) 62%);
  opacity: 0; transition: opacity .5s;
}
.card.is-tilting .card__art { transition: transform .12s linear, box-shadow .6s ease; box-shadow: 0 54px 60px -34px rgba(18, 26, 42, .62); }
.card.is-tilting .card__art::after { opacity: 1; }
.pop { transition: transform .8s var(--ease); }
.card.is-tilting .pop { transform: translateZ(8cqw); }
.card.is-tilting .spin { animation: twirl 14s linear infinite; }

.card__cap { display: grid; gap: 6px; }
.card__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 2px 0 0; }
.card__now { font-family: var(--sans); font-size: 19px; font-weight: 600; line-height: 1.2; letter-spacing: .01em; color: var(--ink); font-variant-numeric: lining-nums tabular-nums; }
.card__was { font-size: 14px; color: var(--on-light-muted); text-decoration-thickness: 1px; text-decoration-color: rgba(78, 86, 102, .7); }
.card__off { align-self: center; padding: 3px 9px; border-radius: 999px; background: #F3E3C7; color: var(--gold-deep); font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.card__no { font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-deep); }
.card__cap h3 { font-size: clamp(24px, 2.2vw, 30px); line-height: 1.2; display: inline-flex; align-items: baseline; gap: 10px; }
.card__cap h3::after { content: ""; flex: none; width: 0; height: 1px; background: var(--ink); align-self: center; transition: width .6s var(--ease); }
.card.is-tilting .card__cap h3::after { width: 34px; }

/* card artwork — sizes in cqw so each design scales with its card */
.stack, .frame { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.stack { flex: 1; }
.a-cap { font-size: 3.3cqw; font-weight: 600; letter-spacing: .32em; margin-right: -.32em; text-transform: uppercase; line-height: 1.4; }
.a-name { font-family: var(--serif); font-size: 8.2cqw; line-height: 1.15; letter-spacing: .18em; margin-right: -.18em; text-transform: uppercase; }
.a-and { font-family: var(--serif); font-style: italic; font-size: 6cqw; line-height: 1.1; }
.a-script { font-family: var(--serif); font-style: italic; line-height: 1.05; }
.a-big { font-family: var(--serif); line-height: 1.12; }
.a-huge { font-family: var(--serif); line-height: .9; }

.art-moonlit { background: var(--ink); padding: 10cqw; color: var(--cream); }
.art-moonlit .frame { flex: 1; gap: 3.6cqw; border: 1px solid var(--gold); outline: 1px solid var(--gold); outline-offset: -6px; }
.art-moonlit svg { width: 7cqw; stroke: var(--gold); }
.art-moonlit .a-and { color: var(--gold); }
/* photo version: the couple fills the card, names sit in the moonlit shade at the foot */
.art-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; border-radius: inherit; }
.art-moonlit--photo::before {
  content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; pointer-events: none;
  background: linear-gradient(180deg, rgba(18, 26, 42, .1) 0%, rgba(18, 26, 42, .05) 38%, rgba(18, 26, 42, .78) 72%, rgba(18, 26, 42, .94) 100%);
}
.art-moonlit--photo .frame { position: relative; z-index: 2; justify-content: flex-end; gap: 1.6cqw; padding-bottom: 9cqw; }
.art-moonlit--photo .a-name { font-size: 7.4cqw; text-shadow: 0 2px 14px rgba(0, 0, 0, .55); }
.art-moonlit--photo .a-and { font-size: 5.4cqw; }

.art-terracotta { background: #C0643C; padding: 10cqw 12.5cqw 0; color: #7A3518; }
.art-terracotta .arch { flex: 1; display: flex; background: #F4E6D6; border-radius: 50cqw 50cqw 0 0; }
.art-terracotta .stack { gap: 3.6cqw; }
.art-terracotta svg { width: 16cqw; stroke: #C0643C; }
.art-terracotta .a-script { font-size: 10cqw; }
/* photo version: the couple fills the arch, names rest in a warm cream glow at its foot */
.art-terracotta--photo .arch { position: relative; overflow: hidden; }
.art-terracotta--photo .arch .art-photo { border-radius: 0; object-position: 50% 22%; }
.art-terracotta--photo .arch::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(244, 230, 214, 0) 0%, rgba(244, 230, 214, 0) 46%, rgba(244, 230, 214, .82) 72%, #F4E6D6 92%);
}
.art-terracotta--photo .stack { position: relative; z-index: 2; justify-content: flex-end; gap: 2.4cqw; padding-bottom: 10cqw; }
.art-terracotta--photo svg { width: 11cqw; }

/* coming soon: a quiet dashed placeholder */
.art-soon { background: repeating-linear-gradient(135deg, #EFE8DA 0 14px, #F4EEE2 14px 28px); padding: 10cqw; color: var(--ink); box-shadow: none; }
.art-soon .frame { flex: 1; gap: 4.4cqw; border: 1px dashed rgba(18, 26, 42, .45); border-radius: 3px; background: rgba(251, 248, 241, .7); }
.art-soon svg { width: 6cqw; fill: var(--gold-deep); animation: twirl 12s linear infinite; }
.art-soon .a-big { font-size: 12cqw; }
.art-soon .a-big i { color: var(--gold-deep); }
.art-soon .a-cap { font-size: 2.9cqw; color: rgba(18, 26, 42, .7); }
/* bespoke: ink and gold, like a commissioned card */
.art-bespoke { background: radial-gradient(120% 80% at 50% 0%, #26345A 0%, var(--ink) 70%); padding: 10cqw; color: var(--cream); }
.art-bespoke .frame { flex: 1; gap: 4.4cqw; border: 1px solid rgba(217, 196, 154, .6); border-radius: 50% 50% 3px 3px / 26% 26% 3px 3px; }
.art-bespoke svg { width: 9cqw; stroke: var(--gold); }
.art-bespoke .a-big { font-size: 10.4cqw; }
.art-bespoke .a-big i { color: var(--gold); }
.art-bespoke .a-cap { font-size: 2.9cqw; color: var(--gold); }
.card__soon-note { margin-top: 2px; max-width: 34ch; font-size: 14px; line-height: 1.6; color: var(--on-light-muted); }
.card--soon .card__cap h3::after { display: none; }
.closing__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.art-pearl { background: #DCE3D8; padding: 11cqw; color: #34503A; }
.art-pearl .frame { flex: 1; gap: 4.4cqw; background: #FBFAF6; border: 1px dotted #5E7A63; border-radius: 2px; }
.art-pearl .a-big { font-size: 11cqw; }
.art-pearl .a-big i { font-size: 7.4cqw; }

.art-jade { background: #1E3B33; padding: 10cqw; color: #E9DFC6; }
.art-jade .stack { gap: 6.4cqw; }
.art-jade svg { width: 44cqw; stroke: #C9B27A; }
.art-jade .a-script { font-size: 11cqw; }
.art-jade .a-cap { color: #C9B27A; }

.art-noir { background: #0E0E0E; padding: 10cqw; color: #E8D7A8; }
.art-noir .stack { gap: 5cqw; }
.art-noir svg { width: 44cqw; stroke: #C9A85C; }
.art-noir .a-huge { font-size: 23.5cqw; }
.art-noir .a-script { font-size: 7.4cqw; }
.art-noir .a-cap { color: #C9A85C; }

.art-cloud { background: #E6E1EF; padding: 13cqw; color: #4B3F6B; }
.art-cloud .frame { flex: 1; gap: 4.4cqw; background: #fff; border-radius: 6cqw; padding: 0 4cqw; }
.art-cloud svg { width: 22cqw; stroke: #7E6FA3; }
.art-cloud .a-script { font-size: 11.8cqw; }

.art-brass { background: #1F4E52; padding: 11cqw 14.8cqw 0; color: #1F4E52; }
.art-brass .door { flex: 1; display: flex; border: 1px solid #C9A86A; border-bottom: 0; border-radius: 4px 4px 0 0; padding: 3.7cqw 3.7cqw 0; }
.art-brass .door__in { flex: 1; display: flex; background: #F1EBDD; }
.art-brass .stack { gap: 3.7cqw; }
.art-brass .a-big { font-size: 9.6cqw; }
.art-brass .a-dot { width: 3cqw; height: 3cqw; border-radius: 50%; background: #C9A86A; }

.art-jubilee { background: #E4D3A8; padding: 10cqw; color: var(--ink); }
.art-jubilee .stack { gap: 3cqw; }
.art-jubilee .a-huge { font-size: 40cqw; }
.art-jubilee .a-script { font-size: 8.2cqw; }

/* ---------- process ---------- */
.process { position: relative; z-index: 1; background: var(--ink); color: var(--cream); padding: clamp(90px, 10vw, 150px) 0; overflow: hidden; }
.process::before { content: ""; position: absolute; left: 50%; top: 0; width: min(1100px, 120vw); aspect-ratio: 2 / 1; transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgba(86, 110, 170, .22), transparent); pointer-events: none; }
.process__head { position: relative; display: grid; gap: 22px; justify-items: center; text-align: center; }
.steps { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: clamp(50px, 6vw, 90px); }
.step { --p: 0; display: grid; align-content: start; justify-items: center; text-align: center; }
.step__num {
  font-family: var(--display); font-weight: 500; font-size: clamp(5.4rem, 11.4vw, 10.8rem); line-height: 1; letter-spacing: .02em;
  color: var(--ink); -webkit-text-stroke: 2px rgba(217, 196, 154, .55); paint-order: stroke fill;
  transition: color .9s var(--ease), -webkit-text-stroke-color .9s, transform 1s var(--ease);
  transform: translateY(14px);
}
.step.is-on .step__num { color: var(--gold); -webkit-text-stroke-color: var(--gold); transform: none; }
.step__rail { position: relative; width: 100%; height: 1px; margin: clamp(22px, 3vw, 40px) 0; background: var(--ink-line); }
.step__rail span { position: absolute; inset: 0; background: var(--gold); transform: scaleX(var(--p)); transform-origin: 0 50%; }
.step__rail i { position: absolute; left: 50%; top: 50%; width: 11px; height: 11px; margin: -5.5px 0 0 -5.5px; border-radius: 50%; background: var(--ink); border: 1px solid var(--ink-line); transition: background-color .5s, border-color .5s, box-shadow .6s, transform .6s var(--ease); }
.step.is-on .step__rail i { background: var(--gold); border-color: var(--gold); box-shadow: 0 0 0 6px rgba(217, 196, 154, .16); transform: scale(1.1); }
.step__txt { display: grid; gap: 12px; justify-items: center; padding: 0 clamp(16px, 2.6vw, 36px); opacity: .45; transition: opacity .8s ease; }
.step.is-on .step__txt { opacity: 1; }
.step__txt h3 { font-size: clamp(26px, 2.4vw, 33px); line-height: 1.15; }
.step__txt p { max-width: 290px; font-size: 15px; color: var(--on-dark-muted); }
.terms-strip { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; max-width: 980px; margin: clamp(46px, 6vw, 80px) auto 0; }
.terms-strip__item { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; align-items: start; padding: 24px 26px; border: 1px solid rgba(217, 196, 154, .3); border-radius: 14px; background: rgba(237, 230, 216, .04); }
.terms-strip__item svg { width: 30px; height: 30px; stroke: var(--gold); margin-top: 2px; }
.terms-strip__item h3 { font-size: 22px; line-height: 1.25; color: var(--cream); margin-bottom: 6px; }
.terms-strip__item p { font-size: 14.5px; line-height: 1.7; color: var(--on-dark-muted); }
@media (max-width: 760px) { .terms-strip { grid-template-columns: minmax(0, 1fr); } .terms-strip__item { padding: 20px; } }

/* ---------- closing card ---------- */
.closing { position: relative; z-index: 1; background: var(--ivory); padding: clamp(90px, 10vw, 150px) 0; }
.closing__card {
  position: relative; max-width: 860px; margin: 0 auto; padding: clamp(64px, 8vw, 104px) clamp(26px, 5vw, 60px);
  border: 1px solid var(--ink); outline: 1px solid var(--ink); outline-offset: -10px;
  display: grid; justify-items: center; gap: 26px; text-align: center;
}
.closing__mark { width: 28px; height: 28px; stroke: var(--ink); }
.closing__card p { max-width: 460px; font-size: 15px; color: var(--on-light-muted); }
.closing__stamp { position: absolute; right: clamp(-46px, -3vw, -18px); top: clamp(-58px, -4vw, -30px); width: clamp(96px, 11vw, 136px); height: auto; stroke: var(--ink); transform: rotate(8deg); }
.closing__stamp-bg { fill: var(--ivory); stroke: var(--ink); stroke-width: 1; }
.closing__stamp-text { transform-origin: 70px 70px; animation: twirl 26s linear infinite; }
.closing__stamp text { font-family: var(--sans); font-size: 9.6px; font-weight: 600; letter-spacing: .5px; fill: var(--ink); stroke: none; }

/* ---------- RSVP dashboard: how replies reach the couple ---------- */
.replies { position: relative; z-index: 1; background: var(--cream); color: var(--ink); padding: clamp(90px, 10vw, 150px) 0; overflow: hidden; border-bottom: 1px solid #DDD3C0; }
.replies__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(48px, 7vw, 110px); align-items: center; }
.replies__copy { display: grid; gap: 24px; align-content: start; }
.replies .eyebrow { color: var(--gold-deep); }
.replies__lede { max-width: 470px; font-size: 16px; color: var(--on-light-muted); }
.replies__steps { list-style: none; margin: 12px 0 0; padding: 0; display: grid; }
.replies__steps li { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 4px 16px; padding: 22px 0; border-top: 1px solid #D3C8B3; }
.replies__steps li:last-child { border-bottom: 1px solid #D3C8B3; }
.replies__no { font-family: var(--serif); font-style: italic; font-size: 22px; line-height: 1.3; color: var(--gold-deep); }
.replies__steps h3 { font-size: clamp(23px, 2.1vw, 28px); line-height: 1.2; margin-bottom: 6px; }
.replies__steps p { max-width: 460px; font-size: 14.5px; line-height: 1.7; color: var(--on-light-muted); }

/* the sample dashboard, drawn in the dashboard's own night colours */
.dash-mock { margin: 0; display: grid; gap: 16px; justify-items: center; }
.dash-mock figcaption { font-size: 12.5px; color: var(--on-light-muted); text-align: center; }
.dash-mock__frame {
  position: relative; width: 100%; max-width: 560px; overflow: hidden;
  border-radius: 16px; background: var(--ink-deep); color: var(--cream);
  border: 1px solid #26304A;
  box-shadow: 0 2px 4px rgba(18, 26, 42, .08), 0 30px 60px -20px rgba(18, 26, 42, .45);
  transform: rotate(-1.2deg);
}
.dash-mock__bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-bottom: 1px solid #1E283D; background: var(--ink); }
.dash-mock__bar > span { width: 9px; height: 9px; border-radius: 50%; background: #2A3448; }
.dash-mock__bar p { flex: 1; min-width: 0; margin: 0 8px; padding: 4px 12px; border-radius: 999px; background: #0B1120; font-size: 11.5px; color: var(--on-dark-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-mock__bar b { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 500; color: var(--on-dark-muted); }
.dash-mock__bar b i { width: 7px; height: 7px; border-radius: 50%; background: #8FD1AE; animation: mock-pulse 2.4s ease-out infinite; }
@keyframes mock-pulse { 0% { box-shadow: 0 0 0 0 rgba(143, 209, 174, .5); } 100% { box-shadow: 0 0 0 7px rgba(143, 209, 174, 0); } }

.dash-mock__body { padding: 20px 20px 66px; } /* bottom room for the "new reply" toast */
.dash-mock__date { font-size: 9.5px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); }
.dash-mock__title { margin-top: 2px; font-family: var(--display); font-size: 30px; font-weight: 500; line-height: 1.15; color: var(--cream); }
.dash-mock__stats { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 8px; margin-top: 16px; }
.dash-mock__stat { display: grid; gap: 2px; padding: 10px 12px; border-radius: 10px; background: var(--ink); border: 1px solid #1E283D; min-width: 0; }
.dash-mock__stat span { font-size: 9px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--on-dark-muted); white-space: nowrap; }
.dash-mock__stat b { font-family: var(--display); font-size: 28px; font-weight: 600; line-height: 1.05; font-variant-numeric: lining-nums tabular-nums; }
.dash-mock__stat--hero b { color: var(--gold); font-size: 32px; }
.dash-mock__label { margin: 18px 0 8px; font-family: var(--display); font-size: 17px; font-weight: 600; color: var(--cream); }

.dash-mock__bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.dash-mock__bars li { display: grid; grid-template-columns: 74px minmax(0, 1fr) 30px; align-items: center; gap: 10px; font-size: 12px; }
.dash-mock__bars span { color: var(--cream); font-weight: 500; }
.dash-mock__bars i { display: block; height: 7px; border-radius: 0 3px 3px 0; background: #1E283D; overflow: hidden; }
.dash-mock__bars s { display: block; height: 100%; border-radius: 0 3px 3px 0; background: var(--gold); transform: scaleX(var(--v)); transform-origin: 0 50%; transition: transform 1.3s var(--ease) .5s; }
.dash-mock__bars li:nth-child(2) s { transition-delay: .58s; }
.dash-mock__bars li:nth-child(3) s { transition-delay: .66s; }
.dash-mock__bars li:nth-child(4) s { transition-delay: .74s; }
.dash-mock__bars li:nth-child(5) s { transition-delay: .82s; }
.js .dash-mock:not(.in) .dash-mock__bars s { transform: scaleX(0); }
.dash-mock__bars b { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }

.dash-mock__rows { list-style: none; margin: 0; padding: 0; }
.dash-mock__rows li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid #1E283D; font-size: 12px; }
.dash-mock__rows span { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-mock__rows em { font-style: normal; font-size: 11px; font-weight: 600; padding: 2px 9px; border-radius: 999px; white-space: nowrap; }
.dash-mock__rows .is-yes { color: #8FD1AE; background: #173327; }
.dash-mock__rows .is-no { color: #F0A3A3; background: #3A1D24; }
.dash-mock__rows small { min-width: 62px; text-align: right; font-size: 11px; color: var(--on-dark-muted); }

/* a reply arriving while the couple watches */
.dash-mock__toast {
  position: absolute; left: 50%; bottom: 16px; display: flex; align-items: center; gap: 9px; max-width: calc(100% - 32px);
  padding: 10px 16px; border-radius: 999px; background: var(--cream); color: var(--ink); font-size: 12px; white-space: nowrap;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .35); transform: translateX(-50%);
}
.dash-mock__toast span { overflow: hidden; text-overflow: ellipsis; }
.dash-mock__toast i { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--gold-deep); }
.dash-mock.in .dash-mock__toast { animation: mock-toast 6s var(--ease) 1.8s both; }
.js .dash-mock:not(.in) .dash-mock__toast { opacity: 0; }
@keyframes mock-toast {
  0% { opacity: 0; transform: translate(-50%, 24px); }
  10%, 80% { opacity: 1; transform: translate(-50%, 0); }
  100% { opacity: 1; transform: translate(-50%, 0); }
}

@media (max-width: 1000px) {
  .replies__in { grid-template-columns: minmax(0, 1fr); }
  .replies__copy { max-width: 640px; }
  .dash-mock__frame { transform: none; }
}
@media (max-width: 520px) {
  .replies__steps li { grid-template-columns: 40px minmax(0, 1fr); gap: 4px 10px; }
  .dash-mock__body { padding: 16px 14px 60px; }
  .dash-mock__title { font-size: 25px; }
  .dash-mock__stats { grid-template-columns: 1fr 1fr; }
  .dash-mock__stat--hero { grid-column: 1 / -1; }
  .dash-mock__bars li { grid-template-columns: 64px minmax(0, 1fr) 28px; gap: 8px; }
  .dash-mock__rows small { display: none; }
  .dash-mock__toast { font-size: 11px; padding: 9px 13px; }
}

/* ---------- footer ---------- */
.footer { position: relative; z-index: 1; background: var(--ink); color: var(--on-dark-muted); padding: 72px 0 30px; overflow: hidden; }
.footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; }
.footer__brand { display: grid; gap: 12px; max-width: 320px; }
.footer__mark { width: 72px; height: 72px; margin-bottom: 4px; }
.footer__logo { font-family: var(--serif); font-size: 22px; letter-spacing: .32em; text-transform: uppercase; color: var(--cream); }
.footer__brand p { font-size: 14px; }
.footer__cols { display: flex; flex-wrap: wrap; gap: 64px; font-size: 14px; }
.footer__cols > div { display: grid; gap: 10px; align-content: start; }
.footer__label { font-size: 11px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); margin-bottom: 4px; }
.footer__cols a { color: var(--cream); width: fit-content; background: linear-gradient(var(--gold), var(--gold)) 0 100% / 0 1px no-repeat; transition: background-size .5s var(--ease), color .3s; padding: 2px 0; }
.footer__cols a:hover { background-size: 100% 1px; color: var(--gold); }
.footer__word {
  margin: clamp(40px, 6vw, 80px) 0 0; font-family: var(--display); font-weight: 500; font-size: clamp(3.2rem, 15.4vw, 14rem); line-height: .9; letter-spacing: -.03em; white-space: nowrap; text-align: center;
  /* engraved outline: the stroke is painted first, then the fill hides the glyphs' inner overlaps */
  color: var(--ink); -webkit-text-stroke: 2px rgba(217, 196, 154, .72); paint-order: stroke fill;
}
.footer__base { margin-top: clamp(24px, 3vw, 40px); padding-top: 22px; border-top: 1px solid var(--ink-line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 12px; letter-spacing: .08em; }

/* ---------- scroll reveal ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(34px); transition: opacity 1s ease var(--d, 0s), transform 1.2s var(--ease) var(--d, 0s); }
.js [data-reveal].in { opacity: 1; transform: none; }
.js .card[data-reveal] { transition-delay: calc(((var(--n) - 1) * .07s)); }

/* filter transitions */
::view-transition-group(*) { animation-duration: .6s; animation-timing-function: cubic-bezier(.22, 1, .36, 1); }
::view-transition-old(root), ::view-transition-new(root) { animation: none; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .card:nth-child(even of :not([hidden])) { margin-top: 0; }
  .card:nth-child(3n + 2 of :not([hidden])) { margin-top: 56px; }

  /* envelope sequence stacks: words above, scene below */
  .unseal__stage { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); align-items: start; padding-top: 92px; }
  .unseal__copy { gap: 16px; max-width: 620px; }
  .unseal__step { gap: 10px; }
  .unseal__step h2 { font-size: clamp(1.7rem, 7vw, 2.6rem); }
  .unseal__step p { font-size: 15px; line-height: 1.6; max-width: 460px; }
  .scene { --W: min(380px, 72vw, 33vh); --fs: 1.5; }
}

@media (max-width: 940px) {
  .nav__in { grid-template-columns: auto 1fr; padding-top: 16px; padding-bottom: 16px; }
  .nav__links { display: none; }
  .nav__logo { flex-direction: row; gap: 10px; justify-self: start; }
  .nav__logo span { font-size: 17px; letter-spacing: .24em; margin-right: 0; }
  .nav.is-stuck .nav__mark { display: block; }
}

@media (max-width: 860px) {
  .hero { justify-content: center; padding: 96px 0 110px; }
  .hero__lede { font-size: 16px; }

  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card:nth-child(3n + 2 of :not([hidden])) { margin-top: 0; }
  .card:nth-child(even of :not([hidden])) { margin-top: 44px; }

  .steps { grid-template-columns: minmax(0, 1fr); gap: 0; max-width: 520px; margin-left: auto; margin-right: auto; }
  .step { grid-template-columns: 34px minmax(0, 1fr); grid-template-rows: auto auto; justify-items: start; text-align: left; column-gap: 22px; padding-bottom: 44px; }
  .step__rail { grid-column: 1; grid-row: 1 / 3; width: 1px; height: calc(100% + 44px); margin: 0 0 0 17px; }
  .step:last-child .step__rail { height: 100%; }
  .step__rail span { transform: scaleY(var(--p)); transform-origin: 50% 0; }
  .step__rail i { top: 18px; }
  .step__num { grid-column: 2; grid-row: 1; font-size: 4.6rem; }
  .step__txt { grid-column: 2; grid-row: 2; justify-items: start; padding: 10px 0 0; }

  .closing__stamp { right: -8px; }
}

@media (max-width: 620px) {
  /* narrow screens: short chip labels, tucked over the quiet parts of the phone */
  .unseal__step p { font-size: 14px; }
  .scene { --lap: 30px; }
  .chip { font-size: 10.5px; padding: 8px 12px; gap: 7px; }
  .chip i { display: none; }
  .chip--1 { --f: .025; }
  .chip--2 { --f: .385; }
  .chip--3 { --f: .805; }
  .chip--4 { --f: .97; }
}

@media (max-width: 520px) {
  .btn { padding: 0 26px; }
  .btn--sm { min-height: 40px; padding: 0 15px; font-size: 10.5px; letter-spacing: .12em; }
  .nav__in { gap: 12px; }
  .nav__logo { gap: 8px; }
  .nav__mark { width: 28px; height: 28px; }
  .nav__logo span { font-size: 15px; letter-spacing: .2em; }
  .hero__eyebrow { gap: 10px; letter-spacing: .2em; white-space: nowrap; }
  .hero__eyebrow .eyebrow__rule { width: 22px; }
  .hero__cta .btn { flex: 1 1 auto; }
  .hero__count { display: none; }
  .filters { gap: 0 22px; }
  .card__cap h3 { font-size: 20px; }
  .card__no { font-size: 10px; letter-spacing: .14em; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; }
  .loader { display: none !important; }
  .js .hero .line > span, .js .hero__eyebrow, .js .hero__foot, .js .hero__base, .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .unseal { height: auto; }
  .unseal__stage { position: relative; height: auto; min-height: 100svh; padding-bottom: 60px; }
  .unseal__steps { gap: 34px; }
  .unseal__step { grid-area: auto; opacity: 1; transform: none; }
  .unseal__ticks { display: none; }
  .scene { min-height: 620px; }
  .foil { background-position: 40% 0; }
}


/* ---------- cinematic invitation showcase ---------- */
.hero {
  background:
    radial-gradient(44% 62% at 76% 42%, rgba(60, 82, 132, .3) 0%, transparent 72%),
    radial-gradient(36% 48% at 84% 58%, rgba(169, 139, 82, .07) 0%, transparent 76%),
    linear-gradient(180deg, #121A2A 0%, #0E1524 100%);
}
.hero__inner {
  grid-template-columns: minmax(0, .96fr) minmax(0, 1.04fr);
  align-items: center;
  gap: clamp(28px, 4.2vw, 62px);
}
.hero__copy { display: grid; gap: clamp(26px, 3.4vw, 44px); min-width: 0; max-width: 620px; }
.hero__title { font-size: clamp(3.15rem, 5.1vw, 6rem); white-space: nowrap; }
.js .showcase { opacity: 0; transform: translateY(12px); }
.is-ready .showcase { opacity: 1; transform: none; transition: opacity .9s ease 1.12s, transform 1s var(--ease) 1.12s; }
.showcase {
  position: relative;
  z-index: 1;
  isolation: isolate;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-width: 0;
  width: 100%;
  max-width: 620px;
  justify-self: end;
  padding-top: 8px;
  color: var(--cream);
}
.showcase__dust {
  position: absolute;
  z-index: -1;
  inset: -8% -10%;
  pointer-events: none;
  opacity: .2;
  background:
    radial-gradient(circle, rgba(238, 208, 145, .7) 0 1px, transparent 1.8px) 5% 18% / 110px 116px,
    radial-gradient(circle, rgba(217, 196, 154, .5) 0 1px, transparent 1.7px) 65% 70% / 150px 142px;
  mask-image: radial-gradient(ellipse at 55% 48%, #000 8%, transparent 74%);
  animation: dust-drift 28s linear infinite alternate;
}
@keyframes dust-drift {
  from { background-position: 5% 18%, 65% 70%; }
  to { background-position: 15% 34%, 50% 52%; }
}
.showcase__heading {
  position: relative;
  min-height: 98px;
  padding: 0 82px 10px 2px;
  transition: opacity .3s ease, transform .45s var(--ease);
}
.showcase__heading.is-changing { opacity: .35; transform: translateY(5px); }
.showcase__eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 7px;
  color: var(--gold);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .25em;
  text-transform: uppercase;
}
.showcase__eyebrow .eyebrow__rule { width: 27px; }
.showcase__title {
  color: var(--cream);
  font-size: clamp(1.9rem, 3.3vw, 3rem);
  line-height: .98;
  letter-spacing: .01em;
}
.showcase__category {
  margin-top: 6px;
  color: var(--on-dark-muted);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .19em;
  text-transform: uppercase;
}
.showcase__count {
  position: absolute;
  top: 20px;
  right: 4px;
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  color: var(--gold);
  font-size: 10px;
  letter-spacing: .16em;
  font-variant-numeric: tabular-nums;
}
.showcase__count i { color: rgba(217, 196, 154, .45); font-style: normal; }
.showcase__stage {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: clamp(340px, 37vw, 470px);
  perspective: 1200px;
}
.showcase__preview {
  position: relative;
  display: block;
  width: clamp(220px, 27vw, 360px);
  height: min(100%, 450px);
  overflow: hidden;
  padding: 8px;
  border: 1px solid rgba(217, 196, 154, .45);
  border-radius: 3px;
  background: linear-gradient(145deg, #e9e1d2, #cfc2aa);
  box-shadow: 0 32px 64px -34px rgba(0, 0, 0, .85), 0 8px 28px -18px rgba(217, 196, 154, .3);
  transform: translateX(0) rotateY(0) scale(1);
  transition: opacity .36s ease, transform .62s cubic-bezier(.22, 1, .36, 1), box-shadow .5s ease;
  will-change: transform, opacity;
}
.showcase__preview:hover { box-shadow: 0 40px 72px -34px rgba(0, 0, 0, .92), 0 10px 34px -18px rgba(217, 196, 154, .4); }
.showcase__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 46%;
  background: #172035;
}
.showcase__preview::after {
  content: "";
  position: absolute;
  inset: 8px;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, .22);
  background: linear-gradient(180deg, transparent 58%, rgba(8, 12, 21, .6));
}
.showcase__open {
  position: absolute;
  z-index: 2;
  left: 24px;
  right: 20px;
  bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #fff;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.showcase__open svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.3; transition: transform .35s var(--ease); }
.showcase__preview:hover .showcase__open svg { transform: translateX(4px); }
.showcase__preview.is-leaving-next { opacity: 0; transform: translateX(-28px) rotateY(3deg) scale(.985); }
.showcase__preview.is-leaving-previous { opacity: 0; transform: translateX(28px) rotateY(-3deg) scale(.985); }
.showcase__preview.is-entering { opacity: 0; }
.showcase__preview.is-entering[data-direction="next"] { transform: translateX(28px) rotateY(-3deg) scale(.985); }
.showcase__preview.is-entering[data-direction="previous"] { transform: translateX(-28px) rotateY(3deg) scale(.985); }
.showcase__controls {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 38px;
  align-items: center;
  gap: 14px;
  width: min(100%, 390px);
  margin: 9px auto 0;
}
.showcase__arrow {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid rgba(217, 196, 154, .35);
  border-radius: 50%;
  background: rgba(11, 17, 32, .48);
  color: var(--cream);
  cursor: pointer;
  transition: border-color .35s ease, background-color .35s ease, color .35s ease, transform .35s var(--ease);
}
.showcase__arrow:hover { border-color: var(--gold); background: rgba(217, 196, 154, .1); color: var(--gold); transform: scale(1.04); }
.showcase__arrow svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.3; }
.showcase__arrow--previous svg { transform: rotate(180deg); }
.showcase__dots { display: flex; justify-content: center; align-items: center; gap: 7px; min-width: 0; }
.showcase__dot {
  display: block;
  width: 18px;
  height: 2px;
  padding: 8px 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.showcase__dot::after {
  content: "";
  display: block;
  width: 100%;
  height: 2px;
  background: rgba(237, 230, 216, .28);
  transition: background-color .35s, transform .35s var(--ease);
}
.showcase__dot:hover::after { background: rgba(217, 196, 154, .65); }
.showcase__dot[aria-pressed="true"]::after { background: var(--gold); transform: scaleY(1.5); }
@media (max-width: 1100px) {
  .hero__inner { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 28px; }
  .hero__title { font-size: clamp(3rem, 5.1vw, 4.9rem); }
  .showcase__stage { height: clamp(330px, 40vw, 430px); }
  .showcase__preview { width: clamp(220px, 30vw, 310px); }
}
@media (max-width: 860px) {
  .hero { min-height: 100svh; padding: 108px 0 30px; justify-content: flex-start; }
  .hero__inner { grid-template-columns: minmax(0, 1fr); gap: 24px; max-width: 760px; }
  .hero__copy { max-width: 680px; }
  .hero__title { font-size: clamp(3rem, 9vw, 5rem); }
  .showcase { justify-self: center; max-width: 620px; }
  .showcase__heading { min-height: 90px; }
  .showcase__stage { height: clamp(310px, 70vw, 420px); }
  .showcase__preview { width: clamp(220px, 43vw, 300px); }
  .hero__base { position: relative; inset: auto; width: 100%; margin-top: 16px; padding-bottom: 0; }
}
@media (max-width: 520px) {
  .hero__title { font-size: clamp(2.45rem, 10.7vw, 3.2rem); }
  .showcase__heading { min-height: 82px; padding-right: 68px; }
  .showcase__eyebrow { font-size: 8px; }
  .showcase__title { font-size: 1.8rem; }
  .showcase__stage { height: 310px; }
  .showcase__preview { width: clamp(200px, 56vw, 240px); height: min(100%, 300px); }
  .showcase__controls { grid-template-columns: 34px minmax(0, 1fr) 34px; gap: 8px; }
  .showcase__arrow { width: 34px; height: 34px; }
  .showcase__dots { gap: 4px; }
  .showcase__dot { width: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .showcase__dust { animation: none; }
  .showcase__preview, .showcase__heading, .showcase__arrow, .showcase__dot::after { transition: none !important; }
  .js .showcase { opacity: 1; transform: none; }
}
/* ---------- hero without the preview carousel: the headline takes the stage ---------- */
.hero__inner { grid-template-columns: minmax(0, 1fr); }
.hero__copy { max-width: 980px; }
.hero__title { font-size: clamp(3rem, 7.6vw, 7.8rem); }
@media (max-width: 860px) {
  .hero { justify-content: center; padding: 108px 0 40px; }
  .hero__title { font-size: clamp(3rem, 10.5vw, 5.6rem); }
}
@media (max-width: 520px) {
  .hero__title { font-size: clamp(2.6rem, 12vw, 3.4rem); }
}
