@font-face {
  font-family: "Bella Display";
  src: url("assets/fonts/display-regular.woff") format("woff");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Bella Display";
  src: url("assets/fonts/display-italic.woff") format("woff");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Bella Text";
  src: url("assets/fonts/serif-regular.woff") format("woff");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --night: #0b1627;
  --ink: #132034;
  --pearl: #f1eff4;
  --ice: #c9d8e8;
  --title: "Bella Display", "Bella Text", system-ui;
  --text: "Bella Text", "Bella Display", system-ui;
  --system: system-ui, sans-serif;
  --frame: 100vh;
  --travel: 108vh;
}
@supports (height: 100dvh) {
  :root { --frame: 100dvh; --travel: 108svh; }
}
*, *::before, *::after { box-sizing: border-box; }
html { margin: 0; background: var(--night); overflow-x: clip; }
html.has-scroll-stage { scrollbar-width: none; }
body { margin: 0; min-width: 0; color: var(--pearl); font-family: var(--text); font-synthesis: none; }
body[data-mode="film"], body[data-mode="dissolve"], body:has(dialog[open]) { overflow: hidden; }
h1, h2, h3, p { margin: 0; font-weight: 400; }
a { color: inherit; }
button, input, textarea { font: inherit; }
button, a, input, textarea { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
button:not(:disabled) { cursor: pointer; }
:focus-visible { outline: 2px solid #9fbadb; outline-offset: 5px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.js body[data-mode="portal"] .invite, .js body[data-mode="film"] .invite,
.js body:is([data-mode="dissolve"], [data-mode="invite"]) .chapter--portal { display: none; }
html:not(.js) :is(.portal-actions, #replay, #rsvp-open) { display: none; }

/* The document scrolls normally. Only the stage is pinned. */
.has-scroll-stage .invite { position: relative; height: calc(var(--frame) + var(--scene-gaps, 8) * var(--travel)); }
.has-scroll-stage .invite-stage { position: sticky; inset-block-start: 0; height: var(--frame); overflow: clip; isolation: isolate; }
.has-scroll-stage .invite .chapter {
  position: absolute;
  inset: 0;
  min-height: 0;
  opacity: var(--scene-alpha, 0);
  visibility: hidden;
  z-index: var(--scene-layer, 0);
  pointer-events: none;
}
.has-scroll-stage .invite-stage:not([data-ready]) .chapter:first-child { opacity: 1; visibility: visible; }
.has-scroll-stage .invite .chapter[data-in-frame] { visibility: visible; }
.has-scroll-stage .invite .chapter[data-active] { pointer-events: auto; }
.has-scroll-stage .invite .chapter > :is(.composition, .crystal-number, .count-bottom, .palette, .down-link, .replay) {
  opacity: var(--copy-alpha, 1);
  transform: translate3d(0, var(--copy-y, 0px), 0);
}
.has-scroll-stage .invite .chapter .crystal-number {
  transform: translate3d(-50%, var(--copy-y, 0px), 0) scale(var(--crystal-scale, 1));
  translate: none;
}

.chapter {
  position: relative;
  isolation: isolate;
  min-height: max(33rem, var(--frame));
  overflow: clip;
  display: grid;
  place-items: center;
  text-align: center;
  background-color: var(--back, var(--night));
}
.chapter::before, .chapter::after, .plate, .plate img { position: absolute; inset: 0; width: 100%; height: 100%; }
.chapter::before, .chapter::after { content: ""; pointer-events: none; }
.chapter::before { z-index: -3; }
.plate { display: block; z-index: -2; overflow: hidden; }
.plate img {
  display: block;
  object-fit: cover;
  object-position: var(--photo-x, 50%) var(--photo-y, 50%);
  transform-origin: var(--camera-x, 50%) var(--camera-origin, 50%);
  transform: translate3d(0, var(--camera-y, 0px), 0) scale(calc(var(--asset-scale, 1) + var(--camera-scale, .012)));
}
.chapter::after { z-index: -1; background: var(--veil, transparent); }
.light-type { color: var(--pearl); }
.dark-type { --back: #ccd6e6; color: var(--ink); }
.composition { padding-inline: 1rem; max-width: 100%; position: relative; }
h1, h2, .monogram, .timer-unit strong { font-family: var(--title); }
.eyebrow { font-size: clamp(.82rem, 3.65vw, 1.19rem); line-height: 1.28; letter-spacing: .19em; text-transform: uppercase; }
.monogram {
  display: inline-grid;
  position: relative;
  place-items: center;
  inline-size: var(--mark, 6.1rem);
  aspect-ratio: 1;
  font-size: calc(var(--mark, 6.1rem) * .275);
  line-height: 1;
  letter-spacing: -.055em;
}
.monogram img { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .9; }
.dark-type .monogram img { filter: brightness(0); opacity: .78; }
.engraving {
  position: relative;
  display: block;
  inline-size: var(--rule-size, 6.5rem);
  margin-inline: auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, currentColor 47%, currentColor 53%, transparent);
}
.engraving::after {
  content: "";
  position: absolute;
  inset-block-start: 50%;
  inset-inline-start: 50%;
  width: .5rem;
  height: .78rem;
  translate: -50% -50%;
  background: currentColor;
  clip-path: polygon(50% 0, 65% 39%, 100% 50%, 65% 61%, 50% 100%, 35% 61%, 0 50%, 35% 39%);
}
.invitation-button {
  display: inline-grid;
  place-items: center;
  padding: .62rem 1.55rem;
  min-block-size: 2.875rem;
  min-inline-size: min(13rem, 100%);
  border: 1px solid var(--button-line);
  border-radius: 2px;
  background: var(--button-bg);
  font-size: .79rem;
  letter-spacing: .16em;
  line-height: 1.36;
  text-align: center;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--button-ink);
  box-shadow: 0 .18rem .7rem var(--button-shadow);
  transition: background-color .24s ease, border-color .24s ease, translate .24s ease;
}
.silver {
  --button-ink: #152236;
  --button-bg: #e9edf4e8;
  --button-line: #f2f5fac2;
  --button-shadow: #0b162745;
  backdrop-filter: blur(6px);
}
.blue {
  --button-ink: #f1eff4;
  --button-bg: #162438;
  --button-line: #9baec5;
  --button-shadow: #14263c40;
}
.invitation-button:hover { translate: 0 -2px; background-color: color-mix(in srgb, var(--button-bg) 84%, #9fb3cd); }
.invitation-button:active { translate: 0 0; }
.quiet-link {
  display: inline-grid;
  min-height: 2.75rem;
  place-items: center;
  border: 0;
  padding: 0 .65rem;
  background: none;
  text-decoration: underline;
  text-underline-offset: .29rem;
  text-decoration-color: #b6c7ddbf;
  font: 400 .8rem/1.3 var(--system);
}

.chapter--portal {
  --photo-y: 49%;
  --veil: radial-gradient(ellipse 65% 46% at 50% 26%, #0a162970, transparent 78%),
    linear-gradient(180deg, transparent 55%, #0b162725 76%, #0b162780);
}
.portal-heading, .portal-actions { position: absolute; inset-inline: 0; padding-inline: 1rem; }
.portal-heading { top: max(12%, env(safe-area-inset-top)); --mark: clamp(5.3rem, 24vw, 7rem); text-shadow: 0 2px 16px #081322; }
.portal-title { font-size: clamp(1.74rem, 7.65vw, 3.3rem); line-height: 1.05; letter-spacing: .155em; text-transform: uppercase; }
.portal-title span, .cover-event span, .composition h1 span, .composition h2 span { display: block; }
.portal-title span { margin-top: .23em; font-size: 1.18em; letter-spacing: .14em; padding-inline-start: .14em; }
.portal-heading .engraving { margin-top: 1.15rem; --rule-size: 5.8rem; }
.portal-actions { display: grid; justify-items: center; bottom: max(8%, env(safe-area-inset-bottom)); }
.portal-actions .quiet-link { text-shadow: 0 1px 7px #050b13; }
.no-script { position: absolute; bottom: 10%; }

.chapter--cover {
  --photo-y: 51%;
  --veil: radial-gradient(ellipse 51% 33% at 50% 46%, #f1eff431, transparent);
}
.cover-copy { --mark: clamp(6.65rem, 27vw, 8.9rem); align-self: start; margin-top: clamp(3.8rem, 14svh, 9.5rem); }
.cover-copy h1 {
  font-size: clamp(2.65rem, 14.2vw, 6.55rem);
  line-height: .91;
  letter-spacing: -.057em;
  margin: .06em 0 .37em;
}
.cover-copy h1:focus { outline: none; }
.cover-copy .age { font-size: clamp(1rem, 4.8vw, 1.58rem); letter-spacing: .25em; margin: 1.26rem 0 1.15rem; }
.cover-copy .age + .engraving { --rule-size: 4.15rem; }
.cover-copy .cover-event { margin-top: 1.22rem; font-size: clamp(.95rem, 4.15vw, 1.34rem); letter-spacing: .23em; }
.cover-event span { margin-top: .22em; }
.down-link {
  position: absolute;
  bottom: max(.95rem, env(safe-area-inset-bottom));
  inline-size: 2.75rem;
  block-size: 2.75rem;
  display: grid;
  place-items: center;
}
.down-link::before { content: ""; width: .66rem; aspect-ratio: 1; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: rotate(45deg); }

.chapter--message {
  --photo-x: 100%;
  --photo-y: 47%;
  --camera-x: 100%;
  --asset-scale: 1.055;
  --veil: radial-gradient(ellipse 58% 39% at 89% 29%, #0b1627c3, #0d1c3342 66%, transparent);
}
.message-copy {
  position: absolute;
  text-align: right;
  inline-size: min(49%, 26rem);
  inset-inline-end: 4.8%;
  inset-block-start: 17%;
  padding: 0;
  font-family: var(--title);
  font-style: italic;
  text-shadow: 0 1px 10px #061220;
}
.message-copy h2 { font-size: clamp(1.39rem, 6.18vw, 3.7rem); line-height: 1.15; letter-spacing: -.037em; text-wrap: balance; }
.message-copy .engraving { margin: 1.23rem 0 1.14rem auto; --rule-size: 4.9rem; }
.message-copy p { font-size: clamp(1rem, 4.5vw, 1.63rem); line-height: 1.28; letter-spacing: -.02em; }

.chapter--date {
  --photo-y: 53%;
  --veil: radial-gradient(ellipse 58% 17% at 50% 76.6%, #e0e6efd6, #dce5f070 58%, #dce5f000 96%);
  color: var(--ink);
}
.crystal-number {
  position: absolute;
  z-index: 0;
  inset-inline-start: 50%;
  inset-block-end: 34.2%;
  translate: -50% 0;
  inline-size: clamp(13.4rem, 85vw, 25rem);
  block-size: auto;
  max-block-size: 42%;
  object-fit: contain;
  filter: drop-shadow(0 .39rem .85rem #10213664);
}
.date-copy { align-self: end; margin-bottom: clamp(3.9rem, 16svh, 8.35rem); }
.date-copy .engraving { --rule-size: 7.2rem; }
.date-month, .date-day { display: block; }
.date-month { margin: .88rem 0; font-size: clamp(1.2rem, 5.25vw, 2rem); text-transform: uppercase; letter-spacing: .16em; }
.date-day { margin-top: .92rem; font-size: clamp(.73rem, 3.35vw, 1.06rem); }

.chapter--venue {
  --photo-y: 43%;
  --veil: linear-gradient(180deg, transparent 29%, #0b16271a 47%, #0c1b32a3 77%, #0b1627d6);
}
.venue-copy { align-self: end; margin-bottom: clamp(2.4rem, 9.3svh, 6.2rem); }
.venue-copy h2, .rsvp-copy h2 { font-size: clamp(2.32rem, 10.7vw, 5rem); letter-spacing: -.043em; line-height: .94; }
.venue-copy .engraving { margin-top: 1.18rem; }
.venue-region { margin: .72rem 0 1.07rem; font-family: var(--title); font-style: italic; font-size: 1.25rem; letter-spacing: .065em; }
.action-note { margin-top: .62rem; font: 400 .71rem/1.35 var(--system); color: #e6edf7; }

.chapter--dress {
  --photo-x: 57%;
  --photo-y: 68%;
  --camera-origin: 77%;
  --asset-scale: 1.34;
  --veil: radial-gradient(ellipse 74% 31% at 46% 48%, #0a192db9, #13264124 71%, transparent),
    linear-gradient(180deg, #11223b28, transparent 68%, #0b162746);
}
.dress-copy, .palette-copy { padding-inline: 1rem; }
.dress-copy h2, .palette-copy h2 {
  font-size: clamp(1.98rem, 8.2vw, 3.95rem);
  letter-spacing: .125em;
  line-height: 1.05;
  text-transform: uppercase;
}
.dress-copy .engraving, .palette-copy .engraving { margin-top: 1.06rem; }
.dress-copy p { margin-top: 1.13rem; font: italic 400 clamp(1.17rem, 4.8vw, 1.58rem)/1.28 var(--title); }
.chapter--palette {
  --photo-x: 51%;
  --photo-y: 56%;
  --veil: linear-gradient(180deg, #0b162741, transparent 36%, transparent 71%, #0b1627b5);
}
.palette-copy { align-self: start; margin-top: clamp(2.65rem, 9svh, 5.6rem); }
.palette-copy h2 { font-size: clamp(1.76rem, 7.75vw, 3.3rem); }
.palette { position: absolute; bottom: max(4.4%, calc(env(safe-area-inset-bottom) + 1rem)); inset-inline: 1.2rem; }
.palette ul {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: .45rem .68rem;
  max-width: 34rem;
}
.palette li { font: 400 .72rem/1.28 var(--system); color: #edf2fa; text-shadow: 0 1px 8px #020813; white-space: nowrap; }
.palette li + li::before { content: "·"; margin-inline-end: .68rem; opacity: .72; }

.chapter--countdown {
  --photo-y: 51%;
  --veil: linear-gradient(180deg, #0a162771, transparent 24%, transparent 70%, #091626a3);
}
.count-heading { align-self: start; margin-top: clamp(1.9rem, 5.4svh, 3.75rem); }
.count-heading h2 {
  font: italic 400 clamp(1.27rem, 5.28vw, 2.24rem)/1.14 var(--title);
  letter-spacing: .15em;
  text-transform: uppercase;
  text-shadow: 0 2px 12px #081422;
}
.count-heading .engraving { margin-top: .97rem; --rule-size: 8.2rem; }
.count-bottom { position: absolute; bottom: max(10.7%, env(safe-area-inset-bottom)); inset-inline: 0; }
.count-bottom .engraving { --rule-size: 8.2rem; margin-bottom: 1.18rem; }
.timer { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: min(86%, 30rem); margin-inline: auto; }
.timer-unit strong {
  display: block;
  font-size: clamp(2rem, 9.35vw, 3.9rem);
  font-weight: 400;
  font-variant-numeric: lining-nums tabular-nums;
  line-height: 1;
}
.timer-unit span { display: block; margin-top: .42rem; letter-spacing: .13em; text-transform: uppercase; font-size: clamp(.64rem, 2.75vw, .89rem); }
.timer-ended { font: italic 400 clamp(1.9rem, 7.4vw, 3.5rem)/1.15 var(--title); }

.chapter--rsvp {
  --photo-y: 50%;
  --veil: radial-gradient(ellipse 49% 34% at 49% 44%, #f1eff469, transparent);
}
.rsvp-copy { --mark: clamp(5.65rem, 23.5vw, 8.15rem); align-self: start; margin-top: clamp(4.7rem, 19.5svh, 11rem); }
.rsvp-copy h2 { font-size: clamp(2.41rem, 11.35vw, 5.75rem); }
.rsvp-copy .engraving { margin-top: 1.31rem; }
.rsvp-copy .eyebrow { margin: 1.15rem 0 1.25rem; font-size: clamp(.77rem, 3.3vw, .98rem); }

.chapter--farewell {
  --photo-y: 59%;
  --veil: linear-gradient(180deg, transparent 42%, #0b162714 62%, #0a1527b8);
}
.farewell-copy { align-self: end; margin-bottom: clamp(4.05rem, 11svh, 6.4rem); --mark: clamp(4.45rem, 17vw, 6.4rem); }
.farewell-copy h2 { font: italic 400 clamp(2.38rem, 9.5vw, 4.85rem)/.99 var(--title); letter-spacing: -.045em; text-shadow: 0 1px 14px #071120; }
.farewell-copy .engraving { margin-block: .88rem .2rem; --rule-size: 4.6rem; }
.replay { position: absolute; bottom: max(.94rem, env(safe-area-inset-bottom)); }

.film {
  position: fixed;
  inset: 0;
  z-index: 10;
  isolation: isolate;
  height: var(--frame);
  background: #0b1627 url("assets/images/castelo-540.webp") center/cover no-repeat;
  color: var(--pearl);
}
.film:focus { outline: none; }
.film-screen, .film-shade, .film-surround { position: absolute; inset: 0; pointer-events: none; }
.film-screen { display: grid; place-items: center; z-index: -1; }
.film-screen video { display: block; block-size: 100%; inline-size: 100%; object-fit: cover; opacity: 0; transition: opacity .63s ease; }
.film.has-video .film-screen video { opacity: 1; }
.film-shade { z-index: -1; background: linear-gradient(180deg, #050c1899, transparent 17%, transparent 66%, #050c18d4); }
.film-caption {
  position: absolute;
  bottom: max(15%, calc(env(safe-area-inset-bottom) + 6rem));
  inset-inline: 1rem;
  width: fit-content;
  max-width: min(34rem, calc(100% - 2rem));
  margin-inline: auto;
  font: italic 400 clamp(1.16rem, 4.9vw, 1.7rem)/1.26 var(--title);
  padding: .38rem .65rem;
  text-align: center;
  text-shadow: 0 2px 10px #050c18, 0 2px 5px #050c18;
  text-wrap: balance;
  background: #07122145;
}
.film-caption:empty { display: none; }
.film-top, .film-bottom { position: absolute; display: flex; inset-inline: max(.85rem, env(safe-area-inset-left)); }
.film-top { top: max(.8rem, env(safe-area-inset-top)); justify-content: space-between; }
.film-bottom { bottom: max(.67rem, env(safe-area-inset-bottom)); flex-direction: column; align-items: center; }
.film-tools { display: flex; justify-content: center; gap: .35rem; }
.film-button {
  font: 400 .78rem/1.2 var(--system);
  background: #0b16274d;
  border: 1px solid #cad8ed46;
  border-radius: 2px;
  min-height: 44px;
  padding: .38rem .68rem;
  color: var(--pearl);
}
.film-button:hover { background: #192941ba; }
.film-button[aria-pressed="false"] { color: #bac7d9; text-decoration: line-through; }
.film-status { font: .81rem/1.4 var(--system); text-align: center; margin-top: .43rem; }
.film-status:empty { display: none; }
progress { appearance: none; border: none; max-width: 13.2rem; height: 2px; width: 80%; background: #c9d8e854; color: #f1eff4; margin-top: .68rem; }
progress::-webkit-progress-bar { background: #c9d8e854; }
progress::-webkit-progress-value { background: #f1eff4; }
progress::-moz-progress-bar { background: #f1eff4; }
body[data-mode="dissolve"] .film { pointer-events: none; animation: optical-out var(--dissolve, 1050ms) cubic-bezier(.32,.04,.28,1) both; }
body[data-mode="film"] .film { animation: optical-in 620ms ease both; }
body[data-mode="dissolve"] .film :is(.film-top, .film-bottom, .film-caption) { visibility: hidden; }
body[data-mode="dissolve"] .cover-copy, body[data-mode="dissolve"] .down-link { visibility: hidden; }
body.reveal-cover .cover-copy > :not(h1) { animation: title-in .88s .20s cubic-bezier(.2,.67,.23,1) backwards; }
body.reveal-cover .cover-copy h1 { animation: title-in 1.14s .09s cubic-bezier(.2,.67,.23,1) backwards; }
@keyframes optical-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes optical-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes title-in { from { opacity: 0; transform: translateY(11px); } to { opacity: 1; transform: translateY(0); } }

#snow { position: fixed; inset: 0; z-index: 3; width: 100%; height: 100%; pointer-events: none; }

.rsvp-dialog {
  width: min(100% - 2rem, 28rem);
  max-height: 90dvh;
  padding: clamp(1.25rem, 5vw, 2.25rem);
  background: #f1eff4;
  color: var(--ink);
  border: 1px solid #9baabd;
  box-shadow: 0 2rem 5rem #050b17a6;
  color-scheme: light;
}
.rsvp-dialog::backdrop { background: #081322ad; backdrop-filter: blur(5px); }
.rsvp-dialog form { display: grid; gap: .85rem; font: .93rem/1.45 var(--system); }
.rsvp-dialog h2 { font: 400 2.4rem/1 var(--title); }
.rsvp-dialog p { max-width: 34ch; }
.dialog-close { position: absolute; right: .4rem; top: .45rem; min-width: 44px; min-height: 44px; padding: 0; border: none; background: none; font: 1.7rem var(--title); }
.rsvp-dialog input[name="guest"], .rsvp-dialog textarea {
  min-height: 2.7rem;
  background: #fff;
  border: 1px solid #77899e;
  border-radius: 2px;
  color: #111b29;
  padding: .5rem .65rem;
  font-size: 1rem;
}
.rsvp-dialog fieldset { display: grid; gap: .25rem; border: 0; padding: 0; margin: 0; }
.rsvp-dialog legend { margin-bottom: .3rem; }
.rsvp-dialog label:has(input[type="radio"]) { display: flex; gap: .45rem; align-items: center; min-height: 2.2rem; }
.rsvp-dialog input[type="radio"] { width: 1.05rem; height: 1.05rem; accent-color: #233c59; }
.response-status:empty { display: none; }
.share-fallback { display: grid; gap: .35rem; }
.share-fallback .quiet-link { justify-self: start; padding-inline: 0; }

@media (min-width: 720px) and (min-aspect-ratio: 1/1) {
  :is(.chapter--portal, .chapter--date, .chapter--countdown, .chapter--farewell)::before {
    background: var(--wide-tint, #18294362) var(--wide-image) center var(--wide-y, 45%)/cover no-repeat;
    background-blend-mode: multiply;
    filter: blur(13px);
    transform: scale(1.05);
  }
  :is(.chapter--portal, .chapter--date, .chapter--countdown, .chapter--farewell) .plate {
    width: min(100%, var(--plane, 55rem));
    inset-inline: 50% auto;
    translate: -50% 0;
    mask-image: linear-gradient(90deg, transparent, black 17%, black 83%, transparent);
  }
  .chapter--portal { --wide-image: url("assets/images/portal-941.webp"); --plane: 52rem; }
  .portal-heading { top: 11%; --mark: 7.1rem; }
  .portal-actions { bottom: 7%; }
  .chapter--cover { --photo-y: 48%; --veil: radial-gradient(ellipse 35% 42% at 50% 44%, #f1eff460, transparent); }
  .cover-copy { --mark: 8.3rem; margin-top: clamp(5rem, 12svh, 8.2rem); }
  .cover-copy h1 { font-size: clamp(4.05rem, 6.85vw, 7.3rem); }
  .cover-copy .cover-event { font-size: 1.22rem; }
  .chapter--message {
    --photo-y: 35%;
    --photo-x: 50%;
    --camera-x: 50%;
    --asset-scale: 1.018;
    --veil: linear-gradient(90deg, #0b162700 45%, #0b16272a 62%, #0b1627b7 100%);
  }
  .chapter--message .plate { width: 87%; mask-image: linear-gradient(90deg, black 65%, transparent 100%); }
  .message-copy { inset-inline-end: 8.1%; inset-block-start: 29%; width: clamp(22rem, 31%, 32.5rem); }
  .message-copy h2 { font-size: clamp(2.38rem, 4.2vw, 4.25rem); }
  .message-copy p { font-size: clamp(1.28rem, 2.1vw, 1.93rem); }
  .chapter--date {
    --wide-image: url("assets/images/data-941.webp");
    --photo-y: 48%;
    --plane: 53rem;
    --veil: radial-gradient(ellipse 23% 16.5% at 50% 76%, #ecf0f6da, #dce5f073 61%, #dce5f000 100%);
  }
  .crystal-number { inline-size: clamp(20rem, 29vw, 27.5rem); inset-block-end: 34%; }
  .date-copy { margin-bottom: clamp(4rem, 15svh, 8.5rem); }
  .chapter--venue { --photo-y: 38%; --veil: linear-gradient(180deg, transparent 34%, #0b162721 55%, #091528a0 81%, #0b1627d9); }
  .venue-copy { margin-bottom: 6.8svh; }
  .chapter--dress {
    --photo-y: 55%;
    --asset-scale: 1.18;
    --veil: radial-gradient(ellipse 47% 55% at 19% 47%, #091524db 1%, #0a182fad 41%, #0b162700 100%);
  }
  .dress-copy { justify-self: start; margin: 0 0 0 10%; text-align: left; }
  .dress-copy .engraving { margin-inline: 0; }
  .chapter--palette {
    --photo-y: 48%;
    --veil: linear-gradient(180deg, #0d1c357c, transparent 37%, transparent 68%, #0b16279c);
  }
  .palette-copy { margin-top: 6.5svh; }
  .palette { bottom: 6%; }
  .palette li { font-size: .85rem; }
  .chapter--countdown {
    --wide-image: url("assets/images/ampulheta-941.webp");
    --wide-y: 58%;
    --wide-tint: #1221389e;
    --plane: calc(var(--frame) * .64);
  }
  .chapter--countdown .plate { mask-image: linear-gradient(90deg, transparent, black 13%, black 87%, transparent); }
  .count-heading { margin-top: 4.9svh; }
  .count-bottom { bottom: 10%; }
  .chapter--rsvp { --photo-y: 43%; --veil: radial-gradient(ellipse 32% 37% at 50% 49%, #f1eff479, transparent); }
  .rsvp-copy { margin-top: 17.5svh; }
  .chapter--farewell { --wide-image: url("assets/images/revelacao-941.webp"); --plane: 58rem; --photo-y: 55%; }
  .farewell-copy { justify-self: end; margin: 0 10% 13svh 0; }
  .replay { inset-inline-end: 10%; }
  .film { background-image: url("assets/images/castelo-941.webp"); }
  .film-surround {
    z-index: -2;
    inset: -1rem;
    background-image: linear-gradient(#0b16279e, #0b1627ad), var(--film-still, url("assets/images/castelo-941.webp"));
    background-position: center;
    background-size: cover;
    filter: blur(17px);
  }
  .film-screen {
    inline-size: min(100%, calc(var(--frame) * .5625));
    margin-inline: auto;
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  }
  .film-caption { bottom: 13.5%; }
  .film-top, .film-bottom { inset-inline: 2rem; }
}
@media (max-height: 690px) {
  .portal-heading { top: 9%; }
  .cover-copy { --mark: 5.7rem; margin-top: 10.5svh; }
  .cover-copy .age { margin-block: .86rem; }
  .cover-copy .cover-event { margin-top: .91rem; }
  .rsvp-copy { --mark: 5rem; margin-top: 15svh; }
  .rsvp-copy .eyebrow { margin-block: .8rem; }
  .rsvp-copy .engraving { margin-top: .98rem; }
}
@media (max-width: 359px) {
  .message-copy { inline-size: 47%; inset-inline-end: 4%; }
  .message-copy h2 { font-size: 1.3rem; }
  .palette li + li::before { margin-inline-end: .46rem; }
  .palette ul { column-gap: .46rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .invitation-button:hover { translate: none; }
  .plate img { transform: none; }
  #snow { display: none; }
}
