/* Patjhad v46 — beneath an autumn conservatory.
   Copper leaves #aa7044 / honey #dfbd83 / forest #22362b / vellum #eee0c0.
   A photographed, moving canopy shelters the ceremony; live information sits
   on a quiet vellum plane. The keepsake leaves are navigation, not a carousel.
   All geometry stays fixed while the scene changes. */

#invitation-page #events {
  --event-ground: #22362b;
  --event-scene-height: clamp(390px,106vw,560px);
  --conservatory-ink: #334331;
  --conservatory-bronze: #76502a;
  --conservatory-paper: #eee0c0;
  display: flex; flex-direction: column;
  position: relative; isolation: isolate; overflow: clip;
  padding: 0 0 4.4rem; background: var(--event-ground); color: #f0e5cc;
}
#invitation-page #events>.section-intro {
  position: relative; order: 0; z-index: 3;
  width: min(100%,760px); margin: 0 auto;
  padding: 2.6rem 1.5rem 1.25rem; background: none; text-align: center;
}
#invitation-page #events>.section-intro .chapter-leaf { display: none; }
#invitation-page #events>.section-intro h2 {
  max-width: 15ch; margin: 0 auto; color: #f1e5c9;
  font-family: 'Cormorant Garamond',var(--font-display),Georgia,serif;
  font-size: clamp(2.8rem,10.7vw,5rem); font-weight: 500;
  line-height: .98; letter-spacing: -.035em; text-wrap: balance;
  text-shadow: 0 1px 1px rgb(6 22 14/.18);
}
#invitation-page #events>.section-intro p {
  max-width: 32ch; margin: 1rem auto 0; color: #d4c8aa;
  font-family: 'Cormorant Garamond',var(--font-body),Georgia,serif;
  font-size: 1.2rem; font-weight: 500; line-height: 1.45;
}

/* Each leaf is a real cutout. A selected keepsake catches the light while its
   label remains stationary. Long editor labels wrap instead of clipping. */
#invitation-page #events .season-dial,
#invitation-page #events .season-dial:not(.season-dial-many),
#invitation-page #events .season-dial.season-dial-many {
  position: relative; order: 1; z-index: 5; isolation: isolate;
  display: grid; grid-template-columns: repeat(2,minmax(0,1fr));
  gap: .2rem 1.15rem; width: min(calc(100% - 3rem),900px);
  height: auto; min-height: 0; margin: .1rem auto .25rem;
  padding: 0; background: none; transform: none;
}
#invitation-page #events .season-dial::before,
#invitation-page #events .season-dial::after,
#invitation-page #events .season-dial-art,
#invitation-page #events .season-dial-center { display: none; }
#invitation-page #events .season-dial .season-stop,
#invitation-page #events .season-dial:not(.season-dial-many) .season-stop {
  position: relative; inset: auto; transform: none;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  gap: .18rem; width: 100%; min-width: 0; min-height: 88px;
  padding: .45rem .2rem .65rem; border: 0; border-radius: 0;
  background: none; color: #cbbda0; box-shadow: none;
  font-weight: 500; text-align: center; text-shadow: none;
  transition: color 350ms ease; -webkit-tap-highlight-color: transparent;
}
#invitation-page #events .season-dial .season-stop-leaf {
  position: relative; display: block; flex: 0 0 35px;
  width: 43px; height: 35px; margin: 0;
  background: url('assets/conservatory-leaf-v46.webp') center/contain no-repeat;
  opacity: .68; transform: rotate(-13deg);
  filter: saturate(.7) brightness(.96) drop-shadow(0 3px 2px rgb(5 16 9/.22));
  transition: filter 650ms ease,opacity 650ms ease,transform 650ms ease;
}
#invitation-page #events .season-dial .season-stop:nth-of-type(even) .season-stop-leaf { transform: rotate(12deg); }
#invitation-page #events .season-dial .season-stop-name {
  display: block; overflow: visible; width: 100%;
  font-family: 'Cormorant Garamond',var(--font-body),Georgia,serif;
  font-size: 1.18rem; line-height: 1.2; font-weight: 600;
  letter-spacing: 0; text-transform: none; text-shadow: none;
  overflow-wrap: anywhere; text-wrap: balance;
  -webkit-line-clamp: unset; line-clamp: unset;
}
#invitation-page #events .season-dial .season-stop[aria-selected='true'] { color: #ffe5b4; border-color: transparent; }
#invitation-page #events .season-dial .season-stop[aria-selected='true'] .season-stop-name { text-shadow: none; }
#invitation-page #events .season-dial .season-stop[aria-selected='true'] .season-stop-leaf {
  opacity: 1; transform: rotate(-3deg) translateY(-2px);
  filter: saturate(.91) brightness(1.2) drop-shadow(0 0 8px rgb(229 171 74/.32));
}
#invitation-page #events .season-dial .season-stop:focus-visible {
  outline: 2px solid #e5c791; outline-offset: 3px; border-radius: 4px;
}
#invitation-page #events .season-playback,
#invitation-page #events:not(:has(.season-dial-many)) .season-playback,
#invitation-page #events:has(.season-dial-many) .season-playback {
  position: relative; order: 2; align-self: center; z-index: 5;
  width: auto; min-height: 44px; margin: .1rem auto .75rem;
  padding: .4rem .8rem; border: 0; border-radius: 0; background: none;
  color: #d6c59f; font-family: var(--font-body); font-size: .77rem;
  font-weight: 400; line-height: 1.5; letter-spacing: 0;
}
#invitation-page #events .season-playback:focus-visible { outline: 2px solid #e5c791; outline-offset: 3px; }

