/* Invitation styles — shared by every theme.
   Sizes come from the 1080-unit design canvas: write calc(N * var(--u)).
   Colours and fonts arrive as CSS variables set by render.js (see CLAUDE.md). */

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  background: var(--page-bg, #E9E5DF);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
html.embedded { scrollbar-width: none; }
html.embedded::-webkit-scrollbar { display: none; }
body {
  margin: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { display: block; max-width: 100%; }

/* ───────────────────────────── page ───────────────────────────── */
#invite {
  /* Fallbacks (Ivory Arch); render.js overrides them per theme. */
  --c-bg: #F8F4EE;
  --c-alt: #F0E9DE;
  --c-card: #FFFDF9;
  --c-ink: #3A342D;
  --c-muted: #776D62;
  --c-accent: #A38658;
  --c-soft: #E4D8C6;
  --c-dark: #29241F;
  --c-onDark: #FFFDF9;
  --c-onDarkAccent: #DCC8A4;
  --f-script: "Pinyon Script", cursive;
  --f-serif: "Cormorant Garamond", Georgia, serif;
  --f-sans: "Montserrat", system-ui, sans-serif;
  --script-scale: 1;

  max-width: 480px;
  margin: auto;
  min-height: 100vh;
  min-height: 100svh;
  container-type: inline-size;
  background: var(--c-bg);
  color: var(--c-ink);
  font-family: var(--f-serif);
  font-variant-numeric: lining-nums; /* Cormorant's default old-style figures look uneven in dates */
  overflow-x: clip;
  box-shadow: 0 0 80px rgb(0 0 0 / .12);
}

.sec {
  --u: calc(min(100vw, 480px) / 1080);
  --hair: calc(1.5 * var(--u));
  position: relative;
  overflow: hidden;
  padding: calc(120 * var(--u)) calc(110 * var(--u));
  text-align: center;
  background: var(--c-bg);
  color: var(--c-ink);
}
@supports (width: 1cqw) {
  .sec { --u: calc(100cqw / 1080); }
}
.bg-alt { background: var(--c-alt); }
.bg-dark {
  /* Inside dark sections every "ink" becomes light and every gold becomes the light gold. */
  --c-ink: var(--c-onDark);
  --c-accent: var(--c-onDarkAccent);
  --c-muted: rgb(255 255 255 / .78);
  --c-muted: color-mix(in srgb, var(--c-onDark) 78%, transparent);
  background: var(--c-dark);
  color: var(--c-onDark);
}

:where(.sec) :where(h1, h2, h3, p, ol) { margin: 0; }
.sec a { color: inherit; }
.sec :focus-visible { outline: max(2px, calc(3 * var(--u))) solid var(--c-accent); outline-offset: 3px; }

/* ───────────────────────────── shared pieces ───────────────────────────── */
.label {
  --ls: calc(10 * var(--u));
  font-family: var(--f-sans);
  font-weight: 500;
  font-size: calc(26 * var(--u));
  line-height: 1.7;
  letter-spacing: var(--ls);
  padding-left: var(--ls); /* balances the trailing letter-spacing so caps stay centred */
  text-transform: uppercase;
  color: var(--c-accent);
}
.label.muted { color: var(--c-muted); }
.label.wide { --ls: calc(24 * var(--u)); }
.label.tiny { --ls: calc(6 * var(--u)); font-size: calc(21 * var(--u)); }
.place span { display: inline-block; }

.script {
  font-family: var(--f-script);
  font-weight: 400;
  font-size: calc(124 * var(--u) * var(--script-scale));
  line-height: 1.2;
  color: var(--c-ink);
  margin: calc(14 * var(--u)) 0 calc(44 * var(--u));
  text-wrap: balance;
}
/* Names are stacked: "Emma" / small gold "&" / "James" — works for long names too. */
.names {
  font-size: calc(168 * var(--u) * var(--script-scale));
  line-height: 1.08;
  margin: calc(58 * var(--u)) 0 calc(30 * var(--u));
  overflow-wrap: anywhere;
}
.amp { /* the serif italic "&" reads better than most script fonts' tiny ampersands */
  display: block;
  margin: calc(-4 * var(--u)) 0 calc(6 * var(--u));
  font-family: var(--f-serif);
  font-style: italic;
  font-size: calc(70 * var(--u));
  line-height: 1;
  color: var(--c-accent);
}

.lede {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 400;
  font-size: calc(41 * var(--u));
  line-height: 1.32;
  margin: calc(34 * var(--u)) auto 0;
  max-width: calc(820 * var(--u));
  text-wrap: pretty;
}
.lede.muted { color: var(--c-muted); }
.lede.small { font-size: calc(34 * var(--u)); }

.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: calc(24 * var(--u));
  margin: calc(76 * var(--u)) auto;
}
.ornament i { width: calc(120 * var(--u)); border-top: var(--hair) solid var(--c-accent); }
.ornament b {
  width: calc(15 * var(--u));
  height: calc(15 * var(--u));
  border: var(--hair) solid var(--c-accent);
  transform: rotate(45deg);
}

.btn {
  display: inline-block;
  margin-top: calc(54 * var(--u));
  padding: calc(30 * var(--u)) calc(76 * var(--u));
  border: var(--hair) solid var(--c-accent);
  border-radius: 999px;
  background: transparent;
  color: var(--c-ink);
  font-family: var(--f-sans);
  font-weight: 500;
  font-size: calc(23 * var(--u));
  line-height: 1.4;
  letter-spacing: calc(6 * var(--u));
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s, color .2s;
}
a.btn:hover { background: var(--c-accent); color: var(--c-card); }
.btn.solid { background: var(--c-onDark); border-color: var(--c-onDark); color: var(--c-dark); }
a.btn.solid:hover, button.btn.solid:hover { background: var(--c-onDarkAccent); border-color: var(--c-onDarkAccent); color: var(--c-dark); }

/* Empty photo slot (the buyer has not added a photo yet). */
.ph {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--c-soft);
}
.ph::after {
  content: "Your photo";
  font-family: var(--f-sans);
  font-size: calc(22 * var(--u));
  letter-spacing: calc(6 * var(--u));
  text-transform: uppercase;
  color: var(--c-muted);
}

/* Full-bleed background photo + dark overlay (cover.full, rsvp.photo). */
.bleed {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.bleed.ph { background: var(--c-dark); }
.bleed.ph::after { content: none; }
.shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgb(0 0 0 / .1), rgb(0 0 0 / .18) 25%, rgb(0 0 0 / .62) 52%, rgb(0 0 0 / .9));
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--c-dark) 10%, transparent),
    color-mix(in srgb, var(--c-dark) 18%, transparent) 25%,
    color-mix(in srgb, var(--c-dark) 64%, transparent) 52%,
    color-mix(in srgb, var(--c-dark) 90%, transparent));
}
.shade.heavy {
  background: rgb(0 0 0 / .62);
  background: color-mix(in srgb, var(--c-dark) 62%, transparent);
}

/* ───────────────────────────── cover ───────────────────────────── */
.v-arch { padding-top: calc(110 * var(--u)); }
.arch {
  position: relative;
  width: calc(680 * var(--u));
  height: calc(898 * var(--u));
  margin: calc(74 * var(--u)) auto calc(10 * var(--u));
}
.arch::before { /* thin gold outline, 22u outside the photo */
  content: "";
  position: absolute;
  inset: calc(-22 * var(--u));
  border: var(--hair) solid var(--c-accent);
  border-radius: calc(362 * var(--u)) calc(362 * var(--u)) 0 0;
  pointer-events: none;
}
.arch-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: calc(340 * var(--u)) calc(340 * var(--u)) 0 0;
}

.dateblock {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: calc(44 * var(--u));
  margin: calc(56 * var(--u)) auto calc(50 * var(--u));
}
.db-side {
  padding: calc(22 * var(--u)) 0;
  border-top: var(--hair) solid var(--c-accent);
  border-bottom: var(--hair) solid var(--c-accent);
  font-family: var(--f-sans);
  font-weight: 500;
  font-size: calc(23 * var(--u));
  line-height: 1.4;
  letter-spacing: calc(6 * var(--u));
  text-transform: uppercase;
  white-space: nowrap;
}
.db-mid {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
}
.db-mid small {
  font-family: var(--f-sans);
  font-weight: 500;
  font-size: calc(23 * var(--u));
  letter-spacing: calc(8 * var(--u));
  padding-left: calc(8 * var(--u));
  text-transform: uppercase;
  color: var(--c-accent);
}
.db-mid strong {
  font-family: var(--f-serif);
  font-weight: 400;
  font-size: calc(156 * var(--u));
  line-height: .95;
  margin: calc(10 * var(--u)) 0 calc(6 * var(--u));
}

.scrollcue {
  width: 0;
  height: calc(120 * var(--u));
  margin: calc(64 * var(--u)) auto 0;
  border-left: var(--hair) solid var(--c-accent);
  transform-origin: top;
}
@media (prefers-reduced-motion: no-preference) {
  .scrollcue { animation: cue 2.6s ease-in-out infinite; }
}
@keyframes cue {
  0%, 100% { transform: scaleY(.35); opacity: .5; }
  50% { transform: scaleY(1); opacity: 1; }
}

.v-full, .v-gradient {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: calc(1900 * var(--u));
  min-height: max(100svh, calc(1600 * var(--u)));
  padding-bottom: calc(150 * var(--u));
}
.full-text { position: relative; z-index: 1; }
.v-full .names, .v-gradient .names { margin-top: calc(30 * var(--u)); }

/* cover.gradient: no photo — a soft glow (theme colour "glow") fading into the dark */
.v-gradient {
  background: linear-gradient(180deg, var(--c-glow, #8E7180), var(--c-dark) 88%);
  background:
    radial-gradient(130% 55% at 50% 0%, color-mix(in srgb, var(--c-glow, #8E7180) 80%, #fff) 0%, transparent 70%),
    linear-gradient(180deg,
      var(--c-glow, #8E7180) 0%,
      color-mix(in srgb, var(--c-glow, #8E7180) 45%, var(--c-dark)) 48%,
      var(--c-dark) 90%);
}
.v-gradient::before { /* fine grain: keeps the gradient velvety instead of banded */
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='g' x='0' y='0'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23g)'/%3E%3C/svg%3E");
  background-size: 200px;
  opacity: .16;
  mix-blend-mode: overlay;
}

/* ───────────────────────────── date ───────────────────────────── */
.cal { width: calc(760 * var(--u)); margin: 0 auto; }
.cal-head, .cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.cal-head b {
  padding-bottom: calc(22 * var(--u));
  font-family: var(--f-sans);
  font-weight: 500;
  font-size: calc(24 * var(--u));
  color: var(--c-accent);
}
.cal-grid > * {
  position: relative;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: calc(96 * var(--u));
  font-family: var(--f-serif);
  font-size: calc(46 * var(--u));
}
.cal-grid .on { color: var(--c-card); }
.cal-grid .on::before { /* the wedding day: a filled heart in the accent colour */
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 50%;
  width: calc(108 * var(--u));
  height: calc(103 * var(--u));
  background: var(--c-accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='2 3 20 18.35'%3E%3Cpath d='M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='2 3 20 18.35'%3E%3Cpath d='M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54z'/%3E%3C/svg%3E") center / contain no-repeat;
  transform: translate(-50%, -42%); /* the number sits in the heart's wide upper half */
}
.sec-date .cal + .lede { margin-top: calc(40 * var(--u)); }

.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: calc(28 * var(--u));
  margin: calc(44 * var(--u)) 0 calc(6 * var(--u));
}
.cd {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: calc(56 * var(--u)) 0 calc(34 * var(--u));
  background: var(--c-card);
  border: var(--hair) solid var(--c-accent);
  border-radius: 999px 999px 0 0;
}
.cd strong {
  font-family: var(--f-serif);
  font-weight: 400;
  font-size: calc(92 * var(--u));
  line-height: 1;
  font-variant-numeric: lining-nums tabular-nums;
}
.cd small {
  margin-top: calc(16 * var(--u));
  font-family: var(--f-sans);
  font-weight: 500;
  font-size: calc(18 * var(--u));
  letter-spacing: calc(4 * var(--u));
  padding-left: calc(4 * var(--u));
  text-transform: uppercase;
  color: var(--c-accent);
}

/* ───────────────────────────── music ───────────────────────────── */
.sec-music { padding-top: calc(100 * var(--u)); padding-bottom: calc(110 * var(--u)); }

/* Floating play/pause (render.js puts it on <body>, outside #invite, with its own colours). */
.mini-player {
  position: fixed;
  z-index: 50;
  right: max(16px, calc(50vw - 240px + 16px));
  bottom: max(16px, env(safe-area-inset-bottom));
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--mp-bg);
  color: var(--mp-fg);
  box-shadow: 0 6px 18px rgb(0 0 0 / .28);
  cursor: pointer;
}
.mini-player:focus-visible { outline: 2px solid var(--mp-bg); outline-offset: 3px; }
.mp-play { width: 20px; height: 20px; fill: currentColor; transform: translateX(1px); }
.mp-eq { display: none; align-items: flex-end; gap: 3px; height: 16px; }
.mp-eq i {
  width: 3px;
  height: 100%;
  border-radius: 1px;
  background: currentColor;
  transform-origin: bottom;
  animation: mp-eq 1s ease-in-out infinite;
}
.mp-eq i:nth-child(2) { animation-delay: -.35s; }
.mp-eq i:nth-child(3) { animation-delay: -.7s; }
.mini-player.playing .mp-eq { display: flex; }
.mini-player.playing .mp-play { display: none; }
@keyframes mp-eq { 0%, 100% { transform: scaleY(.35); } 50% { transform: scaleY(1); } }
@media (prefers-reduced-motion: reduce) { .mp-eq i { animation: none; } }

/* ───────────────────────────── reminder (add to calendar) ───────────────────────────── */
.cal-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: calc(116 * var(--u));
  height: calc(116 * var(--u));
  margin: 0 auto calc(36 * var(--u));
  border: var(--hair) solid var(--c-accent);
  border-radius: 50%;
  background: var(--c-card);
  color: var(--c-accent);
}
.cal-icon svg { width: calc(56 * var(--u)); height: calc(56 * var(--u)); }
.sec-reminder .lede { margin-top: 0; }
.addcal {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: calc(26 * var(--u));
  margin-top: calc(56 * var(--u));
}
.addcal .btn { min-width: calc(580 * var(--u)); margin: 0; }

/* ───────────────────────────── story ───────────────────────────── */
.duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: calc(40 * var(--u));
  align-items: start;
  margin: 0 0 calc(10 * var(--u));
}
.duo-a, .duo-b {
  width: 100%;
  aspect-ratio: 4 / 5.4;
  object-fit: cover;
}
.duo-b-wrap { position: relative; z-index: 0; margin-top: calc(120 * var(--u)); }
.duo-b-wrap::before { /* offset gold outline behind the right photo */
  content: "";
  position: absolute;
  z-index: -1;
  inset: calc(30 * var(--u)) calc(-30 * var(--u)) calc(-30 * var(--u)) calc(30 * var(--u));
  border: var(--hair) solid var(--c-accent);
}
.sec-story .duo + .lede { margin-top: calc(70 * var(--u)); }

.milestones { display: flex; justify-content: center; }
.milestones > div {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: calc(4 * var(--u)) calc(14 * var(--u));
}
.milestones > div + div { border-left: var(--hair) solid var(--c-accent); }
.milestones strong {
  font-family: var(--f-serif);
  font-weight: 400;
  font-size: calc(76 * var(--u));
  line-height: 1.05;
  color: var(--c-accent);
}
.milestones small {
  margin-top: calc(12 * var(--u));
  font-family: var(--f-sans);
  font-weight: 500;
  font-size: calc(19 * var(--u));
  line-height: 1.5;
  letter-spacing: calc(4 * var(--u));
  text-transform: uppercase;
  color: var(--c-muted);
}

/* ───────────────────────────── schedule ───────────────────────────── */
.timeline {
  position: relative;
  list-style: none;
  padding: 0;
  margin: 0;
}
.timeline::before { /* the vertical gold line */
  content: "";
  position: absolute;
  left: 50%;
  top: calc(30 * var(--u));
  bottom: calc(30 * var(--u));
  border-left: var(--hair) solid var(--c-accent);
}
.timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 1fr calc(116 * var(--u)) 1fr;
  align-items: center;
  column-gap: calc(36 * var(--u));
}
.timeline li + li { margin-top: calc(58 * var(--u)); }
.timeline time {
  text-align: right;
  font-family: var(--f-serif);
  font-size: calc(58 * var(--u));
  line-height: 1;
  white-space: nowrap;
}
.tl-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: calc(116 * var(--u));
  height: calc(116 * var(--u));
  border: var(--hair) solid var(--c-accent);
  border-radius: 50%;
  background: var(--c-card);
  color: var(--c-accent);
}
.tl-icon svg { width: calc(54 * var(--u)); height: calc(54 * var(--u)); }
.timeline li > div { display: flex; flex-direction: column; text-align: left; }
.timeline b {
  font-family: var(--f-sans);
  font-weight: 500;
  font-size: calc(24 * var(--u));
  line-height: 1.5;
  letter-spacing: calc(5 * var(--u));
  text-transform: uppercase;
}
.timeline em {
  margin-top: calc(4 * var(--u));
  font-family: var(--f-serif);
  font-size: calc(34 * var(--u));
  line-height: 1.25;
  color: var(--c-muted);
}
.sec-schedule .lede { margin-top: calc(70 * var(--u)); }

/* ───────────────────────────── venue ───────────────────────────── */
.framed { position: relative; margin: 0 0 calc(60 * var(--u)); }
.framed-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.framed::after { /* thin light frame inside the photo */
  content: "";
  position: absolute;
  inset: calc(26 * var(--u));
  border: var(--hair) solid rgb(255 255 255 / .85);
  pointer-events: none;
}
.venue-name {
  font-family: var(--f-serif);
  font-weight: 400;
  font-size: calc(70 * var(--u));
  line-height: 1.15;
  margin-bottom: calc(18 * var(--u));
  text-wrap: balance;
}
.address { line-height: 1.9; }
.twocol {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: calc(64 * var(--u)) 0 0;
}
.twocol > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: calc(8 * var(--u)) calc(20 * var(--u));
}
.twocol > div + div { border-left: var(--hair) solid var(--c-accent); }
.twocol > :only-child, .facts > :only-child, .en-two > :only-child { grid-column: 1 / -1; }
.twocol small {
  font-family: var(--f-sans);
  font-weight: 500;
  font-size: calc(22 * var(--u));
  letter-spacing: calc(8 * var(--u));
  padding-left: calc(8 * var(--u));
  text-transform: uppercase;
  color: var(--c-accent);
}
.twocol strong {
  margin: calc(14 * var(--u)) 0 calc(6 * var(--u));
  font-family: var(--f-serif);
  font-weight: 400;
  font-size: calc(56 * var(--u));
  line-height: 1.1;
}
.twocol em {
  font-family: var(--f-serif);
  font-size: calc(34 * var(--u));
  line-height: 1.25;
  color: var(--c-muted);
}

/* ───────────────────────────── details ───────────────────────────── */
.palette {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: calc(26 * var(--u));
  margin-top: calc(56 * var(--u));
}
.palette i {
  width: calc(92 * var(--u));
  height: calc(92 * var(--u));
  border-radius: 50%;
  border: var(--hair) solid rgb(0 0 0 / .12);
  border: var(--hair) solid color-mix(in srgb, var(--c-ink) 16%, transparent);
}

.player {
  margin: 0 auto;
  max-width: calc(780 * var(--u));
  padding: calc(60 * var(--u)) calc(70 * var(--u)) calc(56 * var(--u));
  background: var(--c-card);
  border: var(--hair) solid var(--c-accent);
  border-radius: calc(24 * var(--u));
}
.sec .label + .player { margin-top: calc(34 * var(--u)); }
.player-title {
  font-family: var(--f-serif);
  font-weight: 400;
  font-size: calc(58 * var(--u));
  line-height: 1.2;
}
.bar {
  position: relative;
  height: calc(40 * var(--u));
  margin-top: calc(36 * var(--u));
  cursor: pointer;
  touch-action: manipulation;
}
.bar::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  border-top: var(--hair) solid var(--c-soft);
}
.fill {
  position: absolute;
  left: 0;
  top: 50%;
  width: 0;
  height: max(1px, calc(3 * var(--u)));
  background: var(--c-accent);
  transform: translateY(-50%);
}
.knob {
  position: absolute;
  left: 0;
  top: 50%;
  width: calc(24 * var(--u));
  height: calc(24 * var(--u));
  border-radius: 50%;
  background: var(--c-accent);
  transform: translate(-50%, -50%);
}
.times {
  display: flex;
  justify-content: space-between;
  font-family: var(--f-serif);
  font-size: calc(28 * var(--u));
  color: var(--c-muted);
  font-variant-numeric: lining-nums tabular-nums;
}
.play {
  display: flex;
  align-items: center;
  justify-content: center;
  width: calc(124 * var(--u));
  height: calc(124 * var(--u));
  margin: calc(18 * var(--u)) auto 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--c-accent);
  color: var(--c-card);
  cursor: pointer;
}
.play svg { width: calc(48 * var(--u)); height: calc(48 * var(--u)); fill: currentColor; }
.play .i-play { transform: translateX(6%); }
.play .i-pause, .player.playing .i-play { display: none; }
.player.playing .i-pause { display: block; }

/* ───────────────────────────── rsvp ───────────────────────────── */
.v-photo { padding: calc(210 * var(--u)) calc(150 * var(--u)) calc(200 * var(--u)); }
.frame {
  position: absolute;
  inset: calc(46 * var(--u));
  border: var(--hair) solid rgb(255 255 255 / .55);
  border: var(--hair) solid color-mix(in srgb, var(--c-onDark) 55%, transparent);
  pointer-events: none;
}
.rsvp-body { position: relative; z-index: 1; }
.rsvp-body .script { margin-bottom: calc(30 * var(--u)); }
.rsvp-body .lede { margin-top: 0; }

.rsvp-form {
  display: grid;
  gap: calc(26 * var(--u));
  max-width: calc(700 * var(--u));
  margin: calc(56 * var(--u)) auto calc(44 * var(--u));
}
.rsvp-form input,
.rsvp-form select,
.rsvp-form textarea {
  width: 100%;
  margin: 0;
  padding: calc(24 * var(--u)) calc(44 * var(--u));
  border: var(--hair) solid rgb(255 255 255 / .5);
  border: var(--hair) solid color-mix(in srgb, var(--c-onDark) 50%, transparent);
  border-radius: 999px;
  background: rgb(255 255 255 / .08);
  background: color-mix(in srgb, var(--c-onDark) 8%, transparent);
  color: var(--c-onDark);
  font-family: var(--f-serif);
  font-size: max(16px, calc(40 * var(--u))); /* ≥16px stops iOS zooming in */
  line-height: 1.3;
  text-align: center;
  text-align-last: center;
  -webkit-appearance: none;
  appearance: none;
}
.rsvp-form select {
  padding-right: calc(80 * var(--u));
  padding-left: calc(80 * var(--u));
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23ffffff' stroke-opacity='.7' stroke-width='1.2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right calc(44 * var(--u)) center;
  background-size: calc(26 * var(--u)) auto;
}
/* The guest's message: two lines to start, grows as they type (field-sizing where supported). */
.rsvp-form textarea {
  display: block;
  min-height: calc(2.6em + 48 * var(--u));
  max-height: 14em;
  border-radius: calc(46 * var(--u));
  resize: none;
  field-sizing: content;
}
.rsvp-form option { color: #222; background: #fff; }
.rsvp-form ::placeholder { color: var(--c-muted); opacity: 1; }
.rsvp-form .btn { margin: calc(12 * var(--u)) 0 0; width: 100%; }
.rsvp-done {
  font-family: var(--f-serif);
  font-style: italic;
  font-size: calc(44 * var(--u));
  line-height: 1.3;
}
.rsvp-error {
  margin: calc(8 * var(--u)) 0 0;
  font-family: var(--f-sans);
  font-size: calc(26 * var(--u));
  line-height: 1.45;
}
.rsvp-privacy {
  margin: calc(4 * var(--u)) 0 0;
  font-family: var(--f-sans);
  font-size: calc(22 * var(--u));
  letter-spacing: .02em;
  opacity: .72;
}
.rsvp-privacy a { color: inherit; }
/* "You have replied" on the guest's own phone (render.js rsvpForm): their reply, "Change",
   "Reply for someone else" — in the design's own type and colours. */
.rsvp-mine { font-family: var(--f-serif); font-size: calc(38 * var(--u)); line-height: 1.4; }
.rsvp-mine-title { margin: 0 0 calc(12 * var(--u)); font-style: italic; font-size: calc(46 * var(--u)); }
.rsvp-mine ul { display: grid; gap: calc(14 * var(--u)); margin: 0; padding: 0; list-style: none; }
.rsvp-mine b { font-weight: 600; overflow-wrap: anywhere; }
.rsvp-mine button {
  margin: 0 0 0 calc(14 * var(--u));
  padding: calc(6 * var(--u)) 0;
  border: 0;
  background: none;
  color: inherit;
  font-family: var(--f-sans);
  font-size: max(13px, calc(24 * var(--u)));
  letter-spacing: .06em;
  text-decoration: underline;
  text-underline-offset: .25em;
  cursor: pointer;
}
.rsvp-mine .rsvp-another { display: inline-block; margin: calc(26 * var(--u)) 0 0; opacity: .8; }
.rp .rsvp-mine { text-align: center; }
/* Bot trap: people never see or fill it. */
.rsvp-form .hp { position: absolute; left: -10000px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

.mono {
  display: flex;
  align-items: center;
  justify-content: center;
  width: calc(190 * var(--u));
  height: calc(190 * var(--u));
  margin: calc(84 * var(--u)) auto calc(44 * var(--u));
  border: var(--hair) solid var(--c-accent);
  border-radius: 50%;
  font-family: var(--f-serif);
  font-size: calc(54 * var(--u));
  letter-spacing: calc(4 * var(--u));
  white-space: nowrap;
}
.rsvp-body .mono + .lede { margin-bottom: calc(26 * var(--u)); }

/* ───────────────────────────── finishing touches ─────────────────────────────
   Opt-in per theme with "decor": [...] in theme.json (render.js adds .decor-<name>). */

/* Thin inset frame on full-height covers (always on — it echoes the RSVP frame). */
.v-full::after, .v-gradient::after {
  content: "";
  position: absolute;
  inset: calc(46 * var(--u));
  border: var(--hair) solid rgb(255 255 255 / .45);
  border: var(--hair) solid color-mix(in srgb, var(--c-onDark) 45%, transparent);
  pointer-events: none;
}

/* paper: a faint grain on light sections, like printed stationery */
.decor-paper .sec { isolation: isolate; }
.decor-paper .sec:not(.bg-dark)::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='p' x='0' y='0'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .38 0 0 0 0 .32 0 0 0 0 .24 0 0 0 -1.5 .86'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23p)'/%3E%3C/svg%3E");
  background-size: 240px;
  opacity: .3;
  mix-blend-mode: multiply;
}

/* velvet: the grain for dark themes (paper's multiply grain disappears on dark colours) */
.decor-velvet .sec { isolation: isolate; }
.decor-velvet .sec:not(.v-gradient)::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='g' x='0' y='0'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23g)'/%3E%3C/svg%3E");
  background-size: 200px;
  opacity: .12;
  mix-blend-mode: overlay;
}

/* botanical: fine line-art laurel in the theme's accent colour (SVGs used as masks) */
.decor-botanical .arch::after { /* a sprig climbing the left side of the arch */
  content: "";
  position: absolute;
  left: calc(-326 * var(--u));
  bottom: calc(190 * var(--u));
  width: calc(560 * var(--u));
  height: calc(180 * var(--u));
  background: var(--c-accent);
  -webkit-mask: url("../assets/decor/sprig.svg") center / contain no-repeat;
  mask: url("../assets/decor/sprig.svg") center / contain no-repeat;
  transform: rotate(-79deg);
  pointer-events: none;
}
.decor-botanical .mono {
  position: relative;
  margin: calc(140 * var(--u)) auto calc(104 * var(--u));
  border-color: transparent;
}
.decor-botanical .mono::before { /* laurel wreath around the monogram */
  content: "";
  position: absolute;
  inset: calc(-82 * var(--u));
  background: var(--c-accent);
  -webkit-mask: url("../assets/decor/wreath.svg") center / contain no-repeat;
  mask: url("../assets/decor/wreath.svg") center / contain no-repeat;
  pointer-events: none;
}

/* entrance animations (render.js reveal(): .mv + data-mv kind + --i queue place; .in = go).
   Start states are set while the piece waits; arriving returns it to its own design values,
   so the transition plays back to the design. Individual translate/scale properties are
   used so the design's own transforms (tilted prints, rotated names) are left alone. */
.reveal .mv {
  --mv-step: 110ms;
  --mv-dur: 1.05s;
  transition-property: opacity, translate, scale, filter, clip-path, letter-spacing;
  transition-duration: var(--mv-dur);
  transition-timing-function: cubic-bezier(.2, .7, .2, 1);
  transition-delay: calc(var(--i, 0) * var(--mv-step));
}
.reveal .sec-cover .mv { --mv-step: 170ms; --mv-dur: 1.3s; }
.reveal .mv:not(.in) { opacity: 0; }
/* fade: drift up a little */
.reveal .mv[data-mv="fade"]:not(.in) { translate: 0 calc(30 * var(--u)); }
/* track: small caps arrive with wide letter-spacing that tightens */
.reveal .mv[data-mv="track"]:not(.in) { letter-spacing: .62em; }
.reveal .mv[data-mv="track"] { --mv-dur: 1.4s; }
/* rise: headings rise out of a soft blur */
.reveal .mv[data-mv="rise"]:not(.in) { translate: 0 .45em; filter: blur(7px); }
.reveal .mv[data-mv="rise"] { --mv-dur: 1.25s; }
/* write: script names are revealed left to right, as if written */
.reveal .mv[data-mv="write"] { clip-path: inset(-30% -12% -30% -12%); --mv-dur: 1.7s; transition-timing-function: cubic-bezier(.45, .05, .25, 1); }
/* 99%, not 100%: a sliver must stay inside the box. Chrome's IntersectionObserver applies the
   target's own clip-path, and on 3x screens a fully clipped piece never counts as visible, so
   it would never be written in (36 of 42 designs lost their script headings on such phones). */
.reveal .mv[data-mv="write"]:not(.in) { clip-path: inset(-30% 99% -30% -12%); opacity: .001; }
.reveal .mv[data-mv="write"].in { transition-property: opacity, clip-path; transition-duration: .3s, var(--mv-dur); }
/* photo: opens like a curtain from the centre while settling from a slight zoom */
.reveal .mv[data-mv="photo"] { clip-path: inset(-12% -12% -12% -12%); --mv-dur: 1.5s; }
.reveal .mv[data-mv="photo"]:not(.in) { clip-path: inset(14% 14% 14% 14%); scale: 1.08; }
/* zoom: photos that already have a shape of their own just settle from a slight zoom */
.reveal .mv[data-mv="zoom"]:not(.in) { scale: 1.08; }
.reveal .mv[data-mv="zoom"] { --mv-dur: 1.5s; }
/* drift: full-bleed photos and painted backdrops, slow and soft */
.reveal .mv[data-mv="drift"]:not(.in) { scale: 1.1; }
.reveal .mv[data-mv="drift"] { --mv-dur: 2.4s; transition-delay: 0s; }
/* draw: ornaments and rules grow from the centre */
.reveal .mv[data-mv="draw"]:not(.in) { scale: 0 1; }
.reveal .mv[data-mv="draw"] { --mv-dur: 1.2s; }
/* pop: date blocks, seals, crests, swatches settle in with a hint of bounce */
.reveal .mv[data-mv="pop"]:not(.in) { scale: .88; }
.reveal .mv[data-mv="pop"] { transition-timing-function: cubic-bezier(.2, 1.3, .35, 1); }

/* ───────────────────────────── messages ───────────────────────────── */
.notfound {
  margin: 0;
  padding: 40vh 24px 0;
  text-align: center;
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 18px;
  color: #6E665C;
}

/* ═════════════════════ editorial family: The Edit, Studio, Riviera ═════════════════════
   Typography-led variants (kicker, headline, dek, body…). Shared pieces first, then each
   design's own touches under .decor-edit / .decor-studio / .decor-riviera (theme "decor").
   Kicker numbers (data-n) are set by render.js in page order, so hidden sections leave no gap. */

.kicker {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: calc(18 * var(--u));
  margin: 0 0 calc(26 * var(--u));
  font-family: var(--f-sans);
  font-weight: 500;
  font-size: calc(24 * var(--u));
  line-height: 1.5;
  letter-spacing: calc(7 * var(--u));
  text-transform: uppercase;
  color: var(--c-accent);
}
.kicker:not(.plain)::before {
  content: attr(data-n);
  font-family: var(--f-serif);
  font-style: italic;
  font-size: calc(46 * var(--u));
  line-height: 1;
  letter-spacing: 0;
  text-transform: none;
}
.kicker.small { font-size: calc(21 * var(--u)); letter-spacing: calc(5 * var(--u)); }

.headline {
  margin: 0 0 calc(56 * var(--u));
  font-family: var(--f-serif);
  font-weight: 400;
  font-size: calc(108 * var(--u));
  line-height: 1.04;
  letter-spacing: -0.01em;
  color: var(--c-ink);
  text-wrap: balance;
  overflow-wrap: anywhere;
}
.dek {
  font-family: var(--f-serif);
  font-style: italic;
  font-size: calc(40 * var(--u));
  line-height: 1.35;
  color: var(--c-ink);
  text-wrap: pretty;
}
.dek.muted { color: var(--c-muted); }
.dek.small { font-size: calc(32 * var(--u)); }
.body {
  font-family: var(--f-serif);
  font-size: calc(37 * var(--u));
  line-height: 1.6;
  text-align: left;
  hyphens: auto;
  text-wrap: pretty;
}
.dropcap::first-letter {
  float: left;
  margin: calc(10 * var(--u)) calc(18 * var(--u)) 0 0;
  font-size: calc(150 * var(--u));
  line-height: .78;
  color: var(--c-accent);
}

/* photos with a little asymmetry */
.fig { margin: 0; }
.fig-img { display: block; width: 100%; object-fit: cover; }
.fig-a .fig-img { aspect-ratio: 4 / 5; }
.fig-b { width: 64%; margin: calc(60 * var(--u)) 0 0 auto; }
.fig-b .fig-img { aspect-ratio: 3 / 4; }
.fig + .body, .body + .fig { margin-top: calc(60 * var(--u)); }
.mile {
  display: grid;
  grid-auto-columns: 1fr;
  grid-auto-flow: column;
  margin: calc(70 * var(--u)) 0 0;
  padding: calc(40 * var(--u)) 0 0;
  list-style: none;
  border-top: var(--hair) solid var(--c-soft);
}
.mile li { display: flex; flex-direction: column; gap: calc(8 * var(--u)); padding: 0 calc(10 * var(--u)); }
.mile b { font-family: var(--f-serif); font-weight: 400; font-size: calc(62 * var(--u)); line-height: 1; color: var(--c-accent); }
.mile span {
  font-family: var(--f-sans);
  font-size: calc(20 * var(--u));
  letter-spacing: calc(3 * var(--u));
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--c-muted);
}

/* date: one big numeral */
.bignum {
  font-family: var(--f-serif);
  font-weight: 400;
  font-size: calc(400 * var(--u));
  line-height: .86;
  letter-spacing: -0.03em;
  color: var(--c-ink);
  font-variant-numeric: lining-nums;
}
.bigmonth {
  margin-top: calc(14 * var(--u));
  font-family: var(--f-serif);
  font-style: italic;
  font-size: calc(78 * var(--u));
  line-height: 1.1;
  color: var(--c-accent);
}
.v-numerals .dek { margin-top: calc(16 * var(--u)); }
.v-numerals .kicker.plain { margin: calc(96 * var(--u)) 0 0; }
.ed-count {
  gap: 0;
  margin: calc(26 * var(--u)) 0 calc(26 * var(--u));
  border-top: var(--hair) solid var(--c-soft);
  border-bottom: var(--hair) solid var(--c-soft);
}
.ed-count .cd { padding: calc(36 * var(--u)) 0 calc(30 * var(--u)); background: none; border: 0; border-radius: 0; }
.ed-count .cd + .cd { border-left: var(--hair) solid var(--c-soft); }
.ed-count .cd strong { font-size: calc(84 * var(--u)); }
.ed-count .cd small { color: var(--c-muted); }

/* schedule: a ruled programme */
.agenda { margin: 0; padding: 0; list-style: none; text-align: left; border-top: var(--hair) solid currentColor; }
.agenda li {
  display: grid;
  grid-template-columns: calc(250 * var(--u)) 1fr;
  gap: calc(30 * var(--u));
  align-items: baseline;
  padding: calc(34 * var(--u)) 0;
  border-bottom: var(--hair) solid var(--c-soft);
  border-bottom: var(--hair) solid color-mix(in srgb, currentColor 22%, transparent);
}
.agenda time { font-family: var(--f-serif); font-size: calc(50 * var(--u)); line-height: 1.1; white-space: nowrap; font-variant-numeric: lining-nums; }
.agenda b {
  display: block;
  font-family: var(--f-sans);
  font-weight: 500;
  font-size: calc(25 * var(--u));
  letter-spacing: calc(5 * var(--u));
  line-height: 1.4;
  text-transform: uppercase;
}
.agenda span { display: block; margin-top: calc(8 * var(--u)); font-family: var(--f-serif); font-style: italic; font-size: calc(34 * var(--u)); line-height: 1.35; color: var(--c-muted); }
.v-agenda .dek { margin-top: calc(56 * var(--u)); }

