/* Patjhad v32 — a celebration film, with the invitation kept on a quiet plane.
   Palette: pine #1d2b23, shadow #17241e, ivory #f7edda, antique gold #d9bb89,
   copper #a77751. Bodoni supplies the ceremony title; Lora supplies the details.
   Mobile: heading / event tabs / full-width scene / live invitation.
   Desktop: heading / event tabs / scene on the left, invitation on the right.
   Real scene films carry the movement. There is no spinning selector, floating
   foreground collage or motion applied to guests' uploaded photographs. */

#invitation-page #events {
  --event-ground: #1d2b23;
  --event-scene-height: clamp(430px,118vw,640px);
  display: flex; flex-direction: column; position: relative;
  padding: 0; background: var(--event-ground); color: #f7edda;
}
#invitation-page #events>.section-intro {
  position: relative; order: 0; z-index: 3;
  width: min(100%,780px); margin: 0 auto;
  padding: 4.2rem 1.75rem 1.8rem;
  background: none; text-align: center;
}
#invitation-page #events>.section-intro h2 {
  color: #f7edda; font-size: clamp(2.9rem,10vw,5.3rem);
  font-weight: 400; line-height: 1.08; letter-spacing: -.04em;
  text-wrap: balance; margin: 0;
}
#invitation-page #events>.section-intro p {
  max-width: 26rem; margin: 1.1rem auto 0;
  color: #ddd1b9; font-size: .91rem; line-height: 1.75;
}

/* Every event remains a real keyboard-accessible tab. The old circular brass
   illustration is intentionally absent; selecting a moment is now immediate. */
#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: .25rem 1.15rem; width: min(calc(100% - 3rem),920px);
  height: auto; min-height: 0; margin: 0 auto 1.1rem;
  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,
#invitation-page #events .season-stop-leaf { display: none; }
#invitation-page #events .season-dial .season-stop {
  position: relative; inset: auto; transform: none;
  display: flex; align-items: center; justify-content: center;
  width: 100%; min-width: 0; min-height: 58px; padding: .65rem .1rem;
  border: 0; border-radius: 0; border-bottom: 1px solid rgb(221 204 171/.18);
  background: transparent; color: #d0c8b5; box-shadow: none;
  text-align: center; text-shadow: none;
  transition: color 300ms ease,border-color 450ms ease;
}
#invitation-page #events .season-dial .season-stop-name {
  display: block; overflow: visible; font-family: var(--font-body);
  font-size: .85rem; line-height: 1.55; font-weight: 400;
  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: #fff0cc; border-color: #d2b17b;
}
#invitation-page #events .season-dial .season-stop[aria-selected='true'] .season-stop-name { text-shadow: none; }
#invitation-page #events .season-dial .season-stop:focus-visible {
  outline: 2px solid #e1c795; outline-offset: 5px;
}
#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: -.35rem auto .85rem;
  padding: .4rem .75rem; border: 0; background: none; border-radius: 0;
  color: #d7c6a5; font-size: .76rem; letter-spacing: 0;
}

/* The photograph is allowed to breathe at full brightness. Its lower edge
   joins the dark green reading plane instead of darkening the entire scene. */