/* One stable stage. The paper is painted behind the natural-height copy so
   measuring the tallest event cannot create a height-feedback loop. */
#invitation-page #events #events-list {
  position: relative; order: 3; z-index: 1;
  width: min(100%,1280px); max-width: 1280px; min-width: 0;
  margin: 0 auto; background: var(--event-ground);
}
#invitation-page #events #events-list .ceremony,
#invitation-page #events #events-list.has-season-dial .ceremony,
#invitation-page #events:has(.season-dial-many) #events-list .ceremony {
  position: relative; display: flex; flex-direction: column;
  align-items: center; justify-content: flex-start;
  width: 100%; min-height: calc(var(--event-scene-height) + var(--season-copy-height,430px));
  margin: 0; padding: 0; overflow: hidden; isolation: isolate;
  background: var(--event-ground)!important;
}
#invitation-page #events #events-list .ceremony[hidden] { display: none!important; }
#invitation-page #events #events-list .ceremony::before {
  content: ''; position: absolute; z-index: 1;
  inset: calc(var(--event-scene-height) - 15px) 16px 0;
  border-radius: 50% 50% 3px 3px / 20px 20px 3px 3px;
  background: var(--conservatory-paper);
  background-image: linear-gradient(rgb(238 224 192/.93),rgb(238 224 192/.89)),url('assets/invitation-vellum-v40.webp');
  background-size: auto,100% 100%; background-repeat: no-repeat;
  box-shadow: 0 16px 35px rgb(6 18 11/.15);
  pointer-events: none;
}
#invitation-page #events #events-list .ceremony::after { display: none; }
#invitation-page #events #events-list .ceremony-art {
  position: absolute; inset: 0 10px auto; z-index: 0; order: 0!important;
  width: calc(100% - 20px); height: var(--event-scene-height);
  min-height: 0; max-height: none; margin: 0; overflow: hidden;
  border-radius: 48% 48% 0 0 / 12% 12% 0 0;
  transform: none; animation: none;
}
#invitation-page #events #events-list .ceremony-art>img,
#invitation-page #events #events-list .ceremony-art>.scene-film {
  position: absolute; inset: 0; width: 100%; height: 100%; max-width: none;
  object-fit: cover; object-position: center 48%;
  filter: saturate(.91); transform: none; animation: none;
}
#invitation-page #events #events-list .ceremony.has-authored-scene .ceremony-art>img {
  transform-origin: 50% 47%;
  animation: conservatory-camera-v46 19s ease-in-out infinite alternate paused;
}
#invitation-page #events #events-list .ceremony.has-authored-scene.is-chapter-active .ceremony-art>img { animation-play-state: running; }
#invitation-page #events #events-list .ceremony.has-authored-scene .ceremony-art:has(.scene-film.is-ready)>img { animation-play-state: paused; }
#invitation-page #events #events-list .ceremony-art::after,
#invitation-page #events #events-list .ceremony[data-scene='evening'] .ceremony-art::after {
  content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(rgb(18 34 23/.14),transparent 24%,transparent 76%,rgb(34 54 43/.2));
}
#invitation-page #events #events-list .chapter-atmosphere { display: none; }