/* venue: facts in ruled columns */
.addr {
  font-family: var(--f-sans);
  font-size: calc(25 * var(--u));
  letter-spacing: calc(4 * var(--u));
  line-height: 1.8;
  text-transform: uppercase;
  color: var(--c-muted);
}
.fig + .addr { margin-top: calc(50 * var(--u)); }
.facts { display: grid; grid-template-columns: 1fr 1fr; margin: calc(56 * var(--u)) 0 0; border-top: var(--hair) solid currentColor; border-bottom: var(--hair) solid currentColor; }
.facts > div { padding: calc(34 * var(--u)) calc(20 * var(--u)); }
.facts > div + div { border-left: var(--hair) solid var(--c-soft); }
.facts dt { font-family: var(--f-sans); font-weight: 500; font-size: calc(22 * var(--u)); letter-spacing: calc(6 * var(--u)); text-transform: uppercase; color: var(--c-accent); }
.facts dd { margin: calc(12 * var(--u)) 0 0; font-family: var(--f-serif); font-size: calc(54 * var(--u)); line-height: 1.1; }
.facts dd span { display: block; margin-top: calc(10 * var(--u)); font-style: italic; font-size: calc(32 * var(--u)); color: var(--c-muted); }
.v-facts .dek { margin-top: calc(40 * var(--u)); }

/* details: short notes */
.note-block { padding: calc(50 * var(--u)) 0 calc(10 * var(--u)); border-top: var(--hair) solid currentColor; }
.note-block + .note-block { margin-top: calc(50 * var(--u)); }
.note-title { font-family: var(--f-sans); font-weight: 500; font-size: calc(22 * var(--u)); letter-spacing: calc(6 * var(--u)); text-transform: uppercase; color: var(--c-accent); }
.note-big { margin: calc(14 * var(--u)) 0 calc(24 * var(--u)); font-family: var(--f-serif); font-size: calc(80 * var(--u)); line-height: 1.05; }
.note-block .body { text-align: inherit; }
.swatches { display: flex; margin-top: calc(40 * var(--u)); }
.swatches i { flex: 1; height: calc(110 * var(--u)); }
.note-block .btn { margin-top: calc(36 * var(--u)); }

/* rsvp: a reply card on a plain page */
.v-letter .rsvp-form { max-width: none; margin: calc(50 * var(--u)) 0 calc(40 * var(--u)); text-align: left; }
.v-letter .rsvp-form input,
.v-letter .rsvp-form select,
.v-letter .rsvp-form textarea {
  padding: calc(24 * var(--u)) 0;
  border: 0;
  border-bottom: var(--hair) solid currentColor;
  border-radius: 0;
  background-color: transparent;
  color: var(--c-ink);
  text-align: left;
  text-align-last: left;
}
.v-letter:not(.bg-dark) .rsvp-form select {
  padding-right: calc(60 * var(--u));
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23000000' stroke-opacity='.6' stroke-width='1.2'/%3E%3C/svg%3E");
  background-position: right calc(6 * var(--u)) center;
}
.v-letter.bg-dark .rsvp-form select { padding-right: calc(60 * var(--u)); background-position: right calc(6 * var(--u)) center; }
.v-letter .rsvp-form .btn { margin-top: calc(30 * var(--u)); }
.btn.ink { background: var(--c-ink); border-color: var(--c-ink); color: var(--c-bg); }
.bg-dark .btn.ink { color: var(--c-dark); }
a.btn.ink:hover, button.btn.ink:hover { background: var(--c-accent); border-color: var(--c-accent); }
.signoff { margin-top: calc(70 * var(--u)); font-family: var(--f-serif); font-style: italic; font-size: calc(38 * var(--u)); color: var(--c-muted); }
.signoff span {
  display: block;
  margin-top: calc(8 * var(--u));
  font-family: var(--f-script);
  font-style: normal;
  font-size: calc(120 * var(--u) * var(--script-scale));
  line-height: 1.1;
  color: var(--c-ink);
}
.v-letter .kicker.plain { margin-top: calc(40 * var(--u)); }

/* ── The Edit: a magazine ── */
.v-magazine { display: flex; min-height: calc(1800 * var(--u)); padding: calc(60 * var(--u)) calc(70 * var(--u)) calc(80 * var(--u)); }
.mag-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgb(0 0 0 / .55), rgb(0 0 0 / .06) 32%, rgb(0 0 0 / .08) 52%, rgb(0 0 0 / .72)); }
.mag { position: relative; z-index: 1; display: flex; flex-direction: column; width: 100%; color: #FFFFFF; }
.mag-issue {
  display: flex;
  justify-content: space-between;
  gap: calc(20 * var(--u));
  padding-bottom: calc(16 * var(--u));
  border-bottom: var(--hair) solid rgb(255 255 255 / .6);
  font-family: var(--f-sans);
  font-size: calc(21 * var(--u));
  letter-spacing: calc(5 * var(--u));
  text-transform: uppercase;
}
.mag-title {
  margin-top: calc(26 * var(--u));
  font-family: var(--f-serif);
  font-weight: 400;
  font-size: calc(var(--mt, 140) * var(--u));
  line-height: .92;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  text-wrap: balance;
}
.mag-title i { font-style: italic; text-transform: none; color: var(--c-onDarkAccent); }
.mag-lines { margin: auto 0 0; padding: 0; list-style: none; max-width: 72%; text-align: left; }
.mag-lines li { padding: calc(20 * var(--u)) 0; border-top: var(--hair) solid rgb(255 255 255 / .5); font-family: var(--f-serif); font-size: calc(38 * var(--u)); line-height: 1.25; }
.mag-lines b {
  display: block;
  margin-bottom: calc(6 * var(--u));
  font-family: var(--f-sans);
  font-weight: 500;
  font-size: calc(20 * var(--u));
  letter-spacing: calc(5 * var(--u));
  text-transform: uppercase;
  color: var(--c-onDarkAccent);
}
.decor-edit .sec { padding-left: calc(96 * var(--u)); padding-right: calc(96 * var(--u)); }
.decor-edit .kicker { flex-direction: column; gap: calc(4 * var(--u)); }
.decor-edit .kicker:not(.plain)::before { font-size: calc(70 * var(--u)); color: var(--c-ink); }
.decor-edit .headline { font-size: calc(118 * var(--u)); }
.decor-edit .bignum { font-size: calc(440 * var(--u)); }
.decor-edit .script { font-style: italic; }
.decor-edit .btn { border-radius: 0; border-color: currentColor; }
.decor-edit .player, .decor-edit .cal-icon { border-color: var(--c-ink); }
.decor-edit .player { border-radius: 0; }
.decor-edit .signoff span { font-style: italic; }

/* ── Studio: modern minimal, left-aligned ── */
.v-minimal { padding-top: calc(70 * var(--u)); padding-bottom: calc(90 * var(--u)); }
.min-top, .min-foot {
  display: flex;
  justify-content: space-between;
  gap: calc(30 * var(--u));
  font-family: var(--f-sans);
  font-weight: 500;
  font-size: calc(23 * var(--u));
  letter-spacing: calc(3 * var(--u));
  line-height: 1.5;
  text-transform: uppercase;
}
.min-top { padding-bottom: calc(18 * var(--u)); border-bottom: var(--hair) solid currentColor; }
.min-names {
  margin: calc(100 * var(--u)) 0 calc(70 * var(--u));
  font-family: var(--f-serif);
  font-weight: 400;
  font-size: calc(var(--nm, 230) * var(--u));
  line-height: .9;
  letter-spacing: -0.025em;
  text-align: left;
}
.min-names .amp { margin: calc(12 * var(--u)) 0 calc(6 * var(--u)) calc(4 * var(--u)); font-size: calc(110 * var(--u)); }
.min-photo { width: 72%; margin-left: auto; }
.min-img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.min-foot { align-items: flex-start; margin-top: calc(60 * var(--u)); padding-top: calc(18 * var(--u)); border-top: var(--hair) solid currentColor; }
.min-foot p { display: flex; flex-direction: column; gap: calc(4 * var(--u)); }
.min-foot p:last-child { text-align: right; }
.min-foot span { font-weight: 400; color: var(--c-muted); }
.decor-studio .sec { padding-left: calc(90 * var(--u)); padding-right: calc(90 * var(--u)); text-align: left; }
.decor-studio .kicker {
  justify-content: flex-start;
  gap: calc(14 * var(--u));
  padding-top: calc(22 * var(--u));
  border-top: var(--hair) solid currentColor;
  font-weight: 600;
  font-size: calc(22 * var(--u));
  letter-spacing: calc(3 * var(--u));
  color: var(--c-ink);
}
.decor-studio .kicker:not(.plain)::before {
  content: "(" attr(data-n) ")";
  font-family: var(--f-sans);
  font-style: normal;
  font-size: inherit;
  letter-spacing: inherit;
  color: var(--c-accent);
}
.decor-studio .kicker.plain { padding-top: 0; border-top: 0; color: var(--c-muted); }
.decor-studio .headline { margin-top: calc(44 * var(--u)); font-size: calc(132 * var(--u)); line-height: .95; letter-spacing: -0.02em; }
.decor-studio .bignum { font-size: calc(470 * var(--u)); }
.decor-studio .label { padding-left: 0; }
.decor-studio .script { font-style: italic; }
.decor-studio .lede { margin-left: 0; }
.decor-studio .cal-icon { margin-left: 0; }
.decor-studio .addcal { align-items: stretch; }
.decor-studio .addcal .btn { min-width: 0; }
.decor-studio .btn { border-radius: 0; }
.decor-studio .player { margin-left: 0; border-radius: 0; }
.decor-studio .ed-count .cd { align-items: flex-start; padding-left: calc(22 * var(--u)); }
.decor-studio .ed-count .cd:first-child { padding-left: 0; }
.decor-studio .mile li:first-child { padding-left: 0; }

/* ── Riviera: a holiday postcard ── */
.v-postcard { padding-top: calc(100 * var(--u)); padding-bottom: calc(130 * var(--u)); }
.pc-names { margin: calc(4 * var(--u)) 0 calc(64 * var(--u)); font-family: var(--f-serif); font-weight: 400; font-size: calc(132 * var(--u)); line-height: 1; text-wrap: balance; }
.pc-names .amp { display: inline; margin: 0 calc(6 * var(--u)); font-size: .7em; }
.pc {
  position: relative;
  padding: calc(26 * var(--u));
  background: var(--c-card);
  box-shadow: 0 calc(34 * var(--u)) calc(60 * var(--u)) calc(-30 * var(--u)) rgb(28 49 80 / .5), 0 0 0 1px rgb(0 0 0 / .05);
  transform: rotate(-1.6deg);
  text-align: left;
}
.pc-front { position: relative; }
.pc-img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.pc-greet {
  position: absolute;
  left: calc(34 * var(--u));
  right: calc(30 * var(--u));
  bottom: calc(28 * var(--u));
  font-family: var(--f-serif);
  font-size: calc(var(--gs, 96) * var(--u));
  line-height: .95;
  color: #FFFFFF;
  text-shadow: 0 2px 14px rgb(0 0 0 / .5);
}
.pc-greet small { display: block; font-family: var(--f-script); font-size: calc(56 * var(--u)); line-height: 1; }
.pc-back {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto 1fr;
  column-gap: calc(40 * var(--u));
  min-height: calc(440 * var(--u));
  padding: calc(36 * var(--u)) calc(8 * var(--u)) calc(8 * var(--u));
}
.pc-back::before { content: ""; position: absolute; left: 50%; top: calc(36 * var(--u)); bottom: calc(10 * var(--u)); border-left: var(--hair) solid var(--c-soft); }
.pc-note {
  grid-column: 1;
  grid-row: 1 / span 2;
  align-self: center;
  font-family: var(--f-script);
  font-size: calc(60 * var(--u));
  line-height: 1.12;
  color: var(--c-ink);
  transform: rotate(-3deg);
}
.pc-stamp {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: calc(150 * var(--u));
  height: calc(178 * var(--u));
  background: var(--c-accent);
  color: var(--c-card);
  outline: calc(9 * var(--u)) dotted var(--c-card); /* card-coloured dots over the edge = perforations */
  outline-offset: calc(-5 * var(--u));
  box-shadow: inset 0 0 0 calc(16 * var(--u)) var(--c-accent), inset 0 0 0 calc(18 * var(--u)) rgb(255 255 255 / .65);
}
.pc-stamp b { font-family: var(--f-serif); font-weight: 400; font-size: calc(78 * var(--u)); line-height: 1; }
.pc-stamp small { font-family: var(--f-sans); font-weight: 600; font-size: calc(22 * var(--u)); letter-spacing: calc(4 * var(--u)); text-transform: uppercase; }
.pc-mark {
  position: absolute;
  right: calc(110 * var(--u));
  top: calc(80 * var(--u));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: calc(176 * var(--u));
  height: calc(176 * var(--u));
  padding: calc(16 * var(--u));
  border: calc(3 * var(--u)) solid rgb(28 49 80 / .55);
  border-radius: 50%;
  color: rgb(28 49 80 / .7);
  font-family: var(--f-sans);
  font-size: calc(17 * var(--u));
  letter-spacing: calc(3 * var(--u));
  line-height: 1.3;
  text-align: center;
  text-transform: uppercase;
  transform: rotate(-14deg);
  pointer-events: none;
}
.pc-mark b { margin-top: calc(6 * var(--u)); font-weight: 600; font-size: calc(19 * var(--u)); }
.pc-addr { grid-column: 2; grid-row: 2; align-self: end; margin: calc(30 * var(--u)) 0 0; padding: 0; list-style: none; }
.pc-addr li { padding: calc(10 * var(--u)) 0 calc(2 * var(--u)); border-bottom: var(--hair) solid var(--c-soft); font-family: var(--f-script); font-size: calc(40 * var(--u)); line-height: 1.2; overflow-wrap: anywhere; }
.decor-riviera .kicker:not(.plain)::before {
  display: inline-grid;
  place-items: center;
  width: calc(70 * var(--u));
  height: calc(70 * var(--u));
  border: calc(3 * var(--u)) dashed var(--c-accent);
  border-radius: 50%;
  font-family: var(--f-serif);
  font-style: normal;
  font-size: calc(30 * var(--u));
}
.decor-riviera .headline { font-size: calc(112 * var(--u)); }
.decor-riviera .dek, .decor-riviera .bigmonth { font-family: var(--f-script); font-style: normal; }
.decor-riviera .dek { font-size: calc(54 * var(--u)); line-height: 1.2; }
.decor-riviera .bigmonth { font-size: calc(100 * var(--u)); }
.decor-riviera .btn { border-width: calc(3 * var(--u)); }
/* airmail stripes along the top of the light panels */
.decor-riviera .sec.bg-alt::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: calc(16 * var(--u));
  background: repeating-linear-gradient(-45deg, var(--c-accent) 0 calc(22 * var(--u)), transparent 0 calc(34 * var(--u)), var(--c-dark) 0 calc(56 * var(--u)), transparent 0 calc(68 * var(--u)));
}
/* Studio and Riviera: display serif for headings, their sans for running text */
.decor-studio .body, .decor-riviera .body { font-family: var(--f-sans); font-size: calc(32 * var(--u)); line-height: 1.7; }
.decor-studio .dropcap::first-letter, .decor-riviera .dropcap::first-letter { font-family: var(--f-serif); font-size: calc(140 * var(--u)); margin-top: calc(6 * var(--u)); }
.decor-studio .kicker + .note-block { padding-top: calc(30 * var(--u)); border-top: 0; }

/* ═════════════════════ travel family: Jet Set, Bon Voyage, Wanderlust ═════════════════════
   Boarding pass (.decor-jetset), passport (.decor-passport), travel journal (.decor-journal).
   Textures are CSS only: SVG-noise grain, guilloche from repeating gradients, leather. */
#invite { --f-mono: ui-monospace, Menlo, Consolas, monospace; }
.seal { display: none; } /* the wax seal under rsvp.letter — only Wanderlust shows it */

/* ───────── Jet Set: boarding pass ───────── */
.decor-jetset .sec { isolation: isolate; }
.decor-jetset .sec:not(.bg-dark)::before { /* ticket paper: grain + fine security hatching */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    repeating-linear-gradient(-45deg, transparent 0 calc(14 * var(--u)), rgb(20 38 58 / .03) calc(14 * var(--u)) calc(15 * var(--u))),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='p' x='0' y='0'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .38 0 0 0 0 .32 0 0 0 0 .24 0 0 0 -1.5 .86'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23p)'/%3E%3C/svg%3E") 0 0 / 240px;
  opacity: .55;
}
.decor-jetset .sec.bg-dark::before { /* night sky: a dot grid and a warm glow */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(90% 60% at 50% 0%, rgb(244 185 66 / .12), transparent 70%),
    radial-gradient(rgb(255 255 255 / .1) calc(1.8 * var(--u)), transparent calc(2.4 * var(--u))) 0 0 / calc(30 * var(--u)) calc(30 * var(--u));
}
.decor-jetset .kicker:not(.plain)::before {
  content: "Gate " attr(data-n);
  padding: calc(6 * var(--u)) calc(14 * var(--u));
  border: calc(2.5 * var(--u)) solid currentColor;
  border-radius: calc(8 * var(--u));
  font-family: var(--f-mono);
  font-style: normal;
  font-size: calc(22 * var(--u));
  letter-spacing: calc(3 * var(--u));
  text-transform: uppercase;
}
.decor-jetset .kicker { font-family: var(--f-mono); letter-spacing: calc(5 * var(--u)); }
.decor-jetset .headline { font-weight: 600; letter-spacing: -0.02em; }
.decor-jetset .btn { border-radius: calc(12 * var(--u)); font-family: var(--f-mono); letter-spacing: calc(3 * var(--u)); }
.decor-jetset .player { border-radius: calc(20 * var(--u)); }
.decor-jetset .script { font-style: italic; }