#invitation-page #events #events-list {
  position: relative; order: 3; z-index: 1;
  width: 100%; max-width: none; min-width: 0; margin: 0;
  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) - 65px + var(--season-copy-height,460px));
  margin: 0; padding: 0; overflow: hidden;
  background: var(--event-ground)!important;
}
#invitation-page #events #events-list .ceremony[hidden] { display: none!important; }
#invitation-page #events #events-list .ceremony-art {
  position: absolute; inset: 0 0 auto; z-index: 0; order: 0!important;
  width: 100%; height: var(--event-scene-height); min-height: 0; max-height: none;
  margin: 0; overflow: hidden; 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(.92); transform: none;
}
#invitation-page #events #events-list .ceremony-art>img { animation: none; }
#invitation-page #events #events-list .ceremony.has-authored-scene .ceremony-art>img {
  transform-origin: 50% 47%;
  animation: patjhad-v32-event-camera 17s 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(var(--event-ground),transparent 12%,transparent 64%,rgb(29 43 35/.35) 77%,var(--event-ground) 100%);
}
#invitation-page #events #events-list .chapter-atmosphere { display: block; }
#invitation-page #events #events-list .chapter-atmosphere>:not(.event-native-bough) { display: none; }
#invitation-page #events #events-list .event-native-bough {
  position: absolute; right: -15%; top: -10%;
  width: clamp(200px,45%,335px); aspect-ratio: 1; height: auto;
  opacity: .88; transform: rotate(-9deg);
  filter: saturate(.82) drop-shadow(-3px 7px 5px rgb(28 21 12/.13));
  pointer-events: none;
}
#invitation-page #events #events-list .event-native-bough img {
  display: block; position: static; width: 100%; height: 100%;
  object-fit: contain; filter: none; transform: none; animation: none;
}
#invitation-page #events #events-list .ceremony-copy,
#invitation-page #events:has(.season-dial-many) #events-list .ceremony-copy {
  position: relative; z-index: 4; width: 100%; max-width: 650px; min-height: 0;
  margin: calc(var(--event-scene-height) - 65px) auto 0!important;
  padding: 0 1.8rem 3.8rem; text-align: center;
  background: none; filter: none; text-shadow: none;
  transform: none!important; animation: none;
}
#invitation-page #events #events-list .ceremony-date {
  color: #e3c492; font-size: .86rem; line-height: 1.8;
  letter-spacing: .01em; margin: 0 0 1.05rem;
}
#invitation-page #events #events-list .ceremony h3 {
  max-width: 590px; margin: 0 auto; color: #fff0d8;
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(3rem,11.6vw,4.8rem); line-height: 1.05;
  letter-spacing: -.035em; text-shadow: none; text-wrap: balance;
}
#invitation-page #events #events-list .ceremony-venue {
  color: #e4c9a1; font-size: 1.07rem; line-height: 1.65;
  font-style: italic; margin: 1.15rem 0 0;
}
#invitation-page #events #events-list .ceremony-description {
  color: #e2dbc9; max-width: 31rem;
  font-size: .94rem; line-height: 1.9; margin: 1.35rem auto 1.5rem;
}
#invitation-page #events #events-list .ceremony-attire {
  max-width: 29rem; margin: 0 auto; color: #d3c8b2;
  font-size: .86rem; line-height: 1.8;
}
#invitation-page #events #events-list .ceremony-attire .label {
  display: block; color: #e2caa4; font-size: .83rem; margin-bottom: .2rem;
}
#invitation-page #events #events-list .ceremony-map {
  min-height: 44px; margin-top: .9rem; padding: .7rem .2rem;
  color: #eed2a5; font-size: .85rem;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px;
}

/* The outgoing still occupies exactly the same film gate as the live scene.
   Text settles once; there is never a second zoom on the whole section. */
#invitation-page #events #events-list .season-transition {
  -webkit-mask-image: none; mask-image: none;
}
#invitation-page #events #events-list .season-outgoing>img {
  height: var(--event-scene-height); object-position: center 48%;
  filter: saturate(.92); transform: none;
}
#invitation-page #events #events-list .season-outgoing::after {
  height: var(--event-scene-height);
  background: linear-gradient(var(--event-ground),transparent 12%,transparent 64%,rgb(29 43 35/.35) 77%,var(--event-ground) 100%);
}
#invitation-page #events #events-list .season-outgoing-copy {
  top: calc(var(--event-scene-height) - 65px); left: 50%; right: auto;
  width: 100%; max-width: 650px; padding: 0 1.8rem;
  text-align: center; text-shadow: none; transform: translateX(-50%);
}
#invitation-page #events #events-list .season-outgoing-date { color: #e3c492; font-size: .86rem; margin-bottom: 1.05rem; }
#invitation-page #events #events-list .season-outgoing-copy h3 { color: #fff0d8; font-size: clamp(3rem,11.6vw,4.8rem); line-height: 1.05; }
#invitation-page #events #events-list .season-outgoing-venue { color: #e4c9a1; font-size: 1.07rem; margin-top: 1.15rem; }
#invitation-page #events #events-list .season-light-veil { display: none; }
#invitation-page #events #events-list .ceremony.is-season-entering .ceremony-art { animation: none; transform: none; }
@keyframes patjhad-v32-event-camera {
  from { transform: scale(1.015) translate3d(-.25%,.2%,0); }
  to { transform: scale(1.055) translate3d(.25%,-.2%,0); }
}