/* One persistent foreground survives the scene dissolve: a leafy roof and two
   delicate hanging strands. Its geometry matches the photographic gate. */
#invitation-page #events #events-list .conservatory-props {
  position: absolute; inset: 0 10px auto; z-index: 7;
  width: calc(100% - 20px); height: var(--event-scene-height);
  border-radius: 48% 48% 0 0 / 12% 12% 0 0;
  overflow: hidden; pointer-events: none;
}
#invitation-page #events #events-list .conservatory-canopy {
  display: block; position: absolute; left: -6%; top: -3%; width: 112%; height: auto;
  transform-origin: 50% 0; filter: drop-shadow(0 7px 6px rgb(11 20 9/.17));
  animation: conservatory-canopy-v46 8.6s ease-in-out -2.2s infinite alternate paused;
}
#invitation-page #events #events-list .conservatory-pendant {
  display: block; position: absolute; top: 4%; left: 13%; width: 9.5%; max-width: 64px;
  height: clamp(155px,55vw,260px); overflow: hidden;
  transform-origin: 50% 0; filter: drop-shadow(1px 3px 3px rgb(12 25 14/.18));
  animation: conservatory-pendant-v46 4.8s ease-in-out -.7s infinite alternate paused;
}
#invitation-page #events #events-list .conservatory-pendant--right {
  left: auto; right: 10%; top: 7%; width: 8.5%;
  animation-duration: 5.7s; animation-delay: -2.4s; animation-direction: alternate-reverse;
}
#invitation-page #events #events-list .conservatory-props img {
  display: block; position: static; width: 100%; height: auto; max-width: none;
  object-fit: contain; opacity: 1; filter: none; transform: none; animation: none;
}
#invitation-page #events #events-list .conservatory-pendant>img {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
}
#invitation-page #events.cinema-running #events-list .conservatory-props>span { animation-play-state: running; }
#invitation-page #events #events-list .conservatory-props[hidden],
#invitation-page #events #events-list .conservatory-props [hidden] { display: none!important; }