.v-boarding { padding-top: calc(90 * var(--u)); padding-bottom: calc(130 * var(--u)); }
.v-boarding .kicker { color: var(--c-onDarkAccent); font-family: var(--f-mono); }
.bp-route { position: absolute; left: 0; top: calc(40 * var(--u)); width: 100%; height: auto; pointer-events: none; }
.bp-route path { fill: none; stroke: var(--c-onDarkAccent); stroke-width: 2.5; stroke-dasharray: 2 11; stroke-linecap: round; opacity: .6; }
.bp-plane { position: absolute; right: calc(30 * var(--u)); top: calc(150 * var(--u)); width: calc(58 * var(--u)); height: calc(58 * var(--u)); color: var(--c-onDarkAccent); transform: rotate(108deg); }
.bp-plane svg, .bp-air svg, .bp-arrow svg { display: block; width: 100%; height: 100%; fill: currentColor; }
.bp {
  position: relative;
  margin-top: calc(40 * var(--u));
  text-align: left;
  color: var(--c-dark);
  filter: drop-shadow(0 calc(34 * var(--u)) calc(34 * var(--u)) rgb(0 0 0 / .4));
  --tk-muted: rgb(20 38 58 / .58);
}
.bp-main, .bp-stub {
  position: relative;
  background:
    repeating-radial-gradient(circle at 100% 0%, transparent 0 calc(11 * var(--u)), rgb(184 53 42 / .05) calc(11 * var(--u)) calc(12 * var(--u))),
    var(--c-card);
}
/* semicircle notches where the stub tears off */
.bp-main {
  padding: 0 calc(46 * var(--u)) calc(44 * var(--u));
  border-radius: calc(26 * var(--u)) calc(26 * var(--u)) 0 0;
  -webkit-mask: radial-gradient(circle calc(24 * var(--u)) at 0 100%, #0000 98%, #000) left / 51% 100% no-repeat,
                radial-gradient(circle calc(24 * var(--u)) at 100% 100%, #0000 98%, #000) right / 51% 100% no-repeat;
          mask: radial-gradient(circle calc(24 * var(--u)) at 0 100%, #0000 98%, #000) left / 51% 100% no-repeat,
                radial-gradient(circle calc(24 * var(--u)) at 100% 100%, #0000 98%, #000) right / 51% 100% no-repeat;
}
.bp-stub {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: calc(20 * var(--u)) calc(30 * var(--u));
  padding: calc(40 * var(--u)) calc(46 * var(--u)) calc(42 * var(--u));
  border-radius: 0 0 calc(26 * var(--u)) calc(26 * var(--u));
  -webkit-mask: radial-gradient(circle calc(24 * var(--u)) at 0 0, #0000 98%, #000) left / 51% 100% no-repeat,
                radial-gradient(circle calc(24 * var(--u)) at 100% 0, #0000 98%, #000) right / 51% 100% no-repeat;
          mask: radial-gradient(circle calc(24 * var(--u)) at 0 0, #0000 98%, #000) left / 51% 100% no-repeat,
                radial-gradient(circle calc(24 * var(--u)) at 100% 0, #0000 98%, #000) right / 51% 100% no-repeat;
}
.bp-stub::before { /* the perforation */
  content: "";
  position: absolute;
  left: calc(40 * var(--u));
  right: calc(40 * var(--u));
  top: 0;
  border-top: calc(3 * var(--u)) dashed rgb(20 38 58 / .3);
}
.bp-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 calc(-46 * var(--u)) calc(34 * var(--u));
  padding: calc(22 * var(--u)) calc(46 * var(--u));
  background: var(--c-red, #B8352A);
  color: #FFFFFF;
  font-family: var(--f-mono);
  font-size: calc(21 * var(--u));
  letter-spacing: calc(4 * var(--u));
  text-transform: uppercase;
}
.bp-air { display: flex; align-items: center; gap: calc(12 * var(--u)); font-weight: 700; }
.bp-air svg { width: calc(30 * var(--u)); height: calc(30 * var(--u)); transform: rotate(90deg); }
.bp-label, .bp-f small, .bp-stub small {
  display: block;
  font-family: var(--f-mono);
  font-size: calc(18 * var(--u));
  letter-spacing: calc(3 * var(--u));
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--tk-muted);
}
.bp-names { margin: calc(6 * var(--u)) 0 calc(30 * var(--u)); font-family: var(--f-serif); font-weight: 600; font-size: calc(92 * var(--u)); line-height: 1; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.bp-names .amp { display: inline; margin: 0; font-size: .7em; color: var(--c-red, #B8352A); }
.bp-trip {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: calc(20 * var(--u));
  padding: calc(24 * var(--u)) 0;
  border-top: calc(2.5 * var(--u)) solid var(--c-dark);
  border-bottom: var(--hair) solid rgb(20 38 58 / .25);
}
.bp-trip b { display: block; font-family: var(--f-mono); font-weight: 700; font-size: calc(90 * var(--u)); line-height: 1; letter-spacing: -0.03em; }
.bp-trip small { display: block; margin-top: calc(6 * var(--u)); font-family: var(--f-sans); font-size: calc(21 * var(--u)); line-height: 1.3; color: var(--tk-muted); }
.bp-trip > div:last-child { text-align: right; }
.bp-arrow { width: calc(64 * var(--u)); height: calc(64 * var(--u)); color: var(--c-red, #B8352A); }
.bp-arrow svg { transform: rotate(90deg); }
.bp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: calc(26 * var(--u)) calc(22 * var(--u)); margin-top: calc(30 * var(--u)); }
.bp-f b, .bp-stub b {
  display: block;
  margin-top: calc(4 * var(--u));
  font-family: var(--f-mono);
  font-weight: 700;
  font-size: calc(28 * var(--u));
  line-height: 1.2;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}
.bp-stub b { font-size: calc(25 * var(--u)); }
.bp-code { /* barcode: two overlapping stripe rhythms look random */
  grid-column: 1 / -1;
  height: calc(104 * var(--u));
  margin-top: calc(6 * var(--u));
  background:
    repeating-linear-gradient(90deg, var(--c-dark) 0 calc(3 * var(--u)), transparent 0 calc(7 * var(--u)), var(--c-dark) 0 calc(8 * var(--u)), transparent 0 calc(12 * var(--u)), var(--c-dark) 0 calc(17 * var(--u)), transparent 0 calc(19 * var(--u))),
    repeating-linear-gradient(90deg, transparent 0 calc(23 * var(--u)), var(--c-dark) 0 calc(25 * var(--u)), transparent 0 calc(31 * var(--u)));
}

/* departure board + split-flap countdown */
.board {
  margin: calc(20 * var(--u)) 0 calc(36 * var(--u));
  padding: calc(22 * var(--u)) calc(24 * var(--u)) calc(26 * var(--u));
  background: var(--c-board, #0E1824);
  border-radius: calc(16 * var(--u));
  box-shadow: inset 0 0 0 calc(6 * var(--u)) rgb(255 255 255 / .04), 0 calc(24 * var(--u)) calc(40 * var(--u)) calc(-22 * var(--u)) rgb(0 0 0 / .6);
  font-family: var(--f-mono);
  text-align: left;
  text-transform: uppercase;
}
.board-row {
  display: grid;
  grid-template-columns: 1.15fr .7fr .85fr 1fr;
  gap: calc(14 * var(--u));
  align-items: center;
  padding: calc(16 * var(--u)) calc(8 * var(--u));
  font-size: calc(29 * var(--u));
  letter-spacing: calc(2 * var(--u));
  color: var(--c-onDarkAccent);
}
.board-row + .board-row { border-top: 1px solid rgb(255 255 255 / .07); }
.board-row > span { position: relative; }
.board .tile { /* a split-flap tile: lighter top half, dark hinge in the middle */
  position: relative;
  display: inline-block;
  padding: calc(6 * var(--u)) calc(10 * var(--u));
  border-radius: calc(6 * var(--u));
  background: linear-gradient(180deg, rgb(255 255 255 / .09) 0 50%, rgb(255 255 255 / .04) 50%);
  font-style: normal;
  white-space: nowrap;
}
.board .tile::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: max(1px, calc(2 * var(--u))); background: rgb(0 0 0 / .55); }
.board-head { padding-bottom: calc(10 * var(--u)); font-size: calc(18 * var(--u)); letter-spacing: calc(4 * var(--u)); color: rgb(255 255 255 / .5); }
.board-ok { color: #8FE3A4; }
.board small { display: block; margin-top: calc(4 * var(--u)); font-family: var(--f-sans); font-size: calc(21 * var(--u)); letter-spacing: 0; line-height: 1.35; text-transform: none; color: rgb(255 255 255 / .55); }
.board.big .board-row { grid-template-columns: calc(190 * var(--u)) 1fr calc(170 * var(--u)); align-items: start; font-size: calc(27 * var(--u)); }
.board.big .board-ok { font-size: calc(21 * var(--u)); text-align: right; }
.flaps { gap: calc(16 * var(--u)); margin: calc(26 * var(--u)) 0 calc(20 * var(--u)); }
.flaps .cd { padding: 0; background: none; border: 0; border-radius: 0; }
.flaps .cd strong {
  position: relative;
  display: block;
  width: 100%;
  padding: calc(26 * var(--u)) 0;
  border-radius: calc(12 * var(--u));
  background: linear-gradient(180deg, color-mix(in srgb, var(--c-board, #0E1824) 80%, #fff) 0 50%, var(--c-board, #0E1824) 50%);
  box-shadow: 0 calc(12 * var(--u)) calc(18 * var(--u)) calc(-10 * var(--u)) rgb(0 0 0 / .55);
  color: var(--c-onDarkAccent);
  font-family: var(--f-mono);
  font-weight: 700;
  font-size: calc(72 * var(--u));
  text-align: center;
}
.flaps .cd strong::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: max(1px, calc(3 * var(--u))); background: rgb(0 0 0 / .7); }
.flaps .cd small { margin-top: calc(14 * var(--u)); font-family: var(--f-mono); color: var(--c-muted); }
.decor-jetset .v-letter .rsvp-form {
  position: relative;
  padding: calc(40 * var(--u)) calc(44 * var(--u)) calc(36 * var(--u));
  background: var(--c-card);
  border-radius: calc(22 * var(--u));
  box-shadow: 0 calc(24 * var(--u)) calc(40 * var(--u)) calc(-24 * var(--u)) rgb(20 38 58 / .45);
}
.decor-jetset .v-letter .rsvp-form::before {
  content: "Check-in";
  display: block;
  margin: calc(-40 * var(--u)) calc(-44 * var(--u)) calc(10 * var(--u));
  padding: calc(16 * var(--u)) calc(44 * var(--u));
  border-radius: calc(22 * var(--u)) calc(22 * var(--u)) 0 0;
  background: var(--c-red, #B8352A);
  color: #FFFFFF;
  font-family: var(--f-mono);
  font-size: calc(20 * var(--u));
  letter-spacing: calc(5 * var(--u));
  text-transform: uppercase;
}

/* ───────── Bon Voyage: passport ───────── */
.decor-passport .sec { isolation: isolate; }
.decor-passport .bg-dark { /* leather: darker towards the edges */
  background: radial-gradient(130% 90% at 50% 38%, var(--c-dark) 40%, color-mix(in srgb, var(--c-dark) 62%, #000));
}
.decor-passport .sec.bg-dark::before { /* leather grain */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='l' x='0' y='0'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.55' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23l)'/%3E%3C/svg%3E");
  background-size: 180px;
  opacity: .2;
  mix-blend-mode: overlay;
}
.decor-passport .sec.bg-dark::after { /* the stitched edge */
  content: "";
  position: absolute;
  inset: calc(30 * var(--u));
  border: calc(3 * var(--u)) dashed rgb(217 180 107 / .32);
  border-radius: calc(20 * var(--u));
  pointer-events: none;
}
.decor-passport .sec:not(.bg-dark)::before { /* visa pages: guilloche + paper grain */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    repeating-radial-gradient(circle at 0% 100%, transparent 0 calc(18 * var(--u)), rgb(123 45 58 / .05) calc(18 * var(--u)) calc(19.5 * var(--u))),
    repeating-radial-gradient(circle at 100% 0%, transparent 0 calc(22 * var(--u)), rgb(45 74 122 / .045) calc(22 * var(--u)) calc(23.5 * var(--u))),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='p' x='0' y='0'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .38 0 0 0 0 .32 0 0 0 0 .24 0 0 0 -1.5 .86'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23p)'/%3E%3C/svg%3E") 0 0 / 240px;
}
.foil {
  background: linear-gradient(105deg, #A8823F 0%, #F4E1A6 22%, #C9A157 38%, #8E6A2F 52%, #EBD08E 70%, #B48A45 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.v-passport { display: flex; align-items: center; justify-content: center; min-height: calc(1720 * var(--u)); padding: calc(150 * var(--u)) calc(120 * var(--u)); }
.pp { display: flex; flex-direction: column; align-items: center; gap: calc(26 * var(--u)); }
.pp-top { padding-left: calc(26 * var(--u)); font-family: var(--f-sans); font-weight: 600; font-size: calc(78 * var(--u)); letter-spacing: calc(26 * var(--u)); line-height: 1.1; text-transform: uppercase; }
.pp-sub { font-family: var(--f-sans); font-size: calc(23 * var(--u)); letter-spacing: calc(7 * var(--u)); text-transform: uppercase; }
.pp-crest { position: relative; display: grid; place-items: center; width: calc(420 * var(--u)); height: calc(420 * var(--u)); margin: calc(40 * var(--u)) 0; }
.pp-crest::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, #A8823F 0%, #F4E1A6 22%, #C9A157 38%, #8E6A2F 52%, #EBD08E 70%, #B48A45 100%);
  -webkit-mask: url("../assets/decor/wreath.svg") center / contain no-repeat;
          mask: url("../assets/decor/wreath.svg") center / contain no-repeat;
}
.pp-crest::after { content: ""; position: absolute; inset: 24%; border: calc(3 * var(--u)) solid rgb(217 180 107 / .55); border-radius: 50%; }
.pp-crest .foil { position: relative; font-family: var(--f-script); font-size: calc(112 * var(--u)); line-height: 1.3; white-space: nowrap; }
.pp-names { font-family: var(--f-serif); font-weight: 500; font-size: calc(86 * var(--u)); line-height: 1.08; letter-spacing: .01em; text-wrap: balance; }
.pp-names .amp { display: inline; margin: 0; font-size: .7em; color: #D9B46B; }
.pp-date { font-family: var(--f-sans); font-size: calc(25 * var(--u)); letter-spacing: calc(8 * var(--u)); text-transform: uppercase; }
.pp-chip { position: relative; width: calc(96 * var(--u)); height: calc(64 * var(--u)); margin-top: calc(50 * var(--u)); border: calc(4 * var(--u)) solid #C9A157; border-radius: calc(10 * var(--u)); opacity: .85; }
.pp-chip::after { content: ""; position: absolute; left: 50%; top: 50%; width: calc(28 * var(--u)); height: calc(28 * var(--u)); border: calc(4 * var(--u)) solid #C9A157; border-radius: 50%; transform: translate(-50%, -50%); }
.decor-passport .kicker { font-family: var(--f-sans); letter-spacing: calc(8 * var(--u)); }
.decor-passport .kicker:not(.plain)::before { content: "No. " attr(data-n); font-family: var(--f-mono); font-style: normal; font-size: calc(24 * var(--u)); letter-spacing: calc(2 * var(--u)); }
.decor-passport .headline { font-weight: 500; font-size: calc(116 * var(--u)); }
.decor-passport .btn { border-radius: calc(4 * var(--u)); letter-spacing: calc(6 * var(--u)); }
.decor-passport .player { border-radius: calc(6 * var(--u)); }
.decor-passport .bg-dark .signoff span {
  background: linear-gradient(105deg, #A8823F 0%, #F4E1A6 22%, #C9A157 38%, #8E6A2F 52%, #EBD08E 70%, #B48A45 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
/* an entry stamp around the big date */
.decor-passport .bignum {
  display: inline-grid;
  place-items: center;
  width: calc(500 * var(--u));
  height: calc(500 * var(--u));
  margin: calc(10 * var(--u)) 0 calc(-10 * var(--u));
  border: calc(7 * var(--u)) double var(--c-accent);
  border-radius: 50%;
  font-size: calc(280 * var(--u));
  line-height: 1;
  color: var(--c-accent);
  transform: rotate(-7deg);
  -webkit-mask: var(--grunge) 0 0 / 220px;
          mask: var(--grunge) 0 0 / 220px;
}
.decor-passport, .decor-journal {
  /* worn-ink mask: mostly solid with small fades, like a rubber stamp */
  --grunge: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='g' x='0' y='0'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -1.15 1.7'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23g)'/%3E%3C/svg%3E");
}

/* the data page */
.dp {
  position: relative;
  overflow: hidden;
  margin: calc(10 * var(--u)) 0 calc(84 * var(--u));
  padding: calc(30 * var(--u)) calc(34 * var(--u)) calc(26 * var(--u));
  background:
    repeating-radial-gradient(ellipse at 85% 40%, transparent 0 calc(9 * var(--u)), rgb(123 45 58 / .06) calc(9 * var(--u)) calc(10 * var(--u))),
    var(--c-card);
  border: var(--hair) solid var(--c-soft);
  border-radius: calc(18 * var(--u));
  box-shadow: 0 calc(24 * var(--u)) calc(50 * var(--u)) calc(-30 * var(--u)) rgb(42 34 48 / .4);
  text-align: left;
}
.dp-head {
  display: flex;
  justify-content: space-between;
  padding-bottom: calc(14 * var(--u));
  border-bottom: var(--hair) solid var(--c-soft);
  font-family: var(--f-sans);
  font-size: calc(19 * var(--u));
  letter-spacing: calc(4 * var(--u));
  text-transform: uppercase;
  color: var(--c-accent);
}
.dp-body { display: grid; grid-template-columns: calc(260 * var(--u)) 1fr; gap: calc(32 * var(--u)); margin-top: calc(26 * var(--u)); }
.dp-img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: calc(6 * var(--u)); filter: grayscale(1) contrast(1.06); }
.dp-fields { display: grid; align-content: start; gap: calc(16 * var(--u)); margin: 0; }
.dp-fields dt { font-family: var(--f-sans); font-size: calc(16 * var(--u)); letter-spacing: calc(3 * var(--u)); text-transform: uppercase; color: var(--c-muted); }
.dp-fields dd { margin: calc(2 * var(--u)) 0 0; font-family: var(--f-mono); font-size: calc(27 * var(--u)); line-height: 1.25; text-transform: uppercase; overflow-wrap: anywhere; }
.dp-sign { margin: calc(6 * var(--u)) 0 0 calc(292 * var(--u)); font-family: var(--f-script); font-size: calc(60 * var(--u)); line-height: 1.2; color: var(--c-stampBlue, #2D4A7A); transform: rotate(-4deg); }
.dp-mrz { margin-top: calc(18 * var(--u)); padding-top: calc(14 * var(--u)); border-top: var(--hair) solid var(--c-soft); font-family: var(--f-mono); font-size: calc(26.5 * var(--u)); line-height: 1.45; letter-spacing: 0; white-space: nowrap; overflow: hidden; color: var(--c-ink); }

/* visa stamps */
.stamps { display: grid; grid-template-columns: 1fr 1fr; gap: calc(44 * var(--u)) calc(34 * var(--u)); margin-top: calc(10 * var(--u)); }
.stamp {
  --ink: var(--c-accent);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: calc(30 * var(--u)) calc(18 * var(--u));
  color: var(--ink);
  border: calc(7 * var(--u)) double var(--ink);
  border-radius: calc(14 * var(--u));
  text-align: center;
  transform: rotate(-4deg);
  -webkit-mask: var(--grunge) 0 0 / 220px;
          mask: var(--grunge) 0 0 / 220px;
}
.stamp:nth-child(even) { margin-top: calc(50 * var(--u)); }
.stamp small { font-family: var(--f-sans); font-weight: 600; font-size: calc(17 * var(--u)); letter-spacing: calc(5 * var(--u)); text-transform: uppercase; }
.stamp b { margin: calc(6 * var(--u)) 0 calc(4 * var(--u)); font-family: var(--f-mono); font-weight: 400; font-size: calc(46 * var(--u)); line-height: 1.1; }
.stamp span { font-family: var(--f-sans); font-weight: 600; font-size: calc(22 * var(--u)); letter-spacing: calc(3 * var(--u)); line-height: 1.3; text-transform: uppercase; }
.stamp em { margin-top: calc(8 * var(--u)); font-family: var(--f-serif); font-size: calc(27 * var(--u)); line-height: 1.25; }
.stamp.s1 { --ink: var(--c-stampBlue, #2D4A7A); border: calc(3.5 * var(--u)) solid var(--ink); border-radius: 50% / 42%; padding: calc(44 * var(--u)) calc(26 * var(--u)); transform: rotate(4deg); }
.stamp.s2 { --ink: var(--c-stampGreen, #2F6150); border: calc(4 * var(--u)) dashed var(--ink); border-radius: calc(4 * var(--u)); transform: rotate(-2deg); }
.stamp.s3 { border: calc(3.5 * var(--u)) solid var(--ink); border-radius: calc(36 * var(--u)); outline: calc(3.5 * var(--u)) solid var(--ink); outline-offset: calc(6 * var(--u)); transform: rotate(6deg); }

/* ───────── Wanderlust: travel journal ───────── */
.decor-journal .sec { isolation: isolate; }
.decor-journal .sec:not(.bg-dark)::before { /* parchment: grain, map grid, darker edges */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(125% 95% at 50% 45%, transparent 55%, rgb(110 78 40 / .24)),
    repeating-linear-gradient(0deg, transparent 0 calc(119 * var(--u)), rgb(90 70 40 / .08) calc(119 * var(--u)) calc(120.5 * var(--u))),
    repeating-linear-gradient(90deg, transparent 0 calc(119 * var(--u)), rgb(90 70 40 / .08) calc(119 * var(--u)) calc(120.5 * var(--u))),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='p' x='0' y='0'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .42 0 0 0 0 .32 0 0 0 0 .18 0 0 0 -1.5 .9'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23p)'/%3E%3C/svg%3E") 0 0 / 240px;
}
.decor-journal .sec.bg-dark::before { /* contour lines, like a topographic map */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    repeating-radial-gradient(ellipse at 18% 22%, transparent 0 calc(34 * var(--u)), rgb(241 231 210 / .07) calc(34 * var(--u)) calc(36.5 * var(--u))),
    repeating-radial-gradient(ellipse at 88% 78%, transparent 0 calc(40 * var(--u)), rgb(241 231 210 / .06) calc(40 * var(--u)) calc(42.5 * var(--u)));
}
.decor-journal .kicker { letter-spacing: calc(7 * var(--u)); }
.decor-journal .kicker:not(.plain)::before { content: "N° " attr(data-n); font-size: calc(36 * var(--u)); }
.decor-journal .headline { font-size: calc(116 * var(--u)); }
.decor-journal .dek { font-family: var(--f-script); font-style: normal; font-size: calc(46 * var(--u)); line-height: 1.25; }
.decor-journal .btn { border-radius: calc(6 * var(--u)); }
.decor-journal .player { border-radius: calc(6 * var(--u)); }
.decor-journal .fig { position: relative; padding: calc(20 * var(--u)) calc(20 * var(--u)) calc(64 * var(--u)); background: #FFFDF6; box-shadow: 0 calc(20 * var(--u)) calc(36 * var(--u)) calc(-20 * var(--u)) rgb(58 44 30 / .5); transform: rotate(-2deg); }
.decor-journal .fig-b { transform: rotate(3deg); }
.decor-journal .fig-img { filter: sepia(.22) contrast(1.03); }
.decor-journal .fig::before, .tape {
  content: "";
  position: absolute;
  z-index: 2;
  width: calc(200 * var(--u));
  height: calc(52 * var(--u));
  background: repeating-linear-gradient(45deg, rgb(47 90 76 / .5) 0 calc(9 * var(--u)), rgb(47 90 76 / .34) calc(9 * var(--u)) calc(18 * var(--u)));
  clip-path: polygon(0 8%, 3% 0, 97% 0, 100% 10%, 97% 25%, 100% 45%, 97% 62%, 100% 80%, 97% 100%, 3% 100%, 0 85%, 3% 68%, 0 50%, 3% 32%, 0 18%);
}
.decor-journal .fig::before { top: calc(-22 * var(--u)); left: 50%; transform: translateX(-50%) rotate(-3deg); }

.v-journal { padding-top: calc(110 * var(--u)); padding-bottom: calc(150 * var(--u)); }
.jr-compass { position: absolute; right: calc(-70 * var(--u)); top: calc(-60 * var(--u)); width: calc(440 * var(--u)); color: var(--c-accent); opacity: .2; transform: rotate(14deg); pointer-events: none; }
.jr-compass svg { display: block; width: 100%; height: auto; }
.jr-hand { position: relative; font-family: var(--f-script); font-size: calc(52 * var(--u)); color: var(--c-accent); transform: rotate(-3deg); }
.jr-names { position: relative; margin: calc(8 * var(--u)) 0 calc(80 * var(--u)); font-family: var(--f-serif); font-weight: 400; font-size: calc(128 * var(--u)); line-height: 1; text-wrap: balance; }
.jr-names .amp { display: inline; margin: 0; font-size: .72em; color: var(--c-wax, #8C2B22); }
.jr-stage { position: relative; min-height: calc(1080 * var(--u)); text-align: left; }
.jr-polaroid {
  position: relative;
  width: calc(620 * var(--u));
  margin: 0 0 0 calc(4 * var(--u));
  padding: calc(24 * var(--u)) calc(24 * var(--u)) calc(92 * var(--u));
  background: #FFFDF6;
  box-shadow: 0 calc(26 * var(--u)) calc(44 * var(--u)) calc(-22 * var(--u)) rgb(58 44 30 / .55);
  transform: rotate(-4deg);
}
.jr-img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; filter: sepia(.22) contrast(1.03); }
.jr-polaroid figcaption { position: absolute; left: 0; right: 0; bottom: calc(24 * var(--u)); font-family: var(--f-script); font-size: calc(38 * var(--u)); line-height: 1.1; text-align: center; color: var(--c-ink); padding: 0 calc(20 * var(--u)); }
.tape.t1 { top: calc(-20 * var(--u)); left: calc(-44 * var(--u)); transform: rotate(-34deg); }
.tape.t2 { top: calc(-16 * var(--u)); right: calc(-52 * var(--u)); transform: rotate(30deg); }
.jr-route { position: absolute; right: calc(10 * var(--u)); top: calc(10 * var(--u)); width: calc(360 * var(--u)); height: auto; }
.jr-route path { fill: none; stroke: var(--c-wax, #8C2B22); stroke-width: 3; stroke-dasharray: 1 11; stroke-linecap: round; opacity: .75; }
.jr-tag, .ltag { /* a manila luggage tag: cut top corners, reinforced hole */
  background:
    linear-gradient(135deg, transparent calc(46 * var(--u)), var(--c-tag, #E3CB97) 0) top left / 51% 52% no-repeat,
    linear-gradient(225deg, transparent calc(46 * var(--u)), var(--c-tag, #E3CB97) 0) top right / 51% 52% no-repeat,
    linear-gradient(var(--c-tag, #E3CB97), var(--c-tag, #E3CB97)) bottom / 100% 50% no-repeat;
  filter: drop-shadow(0 calc(16 * var(--u)) calc(16 * var(--u)) rgb(58 44 30 / .35));
}
.jr-tag {
  position: absolute;
  right: calc(-34 * var(--u));
  bottom: calc(0 * var(--u));
  width: calc(320 * var(--u));
  padding: calc(86 * var(--u)) calc(30 * var(--u)) calc(30 * var(--u));
  transform: rotate(8deg);
}
.jr-tag::before, .ltag-hole {
  content: "";
  position: absolute;
  top: calc(28 * var(--u));
  left: 50%;
  width: calc(34 * var(--u));
  height: calc(34 * var(--u));
  border-radius: 50%;
  background: var(--c-bg);
  box-shadow: 0 0 0 calc(8 * var(--u)) #C7A86F, inset 0 calc(3 * var(--u)) calc(5 * var(--u)) rgb(0 0 0 / .3);
  transform: translateX(-50%);
}
.jr-string { position: absolute; left: 50%; bottom: calc(100% - 46 * var(--u)); width: calc(4 * var(--u)); height: calc(170 * var(--u)); background: #8A6A3C; border-radius: calc(2 * var(--u)); transform-origin: bottom center; transform: rotate(-24deg); }
.jr-tag small, .ltag dt { display: block; font-family: var(--f-sans); font-weight: 600; font-size: calc(17 * var(--u)); letter-spacing: calc(4 * var(--u)); text-transform: uppercase; color: rgb(58 44 30 / .6); }
.jr-tag b { display: block; margin: 0 0 calc(12 * var(--u)); padding-bottom: calc(6 * var(--u)); border-bottom: calc(2 * var(--u)) dashed rgb(58 44 30 / .25); font-family: var(--f-script); font-weight: 400; font-size: calc(38 * var(--u)); line-height: 1.15; overflow-wrap: anywhere; }
.jr-seal, .decor-journal .seal { /* wax seal with the couple's initials */
  display: grid;
  place-items: center;
  width: calc(172 * var(--u));
  height: calc(172 * var(--u));
  border-radius: 47% 53% 49% 51% / 52% 46% 54% 48%;
  background: radial-gradient(circle at 34% 30%, color-mix(in srgb, var(--c-wax, #8C2B22) 65%, #fff) 0, var(--c-wax, #8C2B22) 42%, color-mix(in srgb, var(--c-wax, #8C2B22) 70%, #000) 100%);
  box-shadow: 0 calc(8 * var(--u)) calc(16 * var(--u)) rgb(0 0 0 / .35), inset 0 0 0 calc(16 * var(--u)) rgb(0 0 0 / .08);
  color: color-mix(in srgb, var(--c-wax, #8C2B22) 62%, #000);
  font-family: var(--f-serif);
  font-style: italic;
  font-size: calc(52 * var(--u));
  text-shadow: 0 1px 0 rgb(255 255 255 / .28);
  transform: rotate(-12deg);
}
.jr-seal { position: absolute; left: calc(30 * var(--u)); bottom: calc(0 * var(--u)); }
.jr-seal::before, .decor-journal .seal::before { content: ""; position: absolute; inset: calc(24 * var(--u)); border: calc(3 * var(--u)) solid rgb(0 0 0 / .16); border-radius: 50%; }
.decor-journal .seal { position: relative; margin: calc(40 * var(--u)) auto calc(10 * var(--u)); }

/* the date as a big luggage tag */
.ltag { position: relative; max-width: calc(780 * var(--u)); margin: calc(110 * var(--u)) auto calc(30 * var(--u)); padding: calc(110 * var(--u)) calc(56 * var(--u)) calc(46 * var(--u)); text-align: left; transform: rotate(-2deg); }
.ltag-hole { top: calc(36 * var(--u)); width: calc(44 * var(--u)); height: calc(44 * var(--u)); }
.ltag::after { /* the string */
  content: "";
  position: absolute;
  left: 50%;
  bottom: calc(100% - 58 * var(--u));
  width: calc(4 * var(--u));
  height: calc(150 * var(--u));
  background: #8A6A3C;
  border-radius: calc(2 * var(--u));
  transform-origin: bottom center;
  transform: rotate(16deg);
}
.ltag dl { display: grid; gap: calc(22 * var(--u)); margin: 0; }
.ltag dd { margin: calc(4 * var(--u)) 0 0; padding-bottom: calc(8 * var(--u)); border-bottom: calc(2 * var(--u)) dashed rgb(58 44 30 / .25); font-family: var(--f-script); font-size: calc(52 * var(--u)); line-height: 1.15; color: var(--c-ink); }

/* the programme as a dotted route with map pins */
.route { position: relative; margin: calc(10 * var(--u)) 0 0; padding: 0; list-style: none; text-align: left; }
.route::before { content: ""; position: absolute; left: calc(36 * var(--u)); top: calc(40 * var(--u)); bottom: calc(60 * var(--u)); border-left: calc(4 * var(--u)) dotted color-mix(in srgb, var(--c-onDark) 45%, transparent); }
.route li { position: relative; padding: 0 0 calc(56 * var(--u)) calc(110 * var(--u)); }
.route .pin { position: absolute; left: 0; top: calc(-4 * var(--u)); width: calc(74 * var(--u)); height: calc(74 * var(--u)); color: var(--c-onDarkAccent); }
.route .pin svg { display: block; width: 100%; height: 100%; }
.route .pin path { fill: currentColor; }
.route .pin circle { fill: var(--c-dark); }
.route time { display: block; font-family: var(--f-script); font-size: calc(44 * var(--u)); line-height: 1.1; color: var(--c-onDarkAccent); }
.route b { display: block; margin-top: calc(2 * var(--u)); font-family: var(--f-serif); font-weight: 400; font-size: calc(54 * var(--u)); line-height: 1.1; }
.route em { display: block; margin-top: calc(6 * var(--u)); font-family: var(--f-sans); font-style: normal; font-size: calc(28 * var(--u)); line-height: 1.4; color: var(--c-muted); }
.v-flap .kicker.plain, .v-tag .kicker.plain { margin: calc(80 * var(--u)) 0 0; }
.v-flap .dek { margin-top: calc(10 * var(--u)); }

/* ═════════════════════ stationery family: Heirloom, Gilded, Aquarelle ═════════════════════
   A printed invitation suite instead of a web page. .decor-suite turns every section into
   its own card lying on a table: ::after is the paper (colour --paper + --grain), ::before
   its shadow; the theme colour "page" (on <html>) is the table, textured per design.
   .decor-deckle gives the paper torn cotton edges (CSS masks). Each design then adds its own
   touches under .decor-heirloom / .decor-gilded / .decor-aquarelle. */

#invite, .gate {
  --dk-t: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 14' preserveAspectRatio='none'%3E%3Cpath d='M0 14 L0 7.4 L3 6.7 L6 6.4 L9 8.4 L12 8.3 L15 9.1 L18 9.6 L21 7.6 L24 7.5 L27 5.1 L30 5.1 L33 7.5 L36 7.5 L39 6 L42 7.4 L45 5.5 L48 6.8 L51 6.9 L54 4.3 L57 5.1 L60 4.6 L63 2.8 L66 4.1 L69 4.8 L72 6.8 L75 8.4 L78 6.3 L81 6.3 L84 7.9 L87 6.4 L90 7.1 L93 7.1 L96 6 L99 6 L102 7.1 L105 7.2 L108 9.5 L111 9.3 L114 7.1 L117 6.8 L120 5.6 L123 5.8 L126 5.4 L129 3.9 L132 5.5 L135 2.4 L138 2.9 L141 4.7 L144 6 L147 7.6 L150 7.1 L153 4.6 L156 5.1 L159 5 L162 5.1 L165 6.7 L168 6.2 L171 6.2 L174 7.5 L177 6.8 L180 9.6 L183 9.9 L186 9.4 L189 8.1 L192 6.8 L195 5 L198 5.9 L201 6.1 L204 6.2 L207 5.4 L210 5 L213 4.3 L216 6.5 L219 5.6 L222 5.9 L225 5.1 L228 4 L231 4.7 L234 3.4 L237 5.8 L240 7.4 L240 14Z'/%3E%3C/svg%3E");
  --dk-b: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 14' preserveAspectRatio='none'%3E%3Cpath transform='matrix(1 0 0 -1 0 14)' d='M0 14 L0 7.4 L3 6.7 L6 6.4 L9 8.4 L12 8.3 L15 9.1 L18 9.6 L21 7.6 L24 7.5 L27 5.1 L30 5.1 L33 7.5 L36 7.5 L39 6 L42 7.4 L45 5.5 L48 6.8 L51 6.9 L54 4.3 L57 5.1 L60 4.6 L63 2.8 L66 4.1 L69 4.8 L72 6.8 L75 8.4 L78 6.3 L81 6.3 L84 7.9 L87 6.4 L90 7.1 L93 7.1 L96 6 L99 6 L102 7.1 L105 7.2 L108 9.5 L111 9.3 L114 7.1 L117 6.8 L120 5.6 L123 5.8 L126 5.4 L129 3.9 L132 5.5 L135 2.4 L138 2.9 L141 4.7 L144 6 L147 7.6 L150 7.1 L153 4.6 L156 5.1 L159 5 L162 5.1 L165 6.7 L168 6.2 L171 6.2 L174 7.5 L177 6.8 L180 9.6 L183 9.9 L186 9.4 L189 8.1 L192 6.8 L195 5 L198 5.9 L201 6.1 L204 6.2 L207 5.4 L210 5 L213 4.3 L216 6.5 L219 5.6 L222 5.9 L225 5.1 L228 4 L231 4.7 L234 3.4 L237 5.8 L240 7.4 L240 14Z'/%3E%3C/svg%3E");
  --dk-l: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 240' preserveAspectRatio='none'%3E%3Cpath transform='matrix(0 1 1 0 0 0)' d='M0 14 L0 7.4 L3 6.7 L6 6.4 L9 8.4 L12 8.3 L15 9.1 L18 9.6 L21 7.6 L24 7.5 L27 5.1 L30 5.1 L33 7.5 L36 7.5 L39 6 L42 7.4 L45 5.5 L48 6.8 L51 6.9 L54 4.3 L57 5.1 L60 4.6 L63 2.8 L66 4.1 L69 4.8 L72 6.8 L75 8.4 L78 6.3 L81 6.3 L84 7.9 L87 6.4 L90 7.1 L93 7.1 L96 6 L99 6 L102 7.1 L105 7.2 L108 9.5 L111 9.3 L114 7.1 L117 6.8 L120 5.6 L123 5.8 L126 5.4 L129 3.9 L132 5.5 L135 2.4 L138 2.9 L141 4.7 L144 6 L147 7.6 L150 7.1 L153 4.6 L156 5.1 L159 5 L162 5.1 L165 6.7 L168 6.2 L171 6.2 L174 7.5 L177 6.8 L180 9.6 L183 9.9 L186 9.4 L189 8.1 L192 6.8 L195 5 L198 5.9 L201 6.1 L204 6.2 L207 5.4 L210 5 L213 4.3 L216 6.5 L219 5.6 L222 5.9 L225 5.1 L228 4 L231 4.7 L234 3.4 L237 5.8 L240 7.4 L240 14Z'/%3E%3C/svg%3E");
  --dk-r: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 240' preserveAspectRatio='none'%3E%3Cpath transform='matrix(0 1 -1 0 14 0)' d='M0 14 L0 7.4 L3 6.7 L6 6.4 L9 8.4 L12 8.3 L15 9.1 L18 9.6 L21 7.6 L24 7.5 L27 5.1 L30 5.1 L33 7.5 L36 7.5 L39 6 L42 7.4 L45 5.5 L48 6.8 L51 6.9 L54 4.3 L57 5.1 L60 4.6 L63 2.8 L66 4.1 L69 4.8 L72 6.8 L75 8.4 L78 6.3 L81 6.3 L84 7.9 L87 6.4 L90 7.1 L93 7.1 L96 6 L99 6 L102 7.1 L105 7.2 L108 9.5 L111 9.3 L114 7.1 L117 6.8 L120 5.6 L123 5.8 L126 5.4 L129 3.9 L132 5.5 L135 2.4 L138 2.9 L141 4.7 L144 6 L147 7.6 L150 7.1 L153 4.6 L156 5.1 L159 5 L162 5.1 L165 6.7 L168 6.2 L171 6.2 L174 7.5 L177 6.8 L180 9.6 L183 9.9 L186 9.4 L189 8.1 L192 6.8 L195 5 L198 5.9 L201 6.1 L204 6.2 L207 5.4 L210 5 L213 4.3 L216 6.5 L219 5.6 L222 5.9 L225 5.1 L228 4 L231 4.7 L234 3.4 L237 5.8 L240 7.4 L240 14Z'/%3E%3C/svg%3E");
  --foil: linear-gradient(100deg, #8E6B32 0%, #D9BC7C 22%, #F6E7B8 36%, #B48A45 52%, #E8CF93 70%, #9A7438 100%);
}
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tn { display: none; } /* times are written out in words (.tw) unless a design shows figures */

#invite.decor-suite {
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='p' x='0' y='0'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .38 0 0 0 0 .32 0 0 0 0 .24 0 0 0 -.5 .28'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23p)'/%3E%3C/svg%3E");
  padding: 12px 0 28px;
  background: transparent;
  box-shadow: none;
}
.decor-suite .sec {
  --cx: calc(46 * var(--u));   /* card inset from the column edge */
  --cy: calc(24 * var(--u));   /* half the gap between two cards */
  --px: calc(100 * var(--u));  /* text inset inside the card */
  --py: calc(124 * var(--u));
  --paper: var(--c-bg);
  overflow: visible;
  isolation: isolate;
  padding: calc(var(--cy) + var(--py)) calc(var(--cx) + var(--px));
  background: transparent;
}
.decor-suite .sec.bg-alt { --paper: var(--c-alt); background: transparent; }
.decor-suite .sec.bg-dark { --paper: var(--c-dark); background: transparent; }
.decor-suite .sec-music,
.decor-suite .sec-reminder { --cx: calc(118 * var(--u)); --px: calc(78 * var(--u)); --py: calc(100 * var(--u)); }

/* the card and its shadow (the same pair draws the Aquarelle cover card) */
.decor-suite .sec::before, .decor-suite .sec::after,
.ev-card::before, .ev-card::after {
  content: "";
  position: absolute;
  inset: var(--cy) var(--cx);
  pointer-events: none;
}
.ev-card::before, .ev-card::after { inset: 0; }
.decor-suite .sec::before, .ev-card::before {
  z-index: -2;
  box-shadow: 0 calc(16 * var(--u)) calc(38 * var(--u)) calc(-6 * var(--u)) rgb(40 30 20 / .26), 0 calc(3 * var(--u)) calc(7 * var(--u)) rgb(40 30 20 / .12);
}
.decor-suite .sec::after, .ev-card::after {
  z-index: -1;
  background: var(--grain), linear-gradient(var(--paper), var(--paper));
}
/* torn cotton edges: four deckled strips + the middle */
.decor-deckle .sec::after, .decor-deckle .ev-card::after {
  --dk: calc(16 * var(--u));
  --dkw: calc(260 * var(--u));
  -webkit-mask:
    var(--dk-t) left top / var(--dkw) var(--dk) repeat-x,
    var(--dk-b) left bottom / var(--dkw) var(--dk) repeat-x,
    var(--dk-l) left top / var(--dk) var(--dkw) repeat-y,
    var(--dk-r) right top / var(--dk) var(--dkw) repeat-y,
    linear-gradient(#000 0 0) center / calc(100% - 2 * var(--dk) + 2px) calc(100% - 2 * var(--dk) + 2px) no-repeat;
  mask:
    var(--dk-t) left top / var(--dkw) var(--dk) repeat-x,
    var(--dk-b) left bottom / var(--dkw) var(--dk) repeat-x,
    var(--dk-l) left top / var(--dk) var(--dkw) repeat-y,
    var(--dk-r) right top / var(--dk) var(--dkw) repeat-y,
    linear-gradient(#000 0 0) center / calc(100% - 2 * var(--dk) + 2px) calc(100% - 2 * var(--dk) + 2px) no-repeat;
}
.decor-suite .v-envelope::before, .decor-suite .v-envelope::after { content: none; } /* a flat lay, not a card */

/* shared type */
.decor-suite .script { margin-bottom: calc(36 * var(--u)); }
.st-text {
  max-width: calc(780 * var(--u));
  margin: calc(30 * var(--u)) auto 0;
  font-family: var(--f-serif);
  font-style: italic;
  font-size: calc(40 * var(--u));
  line-height: 1.5;
  text-wrap: pretty;
}
.st-text.muted { color: var(--c-muted); }
.st-text.small { font-size: calc(32 * var(--u)); }
.st-orn { display: flex; justify-content: center; margin: calc(66 * var(--u)) auto; }
.st-orn i {
  display: block;
  width: calc(330 * var(--u));
  height: calc(44 * var(--u));
  background: var(--c-accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 40' fill='none' stroke='%23000' stroke-width='1.3' stroke-linecap='round'%3E%3Cpath d='M18 20H104M196 20H282'/%3E%3Cpath d='M150 10L157 20L150 30L143 20Z' fill='%23000'/%3E%3Cpath d='M139 20C131 20 125 14 128 10C131 6 137 9 135 14M161 20C169 20 175 14 172 10C169 6 163 9 165 14M139 20C131 20 125 26 128 30C131 34 137 31 135 26M161 20C169 20 175 26 172 30C169 34 163 31 165 26'/%3E%3Ccircle cx='113' cy='20' r='2' fill='%23000' stroke='none'/%3E%3Ccircle cx='187' cy='20' r='2' fill='%23000' stroke='none'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 40' fill='none' stroke='%23000' stroke-width='1.3' stroke-linecap='round'%3E%3Cpath d='M18 20H104M196 20H282'/%3E%3Cpath d='M150 10L157 20L150 30L143 20Z' fill='%23000'/%3E%3Cpath d='M139 20C131 20 125 14 128 10C131 6 137 9 135 14M161 20C169 20 175 14 172 10C169 6 163 9 165 14M139 20C131 20 125 26 128 30C131 34 137 31 135 26M161 20C169 20 175 26 172 30C169 34 163 31 165 26'/%3E%3Ccircle cx='113' cy='20' r='2' fill='%23000' stroke='none'/%3E%3Ccircle cx='187' cy='20' r='2' fill='%23000' stroke='none'/%3E%3C/svg%3E") center / contain no-repeat;
}
.st-btn { border-radius: 0; border-color: currentColor; }
.btn.solid-ink { background: var(--c-ink); border-color: var(--c-ink); color: var(--paper, var(--c-bg)); }
a.btn.solid-ink:hover, button.btn.solid-ink:hover { background: var(--c-accent); border-color: var(--c-accent); color: var(--paper, var(--c-bg)); }
.decor-suite a.btn:hover { color: var(--paper); }

/* music & reminder become small enclosure cards */
.decor-suite .player { max-width: none; padding: 0; background: none; border: 0; border-radius: 0; }
.decor-suite .sec .label + .player { margin-top: calc(18 * var(--u)); }
.decor-suite .cal-icon { background: transparent; }
.decor-suite .addcal .btn { min-width: 0; width: 100%; }

/* save the date: the day circled by hand, an engraved countdown */
.v-savedate .cal { width: 100%; max-width: calc(720 * var(--u)); }
.v-savedate .cal-head b { font-family: var(--f-serif); font-size: calc(26 * var(--u)); }
.v-savedate .cal-grid > * { height: calc(88 * var(--u)); font-size: calc(42 * var(--u)); }
.v-savedate .cal-grid .on { color: var(--c-ink); font-weight: 600; }
.v-savedate .cal-grid .on::before {
  width: calc(132 * var(--u));
  height: calc(92 * var(--u));
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 80' fill='none' stroke='%23000' stroke-width='3.4' stroke-linecap='round'%3E%3Cpath d='M30 17C52 6 98 8 109 30C119 52 84 72 52 71C22 70 6 56 10 38C13 24 34 14 66 11'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 80' fill='none' stroke='%23000' stroke-width='3.4' stroke-linecap='round'%3E%3Cpath d='M30 17C52 6 98 8 109 30C119 52 84 72 52 71C22 70 6 56 10 38C13 24 34 14 66 11'/%3E%3C/svg%3E") center / contain no-repeat;
  transform: translate(-50%, -50%) rotate(-6deg);
}
.v-savedate .cal + .st-text { margin-top: calc(40 * var(--u)); }
.st-count { gap: 0; max-width: calc(760 * var(--u)); margin: calc(26 * var(--u)) auto calc(10 * var(--u)); }
.st-count .cd { padding: calc(8 * var(--u)) 0; background: none; border: 0; border-radius: 0; }
.st-count .cd + .cd { border-left: var(--hair) solid var(--c-accent); }
.st-count .cd strong { font-size: calc(80 * var(--u)); }
.st-count .cd small { font-size: calc(17 * var(--u)); }

/* story: photo prints */
.prints { display: grid; margin: calc(20 * var(--u)) 0 calc(40 * var(--u)); }
.print { grid-area: 1 / 1; align-self: start; position: relative; margin: 0; padding: calc(18 * var(--u)); background: #FFFDF9; box-shadow: 0 calc(10 * var(--u)) calc(26 * var(--u)) rgb(30 20 10 / .22); }
.print.p1 { justify-self: start; width: 70%; transform: rotate(-3deg); }
.print.p2 { justify-self: end; width: 54%; margin-top: 50%; transform: rotate(4deg); }
.print.p1:only-child, .print.solo { justify-self: center; width: 80%; transform: rotate(-1.5deg); }
.print.solo { margin: calc(20 * var(--u)) auto calc(50 * var(--u)); }
.print-img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.print.solo .print-img { aspect-ratio: 4 / 3; }
.pc-corners { display: none; }
.st-miles { display: flex; justify-content: center; margin: 0; padding: 0; list-style: none; }
.st-miles li { display: flex; flex: 1; flex-direction: column; align-items: center; padding: 0 calc(14 * var(--u)); }
.st-miles li + li { border-left: var(--hair) solid var(--c-accent); }
.st-miles b { font-family: var(--f-serif); font-weight: 400; font-size: calc(60 * var(--u)); line-height: 1.1; color: var(--c-accent); }
.st-miles .rn { display: none; }
.st-miles span { margin-top: calc(10 * var(--u)); font-family: var(--f-sans); font-size: calc(21 * var(--u)); letter-spacing: calc(4 * var(--u)); text-transform: uppercase; color: var(--c-muted); }

/* schedule: a printed programme */
.prog { margin: calc(10 * var(--u)) 0 0; padding: 0; list-style: none; }
.prog li { position: relative; display: flex; flex-direction: column; align-items: center; }
.prog li + li { margin-top: calc(36 * var(--u)); padding-top: calc(60 * var(--u)); }
.prog li + li::before { /* a small lozenge between two moments */
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: calc(13 * var(--u));
  height: calc(13 * var(--u));
  border: var(--hair) solid var(--c-accent);
  transform: translateX(-50%) rotate(45deg);
}
.prog time { font-family: var(--f-serif); font-style: italic; font-size: calc(46 * var(--u)); line-height: 1.25; color: var(--c-accent); }
.prog b { margin-top: calc(10 * var(--u)); padding-left: calc(7 * var(--u)); font-family: var(--f-sans); font-weight: 500; font-size: calc(26 * var(--u)); letter-spacing: calc(7 * var(--u)); text-transform: uppercase; }
.prog em { margin-top: calc(6 * var(--u)); font-family: var(--f-serif); font-style: italic; font-size: calc(34 * var(--u)); color: var(--c-muted); }
.v-programme .st-orn { margin: calc(56 * var(--u)) auto calc(30 * var(--u)); }

/* venue */
.en-venue { margin-top: calc(6 * var(--u)); font-family: var(--f-serif); font-weight: 500; font-size: calc(54 * var(--u)); line-height: 1.2; letter-spacing: .04em; text-transform: uppercase; text-wrap: balance; }
.en-addr { margin-top: calc(18 * var(--u)); }
.en-two { display: grid; grid-template-columns: 1fr 1fr; margin: calc(60 * var(--u)) 0 0; }
.en-two > div { display: flex; flex-direction: column; align-items: center; padding: 0 calc(16 * var(--u)); }
.en-two > div + div { border-left: var(--hair) solid var(--c-accent); }
.en-two small { padding-left: calc(6 * var(--u)); font-family: var(--f-sans); font-size: calc(22 * var(--u)); letter-spacing: calc(6 * var(--u)); text-transform: uppercase; color: var(--c-accent); }
.en-two b { margin: calc(14 * var(--u)) 0 calc(6 * var(--u)); font-family: var(--f-serif); font-weight: 400; font-style: italic; font-size: calc(42 * var(--u)); line-height: 1.2; }
.en-two em { font-family: var(--f-serif); font-style: normal; font-size: calc(32 * var(--u)); line-height: 1.3; color: var(--c-muted); }

/* details: fabric swatches cut with pinking shears */
.chips { display: flex; justify-content: center; margin: calc(54 * var(--u)) 0 calc(10 * var(--u)); filter: drop-shadow(0 calc(5 * var(--u)) calc(6 * var(--u)) rgb(30 20 10 / .22)); }
.chips i {
  width: calc(112 * var(--u));
  height: calc(144 * var(--u));
  margin: 0 calc(-8 * var(--u));
  background:
    repeating-linear-gradient(0deg, rgb(255 255 255 / .09) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgb(0 0 0 / .06) 0 1px, transparent 1px 3px),
    var(--chip);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 128' preserveAspectRatio='none'%3E%3Cpath d='M0 0L2.5 3.2L5 0L7.5 3.2L10 0L12.5 3.2L15 0L17.5 3.2L20 0L22.5 3.2L25 0L27.5 3.2L30 0L32.5 3.2L35 0L37.5 3.2L40 0L42.5 3.2L45 0L47.5 3.2L50 0L52.5 3.2L55 0L57.5 3.2L60 0L62.5 3.2L65 0L67.5 3.2L70 0L72.5 3.2L75 0L77.5 3.2L80 0L82.5 3.2L85 0L87.5 3.2L90 0L92.5 3.2L95 0L97.5 3.2L100 0L96.8 2.5L100 5L96.8 7.5L100 10L96.8 12.5L100 15L96.8 17.5L100 20L96.8 22.5L100 25L96.8 27.5L100 30L96.8 32.5L100 35L96.8 37.5L100 40L96.8 42.5L100 45L96.8 47.5L100 50L96.8 52.5L100 55L96.8 57.5L100 60L96.8 62.5L100 65L96.8 67.5L100 70L96.8 72.5L100 75L96.8 77.5L100 80L96.8 82.5L100 85L96.8 87.5L100 90L96.8 92.5L100 95L96.8 97.5L100 100L96.8 102.5L100 105L96.8 107.5L100 110L96.8 112.5L100 115L96.8 117.5L100 120L96.8 122.5L100 125L96.8 127.5L97.5 124.8L95 128L92.5 124.8L90 128L87.5 124.8L85 128L82.5 124.8L80 128L77.5 124.8L75 128L72.5 124.8L70 128L67.5 124.8L65 128L62.5 124.8L60 128L57.5 124.8L55 128L52.5 124.8L50 128L47.5 124.8L45 128L42.5 124.8L40 128L37.5 124.8L35 128L32.5 124.8L30 128L27.5 124.8L25 128L22.5 124.8L20 128L17.5 124.8L15 128L12.5 124.8L10 128L7.5 124.8L5 128L2.5 124.8L0 128L3.2 125.5L3.2 123L3.2 120.5L3.2 118L3.2 115.5L3.2 113L3.2 110.5L3.2 108L3.2 105.5L3.2 103L3.2 100.5L3.2 98L3.2 95.5L3.2 93L3.2 90.5L3.2 88L3.2 85.5L3.2 83L3.2 80.5L3.2 78L3.2 75.5L3.2 73L3.2 70.5L3.2 68L3.2 65.5L3.2 63L3.2 60.5L3.2 58L3.2 55.5L3.2 53L3.2 50.5L3.2 48L3.2 45.5L3.2 43L3.2 40.5L3.2 38L3.2 35.5L3.2 33L3.2 30.5L3.2 28L3.2 25.5L3.2 23L3.2 20.5L3.2 18L3.2 15.5L3.2 13L3.2 10.5L3.2 8L3.2 5.5L3.2 3L3.2 0.5Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 128' preserveAspectRatio='none'%3E%3Cpath d='M0 0L2.5 3.2L5 0L7.5 3.2L10 0L12.5 3.2L15 0L17.5 3.2L20 0L22.5 3.2L25 0L27.5 3.2L30 0L32.5 3.2L35 0L37.5 3.2L40 0L42.5 3.2L45 0L47.5 3.2L50 0L52.5 3.2L55 0L57.5 3.2L60 0L62.5 3.2L65 0L67.5 3.2L70 0L72.5 3.2L75 0L77.5 3.2L80 0L82.5 3.2L85 0L87.5 3.2L90 0L92.5 3.2L95 0L97.5 3.2L100 0L96.8 2.5L100 5L96.8 7.5L100 10L96.8 12.5L100 15L96.8 17.5L100 20L96.8 22.5L100 25L96.8 27.5L100 30L96.8 32.5L100 35L96.8 37.5L100 40L96.8 42.5L100 45L96.8 47.5L100 50L96.8 52.5L100 55L96.8 57.5L100 60L96.8 62.5L100 65L96.8 67.5L100 70L96.8 72.5L100 75L96.8 77.5L100 80L96.8 82.5L100 85L96.8 87.5L100 90L96.8 92.5L100 95L96.8 97.5L100 100L96.8 102.5L100 105L96.8 107.5L100 110L96.8 112.5L100 115L96.8 117.5L100 120L96.8 122.5L100 125L96.8 127.5L97.5 124.8L95 128L92.5 124.8L90 128L87.5 124.8L85 128L82.5 124.8L80 128L77.5 124.8L75 128L72.5 124.8L70 128L67.5 124.8L65 128L62.5 124.8L60 128L57.5 124.8L55 128L52.5 124.8L50 128L47.5 124.8L45 128L42.5 124.8L40 128L37.5 124.8L35 128L32.5 124.8L30 128L27.5 124.8L25 128L22.5 124.8L20 128L17.5 124.8L15 128L12.5 124.8L10 128L7.5 124.8L5 128L2.5 124.8L0 128L3.2 125.5L3.2 123L3.2 120.5L3.2 118L3.2 115.5L3.2 113L3.2 110.5L3.2 108L3.2 105.5L3.2 103L3.2 100.5L3.2 98L3.2 95.5L3.2 93L3.2 90.5L3.2 88L3.2 85.5L3.2 83L3.2 80.5L3.2 78L3.2 75.5L3.2 73L3.2 70.5L3.2 68L3.2 65.5L3.2 63L3.2 60.5L3.2 58L3.2 55.5L3.2 53L3.2 50.5L3.2 48L3.2 45.5L3.2 43L3.2 40.5L3.2 38L3.2 35.5L3.2 33L3.2 30.5L3.2 28L3.2 25.5L3.2 23L3.2 20.5L3.2 18L3.2 15.5L3.2 13L3.2 10.5L3.2 8L3.2 5.5L3.2 3L3.2 0.5Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.chips i:nth-child(odd) { transform: rotate(-5deg) translateY(calc(6 * var(--u))); }
.chips i:nth-child(even) { transform: rotate(4deg); }
.v-enclosure .st-btn { margin-top: calc(44 * var(--u)); }

/* rsvp: the reply card */
.rp { max-width: calc(760 * var(--u)); margin: calc(50 * var(--u)) auto calc(30 * var(--u)); gap: calc(34 * var(--u)); text-align: left; }
.rp .rp-name { display: flex; align-items: baseline; gap: calc(16 * var(--u)); border-bottom: var(--hair) solid currentColor; }
.rp .rp-name > span { font-family: var(--f-script); font-size: calc(96 * var(--u) * var(--script-scale)); line-height: 1; }
.rp .rp-name input, .rp .rp-guests select {
  width: auto;
  flex: 1;
  min-width: 0;
  padding: calc(16 * var(--u)) 0 calc(10 * var(--u));
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font-family: var(--f-serif);
  font-style: italic;
  text-align: left;
  text-align-last: left;
}
.rp-choice { display: grid; gap: calc(14 * var(--u)); margin: calc(10 * var(--u)) 0 0; padding: 0; border: 0; }
.rp-choice label { display: flex; align-items: center; gap: calc(26 * var(--u)); min-height: 40px; font-family: var(--f-serif); font-style: italic; font-size: calc(42 * var(--u)); cursor: pointer; }
.rp .rp-choice input {
  flex: none;
  width: calc(46 * var(--u));
  height: calc(46 * var(--u));
  margin: 0;
  padding: 0;
  border: calc(3 * var(--u)) solid currentColor;
  border-radius: 50%;
  background: transparent;
  color: var(--c-ink);
  cursor: pointer;
}
.rp .rp-choice input:checked { background: radial-gradient(circle, currentColor 0 36%, transparent 40%); }
.rp-guests { display: flex; align-items: baseline; gap: calc(24 * var(--u)); font-family: var(--f-serif); font-style: italic; font-size: calc(40 * var(--u)); }
.rp-note { display: grid; gap: calc(6 * var(--u)); font-family: var(--f-serif); font-style: italic; font-size: calc(40 * var(--u)); }
.rp-note i { opacity: .7; }
.rp .rp-note textarea {
  width: 100%;
  min-height: calc(2.6em + 20 * var(--u));
  max-height: 14em;
  margin: 0;
  padding: calc(10 * var(--u)) 0;
  border: 0;
  border-bottom: var(--hair) solid currentColor;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font-family: var(--f-serif);
  font-style: italic;
  font-size: max(16px, calc(40 * var(--u)));
  line-height: 1.3;
  text-align: left;
  resize: none;
  field-sizing: content;
  -webkit-appearance: none;
  appearance: none;
}
.rp .rp-guests select {
  flex: none;
  width: calc(150 * var(--u));
  padding-right: calc(40 * var(--u));
  border-bottom: var(--hair) solid currentColor;
  text-align: center;
  text-align-last: center;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23000000' stroke-opacity='.55' stroke-width='1.2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right calc(4 * var(--u)) center;
  background-size: calc(24 * var(--u)) auto;
}
.bg-dark .rp .rp-guests select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23ffffff' stroke-opacity='.7' stroke-width='1.2'/%3E%3C/svg%3E"); }
.rp .btn { margin-top: calc(26 * var(--u)); }
.rp .rsvp-done, .rp .rsvp-error, .rp .rsvp-privacy { text-align: center; }
.st-q { margin-top: calc(24 * var(--u)); font-family: var(--f-sans); font-size: calc(23 * var(--u)); letter-spacing: .04em; color: var(--c-muted); overflow-wrap: anywhere; }
.st-sign { margin-top: calc(70 * var(--u)); font-family: var(--f-serif); font-style: italic; font-size: calc(36 * var(--u)); color: var(--c-muted); }
.st-sign span { display: block; margin-top: calc(6 * var(--u)); font-family: var(--f-script); font-style: normal; font-size: calc(104 * var(--u) * var(--script-scale)); line-height: 1.2; color: var(--c-ink); }
.st-tag { margin-top: calc(40 * var(--u)); }

/* a wax seal (initials pressed into it) */
.wax {
  --wax: var(--c-wax, #7A2430);
  position: relative;
  display: grid;
  place-items: center;
  width: calc(196 * var(--u));
  height: calc(196 * var(--u));
  margin: calc(56 * var(--u)) auto 0;
  border-radius: 47% 53% 50% 50% / 53% 46% 54% 47%;
  background:
    radial-gradient(circle at 34% 28%, rgb(255 255 255 / .34), transparent 34%),
    radial-gradient(circle at 66% 76%, rgb(0 0 0 / .3), transparent 48%),
    var(--wax);
  box-shadow: 0 calc(8 * var(--u)) calc(14 * var(--u)) rgb(0 0 0 / .32), inset 0 calc(-5 * var(--u)) calc(9 * var(--u)) rgb(0 0 0 / .28), inset 0 calc(4 * var(--u)) calc(6 * var(--u)) rgb(255 255 255 / .22);
}
.wax::before { /* the wax that squeezed out around the stamp */
  content: "";
  position: absolute;
  inset: calc(-9 * var(--u)) calc(-5 * var(--u)) calc(-6 * var(--u)) calc(-11 * var(--u));
  z-index: -1;
  border-radius: 58% 42% 55% 45% / 45% 58% 42% 55%;
  background: var(--wax);
  box-shadow: 0 calc(6 * var(--u)) calc(10 * var(--u)) rgb(0 0 0 / .25), inset 0 calc(-4 * var(--u)) calc(6 * var(--u)) rgb(0 0 0 / .3);
}
.wax::after { /* the pressed disc */
  content: "";
  position: absolute;
  inset: 17%;
  border-radius: 50%;
  box-shadow: inset 0 calc(5 * var(--u)) calc(7 * var(--u)) rgb(0 0 0 / .4), inset 0 calc(-2 * var(--u)) calc(3 * var(--u)) rgb(255 255 255 / .2), 0 calc(2 * var(--u)) calc(2 * var(--u)) rgb(255 255 255 / .18);
}
.wax b {
  position: relative;
  z-index: 1;
  font-family: var(--f-script);
  font-weight: 400;
  font-size: calc(70 * var(--u) * var(--script-scale));
  line-height: 1;
  color: var(--wax);
  color: color-mix(in srgb, var(--wax) 80%, #fff);
  text-shadow: 0 calc(3 * var(--u)) calc(2 * var(--u)) rgb(0 0 0 / .5), 0 calc(-1.5 * var(--u)) 0 rgb(255 255 255 / .3);
  white-space: nowrap;
}
.st-seal { isolation: isolate; }

/* ───────── Heirloom: letterpress on cotton ───────── */
html:has(.decor-heirloom) {
  background-color: var(--page-bg);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .2 0 0 0 0 .17 0 0 0 0 .12 0 0 0 -.9 .5'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E"),
    repeating-linear-gradient(0deg, rgb(255 255 255 / .1) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgb(60 50 35 / .06) 0 1px, transparent 1px 4px);
}
.decor-heirloom .label { font-family: var(--f-serif); font-weight: 500; font-size: calc(25 * var(--u)); --ls: calc(9 * var(--u)); }
.decor-heirloom .script { line-height: 1.05; }
.decor-heirloom .bg-dark .script,
.decor-heirloom .bg-dark .label {
  background: var(--foil);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.decor-heirloom .bg-dark .script { padding: 0 .2em; }
.decor-heirloom .btn { border-radius: 0; font-family: var(--f-serif); font-size: calc(25 * var(--u)); }
.decor-heirloom .cd small, .decor-heirloom .st-miles span, .decor-heirloom .prog b, .decor-heirloom .en-two small { font-family: var(--f-serif); font-weight: 500; }
.decor-heirloom .st-miles .yr { display: none; }
.decor-heirloom .st-miles .rn { display: inline; font-size: calc(46 * var(--u)); letter-spacing: .06em; }
/* photo corners in ink */
.decor-heirloom .pc-corners {
  display: block;
  position: absolute;
  inset: calc(4 * var(--u));
  z-index: 1;
  pointer-events: none;
  --pc: calc(64 * var(--u));
  background:
    linear-gradient(135deg, var(--c-ink) 50%, transparent 51%) left top / var(--pc) var(--pc) no-repeat,
    linear-gradient(225deg, var(--c-ink) 50%, transparent 51%) right top / var(--pc) var(--pc) no-repeat,
    linear-gradient(45deg, var(--c-ink) 50%, transparent 51%) left bottom / var(--pc) var(--pc) no-repeat,
    linear-gradient(315deg, var(--c-ink) 50%, transparent 51%) right bottom / var(--pc) var(--pc) no-repeat;
}
.decor-heirloom .print { padding: calc(26 * var(--u)); }

/* the main card: a blind-debossed double frame, the crest, the formal wording */
.decor-heirloom .v-formal { --cx: calc(30 * var(--u)); --px: calc(62 * var(--u)); --py: calc(70 * var(--u)); }
.fm {
  position: relative;
  padding: calc(84 * var(--u)) calc(50 * var(--u)) calc(96 * var(--u));
  border: calc(3 * var(--u)) solid rgb(31 42 68 / .08);
  border: calc(3 * var(--u)) solid color-mix(in srgb, var(--c-ink) 9%, transparent);
  box-shadow: 0 calc(2 * var(--u)) 0 rgb(255 255 255 / .9), inset 0 calc(2 * var(--u)) 0 rgb(255 255 255 / .9);
}
.fm::before {
  content: "";
  position: absolute;
  inset: calc(16 * var(--u));
  border: var(--hair) solid rgb(31 42 68 / .1);
  border: var(--hair) solid color-mix(in srgb, var(--c-ink) 12%, transparent);
  box-shadow: 0 calc(1.5 * var(--u)) 0 rgb(255 255 255 / .85);
  pointer-events: none;
}
.crest { display: block; width: calc(350 * var(--u)); height: calc(350 * var(--u)); margin: 0 auto calc(56 * var(--u)); color: var(--c-accent); overflow: visible; }
.cr-line { fill: none; stroke: currentColor; stroke-width: .9; }
.cr-line.thin { stroke-width: .45; }
.cr-dot { fill: currentColor; }
.cr-ring { font-family: var(--f-serif); font-weight: 500; letter-spacing: 1.6px; fill: var(--c-ink); }
.cr-ini { font-family: var(--f-script); font-size: 70px; fill: var(--c-ink); }
.cr-amp { font-family: var(--f-serif); font-style: italic; font-size: 20px; fill: var(--c-accent); }
.fm-caps { padding-left: calc(6 * var(--u)); font-family: var(--f-serif); font-weight: 500; font-size: calc(25 * var(--u)); line-height: 1.8; letter-spacing: calc(6 * var(--u)); text-transform: uppercase; }
.fm-names { margin: calc(34 * var(--u)) 0 calc(30 * var(--u)); font-family: var(--f-script); font-weight: 400; font-size: calc(var(--nm) * var(--u) * var(--script-scale)); line-height: 1; overflow-wrap: anywhere; }
.fm-names span { display: block; }
.fm-names .amp { position: relative; z-index: 1; margin: calc(-10 * var(--u)) 0 calc(30 * var(--u)); font-size: calc(46 * var(--u)); }
.fm-when { margin: calc(46 * var(--u)) 0 calc(40 * var(--u)); font-family: var(--f-serif); font-style: italic; font-size: calc(40 * var(--u)); line-height: 1.5; }
.fm-city { margin-top: calc(4 * var(--u)); font-family: var(--f-serif); font-style: italic; font-size: calc(36 * var(--u)); color: var(--c-muted); }
.fm-after { margin-top: calc(48 * var(--u)); font-family: var(--f-serif); font-style: italic; font-size: calc(32 * var(--u)); color: var(--c-muted); }

/* ───────── Gilded: emerald velvet, gilt edges, vellum and silk ───────── */
html:has(.decor-gilded) {
  background-color: var(--page-bg);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='v'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 -.9 .52'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23v)'/%3E%3C/svg%3E"),
    repeating-linear-gradient(160deg, rgb(255 255 255 / 0) 0, rgb(255 255 255 / .05) 240px, rgb(0 0 0 / .12) 520px, rgb(255 255 255 / 0) 760px);
}
.decor-gilded .sec::before { box-shadow: 0 calc(20 * var(--u)) calc(44 * var(--u)) calc(-4 * var(--u)) rgb(0 0 0 / .5), 0 calc(3 * var(--u)) calc(8 * var(--u)) rgb(0 0 0 / .3); }
.decor-gilded .sec::after { /* gilt edges + a fine gold rule inside */
  border: calc(5 * var(--u)) solid transparent;
  background: var(--grain) padding-box, linear-gradient(var(--paper), var(--paper)) padding-box, var(--foil) border-box;
  outline: var(--hair) solid rgb(162 124 67 / .6);
  outline: var(--hair) solid color-mix(in srgb, var(--c-accent) 60%, transparent);
  outline-offset: calc(-30 * var(--u));
}
.decor-gilded .sec-date::before, .decor-gilded .sec-date::after { border-radius: calc(500 * var(--u)) calc(500 * var(--u)) 0 0; }
.decor-gilded .sec-date::after { outline: 0; }
.decor-gilded .sec-date { padding-top: calc(var(--cy) + 250 * var(--u)); }
.decor-gilded .label { font-family: var(--f-sans); font-weight: 400; font-size: calc(23 * var(--u)); --ls: calc(9 * var(--u)); }
.decor-gilded .script { font-size: calc(132 * var(--u) * var(--script-scale)); line-height: 1.1; }
.decor-gilded .bg-dark .script, .foil-text {
  background: var(--foil);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.decor-gilded .bg-dark .script { padding: 0 .25em; }
.decor-gilded .st-orn i { background: var(--foil); }
.decor-gilded .tw { display: none; }
.decor-gilded .tn { display: inline; }
.decor-gilded .prog time { font-style: normal; font-size: calc(40 * var(--u)); letter-spacing: .04em; }
.decor-gilded .en-two b { font-style: normal; }
.decor-gilded .btn { border-radius: 0; font-family: var(--f-sans); font-weight: 400; letter-spacing: calc(7 * var(--u)); }
.decor-gilded .play { background: var(--foil); color: var(--c-dark); }
.decor-gilded .print { padding: calc(16 * var(--u)); border: calc(4 * var(--u)) solid transparent; background: linear-gradient(var(--c-card), var(--c-card)) padding-box, var(--foil) border-box; transform: none; }
.decor-gilded .print.p2 { margin-top: 46%; }

/* the cover: photo, vellum jacket, silk ribbon and a gold seal */
.decor-gilded .v-vellum { --px: calc(84 * var(--u)); --py: calc(110 * var(--u)); }
.vl { position: relative; margin: calc(44 * var(--u)) 0 0; outline: var(--hair) solid var(--c-accent); outline-offset: calc(14 * var(--u)); }
.vl-img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.vl-jacket {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 48%;
  padding: calc(64 * var(--u)) calc(30 * var(--u)) calc(40 * var(--u));
  background: rgb(253 251 246 / .8);
  border-top: 1px solid rgb(255 255 255 / .9);
  box-shadow: 0 calc(-6 * var(--u)) calc(16 * var(--u)) rgb(0 0 0 / .12);
}
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .vl-jacket {
    background: rgb(253 251 246 / .74);
    -webkit-backdrop-filter: blur(9px) saturate(.6) brightness(1.15);
    backdrop-filter: blur(9px) saturate(.6) brightness(1.15);
  }
}
.vl-jacket::before { /* vellum fibres */
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.02 .5' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 -1.2 .6'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23f)'/%3E%3C/svg%3E");
  opacity: .5;
  pointer-events: none;
}
.vl-ribbon {
  --rb: var(--c-ribbon, #24473B);
  position: absolute;
  left: calc(-14 * var(--u));
  right: calc(-14 * var(--u));
  top: 0;
  height: calc(54 * var(--u));
  transform: translateY(-50%);
  background:
    repeating-linear-gradient(90deg, rgb(255 255 255 / .05) 0 1px, transparent 1px 3px),
    linear-gradient(180deg, rgb(255 255 255 / .28), transparent 30%, rgb(0 0 0 / .32) 55%, transparent 78%, rgb(255 255 255 / .18)),
    var(--rb);
  box-shadow: 0 calc(4 * var(--u)) calc(8 * var(--u)) rgb(0 0 0 / .3);
}
.vl-seal, .decor-gilded .wax {
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 28%, rgb(255 248 220 / .9), transparent 40%),
    conic-gradient(from 20deg, #B28B47, #F0D99A, #A37B3A, #E6C987, #9A7436, #F3DFA4, #B28B47);
  box-shadow: 0 calc(6 * var(--u)) calc(14 * var(--u)) rgb(0 0 0 / .38), inset 0 0 0 calc(3 * var(--u)) rgb(255 255 255 / .3);
}
.vl-seal { position: absolute; left: 50%; top: 0; z-index: 1; width: calc(168 * var(--u)); height: calc(168 * var(--u)); transform: translate(-50%, -50%); }
.vl-seal::before, .decor-gilded .wax::after {
  content: "";
  position: absolute;
  inset: calc(16 * var(--u));
  border: calc(2 * var(--u)) solid rgb(110 80 30 / .45);
  border-radius: 50%;
  box-shadow: 0 calc(1.5 * var(--u)) 0 rgb(255 255 255 / .45);
  background: none;
}
.decor-gilded .wax::before { content: none; }
.vl-seal b, .decor-gilded .wax b { position: relative; font-family: var(--f-script); font-weight: 400; font-size: calc(64 * var(--u) * var(--script-scale)); line-height: 1; color: #6E5122; text-shadow: 0 calc(1.5 * var(--u)) 0 rgb(255 255 255 / .55), 0 calc(-1 * var(--u)) 0 rgb(0 0 0 / .2); white-space: nowrap; }
.vl-names { --foil: linear-gradient(100deg, #6A4C1C 0%, #A5803E 24%, #D2B370 38%, #8C6830 54%, #B8934F 72%, #6E5020 100%); position: relative; margin: 0 calc(-20 * var(--u)); padding: calc(10 * var(--u)) calc(20 * var(--u)); font-family: var(--f-script); font-weight: 400; font-size: calc(var(--nm) * var(--u) * var(--script-scale)); line-height: 1.05; overflow-wrap: anywhere; }
.vl-names span { display: block; }
.vl-names .amp { margin: calc(-4 * var(--u)) 0; font-size: calc(46 * var(--u)); color: var(--c-accent); -webkit-text-fill-color: var(--c-accent); }
.vl-invite { margin-top: calc(70 * var(--u)); font-family: var(--f-serif); font-style: italic; font-size: calc(40 * var(--u)); line-height: 1.45; }
.vl-when { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; margin: calc(46 * var(--u)) 0 calc(30 * var(--u)); }
.vl-when span { padding: calc(16 * var(--u)) 0; border-top: var(--hair) solid var(--c-accent); border-bottom: var(--hair) solid var(--c-accent); font-family: var(--f-sans); font-size: calc(22 * var(--u)); letter-spacing: calc(5 * var(--u)); text-transform: uppercase; }
.vl-when b { padding: 0 calc(26 * var(--u)); font-family: var(--f-serif); font-weight: 500; font-size: calc(54 * var(--u)); line-height: 1.1; }

/* ───────── Aquarelle: watercolour florals on cotton ───────── */
html:has(.decor-aquarelle) {
  background-color: var(--page-bg);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .3 0 0 0 0 .24 0 0 0 0 .2 0 0 0 -.8 .42'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E"),
    repeating-linear-gradient(118deg, rgb(255 255 255 / 0) 0, rgb(255 255 255 / .3) 170px, rgb(120 90 70 / .06) 330px, rgb(255 255 255 / 0) 470px);
}
.decor-aquarelle {
  --wc-top: url("../assets/decor/aquarelle/corner-top.jpg");
  --wc-bottom: url("../assets/decor/aquarelle/corner-bottom.jpg");
}
.decor-aquarelle .label { font-family: var(--f-sans); font-weight: 500; font-size: calc(22 * var(--u)); --ls: calc(8 * var(--u)); }
.decor-aquarelle .script { line-height: 1.15; }
.decor-aquarelle .sec:not(.bg-dark) .st-orn i {
  width: calc(470 * var(--u));
  height: calc(84 * var(--u));
  -webkit-mask: none;
  mask: none;
  background: url("../assets/decor/aquarelle/sprig.jpg") center / contain no-repeat;
  mix-blend-mode: multiply;
}
.decor-aquarelle .btn { border-radius: 999px; }
.decor-aquarelle .st-btn { border-color: var(--c-accent); }
/* watercolour corners painted on some cards (white of the painting = the paper) */
.decor-aquarelle .sec-date::after,
.decor-aquarelle .sec-venue::after {
  background: var(--wc-top) left top / 46% auto no-repeat, var(--grain), linear-gradient(var(--paper), var(--paper));
  background-blend-mode: multiply, normal, normal;
}
.decor-aquarelle .sec-story::after,
.decor-aquarelle .sec-details::after {
  background: var(--wc-bottom) right bottom / 50% auto no-repeat, var(--grain), linear-gradient(var(--paper), var(--paper));
  background-blend-mode: multiply, normal, normal;
}
.decor-aquarelle .sec-rsvp::after {
  background: var(--wc-top) left top / 50% auto no-repeat, var(--wc-bottom) right bottom / 46% auto no-repeat, var(--grain), linear-gradient(var(--paper), var(--paper));
  background-blend-mode: multiply, multiply, normal, normal;
}
.decor-aquarelle .sec-date, .decor-aquarelle .sec-venue, .decor-aquarelle .sec-rsvp { padding-top: calc(var(--cy) + 200 * var(--u)); }
.decor-aquarelle .sec-story, .decor-aquarelle .sec-details { padding-bottom: calc(var(--cy) + 220 * var(--u)); }
.decor-aquarelle .sec-rsvp { padding-bottom: calc(var(--cy) + 180 * var(--u)); }
/* prints held by a strip of washi tape */
.decor-aquarelle .print { padding: calc(16 * var(--u)); }
.decor-aquarelle .pc-corners {
  display: block;
  position: absolute;
  top: calc(-22 * var(--u));
  left: 50%;
  z-index: 1;
  width: calc(190 * var(--u));
  height: calc(50 * var(--u));
  transform: translateX(-50%) rotate(-5deg);
  background: repeating-linear-gradient(90deg, rgb(255 255 255 / .25) 0 calc(8 * var(--u)), transparent calc(8 * var(--u)) calc(16 * var(--u))), rgb(231 196 196 / .78);
  -webkit-mask: linear-gradient(#000 0 0) center / calc(100% - 12px) 100% no-repeat, conic-gradient(from 45deg at left, #0000 25%, #000 0) left / 6px 8px repeat-y, conic-gradient(from -135deg at right, #0000 25%, #000 0) right / 6px 8px repeat-y;
  mask: linear-gradient(#000 0 0) center / calc(100% - 12px) 100% no-repeat, conic-gradient(from 45deg at left, #0000 25%, #000 0) left / 6px 8px repeat-y, conic-gradient(from -135deg at right, #0000 25%, #000 0) right / 6px 8px repeat-y;
}
.decor-aquarelle .print.p2 .pc-corners { transform: translateX(-50%) rotate(4deg); }
/* the reply card ends with a watercolour wreath around the initials */
.decor-aquarelle .st-seal {
  width: calc(470 * var(--u));
  height: calc(470 * var(--u));
  margin-top: calc(40 * var(--u));
  border-radius: 0;
  background: url("../assets/decor/aquarelle/wreath.jpg") center / contain no-repeat;
  box-shadow: none;
  mix-blend-mode: multiply;
}
.decor-aquarelle .st-seal::before, .decor-aquarelle .st-seal::after { content: none; }
.decor-aquarelle .st-seal b { font-size: calc(120 * var(--u) * var(--script-scale)); color: var(--c-ink); text-shadow: none; }

/* the cover: a flat lay — open envelope with a floral liner, wax seal, the card on top */
.decor-aquarelle .v-envelope { --px: calc(16 * var(--u)); --py: calc(40 * var(--u)); }
.ev { position: relative; padding-top: calc(470 * var(--u)); }
/* the opened envelope is a photo (Codex flat lay, transparent WebP): flap and floral liner
   show above the card, the body peeks out at its sides */
.ev-env {
  position: absolute;
  left: 50%;
  top: calc(22 * var(--u));
  width: calc(1010 * var(--u));
  aspect-ratio: 893 / 995;
  background: url("../assets/decor/aquarelle/envelope.webp") center / contain no-repeat;
  transform: translateX(-50%) rotate(-3deg);
  filter: drop-shadow(0 calc(14 * var(--u)) calc(26 * var(--u)) rgb(40 30 20 / .2));
}
.ev-wax { position: absolute; z-index: 1; left: calc(50% - 139 * var(--u)); top: 0; margin: 0; }
.ev-card { position: relative; isolation: isolate; margin: 0 calc(38 * var(--u)); padding: calc(190 * var(--u)) calc(84 * var(--u)) calc(230 * var(--u)); --paper: var(--c-bg); }
.ev-card > :not(.flora) { position: relative; z-index: 1; }
.flora { position: absolute; z-index: 0; aspect-ratio: 1; mix-blend-mode: multiply; pointer-events: none; }
.flora.tl { left: 0; top: 0; width: 56%; background: var(--wc-top) left top / contain no-repeat; }
.flora.br { right: 0; bottom: 0; width: 50%; background: var(--wc-bottom) right bottom / contain no-repeat; }
.ev-names { margin: calc(34 * var(--u)) 0 calc(20 * var(--u)); font-size: calc(var(--nm) * var(--u) * var(--script-scale)); line-height: 1.02; overflow-wrap: anywhere; }
.ev-names span { display: block; }
.ev-names .amp { margin: calc(-8 * var(--u)) 0 calc(4 * var(--u)); font-size: calc(48 * var(--u)); }
.ev-invite { font-family: var(--f-serif); font-style: italic; font-size: calc(40 * var(--u)); line-height: 1.4; }
.ev-when { margin: calc(44 * var(--u)) 0 calc(30 * var(--u)); font-family: var(--f-serif); font-size: calc(36 * var(--u)); line-height: 1.6; }

/* ═════════════════════ opening envelope (render.js + envelopes.js) ═════════════════════
   A full-screen gate on <body> with two photos of the same flat lay (sealed, opened). The
   2:3 stage keeps the photos and the text printed on them in register at any screen size;
   on phones it is a little wider than the screen, the rest is the same photo blurred. */
html.gated, html.gated body { overflow: hidden; }
.gate {
  position: fixed;
  inset: 0;
  z-index: 100;
  overflow: hidden;
  background: #E9E4DC;
  transition: opacity .8s ease, visibility .8s;
}
.gate.tone-dark { background: #2A0E14; }
.gate.gone { opacity: 0; visibility: hidden; pointer-events: none; }
.gate-blur { position: absolute; inset: -40px; width: calc(100% + 80px); height: calc(100% + 80px); object-fit: cover; filter: blur(22px); opacity: 0; transition: opacity .6s; }
.gate-stage {
  --w: min(108vw, 66.667svh);
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--w);
  aspect-ratio: 2 / 3;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  cursor: pointer;
  opacity: 0;
  transform: translate(-50%, -50%);
  transition: opacity .6s, transform 1.1s cubic-bezier(.3, .1, .2, 1);
  -webkit-mask: linear-gradient(transparent, #000 7%, #000 93%, transparent);
  mask: linear-gradient(transparent, #000 7%, #000 93%, transparent);
  -webkit-tap-highlight-color: transparent;
}
@media (min-aspect-ratio: 3/4) { .gate-stage { -webkit-mask: none; mask: none; } }
.gate-stage:focus-visible { outline: none; }
.gate-stage:focus-visible .gate-hint { text-decoration: underline; text-underline-offset: 4px; }
.gate.ready .gate-blur, .gate.ready .gate-stage { opacity: 1; }
.gate-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.gate-photo.open { opacity: 0; transition: opacity .75s ease .1s; }
.gate-head, .gate-card, .gate-hint { position: absolute; left: 0; right: 0; display: flex; flex-direction: column; align-items: center; text-align: center; pointer-events: none; }
.gate-head { top: 12%; padding: 0 10%; color: #2B2622; transition: opacity .4s; }
.gate.tone-dark .gate-head, .gate.tone-dark .gate-hint { color: #F4E9DA; }
.gate-head small, .gate-card small, .gate-hint { font-family: var(--f-sans); font-weight: 500; font-size: calc(var(--w) * .024); letter-spacing: .26em; text-transform: uppercase; }
.gate-head b { margin-top: .35em; font-family: var(--f-script); font-weight: 400; font-size: calc(var(--w) * .1 * var(--script-scale) * var(--nl)); line-height: 1.15; text-shadow: 0 1px 12px rgb(255 255 255 / .35); }
.gate.tone-dark .gate-head b { text-shadow: 0 1px 14px rgb(0 0 0 / .4); }
.gate-head i, .gate-card i { font-family: var(--f-serif); font-size: .55em; color: var(--c-accent); }
.gate-hint { top: 76%; opacity: .75; animation: gate-blink 2.4s ease-in-out infinite; transition: opacity .3s; }
@keyframes gate-blink { 0%, 100% { opacity: .4; } 50% { opacity: .9; } }
/* the couple's names printed on the card of the opened photo */
.gate-card { inset: var(--card); justify-content: center; gap: .3em; color: #2B2622; mix-blend-mode: multiply; opacity: 0; transition: opacity .7s ease .75s; }
.gate-card small { color: var(--c-accent); font-size: calc(var(--w) * .021); }
.gate-card b { font-family: var(--f-script); font-weight: 400; font-size: calc(var(--w) * .075 * var(--script-scale) * var(--nl)); line-height: 1.1; }
/* opening */
.gate.open .gate-photo.open { opacity: 1; }
.gate.open .gate-head, .gate.open .gate-hint { opacity: 0; animation: none; }
.gate.open .gate-card { opacity: 1; }
.gate.open .gate-stage { transform: translate(-50%, -50%) scale(1.06); transition-delay: 0s, 1.4s; }
@media (prefers-reduced-motion: reduce) {
  .gate-hint { animation: none; }
  .gate-photo.open, .gate-card, .gate-stage { transition: none; }
}

/* ═════════════════════ trend family: Monochrome, Coquette, Bordeaux ═════════════════════
   Shared pieces first (big-script cover, cameo, waveform player, rings, torn note, line
   timeline, giant RSVP letters), then each design under .decor-mono / .decor-coquette /
   .decor-bordeaux. */

/* date line between two hairlines: Saturday | June 12, 2027 | 4:00 PM */
.bs-date { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; margin: calc(50 * var(--u)) 0 calc(30 * var(--u)); }
.bs-date span { padding: calc(16 * var(--u)) 0; border-top: var(--hair) solid var(--c-accent); border-bottom: var(--hair) solid var(--c-accent); font-family: var(--f-sans); font-weight: 500; font-size: calc(22 * var(--u)); letter-spacing: calc(5 * var(--u)); text-transform: uppercase; }
.bs-date b { padding: 0 calc(26 * var(--u)); font-family: var(--f-serif); font-weight: 500; font-size: calc(54 * var(--u)); line-height: 1.1; }

/* cover.bigscript: names in huge calligraphy crossing the photo's edges */
.v-bigscript { padding-top: calc(100 * var(--u)); }
.bs { position: relative; margin: calc(10 * var(--u)) calc(-60 * var(--u)) 0; padding: calc(190 * var(--u)) calc(60 * var(--u)) calc(200 * var(--u)); background: var(--c-bg); }
.bs-frame { position: relative; margin: 0 calc(50 * var(--u)); }
.bs-frame::before { /* an offset hairline frame */
  content: "";
  position: absolute;
  inset: calc(-26 * var(--u)) calc(26 * var(--u)) calc(26 * var(--u)) calc(-26 * var(--u));
  border: var(--hair) solid var(--c-accent);
}
.bs-img { position: relative; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.bs-name {
  position: absolute;
  z-index: 2;
  max-width: 100%;
  margin: 0;
  padding: 0 .3em; /* room for the script's swashes and the tilt, so no stroke leaves the screen */
  font-family: var(--f-script);
  font-size: calc(var(--nm) * var(--u) * var(--script-scale));
  line-height: 1;
  color: var(--c-ink); /* dark on the paper and on light photo; render.js inkSwitch adds the white */
  -webkit-text-stroke: calc(1.2 * var(--u)) currentColor; /* hairlines solid, not faint grey */
  overflow-wrap: anywhere;
  pointer-events: none;
}
.bs-name.a { top: calc(40 * var(--u)); left: calc(20 * var(--u)); text-align: left; transform: rotate(-7deg); }
.bs-name.b { bottom: calc(30 * var(--u)); right: calc(20 * var(--u)); text-align: right; transform: rotate(-7deg); }
.bs-name .amp { display: inline; margin: 0 .12em 0 0; font-size: .34em; color: inherit; }
/* the white twin of a name over a photo, shown only where the photo underneath is dark */
.ink-light { position: absolute; inset: 0; padding: inherit; color: #fff; text-align: inherit; pointer-events: none; -webkit-mask: var(--ink-mask) 0 0 / 100% 100% no-repeat; mask: var(--ink-mask) 0 0 / 100% 100% no-repeat; }
.bs-invite { margin-top: calc(20 * var(--u)); font-family: var(--f-serif); font-weight: 500; font-size: calc(84 * var(--u)); line-height: 1.1; letter-spacing: calc(8 * var(--u)); text-transform: uppercase; }
.bs-top { margin-bottom: 0; }

/* cover.cameo: an oval photo in a scalloped lace ring, a satin bow on top */
.cq-inv { margin: 0 0 calc(30 * var(--u)); }
.cameo { position: relative; width: calc(720 * var(--u)); aspect-ratio: 4 / 5; margin: calc(60 * var(--u)) auto calc(60 * var(--u)); }
.cameo-lace {
  --cameo: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 250' preserveAspectRatio='none'%3E%3Cpath fill-rule='evenodd' d='M191.68 125Q200.01 134.92 190.55 143.08Q197.55 154.52 187.19 160.71Q192.68 173.39 181.69 177.46Q185.54 191.07 174.17 192.92Q176.28 207.12 164.83 206.71Q165.15 221.15 153.89 218.49Q152.42 232.81 141.62 227.96Q138.39 241.82 128.33 234.9Q123.42 247.95 114.34 239.13Q107.87 251.06 100 240.56Q92.13 251.06 85.66 239.13Q76.58 247.95 71.67 234.9Q61.61 241.82 58.38 227.96Q47.58 232.81 46.11 218.49Q34.85 221.15 35.17 206.71Q23.72 207.12 25.83 192.92Q14.46 191.07 18.31 177.46Q7.32 173.39 12.81 160.71Q2.45 154.52 9.45 143.08Q-0.01 134.92 8.32 125Q-0.01 115.08 9.45 106.92Q2.45 95.48 12.81 89.29Q7.32 76.61 18.31 72.54Q14.46 58.93 25.83 57.08Q23.72 42.88 35.17 43.29Q34.85 28.85 46.11 31.51Q47.58 17.19 58.38 22.04Q61.61 8.18 71.67 15.1Q76.58 2.05 85.66 10.87Q92.13 -1.06 100 9.45Q107.87 -1.06 114.34 10.87Q123.42 2.05 128.33 15.1Q138.39 8.18 141.62 22.04Q152.42 17.19 153.89 31.51Q165.15 28.85 164.83 43.29Q176.28 42.88 174.17 57.08Q185.54 58.93 181.69 72.54Q192.68 76.61 187.19 89.29Q197.55 95.48 190.55 106.92Q200.01 115.08 191.68 125ZM187.78 133.88a1.7 1.7 0 1 0 3.4 0a1.7 1.7 0 1 0 -3.4 0ZM185.58 151.41a1.7 1.7 0 1 0 3.4 0a1.7 1.7 0 1 0 -3.4 0ZM181.23 168.29a1.7 1.7 0 1 0 3.4 0a1.7 1.7 0 1 0 -3.4 0ZM174.83 184.11a1.7 1.7 0 1 0 3.4 0a1.7 1.7 0 1 0 -3.4 0ZM166.55 198.48a1.7 1.7 0 1 0 3.4 0a1.7 1.7 0 1 0 -3.4 0ZM156.59 211.03a1.7 1.7 0 1 0 3.4 0a1.7 1.7 0 1 0 -3.4 0ZM145.2 221.46a1.7 1.7 0 1 0 3.4 0a1.7 1.7 0 1 0 -3.4 0ZM132.65 229.52a1.7 1.7 0 1 0 3.4 0a1.7 1.7 0 1 0 -3.4 0ZM119.25 235.01a1.7 1.7 0 1 0 3.4 0a1.7 1.7 0 1 0 -3.4 0ZM105.34 237.79a1.7 1.7 0 1 0 3.4 0a1.7 1.7 0 1 0 -3.4 0ZM91.26 237.79a1.7 1.7 0 1 0 3.4 0a1.7 1.7 0 1 0 -3.4 0ZM77.35 235.01a1.7 1.7 0 1 0 3.4 0a1.7 1.7 0 1 0 -3.4 0ZM63.95 229.52a1.7 1.7 0 1 0 3.4 0a1.7 1.7 0 1 0 -3.4 0ZM51.4 221.46a1.7 1.7 0 1 0 3.4 0a1.7 1.7 0 1 0 -3.4 0ZM40.01 211.03a1.7 1.7 0 1 0 3.4 0a1.7 1.7 0 1 0 -3.4 0ZM30.05 198.48a1.7 1.7 0 1 0 3.4 0a1.7 1.7 0 1 0 -3.4 0ZM21.77 184.11a1.7 1.7 0 1 0 3.4 0a1.7 1.7 0 1 0 -3.4 0ZM15.37 168.29a1.7 1.7 0 1 0 3.4 0a1.7 1.7 0 1 0 -3.4 0ZM11.02 151.41a1.7 1.7 0 1 0 3.4 0a1.7 1.7 0 1 0 -3.4 0ZM8.82 133.88a1.7 1.7 0 1 0 3.4 0a1.7 1.7 0 1 0 -3.4 0ZM8.82 116.12a1.7 1.7 0 1 0 3.4 0a1.7 1.7 0 1 0 -3.4 0ZM11.02 98.59a1.7 1.7 0 1 0 3.4 0a1.7 1.7 0 1 0 -3.4 0ZM15.37 81.71a1.7 1.7 0 1 0 3.4 0a1.7 1.7 0 1 0 -3.4 0ZM21.77 65.89a1.7 1.7 0 1 0 3.4 0a1.7 1.7 0 1 0 -3.4 0ZM30.05 51.52a1.7 1.7 0 1 0 3.4 0a1.7 1.7 0 1 0 -3.4 0ZM40.01 38.97a1.7 1.7 0 1 0 3.4 0a1.7 1.7 0 1 0 -3.4 0ZM51.4 28.54a1.7 1.7 0 1 0 3.4 0a1.7 1.7 0 1 0 -3.4 0ZM63.95 20.48a1.7 1.7 0 1 0 3.4 0a1.7 1.7 0 1 0 -3.4 0ZM77.35 14.99a1.7 1.7 0 1 0 3.4 0a1.7 1.7 0 1 0 -3.4 0ZM91.26 12.21a1.7 1.7 0 1 0 3.4 0a1.7 1.7 0 1 0 -3.4 0ZM105.34 12.21a1.7 1.7 0 1 0 3.4 0a1.7 1.7 0 1 0 -3.4 0ZM119.25 14.99a1.7 1.7 0 1 0 3.4 0a1.7 1.7 0 1 0 -3.4 0ZM132.65 20.48a1.7 1.7 0 1 0 3.4 0a1.7 1.7 0 1 0 -3.4 0ZM145.2 28.54a1.7 1.7 0 1 0 3.4 0a1.7 1.7 0 1 0 -3.4 0ZM156.59 38.97a1.7 1.7 0 1 0 3.4 0a1.7 1.7 0 1 0 -3.4 0ZM166.55 51.52a1.7 1.7 0 1 0 3.4 0a1.7 1.7 0 1 0 -3.4 0ZM174.83 65.89a1.7 1.7 0 1 0 3.4 0a1.7 1.7 0 1 0 -3.4 0ZM181.23 81.71a1.7 1.7 0 1 0 3.4 0a1.7 1.7 0 1 0 -3.4 0ZM185.58 98.59a1.7 1.7 0 1 0 3.4 0a1.7 1.7 0 1 0 -3.4 0ZM187.78 116.12a1.7 1.7 0 1 0 3.4 0a1.7 1.7 0 1 0 -3.4 0Z'/%3E%3C/svg%3E");
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgb(0 0 0 / .05) 0 1px, transparent 1.5px) 0 0 / 7px 7px, var(--c-card);
  -webkit-mask: var(--cameo) center / 100% 100% no-repeat;
  mask: var(--cameo) center / 100% 100% no-repeat;
  filter: drop-shadow(0 calc(8 * var(--u)) calc(14 * var(--u)) rgb(0 0 0 / .14));
}
.cameo-img { position: absolute; inset: 9%; width: 82%; height: 82%; object-fit: cover; border-radius: 50%; box-shadow: 0 0 0 calc(6 * var(--u)) var(--c-card), 0 0 0 calc(8 * var(--u)) var(--c-accent); }
.cameo-img.ph { position: absolute; }
.bow {
  display: block;
  position: absolute;
  left: 50%;
  top: calc(-120 * var(--u));
  width: calc(330 * var(--u));
  aspect-ratio: 1;
  transform: translateX(-50%);
  background: var(--bow-img, none) center / contain no-repeat;
  mix-blend-mode: multiply;
  pointer-events: none;
}
.cq-names { margin: calc(20 * var(--u)) 0 0; font-family: var(--f-serif); font-weight: 400; font-style: italic; font-size: calc(124 * var(--u)); line-height: 1.02; overflow-wrap: anywhere; }
.cq-names span { display: block; }
.cq-names .amp { margin: calc(4 * var(--u)) 0; font-family: var(--f-script); font-style: normal; font-size: calc(90 * var(--u)); }

/* music.wave: a waveform that fills with colour as the song plays */
.wave-player { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: calc(40 * var(--u)); max-width: calc(840 * var(--u)); padding: calc(46 * var(--u)) calc(50 * var(--u)); text-align: left; }
.wave-player .play { margin: 0; width: calc(130 * var(--u)); height: calc(130 * var(--u)); }
.wave-player .player-title { font-size: calc(46 * var(--u)); line-height: 1.15; }
.wave-player .bar { height: calc(84 * var(--u)); margin-top: calc(14 * var(--u)); container-type: inline-size; }
.wave-player .bar::before, .wave-player .knob { display: none; }
.wave { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.wave i { width: 1.4%; min-width: 1px; border-radius: 99px; background: rgb(0 0 0 / .16); background: color-mix(in srgb, var(--c-ink) 18%, transparent); }
.wave-player .fill { top: 0; bottom: 0; height: auto; overflow: hidden; background: none; transform: none; }
.wave-player .fill .wave { width: 100cqw; }
.wave-player .fill .wave i { background: var(--c-accent); }
.wave-player .times { margin-top: calc(6 * var(--u)); font-size: calc(24 * var(--u)); }
.wave-player + .label { margin-top: calc(30 * var(--u)); }

/* date.rings: interlocking rings, the date, a calendar and a row of figures */
.rings { display: block; width: calc(250 * var(--u)); margin: 0 auto calc(20 * var(--u)); color: var(--c-accent); }
.rings svg { display: block; width: 100%; height: auto; }
.rg-date { display: flex; flex-direction: column; align-items: center; margin: calc(14 * var(--u)) 0 calc(56 * var(--u)) !important; font-family: var(--f-serif); font-size: calc(100 * var(--u)); line-height: 1.05; }
.rg-date small { padding-left: calc(8 * var(--u)); font-family: var(--f-sans); font-weight: 500; font-size: calc(24 * var(--u)); letter-spacing: calc(8 * var(--u)); text-transform: uppercase; color: var(--c-muted); }
.rg-date small:first-child { margin-bottom: calc(14 * var(--u)); }
.rg-date small:last-child { margin-top: calc(16 * var(--u)); }
.rg-title { margin: calc(76 * var(--u)) 0 calc(14 * var(--u)); font-size: calc(96 * var(--u) * var(--script-scale)); }
.rg-count { gap: 0; margin: calc(20 * var(--u)) 0 0; }
.rg-count .cd { position: relative; padding: 0; background: none; border: 0; border-radius: 0; }
.rg-count .cd + .cd::before { content: ":"; position: absolute; left: 0; top: 0; font-family: var(--f-serif); font-size: calc(96 * var(--u)); line-height: 1; color: var(--c-accent); transform: translate(-50%, calc(-6 * var(--u))); }
.rg-count .cd strong { font-size: calc(104 * var(--u)); }
.rg-count .cd:last-child strong { color: var(--c-accent); }

/* story.torn: a photo with a torn-paper note over its lower edge */
.tn-photo { margin: calc(40 * var(--u)) calc(-30 * var(--u)) 0; }
.tn-img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.tn-note { position: relative; isolation: isolate; margin: calc(-190 * var(--u)) calc(20 * var(--u)) 0; padding: calc(96 * var(--u)) calc(70 * var(--u)) calc(110 * var(--u)); transform: rotate(-1.5deg); filter: drop-shadow(0 calc(10 * var(--u)) calc(14 * var(--u)) rgb(0 0 0 / .2)); }
.tn-note::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  --dk: calc(24 * var(--u));
  --dkw: calc(300 * var(--u));
  background: var(--grain, none), var(--c-card);
  -webkit-mask:
    var(--dk-t) left top / var(--dkw) var(--dk) repeat-x,
    var(--dk-b) left bottom / var(--dkw) var(--dk) repeat-x,
    var(--dk-l) left top / var(--dk) var(--dkw) repeat-y,
    var(--dk-r) right top / var(--dk) var(--dkw) repeat-y,
    linear-gradient(#000 0 0) center / calc(100% - 2 * var(--dk) + 2px) calc(100% - 2 * var(--dk) + 2px) no-repeat;
  mask:
    var(--dk-t) left top / var(--dkw) var(--dk) repeat-x,
    var(--dk-b) left bottom / var(--dkw) var(--dk) repeat-x,
    var(--dk-l) left top / var(--dk) var(--dkw) repeat-y,
    var(--dk-r) right top / var(--dk) var(--dkw) repeat-y,
    linear-gradient(#000 0 0) center / calc(100% - 2 * var(--dk) + 2px) calc(100% - 2 * var(--dk) + 2px) no-repeat;
}
.tn-note .script { margin: 0 0 calc(10 * var(--u)); }
.tn-note .st-text { margin-top: calc(16 * var(--u)); color: var(--c-ink); }
.bg-dark .tn-note { color: #222; --c-ink: #222; }
.tn-photo.b { width: 62%; margin: calc(80 * var(--u)) auto calc(70 * var(--u)); padding: calc(18 * var(--u)); background: #fff; box-shadow: 0 calc(10 * var(--u)) calc(24 * var(--u)) rgb(0 0 0 / .2); transform: rotate(2.5deg); }

/* schedule.line: a vertical line, a dot per moment and its icon beside it */
.tline { position: relative; max-width: calc(820 * var(--u)); margin: calc(20 * var(--u)) auto 0; padding: 0; list-style: none; text-align: left; }
.tline::before { content: ""; position: absolute; left: calc(176 * var(--u)); top: calc(40 * var(--u)); bottom: calc(40 * var(--u)); border-left: var(--hair) solid var(--c-accent); }
.tline li { position: relative; display: grid; grid-template-columns: calc(120 * var(--u)) 1fr; align-items: center; column-gap: calc(110 * var(--u)); padding: calc(26 * var(--u)) 0; }
.tline li::before { /* the dot on the line */
  content: "";
  position: absolute;
  left: calc(176 * var(--u));
  top: 50%;
  width: calc(22 * var(--u));
  height: calc(22 * var(--u));
  border-radius: 50%;
  background: var(--c-accent);
  box-shadow: 0 0 0 calc(8 * var(--u)) var(--line-gap, var(--c-bg));
  transform: translate(-50%, -50%);
}
.bg-alt .tline { --line-gap: var(--c-alt); }
.bg-dark .tline { --line-gap: var(--c-dark); }
.tli { display: grid; place-items: center; width: calc(120 * var(--u)); height: calc(120 * var(--u)); color: var(--c-ink); }
.tli svg { width: calc(86 * var(--u)); height: calc(86 * var(--u)); }
.tline time { display: block; font-family: var(--f-serif); font-size: calc(44 * var(--u)); line-height: 1.1; color: var(--c-accent); }
.tline b { display: block; margin-top: calc(8 * var(--u)); font-family: var(--f-sans); font-weight: 500; font-size: calc(24 * var(--u)); letter-spacing: calc(6 * var(--u)); text-transform: uppercase; }
.tline em { display: block; margin-top: calc(4 * var(--u)); font-family: var(--f-serif); font-style: italic; font-size: calc(33 * var(--u)); line-height: 1.3; color: var(--c-muted); }

/* rsvp.bigletters: giant RS / VP with "please" written across */
.bl { position: relative; display: flex; flex-direction: column; align-items: center; width: max-content; margin: calc(10 * var(--u)) auto calc(40 * var(--u)); }
.bl-l { font-family: var(--f-serif); font-weight: 400; font-size: calc(290 * var(--u)); line-height: .84; letter-spacing: .02em; color: var(--c-ink); }
.bl-please { position: absolute; z-index: 1; left: calc(-70 * var(--u)); top: calc(150 * var(--u)); font-family: var(--f-script); font-size: calc(130 * var(--u) * var(--script-scale)); line-height: 1; color: var(--c-accent); transform: rotate(-12deg); }
.bl .bow { display: none; }
.v-bigletters .label + .lede { margin-top: calc(20 * var(--u)); }
.v-bigletters .st-sign { font-size: calc(32 * var(--u)); }

/* ───────── Monochrome: black & white editorial, ivory and gold ───────── */
html:has(.decor-mono) { background: var(--page-bg); }
.decor-mono img { filter: grayscale(1) contrast(1.05); } /* every photo in black & white */
.decor-mono .label { font-weight: 500; font-size: calc(22 * var(--u)); --ls: calc(9 * var(--u)); }
.decor-mono .script { font-size: calc(140 * var(--u) * var(--script-scale)); }
.decor-mono .btn { border-radius: 0; border-color: var(--c-ink); }
.decor-mono .player { background: transparent; border-radius: 0; border-color: var(--c-accent); }
.decor-mono .sec.bg-dark .wave i { background: rgb(255 255 255 / .22); }
.decor-mono .sec.bg-dark .fill .wave i { background: var(--c-accent); }
.decor-mono .bl-l { font-weight: 400; }
.decor-mono .wax, .decor-bordeaux .wax {
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 28%, rgb(255 248 220 / .9), transparent 40%),
    conic-gradient(from 20deg, #B28B47, #F0D99A, #A37B3A, #E6C987, #9A7436, #F3DFA4, #B28B47);
  box-shadow: 0 4px 10px rgb(0 0 0 / .35), inset 0 0 0 2px rgb(255 255 255 / .3);
}
.decor-mono .wax::before, .decor-bordeaux .wax::before { content: none; }
.decor-mono .wax::after, .decor-bordeaux .wax::after { inset: 12%; border: 1.5px solid rgb(110 80 30 / .45); box-shadow: 0 1px 0 rgb(255 255 255 / .45); }
.decor-mono .wax b, .decor-bordeaux .wax b { color: #6E5122; text-shadow: 0 1px 0 rgb(255 255 255 / .55), 0 -1px 0 rgb(0 0 0 / .2); }

/* ───────── Coquette: candy stripes, lace-edged cards, satin bows and pearls ───────── */
html:has(.decor-coquette) {
  background-color: var(--page-bg);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .3 0 0 0 0 .35 0 0 0 -.6 .3'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E"),
    repeating-linear-gradient(90deg, rgb(255 255 255 / .78) 0 22px, transparent 22px 44px);
}
.decor-coquette { --bow-img: url("../assets/decor/coquette/bow-black.jpg"); }
.decor-coquette .sec::before { box-shadow: 0 calc(14 * var(--u)) calc(30 * var(--u)) calc(-6 * var(--u)) rgb(120 40 60 / .28), 0 calc(2 * var(--u)) calc(6 * var(--u)) rgb(120 40 60 / .12); }
.decor-coquette .sec::after {
  --lc-t: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 20' preserveAspectRatio='none'%3E%3Cpath fill-rule='evenodd' d='M0 20L0 10A10 10 0 0 1 20 10A10 10 0 0 1 40 10A10 10 0 0 1 60 10L60 20ZM7.6 8.5a2.4 2.4 0 1 0 4.8 0a2.4 2.4 0 1 0 -4.8 0ZM27.6 8.5a2.4 2.4 0 1 0 4.8 0a2.4 2.4 0 1 0 -4.8 0ZM47.6 8.5a2.4 2.4 0 1 0 4.8 0a2.4 2.4 0 1 0 -4.8 0ZM-1.2 15a1.2 1.2 0 1 0 2.4 0a1.2 1.2 0 1 0 -2.4 0ZM18.8 15a1.2 1.2 0 1 0 2.4 0a1.2 1.2 0 1 0 -2.4 0ZM38.8 15a1.2 1.2 0 1 0 2.4 0a1.2 1.2 0 1 0 -2.4 0ZM58.8 15a1.2 1.2 0 1 0 2.4 0a1.2 1.2 0 1 0 -2.4 0Z'/%3E%3C/svg%3E");
  --lc-b: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 20' preserveAspectRatio='none'%3E%3Cpath fill-rule='evenodd' transform='matrix(1 0 0 -1 0 20)' d='M0 20L0 10A10 10 0 0 1 20 10A10 10 0 0 1 40 10A10 10 0 0 1 60 10L60 20ZM7.6 8.5a2.4 2.4 0 1 0 4.8 0a2.4 2.4 0 1 0 -4.8 0ZM27.6 8.5a2.4 2.4 0 1 0 4.8 0a2.4 2.4 0 1 0 -4.8 0ZM47.6 8.5a2.4 2.4 0 1 0 4.8 0a2.4 2.4 0 1 0 -4.8 0ZM-1.2 15a1.2 1.2 0 1 0 2.4 0a1.2 1.2 0 1 0 -2.4 0ZM18.8 15a1.2 1.2 0 1 0 2.4 0a1.2 1.2 0 1 0 -2.4 0ZM38.8 15a1.2 1.2 0 1 0 2.4 0a1.2 1.2 0 1 0 -2.4 0ZM58.8 15a1.2 1.2 0 1 0 2.4 0a1.2 1.2 0 1 0 -2.4 0Z'/%3E%3C/svg%3E");
  --lc-l: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 60' preserveAspectRatio='none'%3E%3Cpath fill-rule='evenodd' transform='matrix(0 1 1 0 0 0)' d='M0 20L0 10A10 10 0 0 1 20 10A10 10 0 0 1 40 10A10 10 0 0 1 60 10L60 20ZM7.6 8.5a2.4 2.4 0 1 0 4.8 0a2.4 2.4 0 1 0 -4.8 0ZM27.6 8.5a2.4 2.4 0 1 0 4.8 0a2.4 2.4 0 1 0 -4.8 0ZM47.6 8.5a2.4 2.4 0 1 0 4.8 0a2.4 2.4 0 1 0 -4.8 0ZM-1.2 15a1.2 1.2 0 1 0 2.4 0a1.2 1.2 0 1 0 -2.4 0ZM18.8 15a1.2 1.2 0 1 0 2.4 0a1.2 1.2 0 1 0 -2.4 0ZM38.8 15a1.2 1.2 0 1 0 2.4 0a1.2 1.2 0 1 0 -2.4 0ZM58.8 15a1.2 1.2 0 1 0 2.4 0a1.2 1.2 0 1 0 -2.4 0Z'/%3E%3C/svg%3E");
  --lc-r: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 60' preserveAspectRatio='none'%3E%3Cpath fill-rule='evenodd' transform='matrix(0 1 -1 0 20 0)' d='M0 20L0 10A10 10 0 0 1 20 10A10 10 0 0 1 40 10A10 10 0 0 1 60 10L60 20ZM7.6 8.5a2.4 2.4 0 1 0 4.8 0a2.4 2.4 0 1 0 -4.8 0ZM27.6 8.5a2.4 2.4 0 1 0 4.8 0a2.4 2.4 0 1 0 -4.8 0ZM47.6 8.5a2.4 2.4 0 1 0 4.8 0a2.4 2.4 0 1 0 -4.8 0ZM-1.2 15a1.2 1.2 0 1 0 2.4 0a1.2 1.2 0 1 0 -2.4 0ZM18.8 15a1.2 1.2 0 1 0 2.4 0a1.2 1.2 0 1 0 -2.4 0ZM38.8 15a1.2 1.2 0 1 0 2.4 0a1.2 1.2 0 1 0 -2.4 0ZM58.8 15a1.2 1.2 0 1 0 2.4 0a1.2 1.2 0 1 0 -2.4 0Z'/%3E%3C/svg%3E");
  --lc: calc(26 * var(--u));
  --lcw: calc(78 * var(--u));
  -webkit-mask:
    var(--lc-t) left top / var(--lcw) var(--lc) repeat-x,
    var(--lc-b) left bottom / var(--lcw) var(--lc) repeat-x,
    var(--lc-l) left top / var(--lc) var(--lcw) repeat-y,
    var(--lc-r) right top / var(--lc) var(--lcw) repeat-y,
    linear-gradient(#000 0 0) center / calc(100% - 2 * var(--lc) + 2px) calc(100% - 2 * var(--lc) + 2px) no-repeat;
  mask:
    var(--lc-t) left top / var(--lcw) var(--lc) repeat-x,
    var(--lc-b) left bottom / var(--lcw) var(--lc) repeat-x,
    var(--lc-l) left top / var(--lc) var(--lcw) repeat-y,
    var(--lc-r) right top / var(--lc) var(--lcw) repeat-y,
    linear-gradient(#000 0 0) center / calc(100% - 2 * var(--lc) + 2px) calc(100% - 2 * var(--lc) + 2px) no-repeat;
  outline: var(--hair) dashed rgb(176 92 112 / .35);
  outline-offset: calc(-44 * var(--u));
}
.decor-coquette .label { font-weight: 500; font-size: calc(22 * var(--u)); --ls: calc(8 * var(--u)); }
.decor-coquette .script { font-size: calc(118 * var(--u) * var(--script-scale)); }
.decor-coquette .btn { border-radius: 999px; }
.decor-coquette .player { background: transparent; border: 0; }
.decor-coquette .sec-cover { padding-top: calc(var(--cy) + 110 * var(--u)); }
.decor-coquette .bl .bow { display: block; left: auto; right: calc(-110 * var(--u)); top: calc(-90 * var(--u)); width: calc(240 * var(--u)); transform: rotate(16deg); }
.decor-coquette .bl-please { color: var(--c-accent); }
.decor-coquette .bl-l { font-style: italic; }
/* a strand of pearls as the divider */
.decor-coquette .st-orn i, .decor-coquette .ornament {
  width: calc(460 * var(--u));
  height: calc(30 * var(--u));
  border: 0;
  -webkit-mask: none;
  mask: none;
  background: radial-gradient(circle at 36% 34%, #fff 0 8%, #F7ECEA 30%, #D9C3C0 62%, rgb(180 150 150 / .0) 66%) 0 50% / calc(30 * var(--u)) calc(30 * var(--u)) repeat-x;
}
.decor-coquette .ornament > * { display: none; }
/* prints held by little bows */
.decor-coquette .print { padding: calc(16 * var(--u)); }
.decor-coquette .pc-corners { display: block; position: absolute; z-index: 1; left: 50%; top: calc(-70 * var(--u)); width: calc(150 * var(--u)); aspect-ratio: 1; transform: translateX(-50%) rotate(-6deg); background: url("../assets/decor/coquette/bow-blush.jpg") center / contain no-repeat; mix-blend-mode: multiply; }
.decor-coquette .print.p2 .pc-corners { transform: translateX(-50%) rotate(8deg); }
.decor-coquette .bg-dark .tli { color: var(--c-onDark); }

/* ───────── Bordeaux: burgundy velvet, candlelight and antique gold ───────── */
html:has(.decor-bordeaux) { background: var(--page-bg); }
.decor-bordeaux .sec {
  background:
    radial-gradient(ellipse 120% 60% at 50% 0%, rgb(255 255 255 / .07), transparent 70%),
    radial-gradient(ellipse 120% 60% at 50% 100%, rgb(0 0 0 / .35), transparent 70%),
    var(--c-bg);
}
.decor-bordeaux .sec.bg-alt { background: radial-gradient(ellipse 120% 70% at 50% 50%, rgb(255 255 255 / .05), transparent 70%), var(--c-alt); }
.decor-bordeaux .sec-cover::after, .decor-bordeaux .sec-rsvp::after { /* gold filigree in all four corners */
  content: "";
  position: absolute;
  inset: calc(24 * var(--u));
  z-index: 0;
  background:
    url("../assets/decor/bordeaux/filigree-tl.jpg") left top / 36% auto no-repeat,
    url("../assets/decor/bordeaux/filigree-tr.jpg") right top / 36% auto no-repeat,
    url("../assets/decor/bordeaux/filigree-bl.jpg") left bottom / 36% auto no-repeat,
    url("../assets/decor/bordeaux/filigree-br.jpg") right bottom / 36% auto no-repeat;
  mix-blend-mode: screen;
  pointer-events: none;
}
.decor-bordeaux .sec-cover > *, .decor-bordeaux .sec-rsvp > * { position: relative; z-index: 1; }
.decor-bordeaux .sec-cover::before { /* candlelight bokeh (replaces the velvet grain here) */
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 1;
  mix-blend-mode: screen;
  background:
    radial-gradient(circle at 14% 9%, rgb(255 196 120 / .38) 0 1.4%, transparent 3.2%),
    radial-gradient(circle at 82% 6%, rgb(255 210 140 / .3) 0 2%, transparent 4.2%),
    radial-gradient(circle at 70% 15%, rgb(255 180 110 / .22) 0 1%, transparent 2.6%),
    radial-gradient(circle at 28% 20%, rgb(255 200 130 / .2) 0 2.4%, transparent 5%),
    radial-gradient(circle at 90% 26%, rgb(255 190 120 / .18) 0 1.6%, transparent 3.6%),
    radial-gradient(circle at 6% 34%, rgb(255 205 140 / .16) 0 2.2%, transparent 4.6%),
    radial-gradient(ellipse 90% 40% at 50% 0%, rgb(255 170 90 / .14), transparent 70%);
  pointer-events: none;
}
.decor-bordeaux .label { font-family: var(--f-sans); font-weight: 500; font-size: calc(23 * var(--u)); --ls: calc(8 * var(--u)); }
.decor-bordeaux .script, .decor-bordeaux .names, .decor-bordeaux .bl-l, .decor-bordeaux .rg-date, .decor-bordeaux .signoff span, .decor-bordeaux .st-sign span {
  background: var(--foil);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.decor-bordeaux .script, .decor-bordeaux .names { padding: 0 .2em; }
.decor-bordeaux .rg-date small { -webkit-text-fill-color: var(--c-muted); }
.decor-bordeaux .names .amp { -webkit-text-fill-color: var(--c-accent); }
.decor-bordeaux .ornament { width: calc(560 * var(--u)); height: calc(140 * var(--u)); background: url("../assets/decor/bordeaux/filigree-divider.jpg") center / contain no-repeat; mix-blend-mode: screen; }
.decor-bordeaux .ornament > * { display: none; }
.decor-bordeaux .btn { border-radius: 0; border-color: var(--c-accent); color: var(--c-ink); }
.decor-bordeaux a.btn:hover { color: var(--c-dark); }
.decor-bordeaux .btn.solid-ink { background: var(--foil); border: 0; color: var(--c-dark); }
.decor-bordeaux .play { background: var(--foil); color: var(--c-dark); }
.decor-bordeaux .player { background: rgb(0 0 0 / .18); border-color: rgb(212 175 106 / .5); border-radius: 0; }
.decor-bordeaux .wave i { background: rgb(255 240 225 / .2); }
.decor-bordeaux .cd { background: rgb(0 0 0 / .2); }
.decor-bordeaux .rg-count .cd { background: none; }
.decor-bordeaux .duo-b-wrap::before { border-color: var(--c-accent); }
.decor-bordeaux .rp input, .decor-bordeaux .rp select, .decor-bordeaux .rp textarea { color: var(--c-ink); }
.decor-bordeaux .rp .rp-guests select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23ffffff' stroke-opacity='.7' stroke-width='1.2'/%3E%3C/svg%3E"); }
.decor-bordeaux .rsvp-form ::placeholder { color: rgb(255 240 225 / .55); }
.decor-coquette .cameo-lace { filter: drop-shadow(0 0 1px rgb(176 92 112 / .55)) drop-shadow(0 calc(8 * var(--u)) calc(12 * var(--u)) rgb(176 92 112 / .22)); }
.bl-please { left: calc(-120 * var(--u)); top: calc(178 * var(--u)); text-shadow: 0 0 calc(10 * var(--u)) var(--paper, var(--c-bg)), 0 0 calc(22 * var(--u)) var(--paper, var(--c-bg)), 0 0 calc(34 * var(--u)) var(--paper, var(--c-bg)); }
.decor-mono .script { font-size: calc(122 * var(--u) * var(--script-scale)); }
.decor-bordeaux .st-q, .decor-bordeaux .rsvp-privacy { font-family: var(--f-serif); font-size: calc(28 * var(--u)); }

/* ═════════════════════ signature family: Veil, Porcelain, Supper Club ═════════════════════
   Calm, one-idea designs. Raster art is laid on with multiply (white = paper colour). */
.silk { position: absolute; display: block; background: center / contain no-repeat; mix-blend-mode: multiply; pointer-events: none; }
.medal { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; width: calc(420 * var(--u)); aspect-ratio: 1; margin: calc(30 * var(--u)) auto calc(10 * var(--u)); }
.medal::before { content: ""; position: absolute; inset: 0; border: var(--hair) solid var(--c-accent); border-radius: 50%; }
.medal span { position: relative; font-family: var(--f-sans); font-weight: 500; font-size: calc(22 * var(--u)); letter-spacing: calc(7 * var(--u)); padding-left: calc(7 * var(--u)); text-transform: uppercase; color: var(--c-muted); }
.medal b { position: relative; margin: calc(6 * var(--u)) 0; font-family: var(--f-serif); font-weight: 500; font-size: calc(150 * var(--u)); line-height: 1; color: var(--c-accent); }
.v-medallion .medal + .st-text { margin-top: calc(20 * var(--u)); }
.pt { position: relative; margin: calc(40 * var(--u)) calc(30 * var(--u)) 0; }
.pt-img { position: relative; z-index: 1; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; box-shadow: 0 calc(16 * var(--u)) calc(34 * var(--u)) rgb(60 40 30 / .16); }
.pt.b { width: 60%; margin: calc(80 * var(--u)) calc(30 * var(--u)) 0 auto; }
.v-portrait .pt + .st-text { margin-top: calc(80 * var(--u)); }

/* ───────── Veil: ivory silk and pearls ───────── */
html:has(.decor-veil) { background: var(--page-bg); }
.decor-veil {
  --silk-top: url("../assets/decor/veil/silk-top.jpg");
  --silk-bottom: url("../assets/decor/veil/silk-bottom.jpg");
  --pearls: url("../assets/decor/veil/pearls.jpg");
}
.decor-veil .sec { isolation: isolate; }
.decor-veil .label { font-weight: 500; font-size: calc(22 * var(--u)); --ls: calc(9 * var(--u)); }
.decor-veil .script { font-family: var(--f-serif); font-style: italic; font-weight: 400; font-size: calc(100 * var(--u)); line-height: 1.12; letter-spacing: -0.01em; }
.decor-veil .btn { border-radius: 0; border-color: var(--c-accent); }
.decor-veil .player { background: transparent; border: 0; }
.decor-veil .cal-icon { background: transparent; }
.v-veil { display: flex; flex-direction: column; justify-content: center; min-height: calc(2050 * var(--u)); padding: calc(470 * var(--u)) calc(110 * var(--u)) calc(560 * var(--u)); }
.silk-top { left: -8%; right: -8%; top: 0; aspect-ratio: 3 / 2; background-image: var(--silk-top); background-size: 100% auto; background-position: center top; }
.silk-bottom { right: -4%; bottom: 0; width: 78%; aspect-ratio: 4 / 5; background-image: var(--silk-bottom); background-position: right bottom; -webkit-mask: linear-gradient(90deg, transparent, #000 30%); mask: linear-gradient(90deg, transparent, #000 30%); }
.vw { position: relative; } /* no z-index: the pearls must multiply with the section */
.vw-names { margin: calc(34 * var(--u)) 0 0; font-family: var(--f-serif); font-weight: 400; font-size: calc(var(--nm) * var(--u)); line-height: 1; letter-spacing: -0.015em; overflow-wrap: anywhere; }
.vw-names span { display: block; }
.vw-names .amp { margin: calc(16 * var(--u)) 0 calc(12 * var(--u)); font-size: calc(62 * var(--u)); }
.pearls { display: block; width: calc(520 * var(--u)); aspect-ratio: 4 / 1; margin: calc(16 * var(--u)) auto calc(26 * var(--u)); background: var(--pearls) center / contain no-repeat; mix-blend-mode: multiply; }
.vw-date { font-family: var(--f-serif); font-size: calc(46 * var(--u)); line-height: 1.3; }
.vw-time { margin: calc(10 * var(--u)) 0 calc(26 * var(--u)); font-family: var(--f-sans); font-weight: 500; font-size: calc(22 * var(--u)); letter-spacing: calc(7 * var(--u)); text-transform: uppercase; color: var(--c-muted); }
.decor-veil .st-orn i { width: calc(440 * var(--u)); height: calc(110 * var(--u)); background: var(--pearls) center / contain no-repeat; -webkit-mask: none; mask: none; mix-blend-mode: multiply; }
.pt-silk { left: -34%; bottom: -26%; z-index: -1; width: 92%; aspect-ratio: 4 / 5; background-image: var(--silk-bottom); background-position: right bottom; transform: scaleX(-1); }
/* the timeline is a stitched seam with a pearl at every moment */
.decor-veil .tline::before { border-left: calc(2 * var(--u)) dashed rgb(118 96 79 / .5); border-left: calc(2 * var(--u)) dashed color-mix(in srgb, var(--c-accent) 50%, transparent); }
.decor-veil .tline li::before {
  width: calc(30 * var(--u));
  height: calc(30 * var(--u));
  background: radial-gradient(circle at 35% 30%, #fff 0 12%, #F5EFE7 34%, #DDD1C2 70%, #C3B39F 100%);
  box-shadow: 0 calc(2 * var(--u)) calc(4 * var(--u)) rgb(60 40 30 / .25), 0 0 0 calc(8 * var(--u)) var(--line-gap, var(--c-bg));
}
.decor-veil .tli { color: var(--c-accent); }
/* dress code: tall satin swatches with a sheen */
.decor-veil .chips { gap: calc(18 * var(--u)); filter: drop-shadow(0 calc(6 * var(--u)) calc(8 * var(--u)) rgb(60 40 30 / .18)); }
.decor-veil .chips i, .decor-veil .chips i:nth-child(odd), .decor-veil .chips i:nth-child(even) {
  width: calc(94 * var(--u));
  height: calc(230 * var(--u));
  margin: 0;
  border-radius: calc(4 * var(--u));
  transform: none;
  -webkit-mask: none;
  mask: none;
  background: linear-gradient(100deg, rgb(255 255 255 / 0) 18%, rgb(255 255 255 / .5) 36%, rgb(255 255 255 / 0) 52%, rgb(0 0 0 / .08) 82%), var(--chip);
}
/* the envelope: ivory, lined with silk, closed with a pearl */
.decor-veil .wax {
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 28%, #fff 0 10%, #F7F1E9 30%, #E4D8CA 64%, #C9B8A4 100%);
  box-shadow: 0 4px 10px rgb(60 40 30 / .3), inset 0 -3px 6px rgb(120 96 79 / .25);
}
.decor-veil .wax::before { content: none; }
.decor-veil .wax::after { inset: 14%; border: 1px solid rgb(118 96 79 / .35); box-shadow: none; }
.decor-veil .wax b { color: #8A7563; text-shadow: 0 1px 0 rgb(255 255 255 / .8); }

/* ───────── Porcelain: blue-and-white china ───────── */
html:has(.decor-porcelain) { background: var(--page-bg); }
.decor-porcelain {
  --plate: url("../assets/decor/porcelain/plate.jpg");
  --brush: url("../assets/decor/porcelain/sprig.jpg");
}
.decor-porcelain .sec { isolation: isolate; }
.decor-porcelain .label { font-weight: 500; font-size: calc(22 * var(--u)); --ls: calc(8 * var(--u)); }
.decor-porcelain .script { font-family: var(--f-serif); font-style: italic; font-weight: 500; font-size: calc(110 * var(--u)); line-height: 1.1; color: var(--c-accent); }
.decor-porcelain .bg-dark .script { color: var(--c-onDark); }
.decor-porcelain .btn { border-radius: 999px; border-color: var(--c-accent); color: var(--c-accent); }
.decor-porcelain .bg-dark .btn { border-color: var(--c-onDarkAccent); color: var(--c-onDark); }
.decor-porcelain .btn.solid-ink { background: var(--c-accent); border-color: var(--c-accent); color: #fff; }
.v-plate { padding-left: calc(80 * var(--u)); padding-right: calc(80 * var(--u)); }
.plate { position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 1; margin: calc(30 * var(--u)) 0 calc(10 * var(--u)); }
.plate::before, .decor-porcelain .medal::before { content: ""; position: absolute; inset: 0; border: 0; border-radius: 0; background: var(--plate) center / contain no-repeat; mix-blend-mode: multiply; }
.plate-in { position: relative; width: 64%; }
.pl-pre { margin-bottom: calc(14 * var(--u)); font-family: var(--f-serif); font-style: italic; font-size: calc(36 * var(--u)); color: var(--c-muted); }
.pl-names { font-family: var(--f-serif); font-style: italic; font-weight: 500; font-size: calc(var(--nm) * var(--u)); line-height: 1.02; color: var(--c-accent); overflow-wrap: anywhere; }
.pl-names span { display: block; }
.pl-names .amp { margin: calc(6 * var(--u)) 0; font-size: calc(60 * var(--u)); color: var(--c-soft); }
.decor-porcelain .medal { width: calc(470 * var(--u)); }
.decor-porcelain .st-orn i { width: calc(420 * var(--u)); height: calc(140 * var(--u)); background: var(--brush) center / contain no-repeat; -webkit-mask: none; mask: none; mix-blend-mode: multiply; }
.decor-porcelain .bg-dark .st-orn i { background: var(--c-onDarkAccent); mix-blend-mode: normal; }
.decor-porcelain .player { background: #fff; border-color: var(--c-soft); }
.decor-porcelain .play { box-shadow: 0 0 0 calc(9 * var(--u)) #fff, 0 0 0 calc(11 * var(--u)) var(--c-soft), 0 0 0 calc(20 * var(--u)) #fff, 0 0 0 calc(21.5 * var(--u)) var(--c-soft); }
.decor-porcelain .print, .decor-porcelain .print.p1 { padding: calc(14 * var(--u)); background: #fff; border: var(--hair) solid var(--c-accent); box-shadow: none; transform: none; }
.decor-porcelain .print.p2 { margin-top: 42%; transform: none; box-shadow: 0 0 0 calc(12 * var(--u)) var(--c-bg); }
.decor-porcelain .tli { color: var(--c-accent); }
.decor-porcelain .bg-dark .tli { color: var(--c-onDark); }
.decor-porcelain .tline::before { border-left-color: var(--c-soft); }
.decor-porcelain .tline li::before { width: calc(26 * var(--u)); height: calc(24 * var(--u)); border-radius: 52% 48% 55% 45% / 45% 55% 48% 52%; }
/* dress code: glazed colour discs with a white rim */
.decor-porcelain .chips { gap: calc(30 * var(--u)); filter: none; }
.decor-porcelain .chips i, .decor-porcelain .chips i:nth-child(odd), .decor-porcelain .chips i:nth-child(even) {
  width: calc(104 * var(--u));
  height: calc(104 * var(--u));
  margin: 0;
  border-radius: 50%;
  transform: none;
  -webkit-mask: none;
  mask: none;
  background: radial-gradient(circle at 34% 30%, rgb(255 255 255 / .75) 0 9%, transparent 30%), var(--chip);
  box-shadow: inset 0 calc(-6 * var(--u)) calc(10 * var(--u)) rgb(0 0 0 / .12), 0 0 0 calc(6 * var(--u)) #fff, 0 0 0 calc(8 * var(--u)) var(--c-soft), 0 calc(6 * var(--u)) calc(12 * var(--u)) rgb(32 49 76 / .18);
}

/* ───────── Supper Club: a dinner-party menu card ───────── */
html:has(.decor-supper) { background: var(--page-bg); }
.decor-supper .label { font-weight: 500; font-size: calc(22 * var(--u)); --ls: calc(8 * var(--u)); }
.decor-supper .script { font-family: var(--f-serif); font-style: italic; font-weight: 400; }
.decor-supper .sec-cover::after, .decor-supper .sec-schedule::after { /* the menu's red double rule */
  content: "";
  position: absolute;
  inset: calc(54 * var(--u));
  border: calc(4 * var(--u)) solid var(--c-accent);
  box-shadow: inset 0 0 0 calc(12 * var(--u)) var(--c-bg), inset 0 0 0 calc(14 * var(--u)) var(--c-accent);
  pointer-events: none;
}
.decor-supper .sec-schedule.bg-alt::after { box-shadow: inset 0 0 0 calc(12 * var(--u)) var(--c-alt), inset 0 0 0 calc(14 * var(--u)) var(--c-accent); }
.v-menu { display: flex; flex-direction: column; justify-content: center; min-height: calc(1960 * var(--u)); padding: calc(200 * var(--u)) calc(150 * var(--u)); }
.mn { position: relative; z-index: 1; }
.mn-top { padding-left: calc(9 * var(--u)); font-family: var(--f-sans); font-weight: 500; font-size: calc(25 * var(--u)); letter-spacing: calc(9 * var(--u)); text-transform: uppercase; color: var(--c-accent); }
.mn-pre { margin-top: calc(80 * var(--u)); font-family: var(--f-serif); font-style: italic; font-size: calc(38 * var(--u)); color: var(--c-muted); }
.mn-names { margin: calc(20 * var(--u)) 0 0; font-family: var(--f-serif); font-weight: 400; font-size: calc(var(--nm) * var(--u)); line-height: .98; letter-spacing: -0.025em; overflow-wrap: anywhere; }
.mn-names span { display: block; }
.mn-names .amp { margin: calc(12 * var(--u)) 0 calc(8 * var(--u)); font-size: calc(76 * var(--u)); }
.coupes { display: block; width: calc(270 * var(--u)); margin: calc(54 * var(--u)) auto calc(46 * var(--u)); color: var(--c-accent); }
.coupes svg { display: block; width: 100%; height: auto; }
.mn-date { font-family: var(--f-serif); font-style: italic; font-size: calc(56 * var(--u)); line-height: 1.2; }
.mn-year { margin: calc(12 * var(--u)) 0 calc(36 * var(--u)); padding-left: calc(7 * var(--u)); font-family: var(--f-sans); font-weight: 500; font-size: calc(23 * var(--u)); letter-spacing: calc(7 * var(--u)); text-transform: uppercase; color: var(--c-muted); }
/* editorial pieces, dressed as a menu: N° 01 courses, a menu with dotted leaders */
.decor-supper .kicker { color: var(--c-olive, var(--c-accent)); letter-spacing: calc(6 * var(--u)); }
.decor-supper .bg-dark .kicker { color: var(--c-onDarkAccent); }
.decor-supper .kicker:not(.plain)::before { content: "N° " attr(data-n); font-size: calc(38 * var(--u)); color: var(--c-accent); }
.decor-supper .bg-dark .kicker:not(.plain)::before { color: var(--c-onDarkAccent); }
.decor-supper .headline { font-size: calc(104 * var(--u)); letter-spacing: -0.025em; }
.decor-supper .bignum { color: var(--c-accent); }
.decor-supper .dropcap::first-letter { font-style: italic; }
.decor-supper .v-agenda { padding: calc(190 * var(--u)) calc(150 * var(--u)); }
.decor-supper .agenda { border: 0; }
.decor-supper .agenda li { grid-template-columns: auto 1fr auto; grid-template-areas: "what dots time" "desc desc desc"; column-gap: calc(14 * var(--u)); row-gap: calc(4 * var(--u)); padding: calc(26 * var(--u)) 0; border: 0; }
.decor-supper .agenda li > div { display: contents; }
.decor-supper .agenda li::before { content: ""; grid-area: dots; align-self: end; margin-bottom: calc(14 * var(--u)); border-bottom: calc(3 * var(--u)) dotted rgb(56 45 39 / .35); border-bottom: calc(3 * var(--u)) dotted color-mix(in srgb, var(--c-ink) 35%, transparent); }
.decor-supper .agenda b { grid-area: what; font-family: var(--f-serif); font-weight: 400; font-size: calc(44 * var(--u)); letter-spacing: 0; text-transform: none; }
.decor-supper .agenda time { grid-area: time; font-family: var(--f-sans); font-weight: 500; font-size: calc(26 * var(--u)); letter-spacing: calc(3 * var(--u)); color: var(--c-accent); }
.decor-supper .agenda span { grid-area: desc; font-family: var(--f-serif); font-style: italic; font-size: calc(33 * var(--u)); color: var(--c-muted); }
.decor-supper .btn { border-radius: 0; border-color: var(--c-accent); }
.decor-supper .btn.ink { background: var(--c-accent); border-color: var(--c-accent); color: var(--c-bg); }
.decor-supper .bg-dark .btn { border-color: var(--c-onDarkAccent); }
.decor-supper .play { background: var(--c-accent); }
.decor-supper .player { background: transparent; border-radius: 0; border-color: rgb(164 61 48 / .35); }
.decor-supper .signoff span { font-style: italic; }

.decor-porcelain .st-sign span { font-style: italic; color: var(--c-accent); }

/* ═════════════════════ concept previews: Calla, Moonrise, Stillwater ═════════════════════
   (lost in commit cf82562 together with the CSS-drawn envelope; restored 2026-11-18) */
/* ───────── Calla ───────── */
html:has(.decor-calla) { background: var(--page-bg); }
.decor-calla .label { font-weight: 500; font-size: calc(22 * var(--u)); --ls: calc(8 * var(--u)); }
.decor-calla .script { font-family: var(--f-serif); font-style: italic; font-weight: 400; font-size: calc(104 * var(--u)); }
.decor-calla .btn { border-radius: 0; border-color: var(--c-accent); }
.decor-calla .tli { color: var(--c-onDarkAccent); }
.decor-calla .tline li::before { width: calc(18 * var(--u)); height: calc(30 * var(--u)); border-radius: 50%; }
.v-calla { padding: 0; text-align: left; }
.cl-top { padding: calc(150 * var(--u)) calc(110 * var(--u)) calc(150 * var(--u)); }
.cl-top .label { padding-left: 0; }
.cl-names { margin: calc(26 * var(--u)) 0 calc(40 * var(--u)); font-family: var(--f-serif); font-weight: 500; font-size: calc(var(--nm) * var(--u)); line-height: .98; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.cl-names span { display: block; }
.cl-names .amp { margin: calc(10 * var(--u)) 0; font-size: calc(70 * var(--u)); }
.cl-date { font-family: var(--f-sans); font-weight: 500; font-size: calc(26 * var(--u)); line-height: 1.7; letter-spacing: calc(6 * var(--u)); text-transform: uppercase; color: var(--c-accent); }
.cl-base { position: relative; display: flex; align-items: flex-end; min-height: calc(820 * var(--u)); padding: calc(110 * var(--u)); background: var(--c-accent); color: var(--c-onDark); }
.callas { position: absolute; right: calc(-30 * var(--u)); bottom: 0; width: calc(620 * var(--u)); aspect-ratio: 2 / 3; background: url("../assets/decor/calla/callas.png") right bottom / contain no-repeat; pointer-events: none; }
.cl-venue { position: relative; max-width: 52%; font-family: var(--f-serif); font-size: calc(46 * var(--u)); line-height: 1.2; }
.cl-venue span { display: block; margin-top: calc(14 * var(--u)); font-family: var(--f-sans); font-size: calc(22 * var(--u)); letter-spacing: calc(6 * var(--u)); text-transform: uppercase; color: var(--c-onDarkAccent); }

/* ───────── Moonrise ───────── */
html:has(.decor-moon) { background: var(--page-bg); }
.decor-moon .label { font-weight: 400; font-size: calc(22 * var(--u)); --ls: calc(9 * var(--u)); }
.decor-moon .script { font-family: var(--f-serif); font-size: calc(96 * var(--u)); letter-spacing: .01em; }
.decor-moon .btn { border-radius: 999px; border-color: var(--c-accent); color: var(--c-ink); }
.decor-moon .btn.solid-ink { background: var(--c-ink); color: var(--c-bg); }
.decor-moon .player { background: rgb(255 255 255 / .04); border-color: rgb(208 188 150 / .4); }
.decor-moon .wave i { background: rgb(244 240 230 / .2); }
.decor-moon .play { color: var(--c-bg); }
.v-moon { padding-top: calc(130 * var(--u)); }
.orbit { position: absolute; left: 0; top: 0; width: 100%; height: auto; fill: none; stroke: var(--c-accent); stroke-width: 1.4; opacity: .45; pointer-events: none; }
.moon { position: relative; display: block; width: calc(560 * var(--u)); aspect-ratio: 1; margin: 0 auto calc(80 * var(--u)); background: url("../assets/decor/moon/moon.jpg") center / contain no-repeat; mix-blend-mode: screen; }
.mo-names { margin: calc(26 * var(--u)) 0 calc(30 * var(--u)); font-family: var(--f-serif); font-weight: 400; font-size: calc(var(--nm) * var(--u)); line-height: 1.04; overflow-wrap: anywhere; }
.mo-names span { display: block; }
.mo-names .amp { margin: calc(8 * var(--u)) 0; font-family: var(--f-serif); font-style: normal; font-size: calc(60 * var(--u)); }
.mo-date { margin-bottom: calc(20 * var(--u)); font-family: var(--f-sans); font-size: calc(26 * var(--u)); letter-spacing: calc(4 * var(--u)); text-transform: uppercase; }
.decor-moon .medal::before { border: 0; box-shadow: inset calc(34 * var(--u)) calc(-12 * var(--u)) 0 0 rgb(208 188 150 / .85); }
.decor-moon .tline li::before { background: #F4F0E6; box-shadow: 0 0 calc(12 * var(--u)) calc(3 * var(--u)) rgb(244 240 230 / .45), 0 0 0 calc(8 * var(--u)) var(--line-gap, var(--c-bg)); }
.decor-moon .tli { color: var(--c-accent); }

/* ───────── Stillwater ───────── */
html:has(.decor-lake) { background: var(--page-bg); }
.decor-lake .sec { isolation: isolate; }
.decor-lake .label { font-weight: 600; font-size: calc(22 * var(--u)); --ls: calc(8 * var(--u)); }
.decor-lake .script { font-family: var(--f-serif); font-style: italic; font-weight: 400; font-size: calc(98 * var(--u)); }
.decor-lake .btn { border-radius: 999px; border-color: var(--c-accent); }
.decor-lake .tli { color: var(--c-accent); }
.v-lake { padding-bottom: 0; }
.lk-names { margin: calc(30 * var(--u)) 0 calc(36 * var(--u)); font-family: var(--f-serif); font-weight: 400; font-size: calc(var(--nm) * var(--u)); line-height: 1.04; overflow-wrap: anywhere; }
.lk-names span { display: block; }
.lk-names .amp { margin: calc(8 * var(--u)) 0; font-size: calc(62 * var(--u)); }
.lk-date { margin-bottom: calc(18 * var(--u)); font-family: var(--f-serif); font-size: calc(40 * var(--u)); }
.landscape { display: block; margin: calc(20 * var(--u)) calc(-110 * var(--u)) 0; aspect-ratio: 4 / 3; background: url("../assets/decor/lake/landscape.jpg") center bottom / 100% auto no-repeat; mix-blend-mode: multiply; }
.decor-lake .sec-rsvp { padding-bottom: calc(400 * var(--u)); }
.decor-lake .sec-rsvp::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; aspect-ratio: 4 / 1; background: url("../assets/decor/lake/shore.jpg") center bottom / 100% auto no-repeat; mix-blend-mode: multiply; pointer-events: none; }

/* ═════════════════════ attire family: the couple drawn in their wedding clothes ═════════════════════ */
html:has(.decor-attire) { background: var(--page-bg); }
.decor-attire .sec { isolation: isolate; }
.decor-attire .label { font-weight: 500; font-size: calc(22 * var(--u)); --ls: calc(8 * var(--u)); }
.decor-attire .btn { border-radius: 999px; border-color: var(--c-accent); }
.decor-attire .tli { color: var(--c-accent); }
.v-attire { padding-top: calc(110 * var(--u)); }
.at { position: relative; margin: calc(10 * var(--u)) calc(-60 * var(--u)) 0; }
.at-art { display: block; width: 100%; aspect-ratio: 2 / 3; background: var(--art-attire) center / contain no-repeat; mix-blend-mode: multiply; }
.at-names { position: relative; margin: calc(-120 * var(--u)) 0 calc(20 * var(--u)); font-size: calc(var(--nm) * var(--u) * var(--script-scale) * .8); line-height: 1.02; overflow-wrap: anywhere; }
.at-names span { display: block; }
.at-names .amp { margin: calc(-2 * var(--u)) 0 calc(4 * var(--u)); }
.decor-couture .at-names, .decor-couture .script { font-style: italic; }
.decor-couture .v-attire::after { content: ""; position: absolute; inset: calc(40 * var(--u)); border: var(--hair) solid var(--c-accent); pointer-events: none; }
.decor-modern .at-names { font-family: var(--f-serif); font-weight: 400; letter-spacing: -0.02em; }
.decor-modern .script { font-family: var(--f-serif); font-weight: 400; letter-spacing: -0.02em; }
.decor-modern .btn { border-radius: 0; }

/* ═════════════════════ photo-cover family: the couple's photo fills the cover ═════════════════════
   Each design keeps the text readable on ANY photo (light, dark, colour, black & white). */
.pc-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pc-bg.ph { position: absolute; }
.decor-photo .label { font-weight: 500; font-size: calc(22 * var(--u)); --ls: calc(8 * var(--u)); }
.decor-photo .btn { border-radius: 999px; border-color: var(--c-accent); }
.decor-photo .tli { color: var(--c-accent); }
.decor-photo .bg-dark .tli { color: var(--c-onDarkAccent); }
html:has(.decor-photo) { background: var(--page-bg); }

/* Frost: a frosted-glass panel in the lower half */
.v-frost { display: flex; flex-direction: column; justify-content: flex-end; min-height: 100svh; min-height: calc(1900 * var(--u)); padding: calc(80 * var(--u)) calc(60 * var(--u)) calc(70 * var(--u)); }
.fr-panel { position: relative; padding: calc(70 * var(--u)) calc(60 * var(--u)) calc(60 * var(--u)); border: 1px solid rgb(255 255 255 / .3); border-radius: calc(36 * var(--u)); background: rgb(255 255 255 / .74); color: var(--c-ink); box-shadow: 0 calc(10 * var(--u)) calc(40 * var(--u)) rgb(0 0 0 / .08), inset 0 1px 0 rgb(255 255 255 / .35); }
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  /* light glass: the photo shows through in colour; it is blurred and lifted behind the
     panel so dark text stays readable on dark photos too */
  .fr-panel { background: radial-gradient(ellipse 70% 60% at 50% 52%, rgb(255 255 255 / .46), rgb(255 255 255 / .14) 100%); -webkit-backdrop-filter: blur(16px) saturate(1.3) brightness(1.3); backdrop-filter: blur(16px) saturate(1.3) brightness(1.3); }
  .fr-panel .label, .fr-panel .fr-date, .fr-panel .place { text-shadow: 0 0 calc(18 * var(--u)) rgb(255 255 255 / .9), 0 0 calc(6 * var(--u)) rgb(255 255 255 / .7); }
}
.fr-names { margin: calc(10 * var(--u)) 0 calc(20 * var(--u)); font-size: calc(var(--nm) * var(--u) * var(--script-scale) * .75); line-height: 1.02; overflow-wrap: anywhere; }
.fr-names span { display: block; }
.fr-date { margin-bottom: calc(14 * var(--u)); font-family: var(--f-sans); font-weight: 500; font-size: calc(24 * var(--u)); letter-spacing: calc(4 * var(--u)); text-transform: uppercase; }

/* Duotone: the photo recoloured into the theme's dark + light colours */
.v-duotone { padding: 0; }
.duo-photo { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--c-dark); isolation: isolate; }
.duo-photo .pc-bg { filter: grayscale(1) contrast(1.15) brightness(1.05); mix-blend-mode: luminosity; }
.duo-photo::before { content: ""; position: absolute; inset: 0; z-index: 1; background: var(--c-accent); mix-blend-mode: multiply; pointer-events: none; }
.duo-photo::after { content: ""; position: absolute; inset: 0; z-index: 2; background: var(--c-dark); mix-blend-mode: lighten; pointer-events: none; }
.duo-text { padding: calc(90 * var(--u)) calc(110 * var(--u)) calc(110 * var(--u)); text-align: left; }
.duo-text .label { padding-left: 0; }
.duo-names { margin: calc(16 * var(--u)) 0 calc(36 * var(--u)); font-family: var(--f-serif); font-weight: 500; font-size: calc(var(--nm) * var(--u)); line-height: .95; letter-spacing: -0.03em; text-transform: uppercase; overflow-wrap: anywhere; }
.duo-names span { display: block; }
.duo-names .amp { margin: calc(8 * var(--u)) 0; font-size: calc(70 * var(--u)); text-transform: none; }
.duo-date { margin-bottom: calc(20 * var(--u)); font-family: var(--f-sans); font-size: calc(26 * var(--u)); letter-spacing: calc(3 * var(--u)); text-transform: uppercase; }
.duo-date b { display: block; margin-bottom: calc(8 * var(--u)); font-family: var(--f-serif); font-weight: 400; font-size: calc(96 * var(--u)); letter-spacing: 0; color: var(--c-accent); }
.v-duotone .place { text-align: left; padding-left: 0; }

/* Cinema: letterbox bars and an opening title */
.v-cinema { display: flex; flex-direction: column; justify-content: center; min-height: 100svh; min-height: calc(1900 * var(--u)); padding: 0; background: #000; color: #fff; }
.v-cinema .pc-bg { filter: brightness(.82); }
.v-cinema::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at center, transparent 30%, rgb(0 0 0 / .55) 100%), linear-gradient(transparent 45%, rgb(0 0 0 / .7)); pointer-events: none; }
.cn-bar { position: absolute; left: 0; right: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; height: calc(150 * var(--u)); padding: 0 calc(70 * var(--u)); background: #000; font-family: var(--f-sans); font-size: calc(21 * var(--u)); letter-spacing: calc(7 * var(--u)); text-transform: uppercase; color: rgb(255 255 255 / .75); }
.cn-bar.top { top: 0; }
.cn-bar.bottom { bottom: 0; justify-content: center; }
.cn-title { position: relative; z-index: 1; margin-top: auto; padding: 0 calc(80 * var(--u)) calc(260 * var(--u)); text-shadow: 0 2px 18px rgb(0 0 0 / .5); }
.cn-pre { font-family: var(--f-serif); font-style: italic; font-size: calc(40 * var(--u)); color: rgb(255 255 255 / .8); }
.cn-names { margin: calc(10 * var(--u)) 0 calc(24 * var(--u)); font-family: var(--f-serif); font-weight: 400; font-size: calc(var(--nm) * var(--u)); line-height: 1; letter-spacing: .08em; text-transform: uppercase; overflow-wrap: anywhere; }
.cn-names span { display: block; }
.cn-names .amp { margin: calc(12 * var(--u)) 0; font-style: italic; font-size: calc(50 * var(--u)); letter-spacing: 0; text-transform: none; color: var(--c-onDarkAccent); }
.cn-date { font-family: var(--f-sans); font-size: calc(24 * var(--u)); letter-spacing: calc(8 * var(--u)); text-transform: uppercase; color: var(--c-onDarkAccent); }

/* Window: the photo inside a tall arch cut out of the page colour */
.wn { position: relative; width: calc(780 * var(--u)); aspect-ratio: 3 / 4.2; margin: 0 auto calc(64 * var(--u)); padding: calc(18 * var(--u)); border: var(--hair) solid var(--c-accent); border-radius: calc(400 * var(--u)) calc(400 * var(--u)) 0 0; }
.wn-img { width: 100%; height: 100%; object-fit: cover; border-radius: calc(382 * var(--u)) calc(382 * var(--u)) 0 0; }
.wn-names { margin: calc(10 * var(--u)) 0 calc(14 * var(--u)); font-size: calc(var(--nm) * var(--u) * var(--script-scale) * .8); line-height: 1.02; overflow-wrap: anywhere; }
.wn-names span { display: block; }

/* Blur frame: the photo blurred behind, sharp in a white print */
.v-blurframe { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: calc(1900 * var(--u)); padding: calc(140 * var(--u)) calc(100 * var(--u)); color: #fff; overflow: hidden; }
.bf-bg { filter: blur(28px) brightness(.62) saturate(1.1); transform: scale(1.2); }
.bf-print { position: relative; width: calc(720 * var(--u)); margin: 0; padding: calc(30 * var(--u)) calc(30 * var(--u)) calc(30 * var(--u)); background: var(--c-card); color: var(--c-ink); box-shadow: 0 calc(30 * var(--u)) calc(70 * var(--u)) rgb(0 0 0 / .45); transform: rotate(-1.5deg); }
.bf-img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.bf-print figcaption { padding: calc(26 * var(--u)) 0 calc(6 * var(--u)); }
.bf-names { margin: 0; font-size: calc(var(--nm) * var(--u) * var(--script-scale) * .55); line-height: 1.02; overflow-wrap: anywhere; }
.bf-names span { display: inline; }
.bf-names .amp { display: inline; margin: 0 .2em; font-size: .5em; }
.bf-date { position: relative; margin-top: calc(70 * var(--u)); font-family: var(--f-sans); font-weight: 500; font-size: calc(25 * var(--u)); letter-spacing: calc(5 * var(--u)); text-transform: uppercase; text-shadow: 0 1px 10px rgb(0 0 0 / .4); }
.bf-place { position: relative; margin-top: calc(16 * var(--u)); color: rgb(255 255 255 / .85); text-shadow: 0 1px 10px rgb(0 0 0 / .4); }
/* until the illustration exists, a quiet arch keeps the cover composed */
.at-art { background: var(--art-attire) center / contain no-repeat, radial-gradient(ellipse 34% 40% at 50% 46%, rgb(0 0 0 / .045), transparent 70%); }

/* ═════════════════════ photo-led family: Mist, Whisper, Reflection, Halo, Reel ═════════════════════
   Made to flatter ordinary photos: faces sit high (object-position 50% 30%), edges fade or
   blur away, and a light colour treatment evens out phone snapshots. */
html:has(.decor-photoled) { background: var(--page-bg); }
.decor-photoled .sec { isolation: isolate; }
.decor-photoled .label { font-weight: 500; font-size: calc(22 * var(--u)); --ls: calc(8 * var(--u)); }
.decor-photoled .btn { border-radius: 999px; border-color: var(--c-accent); }
.decor-photoled .tli { color: var(--c-accent); }
.decor-photoled .bg-dark .tli { color: var(--c-onDarkAccent); }
.decor-photoled img { object-position: 50% 30%; }

/* story.fade: a wide photo dissolving into the text, then a soft-edged vignette */
.sf { margin: calc(30 * var(--u)) calc(-110 * var(--u)) 0; }
.sf-img { width: 100%; aspect-ratio: 4 / 4.6; object-fit: cover; -webkit-mask: linear-gradient(transparent, #000 8%, #000 55%, transparent 97%); mask: linear-gradient(transparent, #000 8%, #000 55%, transparent 97%); }
.sf-text { position: relative; margin-top: calc(-170 * var(--u)); }
.sf-b { width: 78%; margin: calc(60 * var(--u)) auto calc(30 * var(--u)); }
.sf-img2 { width: 100%; aspect-ratio: 1; object-fit: cover; -webkit-mask: radial-gradient(closest-side, #000 62%, transparent 100%); mask: radial-gradient(closest-side, #000 62%, transparent 100%); }

/* rsvp.ghost: the reply card over a faint black-and-white photo */
.v-ghost > :not(.gh-bg) { position: relative; }
.gh-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .16; filter: grayscale(1) contrast(.85) brightness(1.1); mix-blend-mode: multiply; -webkit-mask: linear-gradient(transparent, #000 18%, #000 82%, transparent); mask: linear-gradient(transparent, #000 18%, #000 82%, transparent); pointer-events: none; }
.gh-bg.ph { display: none; }

/* ───────── Mist ───────── */
.v-mist { padding-top: 0; }
.ms-photo { margin: 0 calc(-110 * var(--u)); }
.ms-img { width: 100%; aspect-ratio: 4 / 5.2; object-fit: cover; filter: saturate(.88) contrast(.96) brightness(1.03); -webkit-mask: linear-gradient(#000 52%, transparent 96%); mask: linear-gradient(#000 52%, transparent 96%); }
.ms-photo .ph { aspect-ratio: 4 / 5.2; }
.ms-text { position: relative; margin-top: calc(-330 * var(--u)); }
.ms-names { margin: calc(16 * var(--u)) 0 calc(30 * var(--u)); font-family: var(--f-serif); font-weight: 400; font-size: calc(var(--nm) * var(--u)); line-height: .98; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.ms-names span { display: block; }
.ms-names .amp { margin: calc(10 * var(--u)) 0; font-family: var(--f-script); font-style: normal; font-size: calc(110 * var(--u) * var(--script-scale)); line-height: .9; color: var(--c-accent); }
.ms-date { margin-bottom: calc(18 * var(--u)); font-family: var(--f-sans); font-size: calc(24 * var(--u)); letter-spacing: calc(4 * var(--u)); text-transform: uppercase; }
.decor-mist .script { font-size: calc(132 * var(--u) * var(--script-scale)); }

/* ───────── Whisper ───────── */
.v-whisper { padding-top: calc(130 * var(--u)); }
.v-whisper::after { content: ""; position: absolute; inset: calc(46 * var(--u)); border: var(--hair) solid var(--c-accent); opacity: .6; pointer-events: none; }
.wh-bg { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; opacity: .2; filter: grayscale(1) contrast(.8) brightness(1.12); mix-blend-mode: multiply; }
.wh-bg.ph { display: none; }
.wh-oval { position: relative; width: calc(470 * var(--u)); aspect-ratio: 3 / 4; margin: calc(20 * var(--u)) auto calc(60 * var(--u)); padding: calc(14 * var(--u)); border: var(--hair) solid var(--c-accent); border-radius: 50%; }
.wh-img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; filter: saturate(.9); }
.wh-names { margin: calc(10 * var(--u)) 0 calc(10 * var(--u)); font-size: calc(var(--nm) * var(--u) * var(--script-scale) * .82); line-height: 1.02; overflow-wrap: anywhere; }
.wh-names span { display: block; }
.wh-line { font-family: var(--f-serif); font-style: italic; font-size: calc(38 * var(--u)); color: var(--c-muted); }
.decor-whisper .script { font-size: calc(124 * var(--u) * var(--script-scale)); }

/* ───────── Reflection (dark) ───────── */
.v-reflect { padding: 0 0 calc(130 * var(--u)); }
.rf { position: relative; }
.rf-img { width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover; filter: contrast(1.04) saturate(.9); }
.rf .ph { aspect-ratio: 4 / 4.4; }
.rf-water { position: relative; height: calc(560 * var(--u)); overflow: hidden; }
.rf-water::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(transparent 0 calc(9 * var(--u)), rgb(255 255 255 / .05) calc(9 * var(--u)) calc(10 * var(--u)), transparent calc(10 * var(--u)) calc(19 * var(--u))), linear-gradient(transparent, rgb(0 0 0 / .25)); pointer-events: none; }
.rf-mirror { width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover; transform: scaleY(-1); filter: blur(1.5px) brightness(.72) saturate(.85); opacity: .55; -webkit-mask: linear-gradient(to top, #000, transparent 46%); mask: linear-gradient(to top, #000, transparent 46%); }
.rf-water .ph { display: none; }
.rf-text { position: relative; margin-top: calc(-470 * var(--u)); padding: 0 calc(100 * var(--u)); }
.rf-names { margin: calc(16 * var(--u)) 0 calc(28 * var(--u)); font-family: var(--f-serif); font-weight: 400; font-size: calc(var(--nm) * var(--u)); line-height: 1.02; letter-spacing: .06em; text-transform: uppercase; text-shadow: 0 2px 18px rgb(0 0 0 / .5); overflow-wrap: anywhere; }
.rf-names span { display: block; }
.rf-names .amp { margin: calc(10 * var(--u)) 0; font-family: var(--f-script); font-size: calc(96 * var(--u) * var(--script-scale)); letter-spacing: 0; text-transform: none; color: var(--c-accent); }
.rf-date { margin-bottom: calc(18 * var(--u)); font-family: var(--f-sans); font-size: calc(24 * var(--u)); letter-spacing: calc(4 * var(--u)); text-transform: uppercase; }
.decor-reflect .script { font-size: calc(118 * var(--u) * var(--script-scale)); }

/* ───────── Halo ───────── */
.v-halo { padding-top: calc(150 * var(--u)); overflow: hidden; }
.hl-wash { position: absolute; left: 50%; top: 50%; z-index: -1; width: 30%; height: 30%; object-fit: cover; filter: blur(12px) saturate(1.25) brightness(1.2); opacity: .5; transform: translate(-50%, -50%) scale(4.2); }
.hl-wash.ph { display: none; }
.v-halo::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(rgb(255 255 255 / .1), var(--c-bg) 92%); pointer-events: none; }
.hl-photo { width: calc(820 * var(--u)); aspect-ratio: 1; margin: 0 auto calc(30 * var(--u)); }
.hl-img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; -webkit-mask: radial-gradient(closest-side, #000 66%, transparent 100%); mask: radial-gradient(closest-side, #000 66%, transparent 100%); }
.hl-names { margin: calc(10 * var(--u)) 0 calc(20 * var(--u)); font-size: calc(var(--nm) * var(--u) * var(--script-scale) * .82); line-height: 1.02; overflow-wrap: anywhere; }
.hl-names span { display: block; }
.hl-date { margin-bottom: calc(18 * var(--u)); font-family: var(--f-sans); font-weight: 600; font-size: calc(24 * var(--u)); letter-spacing: calc(4 * var(--u)); text-transform: uppercase; }
.decor-halo .script { font-size: calc(124 * var(--u) * var(--script-scale)); }

/* ───────── Reel: 35 mm film ───────── */
.decor-reel .label, .decor-reel .kicker { font-family: var(--f-mono); }
.decor-reel .kicker:not(.plain)::before { content: attr(data-n) "A"; font-family: var(--f-mono); font-style: normal; font-size: calc(26 * var(--u)); color: var(--c-accent); }
.decor-reel .headline { font-size: calc(110 * var(--u)); }
.decor-reel .btn { border-radius: 0; font-family: var(--f-mono); }
.decor-reel .player { border-radius: 0; }
.rl-edge { display: flex; justify-content: space-between; margin: 0 calc(-20 * var(--u)) calc(10 * var(--u)); font-family: var(--f-mono); font-weight: 500; font-size: calc(22 * var(--u)); letter-spacing: calc(5 * var(--u)); text-transform: uppercase; color: var(--c-accent); }
.rl-frame, .rs-frame {
  --hole: calc(26 * var(--u));
  position: relative;
  margin: 0 calc(-60 * var(--u));
  padding: calc(70 * var(--u)) calc(76 * var(--u));
  background:
    /* sprocket holes down both sides */
    linear-gradient(var(--c-bg), var(--c-bg)) left calc(26 * var(--u)) top 0 / var(--hole) 100% no-repeat,
    #161412;
  -webkit-mask: conic-gradient(#000 0 0) center / calc(100% - 2 * 52 * var(--u)) 100% no-repeat, repeating-linear-gradient(#000 0 calc(22 * var(--u)), transparent calc(22 * var(--u)) calc(44 * var(--u))) left calc(16 * var(--u)) top 0 / calc(22 * var(--u)) 100% no-repeat, repeating-linear-gradient(#000 0 calc(22 * var(--u)), transparent calc(22 * var(--u)) calc(44 * var(--u))) right calc(16 * var(--u)) top 0 / calc(22 * var(--u)) 100% no-repeat, linear-gradient(#000 0 0) left / calc(16 * var(--u)) 100% no-repeat, linear-gradient(#000 0 0) right / calc(16 * var(--u)) 100% no-repeat;
  mask: conic-gradient(#000 0 0) center / calc(100% - 2 * 52 * var(--u)) 100% no-repeat, repeating-linear-gradient(#000 0 calc(22 * var(--u)), transparent calc(22 * var(--u)) calc(44 * var(--u))) left calc(16 * var(--u)) top 0 / calc(22 * var(--u)) 100% no-repeat, repeating-linear-gradient(#000 0 calc(22 * var(--u)), transparent calc(22 * var(--u)) calc(44 * var(--u))) right calc(16 * var(--u)) top 0 / calc(22 * var(--u)) 100% no-repeat, linear-gradient(#000 0 0) left / calc(16 * var(--u)) 100% no-repeat, linear-gradient(#000 0 0) right / calc(16 * var(--u)) 100% no-repeat;
}
.rl-frame { background: #161412; }
.rl-img, .rs-img { position: relative; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; filter: contrast(1.08) saturate(1.06) sepia(.1); }
.rl-frame .ph, .rs-frame .ph { aspect-ratio: 4 / 5; }
.rl-frame::after, .rs-frame::after { /* film grain over the photo */
  content: "";
  position: absolute;
  inset: calc(70 * var(--u)) calc(76 * var(--u));
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.95' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23g)'/%3E%3C/svg%3E");
  opacity: .2;
  mix-blend-mode: overlay;
  pointer-events: none;
}
.rl-num { position: absolute; left: calc(76 * var(--u)); bottom: calc(18 * var(--u)); font-family: var(--f-mono); font-size: calc(22 * var(--u)); letter-spacing: calc(3 * var(--u)); color: #E8A33C; }
.rl-num i { font-style: normal; }
.rl-hand { margin-top: calc(56 * var(--u)); font-family: var(--f-script); font-size: calc(48 * var(--u) * var(--script-scale)); color: var(--c-accent); transform: rotate(-3deg); }
.rl-names { margin: calc(12 * var(--u)) 0 calc(28 * var(--u)); font-family: var(--f-serif); font-weight: 400; font-size: calc(var(--nm) * var(--u)); line-height: .96; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.rl-names span { display: block; }
.rl-names .amp { margin: calc(8 * var(--u)) 0; font-size: calc(64 * var(--u)); }
.rl-date { margin-bottom: calc(18 * var(--u)); font-family: var(--f-mono); font-size: calc(23 * var(--u)); letter-spacing: calc(3 * var(--u)); text-transform: uppercase; }
.rs-strip { display: grid; margin: calc(20 * var(--u)) 0 calc(60 * var(--u)); }
.rs-frame { margin: 0 calc(-90 * var(--u)); padding-top: calc(30 * var(--u)); padding-bottom: calc(30 * var(--u)); }
.rs-frame::after { inset: calc(30 * var(--u)) calc(76 * var(--u)); }
.rs-frame figcaption { position: absolute; left: calc(96 * var(--u)); bottom: calc(46 * var(--u)); z-index: 1; padding: calc(6 * var(--u)) calc(14 * var(--u)); background: rgb(0 0 0 / .45); font-family: var(--f-mono); font-size: calc(22 * var(--u)); letter-spacing: calc(2 * var(--u)); text-transform: uppercase; color: #F4EBDD; }
.rs-frame figcaption b { color: #E8A33C; font-weight: 500; }

/* ═════════════════════ vocation family: ten shared-profession designs ═════════════════════
   Each design is built from its profession's own material (theme decor "vow-<name>"):
   ECG paper, a barrister's brief, a dawn sky, a clothbound book, a cyanotype, a patent
   sheet, the periodic table, a recipe card, a vinyl record, gold-leaf sign-writing.
   Drawing animations run only on the live page (.reveal) and wait for the envelope. */
html:has(.decor-vocation) { background: var(--page-bg); }
.decor-vocation {
  --grunge: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='g' x='0' y='0'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -1.15 1.7'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23g)'/%3E%3C/svg%3E");
}
.decor-vocation .sec { isolation: isolate; }
.decor-vocation .label { font-size: calc(22 * var(--u)); --ls: calc(8 * var(--u)); }
.decor-vocation .script { font-size: calc(96 * var(--u) * var(--script-scale)); line-height: 1.12; }
.decor-vocation .player { border-radius: 0; }
@keyframes vo-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes vo-appear { from { opacity: 0; } }
html.gated .pu-trace path, html.gated .ct-trail path, html.gated .ct-jet, html.gated .cy-draw .ln > *, html.gated .vy-disc, html.gated .vy-shine { animation-play-state: paused; }

/* ───────── Vital (medicine): ECG paper, garnet and ivory ───────── */
.decor-vow-medicine {
  --grid-s: rgb(162 63 75 / .12);
  --grid-s: color-mix(in srgb, var(--c-accent) 12%, transparent);
  --grid-b: rgb(162 63 75 / .26);
  --grid-b: color-mix(in srgb, var(--c-accent) 26%, transparent);
  --beat: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 222 162' fill='none' stroke='%23000' stroke-width='5' stroke-linejoin='round' stroke-linecap='round'%3E%3Cpath d='M0 118H30q15 -16 30 0l14 0l7 12l13 -118l13 142l9 -36l24 0q26 -30 52 0H222'/%3E%3C/svg%3E");
}
.decor-vow-medicine .sec {
  --ecg: linear-gradient(90deg, var(--grid-b) 1px, transparent 1px) 0 0 / calc(90 * var(--u)) calc(90 * var(--u)),
    linear-gradient(var(--grid-b) 1px, transparent 1px) 0 0 / calc(90 * var(--u)) calc(90 * var(--u)),
    linear-gradient(90deg, var(--grid-s) 1px, transparent 1px) 0 0 / calc(18 * var(--u)) calc(18 * var(--u)),
    linear-gradient(var(--grid-s) 1px, transparent 1px) 0 0 / calc(18 * var(--u)) calc(18 * var(--u));
}
.decor-vow-medicine .label { font-family: var(--f-mono); font-weight: 400; }
.decor-vow-medicine .script { font-weight: 300; font-style: italic; font-size: calc(104 * var(--u)); }
.decor-vow-medicine .btn { border-radius: 0; border-color: var(--c-accent); }
.decor-vow-medicine .ornament { width: calc(420 * var(--u)); height: calc(70 * var(--u)); background: var(--c-accent); -webkit-mask: var(--beat) center / 100% 100% no-repeat; mask: var(--beat) center / 100% 100% no-repeat; }
.decor-vow-medicine .ornament > * { display: none; }
.decor-vow-medicine .sec-schedule { background: linear-gradient(rgb(244 235 233 / .5), rgb(244 235 233 / .5)), var(--ecg), var(--c-alt); background: linear-gradient(color-mix(in srgb, var(--c-alt) 55%, transparent) 0 0), var(--ecg), var(--c-alt); }
.decor-vow-medicine .duo-b-wrap::before { border-color: var(--c-accent); }
.v-pulse { padding-top: calc(170 * var(--u)); padding-bottom: calc(150 * var(--u)); }
.pu-names { margin: calc(40 * var(--u)) 0 calc(20 * var(--u)); font-family: var(--f-serif); font-weight: 300; font-size: calc(var(--nm) * var(--u)); line-height: 1; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.pu-names span { display: block; }
.pu-names .amp { margin: calc(16 * var(--u)) 0; font-weight: 300; font-size: calc(62 * var(--u)); }
.pu-line { font-family: var(--f-serif); font-style: italic; font-size: calc(40 * var(--u)); color: var(--c-muted); }
.pu-strip {
  margin: calc(84 * var(--u)) calc(-110 * var(--u)) calc(76 * var(--u));
  padding: calc(36 * var(--u)) 0;
  border-block: var(--hair) solid var(--grid-b);
  background: var(--ecg), color-mix(in srgb, var(--c-soft) 32%, var(--c-bg));
}
.pu-trace { display: block; width: 100%; height: auto; overflow: visible; }
.pu-trace path { stroke: var(--c-ink); stroke-width: 3.4; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 1 1; }
.pu-trace text { fill: var(--c-accent); font-family: var(--f-mono); font-size: 25px; letter-spacing: 3px; }
.pu-trace .pu-meta { font-size: 19px; fill: var(--c-muted); }
.reveal .pu-trace path { animation: vo-draw 4.6s cubic-bezier(.45, .05, .35, 1) .5s both; }
.reveal .pu-trace path + path { animation-delay: .8s; }
.pu-date { font-family: var(--f-serif); font-size: calc(48 * var(--u)); line-height: 1.3; }
.pu-date span { display: block; margin: calc(10 * var(--u)) 0 calc(18 * var(--u)); padding-left: calc(6 * var(--u)); font-family: var(--f-mono); font-size: calc(26 * var(--u)); letter-spacing: calc(6 * var(--u)); color: var(--c-accent); }
/* schedule.pulse: one heartbeat per moment */
.vt { max-width: calc(860 * var(--u)); margin: calc(10 * var(--u)) auto 0; padding: 0; list-style: none; text-align: left; }
.vt li { display: grid; grid-template-columns: calc(190 * var(--u)) calc(150 * var(--u)) 1fr; align-items: center; column-gap: calc(22 * var(--u)); padding: calc(24 * var(--u)) 0; border-top: var(--hair) solid var(--grid-b); }
.vt li:last-child { border-bottom: var(--hair) solid var(--grid-b); }
.vt time { font-family: var(--f-mono); font-size: calc(30 * var(--u)); text-align: right; white-space: nowrap; color: var(--c-accent); }
.vt-beat { height: calc(104 * var(--u)); background: var(--c-ink); -webkit-mask: var(--beat) center / 100% 100% no-repeat; mask: var(--beat) center / 100% 100% no-repeat; }
.vt b { display: block; font-family: var(--f-sans); font-weight: 500; font-size: calc(24 * var(--u)); letter-spacing: calc(5 * var(--u)); text-transform: uppercase; }
.vt em { display: block; margin-top: calc(4 * var(--u)); font-family: var(--f-serif); font-style: italic; font-size: calc(33 * var(--u)); line-height: 1.3; color: var(--c-muted); }

/* ───────── Counsel (law): a barrister's brief on a walnut desk ───────── */
.decor-vow-law .script { font-family: var(--f-script); font-size: calc(92 * var(--u)); line-height: 1.1; }
.decor-vow-law .label { font-family: var(--f-serif); font-weight: 400; font-size: calc(23 * var(--u)); }
.decor-vow-law .btn { border-radius: 0; border-color: var(--c-ink); }
.v-brief {
  padding: calc(130 * var(--u)) calc(60 * var(--u)) calc(150 * var(--u));
  background:
    radial-gradient(ellipse 110% 60% at 50% 25%, rgb(255 225 190 / .12), transparent 70%),
    linear-gradient(90deg, transparent 32%, rgb(0 0 0 / .12) 35% 39%, transparent 42%) 0 0 / calc(41 * var(--u)) 100%,
    linear-gradient(90deg, rgb(255 255 255 / .03) 0 46%, rgb(0 0 0 / .1) 48% 52%, transparent 54%) 0 0 / calc(150 * var(--u)) 100%,
    var(--c-dark);
}
.lw {
  position: relative;
  padding: calc(220 * var(--u)) calc(80 * var(--u)) calc(70 * var(--u)) calc(120 * var(--u));
  background:
    linear-gradient(180deg, transparent 49.7%, rgb(0 0 0 / .06) 50%, rgb(255 255 255 / .5) 50.25%, transparent 50.8%),
    linear-gradient(rgb(120 100 70 / .035) 1px, transparent 1px) 0 0 / 100% calc(9 * var(--u)),
    var(--c-bg);
  box-shadow: 0 calc(34 * var(--u)) calc(60 * var(--u)) calc(-10 * var(--u)) rgb(0 0 0 / .6), 0 calc(4 * var(--u)) calc(10 * var(--u)) rgb(0 0 0 / .3);
  transform: rotate(-1deg);
}
.lw::before { /* the ruled red margin */
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(62 * var(--u));
  width: calc(9 * var(--u));
  border-left: calc(2.5 * var(--u)) solid var(--c-tape);
  border-right: calc(1.5 * var(--u)) solid var(--c-tape);
  opacity: .55;
}
.lw-tape {
  position: absolute;
  left: calc(-12 * var(--u));
  right: calc(-12 * var(--u));
  top: calc(96 * var(--u));
  height: calc(34 * var(--u));
  background: linear-gradient(90deg, rgb(255 255 255 / .12) 0 40%, transparent 40%) 0 0 / calc(5 * var(--u)) 100%, linear-gradient(180deg, rgb(255 255 255 / .18), transparent 40%, rgb(0 0 0 / .14)), var(--c-tape);
  box-shadow: 0 calc(4 * var(--u)) calc(6 * var(--u)) rgb(0 0 0 / .22);
}
.lw-bow { position: absolute; z-index: 1; left: calc(64% - 138 * var(--u)); top: calc(10 * var(--u)); width: calc(276 * var(--u)); filter: drop-shadow(0 calc(5 * var(--u)) calc(4 * var(--u)) rgb(0 0 0 / .28)); }
.lw-bow path, .lw-bow rect { fill: var(--c-tape); stroke: rgb(0 0 0 / .22); stroke-width: 1.4; }
.lw-bow .t { fill: color-mix(in srgb, var(--c-tape) 86%, #000); }
.lw-bow .f { fill: none; stroke: rgb(0 0 0 / .2); stroke-width: 2; }
.lw-matter { font-family: var(--f-mono); font-size: calc(70 * var(--u)); line-height: 1.1; }
.lw-the { margin-top: calc(12 * var(--u)); font-family: var(--f-serif); font-style: italic; font-size: calc(38 * var(--u)); color: var(--c-muted); }
.lw-names { margin: calc(46 * var(--u)) 0 0; font-family: var(--f-script); font-weight: 400; font-size: calc(var(--nm) * var(--u)); line-height: 1; letter-spacing: .02em; text-transform: uppercase; overflow-wrap: anywhere; }
.lw-names span { display: block; }
.lw-names .lw-and { margin: calc(18 * var(--u)) 0 calc(14 * var(--u)); font-family: var(--f-serif); font-style: italic; font-size: calc(42 * var(--u)); letter-spacing: 0; text-transform: none; color: var(--c-accent); }
.lw-rule { display: block; width: calc(320 * var(--u)); margin: calc(56 * var(--u)) auto; border-top: calc(6 * var(--u)) double var(--c-ink); }
.lw-text { font-family: var(--f-serif); font-style: italic; font-size: calc(37 * var(--u)); line-height: 1.5; text-wrap: balance; }
.lw-when { margin-top: calc(40 * var(--u)); font-family: var(--f-serif); font-size: calc(39 * var(--u)); line-height: 1.55; }
.lw-venue { margin-top: calc(40 * var(--u)); font-family: var(--f-serif); font-size: calc(30 * var(--u)); letter-spacing: .14em; text-transform: uppercase; }
.lw-city { margin-top: calc(6 * var(--u)); font-family: var(--f-serif); font-style: italic; font-size: calc(34 * var(--u)); color: var(--c-muted); }
.lw-ref { display: flex; justify-content: space-between; margin-top: calc(90 * var(--u)); padding-top: calc(18 * var(--u)); border-top: var(--hair) solid var(--c-soft); font-family: var(--f-serif); font-size: calc(22 * var(--u)); letter-spacing: .12em; text-transform: uppercase; color: var(--c-muted); }
/* story.clauses: a clipped photo, the story, numbered sections */
.cs-photo { position: relative; width: 74%; margin: calc(70 * var(--u)) auto calc(70 * var(--u)); padding: calc(18 * var(--u)); background: #fff; box-shadow: 0 calc(12 * var(--u)) calc(26 * var(--u)) rgb(40 30 20 / .2); transform: rotate(-1.5deg); }
.cs-photo.b { width: 56%; margin: calc(80 * var(--u)) 4% 0 auto; transform: rotate(2deg); }
.cs-img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.cs-clip { position: absolute; z-index: 2; top: calc(-60 * var(--u)); left: 18%; width: calc(54 * var(--u)); stroke: #8B9198; stroke-width: 4.2; stroke-linecap: round; filter: drop-shadow(calc(2 * var(--u)) calc(3 * var(--u)) calc(2 * var(--u)) rgb(0 0 0 / .3)); }
.cs-text { max-width: calc(840 * var(--u)); margin: 0 auto; font-family: var(--f-serif); font-size: calc(37 * var(--u)); line-height: 1.6; text-align: left; text-wrap: pretty; }
.cs-text::first-letter { float: left; margin: calc(10 * var(--u)) calc(16 * var(--u)) 0 0; font-family: var(--f-mono); font-size: calc(150 * var(--u)); line-height: .78; color: var(--c-accent); }
.cs-list { max-width: calc(840 * var(--u)); margin: calc(64 * var(--u)) auto 0; padding: 0; list-style: none; text-align: left; border-top: var(--hair) solid var(--c-soft); }
.cs-list li { display: grid; grid-template-columns: calc(100 * var(--u)) calc(150 * var(--u)) 1fr; align-items: baseline; padding: calc(22 * var(--u)) 0; border-bottom: var(--hair) solid var(--c-soft); }
.cs-n { font-family: var(--f-serif); font-style: italic; font-size: calc(32 * var(--u)); color: var(--c-accent); }
.cs-list b { font-family: var(--f-script); font-weight: 400; font-size: calc(46 * var(--u)); }
.cs-list span:last-child { font-family: var(--f-serif); font-size: calc(24 * var(--u)); letter-spacing: .12em; text-transform: uppercase; color: var(--c-muted); }

/* ───────── Wings (aviation): contrails in a dawn sky ───────── */
.decor-vow-aviation .script { font-size: calc(104 * var(--u)); }
.decor-vow-aviation .btn { border-color: var(--c-accent); }
.decor-vow-aviation .label { font-weight: 500; }
.v-contrail {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: max(100svh, calc(1950 * var(--u)));
  padding: 0 calc(100 * var(--u)) calc(150 * var(--u));
  background:
    radial-gradient(ellipse 46% 7% at 24% 60%, rgb(255 255 255 / .55), transparent 70%),
    radial-gradient(ellipse 34% 5% at 78% 54%, rgb(255 255 255 / .42), transparent 70%),
    radial-gradient(ellipse 60% 8% at 66% 66%, rgb(255 255 255 / .35), transparent 70%),
    radial-gradient(ellipse 130% 34% at 50% 80%, rgb(255 236 214 / .75), transparent 70%),
    linear-gradient(180deg, var(--c-sky) 0%, color-mix(in srgb, var(--c-sky) 55%, var(--c-horizon)) 40%, var(--c-horizon) 70%, var(--c-bg) 100%);
}
.ct-sky { position: absolute; left: 0; top: calc(30 * var(--u)); width: 100%; height: auto; overflow: visible; }
.ct-trail path { fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1 1; }
.ct-haze { stroke: rgb(255 255 255 / .34); stroke-width: 26; }
.ct-core { stroke: rgb(255 255 255 / .94); stroke-width: 6; }
.ct-trail.b .ct-haze { stroke-width: 24; }
.ct-jet { fill: var(--c-ink); }
.reveal .ct-trail path { animation: vo-draw 5.2s cubic-bezier(.35, .1, .25, 1) .4s both; }
.reveal .ct-trail.b path { animation-delay: .75s; }
.reveal .ct-jet { animation: vo-appear 1.2s ease 5s both; }
.ct-text { position: relative; }
.ct-names { margin: calc(26 * var(--u)) 0 calc(20 * var(--u)); font-family: var(--f-script); font-weight: 400; font-size: calc(var(--nm) * var(--u)); line-height: .98; letter-spacing: .02em; overflow-wrap: anywhere; }
.ct-names span { display: block; }
.ct-names .amp { margin: calc(14 * var(--u)) 0 calc(10 * var(--u)); font-size: calc(64 * var(--u)); }
.ct-line { font-family: var(--f-serif); font-style: italic; font-size: calc(42 * var(--u)); color: var(--c-ink); }
.ct-date { margin: calc(40 * var(--u)) 0 calc(14 * var(--u)); padding-left: calc(5 * var(--u)); font-family: var(--f-sans); font-weight: 500; font-size: calc(25 * var(--u)); letter-spacing: calc(5 * var(--u)); text-transform: uppercase; }
/* date.horizon: an attitude indicator */
.v-horizon .st-text + .label, .v-library .st-text + .label { margin-top: calc(70 * var(--u)); }
.ai { position: relative; width: calc(640 * var(--u)); aspect-ratio: 1; margin: calc(36 * var(--u)) auto calc(46 * var(--u)); }
.ai-ball { position: absolute; inset: 7%; overflow: hidden; border-radius: 50%; box-shadow: inset 0 0 calc(30 * var(--u)) rgb(0 0 0 / .4); }
.ai-roll { position: absolute; inset: -22%; display: grid; grid-template-rows: 1fr 1fr; rotate: -7deg; }
.ai-sky, .ai-ground { display: flex; justify-content: center; }
.ai-sky { align-items: flex-end; padding-bottom: calc(118 * var(--u)); background: linear-gradient(180deg, color-mix(in srgb, var(--c-sky) 70%, #12315a), var(--c-sky)); border-bottom: calc(4 * var(--u)) solid #fff; }
.ai-ground { align-items: flex-start; padding-top: calc(112 * var(--u)); background: linear-gradient(180deg, var(--c-ground), color-mix(in srgb, var(--c-ground) 65%, #000)); }
.ai b { font-family: var(--f-sans); font-weight: 500; font-size: calc(46 * var(--u)); letter-spacing: calc(6 * var(--u)); text-transform: uppercase; color: #fff; }
.ai-ladder { position: absolute; left: 50%; top: 50%; width: calc(240 * var(--u)); translate: -50% -50%; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; }
.ai-bezel { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ai-bezel .ring { fill: none; stroke: var(--c-dark); stroke-width: 12; }
.ai-bezel .ticks { stroke: #fff; stroke-width: 2.2; stroke-linecap: round; }
.ai-bezel .idx { fill: var(--c-onDarkAccent); stroke: none; }
.ai-bezel .plane { fill: none; stroke: #F2B04A; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 1px 1px rgb(0 0 0 / .4)); }
.ai-bezel .dot { fill: #F2B04A; }
.reveal .ai-roll { animation: ai-bank 7s ease-in-out infinite alternate; }
@keyframes ai-bank { from { rotate: -9deg; translate: 0 calc(-8 * var(--u)); } to { rotate: 4deg; translate: 0 calc(10 * var(--u)); } }
/* the timeline's dots become small planes flying down the line */
.decor-vow-aviation .tline li::before {
  width: calc(44 * var(--u));
  height: calc(44 * var(--u));
  border-radius: 0;
  background: var(--c-accent);
  box-shadow: none;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M21 16v-2l-8-5V3.5a1.5 1.5 0 0 0-3 0V9l-8 5v2l8-2.5V19l-2 1.5V22l3.5-1 3.5 1v-1.5L13 19v-5.5z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M21 16v-2l-8-5V3.5a1.5 1.5 0 0 0-3 0V9l-8 5v2l8-2.5V19l-2 1.5V22l3.5-1 3.5 1v-1.5L13 19v-5.5z'/%3E%3C/svg%3E") center / contain no-repeat;
  transform: translate(-50%, -50%) rotate(180deg);
}
.decor-vow-aviation .tline::before { border-left-style: dashed; }

/* ───────── Chapter (teachers, book lovers): a clothbound book and its library card ───────── */
.decor-vow-education .script { font-style: italic; font-size: calc(100 * var(--u)); }
.decor-vow-education .btn { border-radius: 0; border-color: var(--c-accent); }
.gilt { background: var(--foil); -webkit-background-clip: text; background-clip: text; color: transparent; }
.gilt .amp { color: transparent; }
.v-book { padding-top: calc(140 * var(--u)); }
.bk { position: relative; width: calc(700 * var(--u)); margin: 0 auto calc(130 * var(--u)); }
.bk::before { /* the page block at the fore-edge */
  content: "";
  position: absolute;
  top: calc(14 * var(--u));
  bottom: calc(8 * var(--u));
  right: calc(-18 * var(--u));
  width: calc(40 * var(--u));
  border-radius: 0 calc(10 * var(--u)) calc(10 * var(--u)) 0;
  background: linear-gradient(90deg, #F6F0E2 66%, #D9CFBA 66%) 0 0 / calc(3 * var(--u)) 100%;
  box-shadow: 0 calc(16 * var(--u)) calc(30 * var(--u)) calc(-8 * var(--u)) rgb(30 20 10 / .4);
}
.bk-cover {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  aspect-ratio: 2 / 2.85;
  padding: calc(110 * var(--u)) calc(70 * var(--u)) calc(90 * var(--u)) calc(100 * var(--u));
  border-radius: calc(6 * var(--u)) calc(14 * var(--u)) calc(14 * var(--u)) calc(6 * var(--u));
  background:
    linear-gradient(90deg, rgb(0 0 0 / .34) 0, rgb(0 0 0 / .08) 3.5%, rgb(255 255 255 / .12) 5%, rgb(0 0 0 / .2) 6.6%, transparent 9.5%),
    linear-gradient(rgb(255 255 255 / .05) 1px, transparent 1px) 0 0 / 100% 3px,
    linear-gradient(90deg, rgb(0 0 0 / .1) 1px, transparent 1px) 0 0 / 3px 100%,
    radial-gradient(ellipse 90% 70% at 40% 28%, rgb(255 255 255 / .1), transparent 70%),
    var(--c-dark);
  box-shadow: 0 calc(34 * var(--u)) calc(56 * var(--u)) calc(-14 * var(--u)) rgb(30 20 10 / .55), 0 calc(6 * var(--u)) calc(12 * var(--u)) rgb(30 20 10 / .25);
}
.bk-cover::before, .bk-cover::after { /* blind-tooled frame, gilt inner line */
  content: "";
  position: absolute;
  inset: calc(42 * var(--u)) calc(38 * var(--u)) calc(42 * var(--u)) calc(76 * var(--u));
  border: calc(3 * var(--u)) solid transparent;
  border-image: var(--foil) 1;
  pointer-events: none;
}
.bk-cover::after { inset: calc(58 * var(--u)) calc(54 * var(--u)) calc(58 * var(--u)) calc(92 * var(--u)); border-width: calc(1.5 * var(--u)); }
.bk-pre { padding-left: calc(8 * var(--u)); font-family: var(--f-serif); font-size: calc(24 * var(--u)); letter-spacing: calc(8 * var(--u)); text-transform: uppercase; }
.bk-names { margin: calc(34 * var(--u)) 0 0; font-family: var(--f-serif); font-weight: 500; font-size: calc(var(--nm) * var(--u)); line-height: 1.02; overflow-wrap: anywhere; filter: drop-shadow(0 calc(-1 * var(--u)) 0 rgb(0 0 0 / .35)); }
.bk-names span { display: block; }
.bk-names .amp { margin: calc(8 * var(--u)) 0; font-size: calc(60 * var(--u)); }
.bk-orn {
  display: block;
  width: calc(240 * var(--u));
  height: calc(34 * var(--u));
  margin: calc(46 * var(--u)) auto calc(30 * var(--u));
  background: var(--foil);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 40' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M18 20H104M196 20H282'/%3E%3Cpath d='M150 10L157 20L150 30L143 20Z' fill='%23000'/%3E%3Cpath d='M139 20C131 20 125 14 128 10C131 6 137 9 135 14M161 20C169 20 175 14 172 10C169 6 163 9 165 14M139 20C131 20 125 26 128 30C131 34 137 31 135 26M161 20C169 20 175 26 172 30C169 34 163 31 165 26'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 40' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M18 20H104M196 20H282'/%3E%3Cpath d='M150 10L157 20L150 30L143 20Z' fill='%23000'/%3E%3Cpath d='M139 20C131 20 125 14 128 10C131 6 137 9 135 14M161 20C169 20 175 14 172 10C169 6 163 9 165 14M139 20C131 20 125 26 128 30C131 34 137 31 135 26M161 20C169 20 175 26 172 30C169 34 163 31 165 26'/%3E%3C/svg%3E") center / contain no-repeat;
}
.bk-year { padding-left: calc(10 * var(--u)); font-family: var(--f-serif); font-size: calc(26 * var(--u)); letter-spacing: calc(10 * var(--u)); }
.bk-ribbon { position: absolute; z-index: 0; left: 64%; bottom: calc(-118 * var(--u)); width: calc(40 * var(--u)); height: calc(200 * var(--u)); background: linear-gradient(90deg, rgb(0 0 0 / .25), transparent 30%, rgb(255 255 255 / .15) 50%, transparent 70%, rgb(0 0 0 / .2)), var(--c-ribbon); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 86%, 0 100%); }
.bk-line { font-family: var(--f-serif); font-style: italic; font-size: calc(40 * var(--u)); line-height: 1.5; }
.bk-when { margin: calc(40 * var(--u)) 0 calc(30 * var(--u)); font-family: var(--f-serif); font-size: calc(42 * var(--u)); line-height: 1.45; }
/* date.library: a date-due card in its pocket */
.lb { position: relative; width: calc(680 * var(--u)); margin: calc(30 * var(--u)) auto calc(80 * var(--u)); }
.lb-card { position: relative; padding: calc(40 * var(--u)) calc(44 * var(--u)) calc(250 * var(--u)); background: #FCF9F1; box-shadow: 0 calc(8 * var(--u)) calc(18 * var(--u)) rgb(40 30 20 / .18); font-family: var(--f-mono); color: #2B2A33; text-align: left; transform: rotate(-2.5deg); }
.lb-head { padding-bottom: calc(14 * var(--u)); border-bottom: calc(5 * var(--u)) double #2B2A33; font-size: calc(32 * var(--u)); letter-spacing: calc(8 * var(--u)); text-align: center; text-transform: uppercase; }
.lb-meta { margin: 0; }
.lb-meta div { display: flex; gap: calc(16 * var(--u)); padding: calc(12 * var(--u)) 0; border-bottom: var(--hair) solid rgb(43 42 51 / .35); font-size: calc(26 * var(--u)); }
.lb-meta dt { flex: none; width: calc(120 * var(--u)); font-size: calc(20 * var(--u)); letter-spacing: calc(3 * var(--u)); text-transform: uppercase; opacity: .7; }
.lb-meta dd { margin: 0; overflow-wrap: anywhere; }
.lb-rows { margin: 0; padding: 0; list-style: none; }
.lb-rows li { position: relative; height: calc(92 * var(--u)); border-bottom: var(--hair) solid rgb(43 42 51 / .3); }
.lb-stamp { position: absolute; left: calc(10 * var(--u)); top: 50%; translate: 0 -50%; white-space: nowrap; font-family: var(--f-mono); color: var(--c-stamp); letter-spacing: calc(3 * var(--u)); text-transform: uppercase; -webkit-mask: var(--grunge) 0 0 / 200px; mask: var(--grunge) 0 0 / 200px; }
.lb-stamp.s1 { font-size: calc(24 * var(--u)); rotate: 1.5deg; opacity: .8; }
.lb-stamp.s2 { left: calc(40 * var(--u)); padding: calc(4 * var(--u)) calc(18 * var(--u)); border: calc(4 * var(--u)) solid currentColor; border-radius: calc(8 * var(--u)); font-size: calc(46 * var(--u)); rotate: -4deg; }
.lb-pocket {
  position: absolute;
  z-index: 1;
  left: calc(-24 * var(--u));
  right: calc(-24 * var(--u));
  bottom: calc(-40 * var(--u));
  height: calc(300 * var(--u));
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: calc(40 * var(--u));
  background: linear-gradient(rgb(255 255 255 / .1) 1px, transparent 1px) 0 0 / 100% 3px, linear-gradient(180deg, #DCC79C, #CDB585);
  border-radius: 0 0 calc(8 * var(--u)) calc(8 * var(--u));
  box-shadow: 0 calc(10 * var(--u)) calc(22 * var(--u)) rgb(60 40 20 / .25), inset 0 calc(3 * var(--u)) 0 rgb(255 255 255 / .35);
  -webkit-mask: radial-gradient(circle calc(64 * var(--u)) at 50% 0, transparent 98%, #000 100%);
  mask: radial-gradient(circle calc(64 * var(--u)) at 50% 0, transparent 98%, #000 100%);
}
.lb-pocket span { font-family: var(--f-serif); font-style: italic; font-size: calc(36 * var(--u)); color: #5E4A26; }
/* story.chapter: a book page */
.v-chapter { padding-top: calc(100 * var(--u)); }
.ch { max-width: calc(860 * var(--u)); margin: 0 auto; text-align: left; }
.ch-run { display: flex; justify-content: space-between; gap: calc(30 * var(--u)); padding-bottom: calc(14 * var(--u)); border-bottom: var(--hair) solid var(--c-soft); font-family: var(--f-serif); font-style: italic; font-size: calc(27 * var(--u)); color: var(--c-muted); }
.ch-no { margin-top: calc(100 * var(--u)); padding-left: calc(10 * var(--u)); font-family: var(--f-serif); font-size: calc(26 * var(--u)); letter-spacing: calc(10 * var(--u)); text-align: center; text-transform: uppercase; color: var(--c-accent); }
.ch-title { margin: calc(20 * var(--u)) 0 calc(60 * var(--u)); font-family: var(--f-serif); font-weight: 400; font-size: calc(88 * var(--u)); line-height: 1.1; text-align: center; text-wrap: balance; }
.ch-plate { margin: 0 0 calc(56 * var(--u)); }
.ch-img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.ch-plate figcaption { margin-top: calc(14 * var(--u)); font-family: var(--f-serif); font-style: italic; font-size: calc(26 * var(--u)); text-align: center; color: var(--c-muted); }
.ch-text { font-family: var(--f-serif); font-size: calc(39 * var(--u)); line-height: 1.6; text-align: justify; -webkit-hyphens: auto; hyphens: auto; }
.ch-text::first-letter { float: left; margin: calc(8 * var(--u)) calc(16 * var(--u)) 0 0; font-size: calc(156 * var(--u)); line-height: .8; color: var(--c-accent); }
.ch-folio { margin-top: calc(50 * var(--u)); font-family: var(--f-serif); font-size: calc(28 * var(--u)); text-align: center; color: var(--c-muted); }
.ch-toc { max-width: calc(760 * var(--u)); margin: calc(90 * var(--u)) auto 0; }
.ch-toc-h { margin-bottom: calc(20 * var(--u)); padding-left: calc(10 * var(--u)); font-family: var(--f-serif); font-size: calc(26 * var(--u)); letter-spacing: calc(10 * var(--u)); text-transform: uppercase; color: var(--c-accent); }
.ch-toc ol { margin: 0; padding: 0; list-style: none; }
.ch-toc li { display: flex; align-items: baseline; gap: calc(14 * var(--u)); padding: calc(10 * var(--u)) 0; font-family: var(--f-serif); font-size: calc(38 * var(--u)); }
.ch-toc li span { font-style: italic; text-align: left; }
.ch-toc li i { flex: 1; min-width: calc(40 * var(--u)); border-bottom: calc(3 * var(--u)) dotted var(--c-soft); }
.ch-toc li b { font-weight: 400; color: var(--c-accent); }
.ch-plate.b { width: 64%; margin: calc(90 * var(--u)) auto 0; }
.ch-plate.b .ch-img { aspect-ratio: 4 / 5; }

/* ───────── Blueprint (architects): cyanotype drawing sheet ───────── */
.decor-vow-architecture .script { font-style: italic; font-size: calc(98 * var(--u)); }
.decor-vow-architecture .btn { border-radius: 0; border-color: var(--c-accent); }
.decor-vow-architecture .tl-icon { border-radius: 0; }
.decor-vow-architecture .label { font-weight: 500; letter-spacing: calc(9 * var(--u)); }
.v-blueprint {
  padding: calc(110 * var(--u)) calc(90 * var(--u)) calc(120 * var(--u));
  background:
    radial-gradient(ellipse 80% 50% at 25% 15%, rgb(255 255 255 / .08), transparent 70%),
    radial-gradient(ellipse 80% 60% at 85% 95%, rgb(0 0 0 / .2), transparent 70%),
    linear-gradient(rgb(255 255 255 / .14) 1px, transparent 1px) 0 0 / calc(150 * var(--u)) calc(150 * var(--u)),
    linear-gradient(90deg, rgb(255 255 255 / .14) 1px, transparent 1px) 0 0 / calc(150 * var(--u)) calc(150 * var(--u)),
    linear-gradient(rgb(255 255 255 / .055) 1px, transparent 1px) 0 0 / calc(30 * var(--u)) calc(30 * var(--u)),
    linear-gradient(90deg, rgb(255 255 255 / .055) 1px, transparent 1px) 0 0 / calc(30 * var(--u)) calc(30 * var(--u)),
    var(--c-dark);
}
.v-blueprint::after { content: ""; position: absolute; inset: calc(40 * var(--u)); border: calc(2.5 * var(--u)) solid rgb(255 255 255 / .75); pointer-events: none; }
.cy-tag { display: flex; align-items: center; gap: calc(22 * var(--u)); text-align: left; font-family: var(--f-mono); font-size: calc(34 * var(--u)); line-height: 1.2; }
.cy-tag > span:last-child { display: flex; flex-direction: column; }
.cy-tag > span:last-child { text-decoration: underline; text-decoration-thickness: calc(2 * var(--u)); text-underline-offset: calc(8 * var(--u)); }
.cy-tag small { margin-top: calc(10 * var(--u)); font-size: calc(24 * var(--u)); opacity: .8; }
.cy-bubble { display: grid; grid-template-rows: 1fr 1fr; place-items: center; flex: none; width: calc(92 * var(--u)); height: calc(92 * var(--u)); border: calc(2.5 * var(--u)) solid currentColor; border-radius: 50%; background: linear-gradient(currentColor, currentColor) center / 100% calc(2 * var(--u)) no-repeat; }
.cy-bubble b { align-self: end; font-weight: 400; font-size: calc(30 * var(--u)); line-height: 1.1; }
.cy-bubble i { align-self: start; font-style: normal; font-size: calc(18 * var(--u)); line-height: 1.4; }
.cy-draw { display: block; width: calc(100% + 60 * var(--u)); height: auto; margin: calc(20 * var(--u)) calc(-30 * var(--u)) calc(10 * var(--u)); color: var(--c-ink); }
.cy-draw .ln { stroke-width: 2.3; stroke-linejoin: round; }
.cy-draw .ln > * { stroke-dasharray: 1 1; }
.cy-draw .thin { stroke-width: 1.2; }
.cy-draw .thick { stroke-width: 3.6; }
.cy-draw .con { stroke-width: 1; stroke-dasharray: 16 6 3 6; opacity: .45; }
.cy-draw .dim { stroke-width: 1.3; }
.cy-draw .hand { fill: currentColor; stroke: none; font-family: var(--f-mono); font-size: 30px; }
.cy-draw .hand.big { font-size: 66px; }
.reveal .cy-draw .ln > * { animation: vo-draw 2.6s cubic-bezier(.4, .1, .3, 1) both; }
.reveal .cy-draw .ln > :nth-child(2n) { animation-delay: .35s; }
.reveal .cy-draw .ln > :nth-child(3n) { animation-delay: .7s; }
.cy-names { margin: calc(26 * var(--u)) 0 calc(26 * var(--u)); font-family: var(--f-sans); font-weight: 300; font-size: calc(var(--nm) * .6 * var(--u)); line-height: 1.12; letter-spacing: .16em; text-transform: uppercase; overflow-wrap: anywhere; }
.cy-names span { display: block; }
.cy-names .amp { margin: calc(8 * var(--u)) 0; font-size: calc(58 * var(--u)); letter-spacing: 0; text-transform: none; }
.cy-hand { font-family: var(--f-mono); font-size: calc(36 * var(--u)); line-height: 1.5; }
.cy-block { display: grid; grid-template-columns: 1fr 1fr; margin: calc(64 * var(--u)) 0 0; border: calc(2.5 * var(--u)) solid rgb(255 255 255 / .8); text-align: left; }
.cy-block > div { padding: calc(14 * var(--u)) calc(20 * var(--u)) calc(16 * var(--u)); border-bottom: var(--hair) solid rgb(255 255 255 / .55); }
.cy-block > div:nth-last-child(-n+2) { border-bottom: 0; }
.cy-block > div:not(.w):nth-child(odd) { border-right: var(--hair) solid rgb(255 255 255 / .55); }
.cy-block > .w { grid-column: 1 / -1; }
.cy-block dt { font-family: var(--f-sans); font-weight: 500; font-size: calc(17 * var(--u)); letter-spacing: calc(4 * var(--u)); text-transform: uppercase; opacity: .75; }
.cy-block dd { margin: calc(4 * var(--u)) 0 0; font-family: var(--f-mono); font-size: calc(31 * var(--u)); line-height: 1.3; overflow-wrap: anywhere; }
/* venue.plan: a site plan */
.vp { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto calc(120 * var(--u)) auto; margin: calc(20 * var(--u)) 0 calc(70 * var(--u)); color: var(--c-accent); }
.vp-room { position: relative; display: flex; flex-direction: column; align-items: center; padding: calc(46 * var(--u)) calc(24 * var(--u)) calc(110 * var(--u)); border: calc(10 * var(--u)) solid currentColor; }
.vp-room.a { grid-area: 1 / 1; }
.vp-room.b { grid-area: 3 / 2; }
.vp.one { grid-template-rows: auto; }
.vp.one .vp-room.a { grid-area: 1 / 1; }
.vp-room::before { /* furniture: rows of chairs / round tables */ content: ""; position: absolute; left: calc(26 * var(--u)); right: calc(26 * var(--u)); bottom: calc(22 * var(--u)); height: calc(64 * var(--u)); }
.vp-room.a::before { background: radial-gradient(circle, currentColor 0 calc(5 * var(--u)), transparent calc(5.5 * var(--u))) 0 0 / calc(30 * var(--u)) calc(32 * var(--u)) space repeat; }
.vp-room.b::before { background: radial-gradient(circle, transparent 0 calc(13 * var(--u)), currentColor calc(13.5 * var(--u)) calc(16 * var(--u)), transparent calc(16.5 * var(--u))) 0 0 / calc(64 * var(--u)) calc(64 * var(--u)) space no-repeat; }
.vp-room.a::after, .vp-room.b::after { /* the doorway: a gap in the wall */ content: ""; position: absolute; background: var(--c-bg); }
.vp-room.a::after { left: calc(50% - 45 * var(--u)); bottom: calc(-10 * var(--u)); width: calc(90 * var(--u)); height: calc(10 * var(--u)); }
.vp-room.b::after { left: calc(-10 * var(--u)); bottom: calc(100 * var(--u)); width: calc(10 * var(--u)); height: calc(90 * var(--u)); }
.vp-room small { padding-left: calc(6 * var(--u)); font-family: var(--f-sans); font-weight: 500; font-size: calc(21 * var(--u)); letter-spacing: calc(6 * var(--u)); text-transform: uppercase; }
.vp-room b { margin: calc(10 * var(--u)) 0 calc(4 * var(--u)); font-family: var(--f-serif); font-weight: 400; font-size: calc(48 * var(--u)); color: var(--c-ink); }
.vp-room span { font-family: var(--f-mono); font-size: calc(29 * var(--u)); line-height: 1.25; color: var(--c-ink); }
.vp-path { grid-area: 2 / 1 / 4 / 2; justify-self: end; width: 50%; margin-bottom: calc(145 * var(--u)); border-left: calc(3 * var(--u)) dashed currentColor; border-bottom: calc(3 * var(--u)) dashed currentColor; border-bottom-left-radius: calc(40 * var(--u)); }
.vp-north { grid-area: 1 / 2; place-self: center; width: calc(120 * var(--u)); fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linejoin: round; }
.vp-north .fill { fill: currentColor; }
.vp-north text { fill: currentColor; stroke: none; font-family: var(--f-mono); font-size: 22px; }
/* story.prints: photos held with drafting tape */
.decor-vow-architecture .print { padding: calc(14 * var(--u)); box-shadow: 0 calc(6 * var(--u)) calc(16 * var(--u)) rgb(20 40 70 / .18); }
.decor-vow-architecture .pc-corners { display: block; position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.decor-vow-architecture .pc-corners::before, .decor-vow-architecture .pc-corners::after { content: ""; position: absolute; top: calc(-14 * var(--u)); width: calc(120 * var(--u)); height: calc(40 * var(--u)); background: rgb(236 228 206 / .82); box-shadow: 0 1px 2px rgb(0 0 0 / .12); }
.decor-vow-architecture .pc-corners::before { left: calc(-34 * var(--u)); transform: rotate(-38deg); }
.decor-vow-architecture .pc-corners::after { right: calc(-34 * var(--u)); transform: rotate(38deg); }

/* ───────── Span (engineers): a patent drawing, brass and copper ───────── */
.decor-vow-engineering .script { font-size: calc(92 * var(--u)); font-style: italic; }
.decor-vow-engineering .btn { border-radius: 0; border-color: var(--c-ink); }
.v-patent { padding: calc(90 * var(--u)) calc(56 * var(--u)) calc(110 * var(--u)); }
.pa { position: relative; padding: calc(70 * var(--u)) calc(64 * var(--u)) calc(80 * var(--u)); background: var(--c-card); border: calc(3 * var(--u)) solid var(--c-ink); box-shadow: 0 calc(18 * var(--u)) calc(40 * var(--u)) calc(-12 * var(--u)) rgb(40 30 15 / .35); }
.pa::before { content: ""; position: absolute; inset: calc(12 * var(--u)); border: var(--hair) solid var(--c-ink); pointer-events: none; }
.pa-head { font-family: var(--f-serif); font-size: calc(38 * var(--u)); letter-spacing: .08em; overflow-wrap: anywhere; }
.pa-sub { margin-top: calc(8 * var(--u)); font-family: var(--f-serif); font-style: italic; font-size: calc(32 * var(--u)); }
.pa-no { display: flex; justify-content: space-between; gap: calc(20 * var(--u)); margin-top: calc(22 * var(--u)); padding-bottom: calc(14 * var(--u)); border-bottom: var(--hair) solid var(--c-ink); font-family: var(--f-serif); font-size: calc(24 * var(--u)); }
.pa-fig { display: block; width: 100%; height: auto; margin-top: calc(40 * var(--u)); color: var(--c-ink); }
.pa-fig .band { fill: var(--c-card); stroke-width: 2.6; }
.pa-fig .sh { stroke-width: 1.1; }
.pa-fig .lead { stroke-width: 1.3; }
.pa-fig text { fill: var(--c-ink); stroke: none; font-family: var(--f-serif); font-style: italic; font-size: 34px; }
.pa-figno { margin-top: calc(6 * var(--u)); font-family: var(--f-serif); font-style: italic; font-size: calc(34 * var(--u)); }
.pa-names { margin: calc(60 * var(--u)) 0 calc(30 * var(--u)); font-family: var(--f-serif); font-weight: 400; font-size: calc(var(--nm) * var(--u)); line-height: 1; overflow-wrap: anywhere; }
.pa-names span { display: block; }
.pa-names i { display: block; margin: calc(14 * var(--u)) 0; font-size: calc(42 * var(--u)); color: var(--c-accent); }
.pa-text { font-family: var(--f-serif); font-style: italic; font-size: calc(36 * var(--u)); line-height: 1.5; color: var(--c-muted); text-wrap: balance; }
.pa-when { margin: calc(36 * var(--u)) 0 calc(20 * var(--u)); font-family: var(--f-serif); font-size: calc(38 * var(--u)); line-height: 1.5; }
.pa-sign { display: grid; grid-template-columns: 1fr 1fr; gap: calc(50 * var(--u)); margin-top: calc(70 * var(--u)); text-align: left; }
.pa-sign small { display: block; font-family: var(--f-serif); font-style: italic; font-size: calc(26 * var(--u)); }
.pa-sign i { display: block; height: calc(62 * var(--u)); border-bottom: var(--hair) solid var(--c-ink); }
.pa-sign b { display: block; margin-top: calc(4 * var(--u)); font-family: var(--f-mono); font-weight: 400; font-size: calc(76 * var(--u)); line-height: 1.05; transform: rotate(-4deg); overflow-wrap: anywhere; }
/* date.counter: a brass nameplate and a mechanical counter */
.np {
  position: relative;
  max-width: calc(780 * var(--u));
  margin: calc(30 * var(--u)) auto calc(76 * var(--u));
  padding: calc(56 * var(--u)) calc(76 * var(--u)) calc(50 * var(--u));
  border-radius: calc(10 * var(--u));
  background:
    radial-gradient(circle at calc(34 * var(--u)) calc(34 * var(--u)), #6E5426 0 calc(8 * var(--u)), #F3E1AE calc(9 * var(--u)) calc(11 * var(--u)), transparent calc(12 * var(--u))),
    radial-gradient(circle at calc(100% - 34 * var(--u)) calc(34 * var(--u)), #6E5426 0 calc(8 * var(--u)), #F3E1AE calc(9 * var(--u)) calc(11 * var(--u)), transparent calc(12 * var(--u))),
    radial-gradient(circle at calc(34 * var(--u)) calc(100% - 34 * var(--u)), #6E5426 0 calc(8 * var(--u)), #F3E1AE calc(9 * var(--u)) calc(11 * var(--u)), transparent calc(12 * var(--u))),
    radial-gradient(circle at calc(100% - 34 * var(--u)) calc(100% - 34 * var(--u)), #6E5426 0 calc(8 * var(--u)), #F3E1AE calc(9 * var(--u)) calc(11 * var(--u)), transparent calc(12 * var(--u))),
    linear-gradient(90deg, rgb(255 255 255 / .06) 1px, transparent 1px) 0 0 / 3px 100%,
    linear-gradient(135deg, #EAD49C, var(--c-brass, #B8924A) 38%, #DEC383 58%, #9C7A3C);
  box-shadow: inset 0 0 0 calc(4 * var(--u)) rgb(255 255 255 / .25), inset 0 0 0 calc(7 * var(--u)) rgb(0 0 0 / .12), 0 calc(14 * var(--u)) calc(26 * var(--u)) calc(-6 * var(--u)) rgb(0 0 0 / .35);
  color: #3B2B12;
  text-shadow: 0 1px 0 rgb(255 255 255 / .45);
}
.np-head { padding-bottom: calc(18 * var(--u)); margin-bottom: calc(14 * var(--u)); border-bottom: calc(2 * var(--u)) solid rgb(59 43 18 / .35); font-family: var(--f-serif); font-size: calc(38 * var(--u)); letter-spacing: .1em; text-transform: uppercase; overflow-wrap: anywhere; }
.np dl { margin: 0; }
.np dl div { display: flex; justify-content: space-between; align-items: baseline; gap: calc(24 * var(--u)); padding: calc(8 * var(--u)) 0; }
.np dt { font-family: var(--f-sans); font-weight: 500; font-size: calc(20 * var(--u)); letter-spacing: calc(5 * var(--u)); text-transform: uppercase; }
.np dd { margin: 0; font-family: var(--f-serif); font-size: calc(32 * var(--u)); text-align: right; }
.odo { gap: calc(20 * var(--u)); max-width: calc(860 * var(--u)); margin: calc(26 * var(--u)) auto calc(16 * var(--u)); padding: calc(36 * var(--u)) calc(34 * var(--u)) calc(26 * var(--u)); border-radius: calc(14 * var(--u)); background: linear-gradient(180deg, #3B3935, #22201E); box-shadow: inset 0 calc(2 * var(--u)) 0 rgb(255 255 255 / .12), 0 calc(14 * var(--u)) calc(24 * var(--u)) calc(-8 * var(--u)) rgb(0 0 0 / .45); }
.odo .cd { padding: 0; background: none; border: 0; border-radius: 0; }
.odo .cd strong { display: block; width: 100%; padding: calc(16 * var(--u)) 0; border-radius: calc(5 * var(--u)); background: linear-gradient(180deg, #8C8576 0%, #EDE6D6 24%, #FBF8EF 50%, #EDE6D6 76%, #8C8576 100%); box-shadow: inset 0 0 0 calc(2 * var(--u)) rgb(0 0 0 / .45); font-size: calc(80 * var(--u)); color: #1F1D1A; }
.odo .cd small { margin-top: calc(14 * var(--u)); color: #E2D8C3; }
/* the timeline's icons sit in hexagon nuts */
.decor-vow-engineering .tl-icon { border: 0; border-radius: 0; background: var(--c-accent); color: var(--c-dark); clip-path: polygon(25% 4%, 75% 4%, 100% 50%, 75% 96%, 25% 96%, 0 50%); }

/* ───────── Chemistry (scientists): the periodic table, a lab notebook ───────── */
.decor-vow-science .script { font-style: italic; font-size: calc(96 * var(--u)); }
.decor-vow-science .btn { border-radius: calc(10 * var(--u)); border-color: var(--c-accent); }
.v-elements { padding-top: calc(140 * var(--u)); }
.el-table { display: grid; grid-template-columns: repeat(18, 1fr); grid-template-rows: repeat(7, calc(42 * var(--u))) calc(14 * var(--u)) repeat(2, calc(42 * var(--u))); gap: calc(6 * var(--u)); width: calc(860 * var(--u)); margin: calc(46 * var(--u)) auto calc(70 * var(--u)); }
.el-table i { border: calc(1.6 * var(--u)) solid color-mix(in srgb, var(--c-accent) 32%, transparent); border-radius: calc(3 * var(--u)); }
.el-table i.on { background: var(--c-accent); border-color: var(--c-accent); }
.el-table i.on.b { background: var(--c-bg); border-width: calc(4 * var(--u)); } /* the month: like the outlined tile */
.el-names { display: flex; align-items: center; justify-content: center; gap: calc(26 * var(--u)); margin: 0 0 calc(54 * var(--u)); font-weight: 400; }
.el-names .amp { margin: 0; font-size: calc(76 * var(--u)); }
.el-tile { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; width: calc(330 * var(--u)); aspect-ratio: 1; padding: calc(40 * var(--u)) calc(18 * var(--u)) calc(22 * var(--u)); border: calc(4 * var(--u)) solid var(--c-accent); border-radius: calc(12 * var(--u)); color: var(--c-accent); }
.el-tile.a { background: var(--c-accent); color: var(--c-bg); }
.el-z { position: absolute; top: calc(18 * var(--u)); left: calc(24 * var(--u)); font-family: var(--f-sans); font-weight: 500; font-size: calc(34 * var(--u)); }
.el-m { position: absolute; top: calc(24 * var(--u)); right: calc(22 * var(--u)); font-family: var(--f-sans); font-size: calc(21 * var(--u)); opacity: .85; }
.el-tile b { font-family: var(--f-sans); font-weight: 700; font-size: calc(170 * var(--u)); line-height: 1; letter-spacing: -0.03em; }
.el-nm { max-width: 100%; margin-top: calc(10 * var(--u)); font-family: var(--f-sans); font-weight: 500; font-size: calc(min(38, 400 / var(--len)) * var(--u)); line-height: 1.15; overflow-wrap: anywhere; }
.el-line { font-family: var(--f-serif); font-style: italic; font-size: calc(40 * var(--u)); color: var(--c-muted); }
.el-date { margin: calc(40 * var(--u)) 0 calc(14 * var(--u)); padding-left: calc(5 * var(--u)); font-family: var(--f-sans); font-weight: 500; font-size: calc(25 * var(--u)); letter-spacing: calc(5 * var(--u)); text-transform: uppercase; }
/* story.notebook */
.nb {
  position: relative;
  margin: calc(30 * var(--u)) calc(-40 * var(--u)) 0;
  padding: calc(56 * var(--u)) calc(56 * var(--u)) calc(70 * var(--u)) calc(110 * var(--u));
  background:
    linear-gradient(color-mix(in srgb, var(--c-accent) 15%, transparent) 1px, transparent 1px) 0 0 / 100% calc(40 * var(--u)),
    linear-gradient(90deg, color-mix(in srgb, var(--c-accent) 15%, transparent) 1px, transparent 1px) 0 0 / calc(40 * var(--u)) 100%,
    var(--c-card);
  box-shadow: 0 calc(10 * var(--u)) calc(26 * var(--u)) rgb(20 50 45 / .14);
  text-align: left;
}
.nb::before { content: ""; position: absolute; top: 0; bottom: 0; left: calc(78 * var(--u)); width: calc(6 * var(--u)); border-left: calc(2 * var(--u)) solid rgb(200 70 70 / .55); border-right: calc(2 * var(--u)) solid rgb(200 70 70 / .55); }
.nb-head { display: flex; justify-content: space-between; gap: calc(20 * var(--u)); padding-bottom: calc(10 * var(--u)); border-bottom: calc(3 * var(--u)) solid var(--c-accent); font-family: var(--f-sans); font-weight: 500; font-size: calc(20 * var(--u)); letter-spacing: calc(4 * var(--u)); text-transform: uppercase; color: var(--c-muted); }
.nb-title { margin: calc(40 * var(--u)) 0 calc(36 * var(--u)); font-family: var(--f-mono); font-weight: 400; font-size: calc(78 * var(--u)); line-height: 1.05; color: var(--c-accent); }
.nb-fig { position: relative; width: 80%; margin: calc(20 * var(--u)) auto calc(44 * var(--u)); padding: calc(16 * var(--u)) calc(16 * var(--u)) 0; background: #fff; box-shadow: 0 calc(8 * var(--u)) calc(18 * var(--u)) rgb(0 0 0 / .16); rotate: -1.5deg; }
.nb-fig.b { width: 58%; margin: calc(50 * var(--u)) 0 0 auto; rotate: 2deg; }
.nb-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.nb-fig figcaption { padding: calc(12 * var(--u)) 0 calc(14 * var(--u)); font-family: var(--f-mono); font-size: calc(30 * var(--u)); text-align: center; }
.nb-tape { position: absolute; z-index: 1; top: calc(-26 * var(--u)); left: 50%; width: calc(190 * var(--u)); height: calc(52 * var(--u)); translate: -50% 0; rotate: -3deg; background: color-mix(in srgb, var(--c-soft) 70%, transparent); box-shadow: 0 1px 2px rgb(0 0 0 / .1); }
.nb-text { font-family: var(--f-serif); font-size: calc(37 * var(--u)); line-height: 1.6; }
.nb-log { margin: calc(44 * var(--u)) 0 0; padding: 0; list-style: none; }
.nb-log li { display: flex; align-items: baseline; gap: calc(26 * var(--u)); padding: calc(6 * var(--u)) 0; font-family: var(--f-mono); font-size: calc(42 * var(--u)); line-height: 1.3; }
.nb-log time { flex: none; min-width: calc(110 * var(--u)); color: var(--c-accent); }
.decor-vow-science .tline li::before { width: calc(24 * var(--u)); height: calc(24 * var(--u)); box-shadow: 0 0 0 calc(7 * var(--u)) var(--line-gap, var(--c-bg)), 0 0 0 calc(9.5 * var(--u)) var(--c-accent); }

/* ───────── Harvest Table (chefs): a recipe card on a linen tea towel ───────── */
.decor-vow-culinary .script { font-style: italic; font-size: calc(98 * var(--u)); }
.decor-vow-culinary .btn { border-color: var(--c-accent); }
.v-recipe {
  padding: calc(300 * var(--u)) calc(76 * var(--u)) calc(260 * var(--u));
  background:
    linear-gradient(rgb(255 255 255 / .2) 1px, transparent 1px) 0 0 / 100% 4px,
    linear-gradient(90deg, rgb(110 90 60 / .07) 1px, transparent 1px) 0 0 / 3px 100%,
    linear-gradient(90deg, transparent 4%, var(--c-stripe) 4% 5.2%, transparent 5.2% 6.6%, var(--c-stripe) 6.6% 10%, transparent 10% 11.4%, var(--c-stripe) 11.4% 12.6%, transparent 12.6% 87.4%, var(--c-stripe) 87.4% 88.6%, transparent 88.6% 90%, var(--c-stripe) 90% 93.4%, transparent 93.4% 94.8%, var(--c-stripe) 94.8% 96%, transparent 96%),
    color-mix(in srgb, var(--c-soft) 42%, var(--c-bg));
}
.rc { position: relative; padding: calc(70 * var(--u)) calc(60 * var(--u)) calc(64 * var(--u)); background: #FFFEF9; text-align: left; rotate: -2deg; box-shadow: 0 calc(26 * var(--u)) calc(44 * var(--u)) calc(-12 * var(--u)) rgb(60 40 20 / .45), 0 calc(3 * var(--u)) calc(8 * var(--u)) rgb(60 40 20 / .16); }
.rc-sprig { position: absolute; z-index: 1; right: calc(-90 * var(--u)); top: calc(-230 * var(--u)); width: calc(560 * var(--u)); rotate: 10deg; filter: drop-shadow(calc(4 * var(--u)) calc(8 * var(--u)) calc(6 * var(--u)) rgb(40 30 10 / .25)); }
.rc-sprig svg { display: block; width: 100%; height: auto; }
.rc-sprig .stem { stroke: color-mix(in srgb, var(--c-accent) 60%, #4A3418); stroke-width: 5; stroke-linecap: round; }
.rc-sprig .lf { fill: var(--c-accent); }
.rc-sprig .lf.b { fill: color-mix(in srgb, var(--c-accent) 72%, #fff); }
.rc-from { padding-bottom: calc(14 * var(--u)); border-bottom: calc(6 * var(--u)) double var(--c-stripe); font-family: var(--f-sans); font-weight: 700; font-size: calc(22 * var(--u)); letter-spacing: calc(6 * var(--u)); text-transform: uppercase; color: var(--c-stripe); }
.rc-names { margin: calc(30 * var(--u)) 0 calc(10 * var(--u)); font-family: var(--f-mono); font-weight: 400; font-size: calc(90 * var(--u)); line-height: 1.12; color: #2B3550; overflow-wrap: anywhere; }
.rc-names .amp { display: inline; margin: 0 .1em; font-family: var(--f-mono); font-style: normal; font-size: .8em; color: var(--c-accent); }
.rc-lines { --lh: calc(74 * var(--u)); background: linear-gradient(180deg, transparent calc(var(--lh) - 2 * var(--u)), rgb(110 150 190 / .5) 0) 0 0 / 100% var(--lh); font-family: var(--f-mono); font-weight: 300; font-size: calc(40 * var(--u)); line-height: var(--lh); color: #2B3550; }
.rc-lines p { margin: 0; }
.rc-sign { text-align: right; color: var(--c-accent); }
/* schedule.method: numbered steps */
.mt { max-width: calc(840 * var(--u)); margin: calc(20 * var(--u)) auto 0; padding: 0; list-style: none; text-align: left; }
.mt li { display: grid; grid-template-columns: calc(100 * var(--u)) 1fr; column-gap: calc(34 * var(--u)); align-items: start; padding: calc(28 * var(--u)) 0; border-bottom: calc(2 * var(--u)) dashed color-mix(in srgb, var(--c-accent) 35%, transparent); }
.mt li:last-child { border-bottom: 0; }
.mt-n { display: grid; place-items: center; width: calc(96 * var(--u)); height: calc(96 * var(--u)); border: calc(2.5 * var(--u)) solid var(--c-accent); border-radius: 50%; font-family: var(--f-serif); font-style: italic; font-size: calc(52 * var(--u)); line-height: 1; color: var(--c-accent); }
.mt time { display: block; font-family: var(--f-mono); font-size: calc(34 * var(--u)); color: var(--c-stripe); }
.mt b { display: block; font-family: var(--f-serif); font-weight: 500; font-size: calc(44 * var(--u)); line-height: 1.2; }
.mt em { display: block; margin-top: calc(4 * var(--u)); font-family: var(--f-serif); font-style: italic; font-size: calc(33 * var(--u)); line-height: 1.35; color: var(--c-muted); }

/* ───────── Duet (musicians): a record and its sleeve ───────── */
.decor-vow-music .script { font-size: calc(88 * var(--u)); }
.decor-vow-music .btn { border-radius: 0; border-color: var(--c-ink); }
.decor-vow-music .label { font-weight: 600; }
.v-vinyl { padding-top: calc(100 * var(--u)); }
.vy { position: relative; height: calc(700 * var(--u)); margin: 0 calc(-110 * var(--u)) calc(60 * var(--u)); }
.vy-sleeve { position: absolute; z-index: 2; left: calc(46 * var(--u)); top: calc(40 * var(--u)); width: calc(620 * var(--u)); aspect-ratio: 1; overflow: hidden; background: var(--c-dark); box-shadow: 0 calc(30 * var(--u)) calc(50 * var(--u)) calc(-14 * var(--u)) rgb(0 0 0 / .55), 0 calc(4 * var(--u)) calc(10 * var(--u)) rgb(0 0 0 / .25); }
.vy-img { width: 100%; height: 100%; object-fit: cover; }
.vy-sleeve::after { content: ""; position: absolute; inset: 0; background: linear-gradient(118deg, rgb(255 255 255 / .18), transparent 32%, transparent 70%, rgb(0 0 0 / .16)); box-shadow: inset 0 0 0 calc(2 * var(--u)) rgb(255 255 255 / .12); pointer-events: none; }
.vy-stereo { position: absolute; z-index: 1; top: calc(28 * var(--u)); right: calc(28 * var(--u)); padding: calc(6 * var(--u)) calc(16 * var(--u)) calc(6 * var(--u)) calc(20 * var(--u)); border: calc(2 * var(--u)) solid rgb(255 255 255 / .85); border-radius: 99px; background: rgb(0 0 0 / .18); font-family: var(--f-sans); font-weight: 600; font-size: calc(17 * var(--u)); letter-spacing: calc(4 * var(--u)); text-transform: uppercase; color: #fff; }
.vy-disc, .vy-shine { position: absolute; left: calc(424 * var(--u)); top: calc(55 * var(--u)); width: calc(590 * var(--u)); aspect-ratio: 1; border-radius: 50%; }
.vy-disc {
  z-index: 1;
  background:
    radial-gradient(circle, transparent 0 36%, rgb(255 255 255 / .07) 36.4% 36.9%, transparent 37.3% 54%, rgb(255 255 255 / .07) 54.4% 54.9%, transparent 55.3% 74%, rgb(255 255 255 / .07) 74.4% 74.9%, transparent 75.3% 96%, rgb(255 255 255 / .1) 96.5%, transparent 97.5%),
    repeating-radial-gradient(circle, #121212 0 calc(2 * var(--u)), #1E1E1E calc(2.8 * var(--u)) calc(4.4 * var(--u))),
    #121212;
  box-shadow: 0 calc(22 * var(--u)) calc(40 * var(--u)) calc(-10 * var(--u)) rgb(0 0 0 / .55);
  animation: vy-spin 1.8s linear infinite paused;
}
.vy-shine { z-index: 1; background: conic-gradient(from 25deg, transparent 0 5%, rgb(255 255 255 / .16) 11%, transparent 18% 50%, rgb(255 255 255 / .12) 61%, transparent 68%); -webkit-mask: radial-gradient(circle, transparent 0 17.6%, #000 18%); mask: radial-gradient(circle, transparent 0 17.6%, #000 18%); pointer-events: none; }
.vy-label { position: absolute; left: 50%; top: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 35%; aspect-ratio: 1; padding: 6%; translate: -50% -50%; border-radius: 50%; background: radial-gradient(circle, var(--c-bg) 0 3.4%, #111 3.5% 4.4%, transparent 4.5%), radial-gradient(circle, transparent 0 88%, rgb(0 0 0 / .15) 89%), var(--c-accent); color: #FFF8EC; text-align: center; }
.vy-label small { font-family: var(--f-sans); font-weight: 600; font-size: calc(13 * var(--u)); letter-spacing: calc(3 * var(--u)); text-transform: uppercase; }
.vy-label small:first-child { margin-bottom: calc(10 * var(--u)); }
.vy-label small:last-child { margin-top: calc(10 * var(--u)); }
.vy-label b { max-width: 100%; font-family: var(--f-script); font-weight: 400; font-size: calc(30 * var(--u)); line-height: 1.05; overflow-wrap: anywhere; }
.vy-label i { margin: calc(26 * var(--u)) 0 calc(2 * var(--u)); font-family: var(--f-serif); font-size: calc(24 * var(--u)); line-height: 1; }
#invite:has(.player.playing) .vy-disc { animation-play-state: running; }
.reveal .vy-disc { animation: vy-out 1.9s cubic-bezier(.2, .7, .2, 1) .7s both, vy-spin 1.8s linear infinite paused; }
.reveal .vy-shine { animation: vy-out 1.9s cubic-bezier(.2, .7, .2, 1) .7s both; }
@keyframes vy-out { from { translate: calc(-300 * var(--u)) 0; } }
@keyframes vy-spin { to { rotate: 360deg; } }
.vy-names { margin: calc(20 * var(--u)) 0 calc(20 * var(--u)); font-family: var(--f-script); font-weight: 400; font-size: calc(var(--nm) * var(--u)); line-height: 1; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.vy-names span { display: block; }
.vy-names .amp { margin: calc(14 * var(--u)) 0 calc(10 * var(--u)); font-size: calc(62 * var(--u)); }
.vy-line { font-family: var(--f-serif); font-style: italic; font-size: calc(42 * var(--u)); color: var(--c-muted); }
.vy-date { margin: calc(40 * var(--u)) 0 calc(14 * var(--u)); padding-left: calc(5 * var(--u)); font-family: var(--f-sans); font-weight: 500; font-size: calc(24 * var(--u)); letter-spacing: calc(5 * var(--u)); text-transform: uppercase; }
/* schedule.tracklist */
.tk-side { display: flex; align-items: center; gap: calc(22 * var(--u)); margin: calc(50 * var(--u)) 0 calc(6 * var(--u)); font-family: var(--f-sans); font-weight: 600; font-size: calc(22 * var(--u)); letter-spacing: calc(8 * var(--u)); text-transform: uppercase; color: var(--c-accent); }
.tk-side::after { content: ""; flex: 1; border-top: var(--hair) solid currentColor; opacity: .5; }
.tk { margin: 0; padding: 0; list-style: none; text-align: left; }
.tk li { display: grid; grid-template-columns: calc(76 * var(--u)) auto 1fr auto; grid-template-areas: "n what dots time" ". desc desc desc"; column-gap: calc(16 * var(--u)); align-items: baseline; padding: calc(18 * var(--u)) 0; }
.tk-n { grid-area: n; font-family: var(--f-sans); font-weight: 500; font-size: calc(24 * var(--u)); color: var(--c-accent); }
.tk b { grid-area: what; font-family: var(--f-script); font-weight: 400; font-size: calc(46 * var(--u)); line-height: 1.15; }
.tk i { grid-area: dots; align-self: end; margin-bottom: calc(12 * var(--u)); border-bottom: calc(3 * var(--u)) dotted color-mix(in srgb, currentColor 35%, transparent); }
.tk time { grid-area: time; font-family: var(--f-sans); font-weight: 500; font-size: calc(25 * var(--u)); letter-spacing: calc(2 * var(--u)); white-space: nowrap; }
.tk em { grid-area: desc; font-family: var(--f-serif); font-style: italic; font-size: calc(33 * var(--u)); line-height: 1.3; color: var(--c-muted); }

/* ───────── Valor (firefighters): gold leaf on engine-red lacquer ───────── */
.decor-vow-fire .script { font-size: calc(80 * var(--u)); font-weight: 400; line-height: 1.15; }
.decor-vow-fire .label { font-weight: 500; font-size: calc(24 * var(--u)); }
.decor-vow-fire .btn { border-radius: 0; border-color: var(--c-accent); }
.decor-vow-fire .sec.bg-dark .script { background: var(--foil); -webkit-background-clip: text; background-clip: text; color: transparent; }
.decor-vow-fire .tl-icon { background: var(--foil); border-color: transparent; color: var(--c-dark); }
.decor-vow-fire .medal::before { border: calc(6 * var(--u)) double var(--c-accent); }
.decor-vow-fire .rsvp-privacy, .decor-vow-fire .st-q { font-family: var(--f-serif); font-size: calc(26 * var(--u)); }
.v-goldleaf {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: calc(1900 * var(--u));
  padding: calc(170 * var(--u)) calc(110 * var(--u)) calc(190 * var(--u));
  background:
    radial-gradient(ellipse 90% 40% at 30% 10%, rgb(255 255 255 / .18), transparent 60%),
    radial-gradient(ellipse 120% 60% at 50% 115%, rgb(0 0 0 / .4), transparent 70%),
    linear-gradient(180deg, color-mix(in srgb, var(--c-dark) 86%, #fff), var(--c-dark) 38%, color-mix(in srgb, var(--c-dark) 78%, #000));
}
.gl-frame { position: absolute; inset: calc(50 * var(--u)); border: calc(4 * var(--u)) solid transparent; border-image: var(--foil) 1; pointer-events: none; }
.gl-frame::after { content: ""; position: absolute; inset: calc(12 * var(--u)); border: calc(1.5 * var(--u)) solid transparent; border-image: var(--foil) 1; }
.gl-frame i { position: absolute; width: calc(210 * var(--u)); height: calc(210 * var(--u)); color: #DCC07F; }
.gl-frame svg { display: block; width: 100%; height: 100%; }
.gl-frame .c-tl { top: calc(24 * var(--u)); left: calc(24 * var(--u)); }
.gl-frame .c-tr { top: calc(24 * var(--u)); right: calc(24 * var(--u)); transform: scaleX(-1); }
.gl-frame .c-bl { bottom: calc(24 * var(--u)); left: calc(24 * var(--u)); transform: scaleY(-1); }
.gl-frame .c-br { bottom: calc(24 * var(--u)); right: calc(24 * var(--u)); transform: scale(-1); }
.gl-arc { display: block; width: 100%; height: auto; margin: 0 0 calc(-10 * var(--u)); overflow: visible; }
.gl-arc text { fill: url(#gl-gold); font-family: var(--f-sans); font-size: 34px; letter-spacing: 6px; text-transform: uppercase; }
.gl-names { margin: calc(10 * var(--u)) 0 calc(50 * var(--u)); font-family: var(--f-script); font-weight: 700; font-size: calc(var(--nm) * .78 * var(--u)); line-height: 1.08; background: var(--foil); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(calc(5 * var(--u)) calc(6 * var(--u)) 0 rgb(24 6 4 / .85)); overflow-wrap: anywhere; }
.gl-names span { display: block; }
.gl-names .amp { margin: calc(10 * var(--u)) 0; font-size: calc(70 * var(--u)); color: transparent; }
.gl-line { font-family: var(--f-serif); font-style: italic; font-size: calc(40 * var(--u)); line-height: 1.5; }
.gl-banner { margin: calc(56 * var(--u)) 0 calc(20 * var(--u)); filter: drop-shadow(calc(4 * var(--u)) calc(5 * var(--u)) 0 rgb(24 6 4 / .6)); }
.gl-banner span { display: inline-block; padding: calc(22 * var(--u)) calc(84 * var(--u)); background: var(--foil); clip-path: polygon(0 0, 100% 0, calc(100% - 34 * var(--u)) 50%, 100% 100%, 0 100%, calc(34 * var(--u)) 50%); font-family: var(--f-sans); font-weight: 500; font-size: calc(28 * var(--u)); letter-spacing: calc(4 * var(--u)); text-transform: uppercase; color: var(--c-dark); }
.gl-time { margin-bottom: calc(14 * var(--u)); font-family: var(--f-serif); font-style: italic; font-size: calc(38 * var(--u)); }
.v-goldleaf .place { color: var(--c-onDarkAccent); }
@media (prefers-reduced-motion: reduce) { .vy-disc, .vy-shine { animation: none !important; } }

/* ── Photos the couple framed in the editor (crop.js; data.crops) ──
   Not zoomed: the <img> itself is the frame and only its object-position moves (inline style).
   Zoomed: a <span class="<the design's frame class> crop"> takes the frame's place, so its size,
   shape, mask, shadow and filters stay exactly as designed, and holds a larger copy of the
   photo: --cz times the frame, placed by --cx/--cy (both read like object-position). */
:where(.crop) { display: block; position: relative; }
.crop.crop { overflow: hidden; }
.crop.crop > img {
  position: absolute;
  left: calc((1 - var(--cz)) * var(--cx));
  top: calc((1 - var(--cz)) * var(--cy));
  width: calc(var(--cz) * 100%);
  height: calc(var(--cz) * 100%);
  max-width: none;
  margin: 0;
  object-fit: cover;
  object-position: var(--cx) var(--cy);
}

/* Editor preview only (crop-editor.js): double-click a photo → move and zoom it in its frame,
   like Canva. The rest of the page dims, the part of the photo outside the frame shows faintly. */
html.cropping { overflow: hidden; }
.cx-ui { position: fixed; inset: 0; z-index: 2147483000; touch-action: none; cursor: grab; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }
.cx-ui.dragging { cursor: grabbing; }
.cx-ghost { position: fixed; max-width: none; opacity: .5; pointer-events: none; }
.cx-box { position: fixed; pointer-events: none; outline: 2px solid #fff; box-shadow: 0 0 0 1px rgb(0 0 0 / .35), 0 0 0 300vmax rgb(28 24 20 / .62); }
.cx-handle { position: fixed; width: 18px; height: 18px; margin: -9px 0 0 -9px; border: 2px solid #A88A5A; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgb(0 0 0 / .35); }
.cx-handle[data-c="nw"], .cx-handle[data-c="se"] { cursor: nwse-resize; }
.cx-handle[data-c="ne"], .cx-handle[data-c="sw"] { cursor: nesw-resize; }
.cx-bar {
  position: fixed;
  left: 50%;
  bottom: max(14px, env(safe-area-inset-bottom));
  translate: -50% 0;
  display: flex;
  align-items: center;
  gap: 6px;
  width: max-content;
  max-width: calc(100% - 20px);
  padding: 6px 6px 6px 10px;
  border-radius: 999px;
  background: #FFFDF9;
  box-shadow: 0 6px 24px rgb(0 0 0 / .28);
  font: 500 13px/1 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: #2F2A24;
  cursor: default;
}
.cx-bar button { flex: none; height: 32px; min-width: 32px; padding: 0 12px; border: 0; border-radius: 999px; background: transparent; font: inherit; color: inherit; cursor: pointer; }
.cx-bar button:hover { background: #F4EFE7; }
.cx-bar button:focus-visible, .cx-bar input:focus-visible { outline: 2px solid #A88A5A; outline-offset: 1px; }
.cx-bar .cx-zoom { padding: 0; font-size: 19px; font-weight: 400; }
.cx-bar .cx-done { background: #2F2A24; color: #FFFDF9; }
.cx-bar .cx-done:hover { background: #4A433A; }
.cx-bar input { width: min(150px, 30vw); min-width: 70px; margin: 0 2px; accent-color: #A88A5A; }
.cx-tip { position: fixed; left: 50%; bottom: calc(max(14px, env(safe-area-inset-bottom)) + 52px); translate: -50% 0; max-width: calc(100% - 24px); margin: 0; padding: 7px 14px; border-radius: 999px; background: rgb(28 24 20 / .78); font: 500 12px/1.3 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: #fff; text-align: center; pointer-events: none; }