@media(min-width:760px) {
  #invitation-page #events { --event-scene-height: clamp(700px,80vw,900px); }
  #invitation-page #events>.section-intro { padding: 5.8rem 2rem 2rem; }
  #invitation-page #events>.section-intro p { font-size: 1rem; }
  #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: 1.5rem; margin-bottom: .9rem; }
  #invitation-page #events .season-dial .season-stop { min-height: 56px; }
  #invitation-page #events .season-dial .season-stop-name { font-size: .93rem; }
  #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,600px));
    justify-content: center; align-items: flex-end;
  }
  #invitation-page #events #events-list .ceremony-art { height: 100%; width: 70%; }
  #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-art::after,
  #invitation-page #events #events-list .ceremony[data-scene='evening'] .ceremony-art::after {
    background: linear-gradient(90deg,transparent 25%,rgb(29 43 35/.15) 54%,var(--event-ground) 98%),linear-gradient(var(--event-ground),transparent 10%,transparent 82%,var(--event-ground));
  }
  #invitation-page #events #events-list .ceremony-copy,
  #invitation-page #events:has(.season-dial-many) #events-list .ceremony-copy {
    width: 44%; max-width: 610px; margin: 0 max(3vw,calc((100vw - 1380px)/2)) 0 0!important;
    padding: 3.6rem 1.8rem 4.2rem; text-align: left;
  }
  #invitation-page #events #events-list .ceremony h3 { font-size: clamp(3.2rem,5vw,5.3rem); margin-inline: 0; }
  #invitation-page #events #events-list .ceremony-description { font-size: 1rem; margin-inline: 0; }
  #invitation-page #events #events-list .ceremony-attire { margin-inline: 0; }
  #invitation-page #events #events-list .season-outgoing>img { width: 70%; height: 100%; object-position: center 47%; }
  #invitation-page #events #events-list .season-outgoing::after {
    width: 70%; height: 100%;
    background: linear-gradient(90deg,transparent 25%,rgb(29 43 35/.15) 54%,var(--event-ground) 98%),linear-gradient(var(--event-ground),transparent 10%,transparent 82%,var(--event-ground));
  }
  #invitation-page #events #events-list .season-outgoing-copy { display: none; }
}
@media(max-width:359px) {
  #invitation-page #events { --event-scene-height: 430px; }
  #invitation-page #events>.section-intro { padding-inline: 1.2rem; }
  #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.4rem); gap: .2rem .8rem; }
  #invitation-page #events .season-dial .season-stop-name { font-size: .8rem; }
  #invitation-page #events #events-list .ceremony-copy,
  #invitation-page #events #events-list .season-outgoing-copy { padding-inline: 1.4rem; }
  #invitation-page #events #events-list .ceremony h3,
  #invitation-page #events #events-list .season-outgoing-copy h3 { font-size: 2.9rem; }
}
.is-backgrounded #invitation-page #events #events-list .ceremony-art>img { animation-play-state: paused!important; }
.card-preview #invitation-page #events #events-list .ceremony-art>img { animation: none!important; transform: none!important; }
@media(prefers-reduced-motion:reduce) {
  #invitation-page #events #events-list .ceremony-art>img { animation: none!important; transform: none!important; }
  #invitation-page #events .season-dial .season-stop { transition: none; }
}