#invitation-page #events #events-list .ceremony-copy,
#invitation-page #events:has(.season-dial-many) #events-list .ceremony-copy {
  position: relative; z-index: 4; width: calc(100% - 32px); max-width: 650px; min-height: 0;
  margin: var(--event-scene-height) auto 0!important;
  padding: 2.15rem 1.8rem 2.8rem; text-align: center;
  background: none; color: var(--conservatory-ink); filter: none; text-shadow: none;
  transform: none!important; animation: none;
}
#invitation-page #events #events-list .ceremony-copy::before,
#invitation-page #events #events-list .ceremony-copy::after { display: none; }
#invitation-page #events #events-list .ceremony-date {
  color: #76502a; font-family: 'Cormorant Garamond',var(--font-body),Georgia,serif;
  font-size: 1.12rem; font-weight: 600; line-height: 1.5;
  letter-spacing: .015em; margin: 0 0 .8rem; overflow-wrap: anywhere;
}
#invitation-page #events #events-list .ceremony h3 {
  max-width: 100%; margin: 0 auto; color: #35422d;
  font-family: 'Cormorant Garamond',var(--font-display),Georgia,serif;
  font-weight: 500; font-size: clamp(2.95rem,11.8vw,4.8rem);
  line-height: .99; letter-spacing: -.035em; text-shadow: none;
  text-wrap: balance; overflow-wrap: anywhere;
}
#invitation-page #events #events-list .ceremony-venue {
  color: #795833; font-family: 'Cormorant Garamond',var(--font-body),Georgia,serif;
  font-size: 1.28rem; font-weight: 500; line-height: 1.4;
  font-style: italic; margin: .95rem 0 0; overflow-wrap: anywhere;
}
#invitation-page #events #events-list .ceremony-description {
  max-width: 30rem; margin: 1.25rem auto 1.25rem; color: #40503a;
  font-family: var(--font-body); font-size: .95rem; font-weight: 400;
  line-height: 1.85; overflow-wrap: anywhere;
}
#invitation-page #events #events-list .ceremony-attire {
  max-width: 28rem; margin: 0 auto; color: #5a5b3d;
  font-family: var(--font-body); font-size: .86rem;
  line-height: 1.75; overflow-wrap: anywhere;
}
#invitation-page #events #events-list .ceremony-attire .label {
  display: block; margin: 0 0 .18rem; color: #76502a;
  font-family: 'Cormorant Garamond',var(--font-body),Georgia,serif;
  font-size: 1.13rem; font-weight: 600; font-style: italic;
}
#invitation-page #events #events-list .ceremony-map {
  display: inline-flex; align-items: center; min-height: 44px;
  margin-top: 1rem; padding: .7rem .2rem;
  color: #4d5737; font-size: .85rem; line-height: 1.5;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px;
}
#invitation-page #events #events-list .ceremony-map:focus-visible { outline: 2px solid #75532c; outline-offset: 4px; }
#invitation-page #events #events-list .ceremony:focus-visible { outline: 2px solid #e5c791; outline-offset: -2px; }

/* A single foreground leaf carries each scene change. The photographic gate
   and outgoing snapshot have identical geometry; reading copy never scales. */
#invitation-page #events #events-list .season-transition {
  inset: 0 10px auto; width: calc(100% - 20px); height: var(--event-scene-height);
  border-radius: 48% 48% 0 0 / 12% 12% 0 0;
  -webkit-mask-image: none; mask-image: none;
}
#invitation-page #events #events-list .season-outgoing>img {
  inset: 0; width: 100%; height: 100%; object-fit: cover;
  object-position: center 48%; filter: saturate(.91); transform: none;
}
#invitation-page #events #events-list .season-outgoing::after {
  inset: 0; width: 100%; height: 100%;
  background: linear-gradient(rgb(18 34 23/.14),transparent 24%,transparent 76%,rgb(34 54 43/.2));
}
#invitation-page #events #events-list .season-outgoing-copy { display: none; }
#invitation-page #events #events-list .season-light-veil {
  display: block; inset: 0; opacity: 0;
  background: radial-gradient(ellipse at 35% 30%,rgb(243 203 119/.2),transparent 65%);
}
#invitation-page #events #events-list .season-transition.is-crossing .season-outgoing {
  animation: conservatory-dissolve-v46 1800ms cubic-bezier(.28,.12,.2,1) both;
}
#invitation-page #events #events-list .conservatory-crossing-leaf {
  display: block; position: absolute; z-index: 4; top: 39%; left: -37%;
  width: 36%; height: auto; max-width: 230px; object-fit: contain;
  opacity: 0; filter: drop-shadow(5px 14px 10px rgb(18 22 10/.16));
  transform-origin: 50% 55%; pointer-events: none;
}
#invitation-page #events #events-list .season-transition.is-crossing .conservatory-crossing-leaf {
  animation: conservatory-crossing-v46 1800ms cubic-bezier(.24,.52,.35,.97) both;
}
#invitation-page #events #events-list .ceremony.is-season-entering .ceremony-art { animation: none; transform: none; }
#invitation-page #events #events-list .ceremony.is-season-entering .ceremony-copy>* {
  animation: conservatory-words-v46 900ms ease 400ms both;
}
#invitation-page #events:not(.cinema-running) #events-list .season-transition *,
#invitation-page #events:not(.cinema-running) #events-list .ceremony.is-season-entering .ceremony-copy>* { animation-play-state: paused; }

