:root {
  color-scheme: light;
  --paper: #f4ebdc;
  --paper-light: #fbf6ec;
  --ink: #3a2a22;
  --ink-soft: #6e5a4c;
  --red: #9e1b22;
  --red-deep: #7a1018;
  --gold: #b8955a;
  --line: rgba(184, 149, 90, 0.45);
  --serif: "Cormorant Garamond", Georgia, serif;
  --caps: "Cinzel", "Trajan Pro", Georgia, serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background:
    radial-gradient(1200px 600px at 50% -10%, #fffaf0 0%, transparent 60%),
    radial-gradient(900px 500px at 50% 110%, #ead9bd 0%, transparent 60%),
    var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.5;
}

.page {
  max-width: 460px;
  margin: 0 auto;
  padding: max(28px, env(safe-area-inset-top)) 16px max(40px, env(safe-area-inset-bottom));
}

[hidden] { display: none !important; }

.stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: rise 0.8s cubic-bezier(.2, .7, .2, 1) both;
}

.stage--msg {
  min-height: 70vh;
  justify-content: center;
  text-align: center;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

.eyebrow {
  font-family: var(--caps);
  font-size: 13px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--red);
  margin: 0 0 18px;
  text-align: center;
}

/* ---------- Envelope ---------- */

#stage-envelope { min-height: 80vh; justify-content: center; }

/* Who it's from, and who it's for, right under it. */
.env-head { text-align: center; transition: opacity 0.6s ease; }
.env-head .eyebrow { margin-bottom: 10px; }
.to-line { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.to-label {
  font-family: var(--caps);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.to-name {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(26px, 7.4vw, 32px);
  line-height: 1.15;
  color: var(--red-deep);
  padding: 0 12px;
}

.envelope {
  position: relative;
  width: min(360px, 100%);
  aspect-ratio: 10 / 7;
  margin-top: 64px; /* room for the card to rise */
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  perspective: 1400px;
  -webkit-tap-highlight-color: transparent;
}

.envelope > span { position: absolute; display: block; }

/* Inside of the envelope: darker, so the open pocket reads as a recess. */
.env-back {
  inset: 0;
  z-index: 1;
  border-radius: 6px;
  background: linear-gradient(180deg, #c9ae80 0%, #dcc49b 55%, #e4cfaa 100%);
  box-shadow: 0 22px 44px -20px rgba(70, 40, 20, 0.55), 0 2px 6px rgba(70, 40, 20, 0.15);
}

.env-card {
  z-index: 2;
  left: 7%;
  right: 7%;
  top: 5%;
  height: 92%;
  overflow: hidden;
  border-radius: 3px;
  background: var(--paper-light);
  box-shadow: 0 2px 8px rgba(70, 40, 20, 0.15);
}

/* The teaser always fills the card, whatever its shape, so no blank strip shows under a short image. */
.env-card img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: top center; }

/* Each fold is a wrapper (drop shadow) around a clipped shape (::before), so its edge casts a soft shadow
   onto the fold beneath it. A clip-path on the same element would clip the shadow away. */
.env-fold { inset: 0; z-index: 3; pointer-events: none; }
.env-fold::before { content: ""; position: absolute; inset: 0; border-radius: 6px; }

.env-left { filter: drop-shadow(2px 0 2px rgba(90, 60, 25, 0.18)); }
.env-left::before {
  background: linear-gradient(100deg, #eadbbd 0%, #e2cfab 100%);
  clip-path: polygon(0 0, 54% 55%, 0 100%);
}
.env-right { filter: drop-shadow(-2px 0 2px rgba(90, 60, 25, 0.18)); }
.env-right::before {
  background: linear-gradient(260deg, #eadbbd 0%, #e0cca7 100%);
  clip-path: polygon(100% 0, 46% 55%, 100% 100%);
}
.env-bottom { filter: drop-shadow(0 -2px 3px rgba(90, 60, 25, 0.22)); }
.env-bottom::before {
  background: linear-gradient(0deg, #e9d8b8 0%, #f3e7cf 100%);
  clip-path: polygon(0 100%, 50% 47%, 100% 100%);
}

.env-flap {
  z-index: 4;
  bottom: auto;
  height: 60%;
  transform-origin: top center;
  transition: transform 1.6s cubic-bezier(.55, 0, .25, 1) 0.5s, z-index 0s linear 1.3s;
  filter: drop-shadow(0 3px 3px rgba(90, 60, 25, 0.28));
}
.env-flap::before {
  border-radius: 6px 6px 0 0;
  background: linear-gradient(180deg, #f6ecd8 0%, #ead9b9 100%);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}

/* Metal seal: gold by default; class "seal--silver" for silver. */
.seal {
  --m-hi: #fff4cc;
  --m-1: #f0cf7a;
  --m-2: #c99a3c;
  --m-3: #94691d;
  --m-ink: #6e4b0f;
  z-index: 5;
  left: 50%;
  top: 50%;
  width: 70px;
  height: 70px;
  margin: -35px 0 0 -35px;
  border-radius: 50%;
  overflow: hidden;
  background:
    radial-gradient(circle at 32% 26%, var(--m-hi) 0%, transparent 34%),
    conic-gradient(from 210deg, var(--m-2), var(--m-1), var(--m-3), var(--m-1), var(--m-2), var(--m-3), var(--m-2));
  box-shadow:
    0 5px 12px rgba(60, 40, 10, 0.4),
    inset 0 0 0 3px rgba(255, 255, 255, 0.28),
    inset 0 0 0 5px rgba(80, 55, 10, 0.25),
    inset 0 -6px 10px rgba(60, 35, 0, 0.25);
  display: grid !important;
  place-items: center;
  color: var(--m-ink);
  font-family: var(--caps);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.04em;
  text-shadow: 0 1px 0 rgba(255, 244, 210, 0.75), 0 -1px 0 rgba(70, 45, 0, 0.35);
  transition: transform 0.9s cubic-bezier(.4, 0, .2, 1), opacity 0.9s ease;
  animation: pulse 3.2s ease-in-out infinite;
}
.seal--silver { --m-hi: #ffffff; --m-1: #e4e7ec; --m-2: #b4bac3; --m-3: #7d848e; --m-ink: #4b5058; }

/* A slow glint passing over the metal. */
.seal::after {
  content: "";
  position: absolute;
  inset: -20%;
  background: linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, 0.55) 50%, transparent 60%);
  transform: translateX(-120%);
  animation: glint 4.5s ease-in-out 1.2s infinite;
}
.seal > span { position: relative; z-index: 1; }
.seal i { font-family: var(--serif); font-style: italic; font-weight: 500; margin: 0 1px; color: inherit; }

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}
@keyframes glint {
  0%, 60% { transform: translateX(-120%); }
  85%, 100% { transform: translateX(120%); }
}

/* Opening, paced to the music's soft start: the seal melts away (0-0.9s), the flap lifts slowly
   (0.5-2.1s), the card eases out (1.9-3.8s) and comes to the front as the envelope fades (3.8-5.3s). */
.envelope.open { cursor: default; }
.envelope.open .seal { opacity: 0; transform: scale(0.82); animation: none; }
.envelope.open .seal::after { animation: none; }
.envelope.open .env-flap { transform: rotateX(180deg); z-index: 1; }
.envelope.open .env-card { animation: card-out 3.4s linear 1.9s forwards; }
.envelope.open .env-back,
.envelope.open .env-left,
.envelope.open .env-right,
.envelope.open .env-bottom,
.envelope.open .env-flap { animation: env-away 1.3s ease-in-out 4s forwards; }

/* --h0/--h1/--rise/--settle are set in px by openEnvelope() from the image's real size. */
@keyframes card-out {
  0% { transform: translateY(0); height: var(--h0); z-index: 2; animation-timing-function: cubic-bezier(.5, 0, .3, 1); }
  56% { transform: translateY(var(--rise)); height: var(--h0); z-index: 2; animation-timing-function: cubic-bezier(.3, 0, .2, 1); }
  57% { z-index: 6; }
  100% { transform: translateY(var(--settle)); height: var(--h1); z-index: 6;
         box-shadow: 0 16px 36px -12px rgba(70, 40, 20, 0.45); }
}

@keyframes env-away {
  to { opacity: 0; }
}

/* The whole save the date coming out (a guest who has replied): the live poster sits in the card. */
.env-card--poster { background: none; }
.env-card--poster .poster { border-radius: 3px; box-shadow: none; }

/* Just after the form the envelope comes back already open (its seal was broken before the form), and the
   poster comes straight out: out 0.3-3.7s, envelope away 2.4-3.7s. */
.envelope.reopen { cursor: default; }
.envelope.reopen .seal { opacity: 0; animation: none; transition: none; }
.envelope.reopen .seal::after { animation: none; }
.envelope.reopen .env-flap { transform: rotateX(180deg); z-index: 1; transition: none; }
.envelope.reopen.open .env-card { animation-delay: 0.3s; }
.envelope.reopen.open :is(.env-back, .env-left, .env-right, .env-bottom, .env-flap) { animation-delay: 2.4s; }
.envelope.reopen + .hint { opacity: 0; }
#stage-envelope:has(.envelope.reopen) .env-head { opacity: 0; }
body.opening .skip-btn { opacity: 0; pointer-events: none; transition: opacity 0.4s ease; }

.hint {
  margin: 26px 0 0;
  font-style: italic;
  color: var(--ink-soft);
  transition: opacity 0.4s;
}

.envelope.open + .hint { opacity: 0; }
#stage-envelope:has(.envelope.open) .env-head { opacity: 0; }

/* One stage handing over to the next. */
.stage { transition: opacity 0.45s ease; }
.stage.leaving { opacity: 0; }

/* ---------- Card ---------- */

.card {
  margin: 0;
  width: 100%;
}

.card img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 20px 40px -20px rgba(70, 40, 20, 0.5);
}

.card--teaser img {
  -webkit-mask-image: linear-gradient(180deg, #000 96%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 96%, transparent 100%);
  box-shadow: none;
}

/* ---------- Panel / form ---------- */

.panel {
  width: 100%;
  margin-top: -8px;
  position: relative;
  padding: 26px 20px 24px;
  background: rgba(251, 246, 236, 0.92);
  border: 1px solid var(--line);
  border-radius: 6px;
  text-align: center;
  box-shadow: 0 10px 30px -18px rgba(70, 40, 20, 0.35);
}

.panel--details { margin-top: 20px; }

.invite-line {
  margin: 0 0 8px;
  font-style: italic;
  color: var(--ink-soft);
}

.panel-title {
  margin: 0 0 6px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 26px;
  line-height: 1.2;
  color: var(--red-deep);
}

.panel-sub {
  margin: 0 0 18px;
  color: var(--ink-soft);
}

form { text-align: left; }

.field {
  display: block;
  margin-bottom: 14px;
  min-width: 0;
}

.field > span {
  display: block;
  font-family: var(--caps);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 4px;
}

.field em { font-family: var(--serif); text-transform: none; letter-spacing: 0; font-size: 13px; }

.field-hint {
  display: block;
  margin-top: 5px;
  font-size: 15px;
  font-style: italic;
  line-height: 1.35;
  color: var(--ink-soft);
}

.field input {
  width: 100%;
  font: inherit;
  font-size: 18px; /* stops iOS zooming on focus */
  color: var(--ink);
  background: #fffdf8;
  border: 1px solid #dccaa8;
  border-radius: 4px;
  padding: 10px 12px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(184, 149, 90, 0.22);
}

.field input[aria-invalid="true"] { border-color: var(--red); }

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-error {
  margin: 0 0 12px;
  color: var(--red);
  font-style: italic;
  text-align: center;
}

.btn {
  display: inline-block;
  width: 100%;
  margin-top: 6px;
  padding: 14px 18px;
  border: 0;
  border-radius: 4px;
  background: var(--red);
  color: #fbefd8;
  font-family: var(--caps);
  font-size: 14px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

.btn:hover { background: var(--red-deep); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.btn.is-busy { opacity: 1; animation: btn-busy 1.6s ease-in-out infinite; }
@keyframes btn-busy { 50% { opacity: 0.7; } }
@media (prefers-reduced-motion: reduce) { .btn.is-busy { animation: none; } }

.btn--ghost {
  background: transparent;
  color: var(--red-deep);
  border: 1px solid var(--line);
  font-size: 12px;
  letter-spacing: 0.14em;
  padding: 12px 10px;
}

.btn--ghost:hover { background: rgba(184, 149, 90, 0.12); }

/* ---------- Reveal ---------- */

.detail-date {
  margin: 0;
  font-family: var(--caps);
  font-size: clamp(20px, 5.6vw, 24px);
  letter-spacing: 0.08em;
  color: var(--red-deep);
}

.detail-location {
  margin: 8px 0 4px;
  font-size: 21px;
  font-style: italic;
}

.link {
  color: var(--red);
  font-size: 16px;
  text-underline-offset: 3px;
}

.cal {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 20px 0 16px;
}


.spinner {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid var(--line);
  border-top-color: var(--red);
  animation: spin 0.9s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01s !important; transition-delay: 0s !important; }
}

/* ---------- Multiple events ---------- */

.teasers { width: 100%; display: grid; gap: 10px; }
/* Guests invited to more than one event: the teasers stack top to bottom, earliest event first. */
/* Two events: the teasers sit side by side at the same size, so the form still starts on the first screen. */
.teasers--2 { grid-template-columns: 1fr 1fr; gap: 10px; }
.teasers--2 .card--teaser img { aspect-ratio: 1.6; object-fit: cover; -webkit-mask-image: none; mask-image: none; box-shadow: 0 10px 22px -14px rgba(70, 40, 20, 0.5); }
.teasers:empty + .panel { margin-top: 0; }
.teasers--2 + .panel { margin-top: 14px; }
/* One event: the panel sits just below the teaser instead of over it (some teasers end with their words). */
.teasers:not(:empty):not(.teasers--2) + .panel { margin-top: 10px; }

.reveal-list { width: 100%; display: grid; gap: 36px; }
.event .panel--details { margin-top: 16px; }
.event .card[hidden] + .panel--details { margin-top: 0; }

.thanks {
  margin: 30px 0 0;
  text-align: center;
  color: var(--ink-soft);
}
.thanks p { margin: 0; font-style: italic; font-size: 19px; }
.thanks p + p { margin-top: 4px; }
.thanks .thanks-title {
  margin-bottom: 8px;
  font-style: normal;
  font-weight: 500;
  font-size: 28px;
  line-height: 1.2;
  color: var(--red-deep);
}

.skip-btn { display: block; margin: 6px auto 0; }
.update-line { margin: 22px 0 0; padding-bottom: 48px; text-align: center; }
.link-btn {
  padding: 6px 4px;
  border: 0;
  background: none;
  color: var(--red-deep);
  font: inherit;
  font-size: 15px;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
#update-done { color: var(--ink-soft); font-style: italic; font-size: 15px; }
.btn--quiet { width: auto; margin-top: 22px; padding-inline: 28px; }

/* ---------- Language switch ---------- */

/* The music switch and the language switch share the top right corner. */
.top-controls {
  position: fixed;
  top: max(10px, env(safe-area-inset-top));
  right: 12px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 8px;
}

.lang-switch {
  display: flex;
  background: rgba(251, 246, 236, 0.9);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px;
}

.lang-switch button {
  font: inherit;
  font-size: 14px;
  padding: 3px 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
}

.lang-switch button[aria-pressed="true"] { background: var(--red); color: #fbefd8; }


/* Gujarati: a light serif Gujarati face, set a size smaller so it sits as quietly as the English. Latin text
   (names) stays in Cormorant. Gujarati has no italics, so those lines are set upright rather than slanted. */
html[lang="gu"] body { font-family: "Cormorant Garamond", "Noto Serif Gujarati", Georgia, serif; font-size: 16px; line-height: 1.6; font-weight: 300; }
html[lang="gu"] :is(.field input, .lang-switch button) { font-weight: 400; }
html[lang="gu"] .eyebrow,
html[lang="gu"] .field > span,
html[lang="gu"] .to-label,
html[lang="gu"] .btn { font-family: var(--caps), "Noto Serif Gujarati", serif; letter-spacing: 0.04em; text-transform: none; }
html[lang="gu"] .eyebrow { font-size: 15px; }
html[lang="gu"] .to-label { font-size: 13px; }
html[lang="gu"] .field > span { font-size: 13px; }
html[lang="gu"] .btn { font-size: 15px; }
html[lang="gu"] .btn--ghost { font-size: 13px; }
html[lang="gu"] .panel-title { font-size: 22px; font-weight: 300; line-height: 1.35; }
html[lang="gu"] .event-title { font-size: clamp(26px, 7.4vw, 31px); font-weight: 300; }
html[lang="gu"] .event-tagline { font-size: 16px; }
html[lang="gu"] .detail-date { font-size: clamp(17px, 4.8vw, 20px); letter-spacing: 0.02em; }
html[lang="gu"] .detail-location { font-size: 18px; }
html[lang="gu"] .field-hint { font-size: 13.5px; }
html[lang="gu"] .thanks .thanks-title { font-size: 23px; font-weight: 300; }
html[lang="gu"] .thanks p { font-size: 16px; }
html[lang="gu"] :is(.hint, .invite-line, .panel-sub, .field-hint, .field em, .thanks p, .event-tagline,
  .detail-location, .form-error, .link) { font-style: normal; }

/* ---------- Music switch ---------- */

/* A speaker, the word "Music" and an on/off switch, in the same pill as the language switch. */
.music-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 33px;
  padding: 0 6px 0 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(251, 246, 236, 0.9);
  color: var(--red-deep);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.music-btn[hidden] { display: none; }
.music-icon { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.music-cone { fill: currentColor; stroke: none; }
.music-x { display: none; }
.music-switch {
  position: relative;
  width: 30px;
  height: 17px;
  border-radius: 999px;
  background: var(--red);
  transition: background 0.25s ease;
}
.music-switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 15px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #fbefd8;
  box-shadow: 0 1px 2px rgba(60, 30, 10, 0.3);
  transition: left 0.25s ease;
}
.music-btn[aria-checked="false"] { color: var(--ink-soft); }
.music-btn[aria-checked="false"] .music-waves { display: none; }
.music-btn[aria-checked="false"] .music-x { display: inline; }
.music-btn[aria-checked="false"] .music-switch { background: #cdbb9c; }
.music-btn[aria-checked="false"] .music-switch::after { left: 2px; }
html[lang="gu"] .music-btn { font-weight: 400; }

.thanks .reach-at { font-size: 0.92em; opacity: 0.85; word-break: break-word; }

/* ---------- Event themes ---------- */

.event-art:empty { display: none; }
.event-art { display: flex; justify-content: center; margin: 2px 0 10px; color: var(--red-deep); }
.event-art svg { max-width: 100%; height: auto; }

.event-title {
  margin: -6px 0 8px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(30px, 8.6vw, 38px);
  line-height: 1.1;
  color: var(--red-deep);
}

.event-tagline {
  margin: 0 auto 18px;
  max-width: 30ch;
  font-style: italic;
  font-size: 18px;
  line-height: 1.4;
  color: var(--ink-soft);
}

.detail-time {
  display: inline-block;
  margin: 10px 0 2px;
  padding: 5px 12px;
  border-radius: 4px;
  font-family: var(--caps);
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* Field day: finish-line checker band, scoreboard time chip. */
.event--field-day .panel { padding-top: 34px; overflow: hidden; }
.event--field-day .panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 12px;
  background: repeating-conic-gradient(var(--red-deep) 0 25%, var(--paper-light) 0 50%) 0 0 / 12px 12px;
}
.event--field-day .event-title { font-family: var(--caps); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; font-size: clamp(26px, 7.4vw, 32px); }
.event--field-day .event-title::after {
  content: "";
  display: block;
  width: 120px;
  height: 0;
  margin: 10px auto 0;
  border-top: 2px dashed var(--gold);
}
.event--field-day .detail-time { background: var(--red-deep); color: #f3dcae; }

/* Golden hour: sunset wash behind a setting sun. */
.event--golden-hour .panel {
  background: linear-gradient(180deg, #f9d9a6 0%, #fbe6c4 32%, rgba(251, 246, 236, 0.96) 70%);
  border-color: rgba(214, 150, 80, 0.5);
}
.event--golden-hour .event-title { color: #8a3b14; font-style: italic; }
.event--golden-hour .eyebrow { color: #a0501c; }
.event--golden-hour .detail-time { background: rgba(224, 162, 79, 0.2); color: #8a3b14; }

/* ---------- Poster event: just the links under the poster ---------- */

:is(.event--poster, .event--combo) .panel--links {
  margin-top: 18px;
  padding: 4px 0 0;
  background: none;
  border: 0;
  box-shadow: none;
}
:is(.event--poster, .event--combo) .panel--links .cal { margin: 14px 0 0; }
/* The field-day panel's checkered band and padding belong to the old text panel, not the links under a poster. */
:is(.event--poster, .event--combo).event--field-day .panel--links { padding-top: 4px; overflow: visible; }
:is(.event--poster, .event--combo).event--field-day .panel--links::before { display: none; }
/* Under the combined poster, each event's links sit under its city name. */
.event--combo .panel--links { margin-top: 22px; }
/* Waits for the poster's sunset before coming in. */
.reveal-in > .event--poster > .panel--links.pending { animation: none; opacity: 0; }
.reveal-in > .event--poster > .poster.play ~ .panel--links.pending {
  animation: settle 0.9s cubic-bezier(.2, .7, .2, 1) 10.6s both;
}

/* ---------- Reveal: one block after another ---------- */

/* The blocks bring themselves in, so the stage itself doesn't also rise. */
#stage-reveal { animation: none; }

/* Cards are 2:3; holds that shape until the image arrives, then follows the image's own. */
#reveal-list .card img { aspect-ratio: auto 2 / 3; }

.reveal-in > .card,
.reveal-in > .event > *,
.reveal-step {
  animation: settle 0.9s cubic-bezier(.2, .7, .2, 1) both;
  animation-delay: calc(var(--i, 0) * 0.4s + 0.1s);
}

@keyframes settle {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