@keyframes conservatory-camera-v46 {
  from { transform: scale(1.015) translate3d(-.25%,.2%,0); }
  to { transform: scale(1.055) translate3d(.25%,-.25%,0); }
}
@keyframes conservatory-canopy-v46 {
  from { transform: rotate(-.9deg) translate3d(-.4%,0,0); }
  to { transform: rotate(1.2deg) translate3d(.4%,.7%,0); }
}
@keyframes conservatory-pendant-v46 { from { transform: rotate(-6deg); } to { transform: rotate(7deg); } }
@keyframes conservatory-dissolve-v46 { 0%,18% { opacity: 1; } 85%,100% { opacity: 0; } }
@keyframes conservatory-words-v46 { from { opacity: 0; } to { opacity: 1; } }
@keyframes conservatory-crossing-v46 {
  0% { opacity: 0; transform: translate3d(-10%,35%,0) rotate(-48deg) scale(.78); }
  12% { opacity: .9; }
  48% { opacity: .96; transform: translate3d(185%,-18%,0) rotate(12deg) scale(1.02); }
  85% { opacity: .82; }
  100% { opacity: 0; transform: translate3d(450%,-60%,0) rotate(71deg) scale(.85); }
}

@media(min-width:380px) and (max-width:599px) {
  #invitation-page #events .season-dial,
  #invitation-page #events .season-dial:not(.season-dial-many),
  #invitation-page #events .season-dial.season-dial-many {
    grid-template-columns: repeat(4,minmax(0,1fr)); gap: .4rem;
    width: calc(100% - 28px);
  }
  #invitation-page #events .season-dial .season-stop,
  #invitation-page #events .season-dial:not(.season-dial-many) .season-stop { min-height: 100px; }
  #invitation-page #events .season-dial .season-stop-name { font-size: 1.05rem; line-height: 1.2; }
}
@media(min-width:600px) {
  #invitation-page #events .season-dial,
  #invitation-page #events .season-dial:not(.season-dial-many),
  #invitation-page #events .season-dial.season-dial-many {
    grid-template-columns: repeat(4,minmax(0,1fr)); gap: .5rem 1.2rem;
  }
  #invitation-page #events .season-dial .season-stop { min-height: 97px; }
  #invitation-page #events .season-dial .season-stop-leaf { width: 50px; height: 41px; flex-basis: 41px; }
  #invitation-page #events .season-dial .season-stop-name { font-size: 1.22rem; }
  #invitation-page #events #events-list .ceremony-copy { padding-inline: 3.2rem; }
}
@media(min-width:900px) {
  #invitation-page #events { --event-scene-height: clamp(640px,57vw,760px); padding-bottom: 5.5rem; }
  #invitation-page #events>.section-intro { padding: 5rem 2rem 2rem; }
  #invitation-page #events>.section-intro h2 { max-width: 16ch; font-size: clamp(4rem,5.8vw,5.6rem); }
  #invitation-page #events>.section-intro p { max-width: 38ch; font-size: 1.32rem; }
  #invitation-page #events .season-dial,
  #invitation-page #events .season-dial:not(.season-dial-many),
  #invitation-page #events .season-dial.season-dial-many { max-width: 880px; margin-bottom: .1rem; }
  #invitation-page #events .season-playback,
  #invitation-page #events:not(:has(.season-dial-many)) .season-playback,
  #invitation-page #events:has(.season-dial-many) .season-playback { margin-bottom: 1.6rem; }
  #invitation-page #events #events-list { width: calc(100% - 64px); }
  #invitation-page #events #events-list .ceremony,
  #invitation-page #events #events-list.has-season-dial .ceremony,
  #invitation-page #events:has(.season-dial-many) #events-list .ceremony {
    min-height: max(var(--event-scene-height),var(--season-copy-height,640px));
    align-items: flex-end; justify-content: center;
  }
  #invitation-page #events #events-list .ceremony::before {
    inset: 18px 0 18px 52%; border-radius: 0 4px 4px 0;
  }
  #invitation-page #events #events-list .ceremony-art {
    inset: 0 auto 0 0; width: 55%; height: 100%;
    border-radius: 47% 47% 3px 3px / 12% 12% 3px 3px;
  }
  #invitation-page #events #events-list .ceremony-art>img,
  #invitation-page #events #events-list .ceremony-art>.scene-film { object-position: center 47%; }
  #invitation-page #events #events-list .ceremony-copy,
  #invitation-page #events:has(.season-dial-many) #events-list .ceremony-copy {
    width: 45%; max-width: none; margin: 0!important;
    padding: 3.7rem clamp(1.8rem,3.6vw,4rem) 3.7rem clamp(1.7rem,2.7vw,3rem);
    text-align: left;
  }
  #invitation-page #events #events-list .ceremony h3 { font-size: clamp(3.35rem,5vw,5rem); margin-inline: 0; }
  #invitation-page #events #events-list .ceremony-description { margin-inline: 0; }
  #invitation-page #events #events-list .ceremony-attire { margin-inline: 0; }
  #invitation-page #events #events-list .ceremony-venue { font-size: 1.38rem; }
  #invitation-page #events #events-list .season-transition,
  #invitation-page #events #events-list .conservatory-props {
    inset: 0 auto 0 0; width: 55%; height: 100%;
    border-radius: 47% 47% 3px 3px / 12% 12% 3px 3px;
  }
  #invitation-page #events #events-list .season-outgoing>img { width: 100%; height: 100%; object-position: center 47%; }
  #invitation-page #events #events-list .season-outgoing::after { width: 100%; height: 100%; }
  #invitation-page #events #events-list .conservatory-pendant { width: 8.5%; }
  #invitation-page #events #events-list .conservatory-pendant--right { width: 7.5%; }
}
@media(max-width:359px) {
  #invitation-page #events { --event-scene-height: 380px; }
  #invitation-page #events>.section-intro { padding-inline: 1.15rem; }
  #invitation-page #events>.section-intro h2 { font-size: 2.8rem; }
  #invitation-page #events .season-dial,
  #invitation-page #events .season-dial:not(.season-dial-many),
  #invitation-page #events .season-dial.season-dial-many { width: calc(100% - 2.3rem); gap: .15rem .75rem; }
  #invitation-page #events .season-dial .season-stop-name { font-size: 1.1rem; }
  #invitation-page #events #events-list .ceremony-copy { padding: 1.9rem 1.3rem 2.5rem; }
  #invitation-page #events #events-list .ceremony h3 { font-size: 2.8rem; }
  #invitation-page #events #events-list .ceremony-description { font-size: .9rem; }
}

/* Browser visibility, editor preview and motion preferences share the same
   resting pose. Decorations never keep an offscreen animation ticking. */
.is-backgrounded #invitation-page #events #events-list .ceremony-art>img,
.is-backgrounded #invitation-page #events #events-list .conservatory-props>span,
.is-backgrounded #invitation-page #events #events-list .season-transition *,
.menu-open #invitation-page #events #events-list .conservatory-props>span { animation-play-state: paused!important; }
.card-preview #invitation-page #events #events-list .ceremony-art>img,
.card-preview #invitation-page #events #events-list .conservatory-props>span {
  animation: none!important; transform: none!important;
}
.card-preview #invitation-page #events #events-list .season-transition { display: none!important; }
@media(prefers-reduced-motion:reduce) {
  #invitation-page #events #events-list .ceremony-art>img,
  #invitation-page #events #events-list .conservatory-props>span,
  #invitation-page #events #events-list .ceremony.is-season-entering .ceremony-copy>* {
    animation: none!important; transform: none!important; opacity: 1!important;
  }
  #invitation-page #events #events-list .season-transition { display: none!important; }
  #invitation-page #events .season-dial .season-stop,
  #invitation-page #events .season-dial .season-stop-leaf { transition: none; }
}
