/* The event pages (events.js): a full-screen layer over the main page. The film fills the screen
   first; then its final frame softens behind the details, which come in one by one. Each page
   takes its colours from its event (--ev-ground, --ev-ink, --ev-accent) within the site's
   typography and ornament. */

body.is-in-event { overflow: hidden; }

.ev-layer {
  position: fixed;
  inset: 0;
  z-index: 25;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  touch-action: pan-y; /* vertical scrolling stays native; horizontal swipes change page */
  background: #0B0612;
  scrollbar-width: none;
}
.ev-layer::-webkit-scrollbar { display: none; }
.ev-layer[hidden] { display: none; }
.j-cel__pin { touch-action: pan-y; }

.ev {
  position: absolute;
  inset: 0 0 auto;
  min-height: 100vh;
  min-height: 100svh;
  background: var(--ev-ground);
  color: var(--ev-ink);
  font: 300 17px/1.6 "Archivo", system-ui, sans-serif;
  outline: none;
  will-change: transform;
}

/* ---------------------------------------------------------------- media --- */

.ev__media {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  margin-bottom: -100vh;
  margin-bottom: -100svh;
  overflow: hidden;
  background: radial-gradient(80% 70% at 50% 40%, color-mix(in srgb, var(--ev-accent) 22%, var(--ev-ground)), var(--ev-ground) 75%);
}
.ev__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter 2.6s cubic-bezier(.4, 0, .2, 1), transform 3.2s cubic-bezier(.4, 0, .2, 1);
}
.ev__video::-webkit-media-controls { display: none !important; }
/* The held last frame of a looping film, laid exactly over it while it dissolves (loop-fade.js).
   object-fit and object-position are copied from the film when the frame is taken. */
.loop-fade { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; pointer-events: none; }
/* After the film: its final frame stays, softened and dimmed, a little closer. */
.ev.is-settled .ev__video { filter: blur(12px) brightness(.55) saturate(1.12); transform: scale(1.07); }
.ev__veil {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 2.4s ease;
  background:
    linear-gradient(to bottom, color-mix(in srgb, var(--ev-ground) 70%, transparent), transparent 30%, transparent 62%, color-mix(in srgb, var(--ev-ground) 85%, transparent)),
    radial-gradient(70% 60% at 50% 45%, transparent, color-mix(in srgb, var(--ev-ground) 55%, transparent));
}
.ev.is-settled .ev__veil, .ev:not(.has-film) .ev__veil { opacity: 1; }
/* A film on top of the page: the first screen, scrolling away over the page's own ground. Its last
   frame stays clear, since the details are further down rather than over it. */
.ev__stage { position: relative; z-index: 1; height: 100vh; height: 100svh; overflow: hidden; background: var(--ev-ground); }
.ev--film-top .ev__veil { opacity: 1; }
/* .ev.ev--film-top: stronger than each event's own softening of its final frame further down. */
.ev.ev--film-top.is-settled .ev__video { filter: none; transform: none; }
/* Behind the details of a film-on-top page: the film's final frame as a still, softened in the
   file itself, a little larger than the screen as the softened film was. */
.ev__still { position: absolute; inset: -3%; background: center / cover no-repeat; }

/* ----------------------------------------------------------------- film --- */

/* While the film plays: only the event's name, clear of the controls (video-controls.css). */
.ev__film-ui {
  position: absolute;
  left: clamp(16px, 4vw, 48px);
  right: clamp(16px, 4vw, 48px);
  top: calc(100svh - 60px);
  transform: translateY(-100%); /* a long name wraps upward, away from the controls */
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  transition: opacity .8s ease, visibility 0s linear .8s;
}
.ev.is-settled .ev__film-ui { opacity: 0; visibility: hidden; }
/* A looping film (content.js `filmLoop`) keeps its title for as long as it is on screen, and the
   title is set larger and fully opaque over a soft dark halo so it reads on any frame. */
.ev.ev--loop.is-settled .ev__film-ui { opacity: 1; visibility: visible; }
.ev.ev--loop .ev__mark {
  font-size: clamp(30px, 4.6vw, 54px);
  line-height: 1.12;
  letter-spacing: .12em;
  opacity: 1;
  color: #FFFFFF;
  /* the typeface's strokes are hairline-thin: a little stroke in the same colour gives them body */
  -webkit-text-stroke: .7px currentColor;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .9), 0 2px 10px rgba(0, 0, 0, .8), 0 0 30px rgba(0, 0, 0, .6);
}
@media (max-width: 720px) { .ev.ev--loop .ev__mark { font-size: 30px; letter-spacing: .09em; } }
/* What the title blended into was the film itself (pale drapes, lawn, table linen). A warm dark
   shade rises from the foot of the film behind the title, the Sound button and SCROLL DOWN, and
   is gone by the middle of the picture, so the upper film is untouched. */
.ev--loop .ev__stage::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 52%;
  pointer-events: none;
  background: linear-gradient(to top, rgba(24, 12, 6, .82) 0%, rgba(24, 12, 6, .62) 26%, rgba(24, 12, 6, .32) 58%, rgba(24, 12, 6, 0) 100%);
}

/* "SCROLL DOWN" at the foot of a film on top (events.js; its look is Swagatam's .j-cinema__enter):
   centred on the bottom line of the film. The Sound button sits on the line above it, and on
   phones the title one line higher still, so the three never meet. */
/* Since 13-11-2026 it sits in the controls' row, beside the Sound button (video-controls.css
   .vc holds the two side by side); that one row is on the bottom line of the film, and on phones
   the title is the line above it. */
.ev__scroll { white-space: nowrap; }
.ev.ev--film-top .vc, .ev.ev--film-top.is-settled .vc { top: calc(100svh - env(safe-area-inset-bottom, 0px) - 58px); }
@media (max-width: 720px) {
  .ev.ev--film-top .vc, .ev.ev--film-top.is-settled .vc { top: calc(100svh - var(--nav-h, 58px) - env(safe-area-inset-bottom, 0px) - 54px); }
  .ev.ev--film-top .ev__film-ui { top: calc(100svh - env(safe-area-inset-bottom, 0px) - var(--nav-h, 58px) - 68px); }
}
.ev__mark { font: 400 clamp(28px, 4vw, 44px)/1 "Italiana", Georgia, serif; letter-spacing: .14em; text-transform: uppercase; color: var(--ev-ink); text-shadow: 0 2px 24px rgba(0, 0, 0, .55); opacity: .85; animation: ev-rise 1.6s cubic-bezier(.2, .7, .2, 1) .6s both; }

/* A veiled page (content.js `veiled: true`, 17-11-2026): everything on it is blurred, the film,
   its title and buttons and all the details, while its music plays on. Nothing is removed. */
.ev--veiled > :not(.ev__surprise) { filter: blur(14px); }
.ev--veiled { user-select: none; }
/* its words over the blur ("Surprise / Coming soon..."), held in the middle of the screen */
.ev__surprise {
  position: sticky;
  top: 0;
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  height: 100vh;
  height: 100svh;
  margin-bottom: -100vh;
  margin-bottom: -100svh;
  padding: 0 24px;
  text-align: center;
  pointer-events: none;
  color: #F4E2B0;
  text-shadow: 0 0 24px rgba(216, 183, 106, .45), 0 2px 18px rgba(0, 0, 0, .65);
}
.ev__surprise-title { font: 400 clamp(54px, 11vw, 120px)/1.05 "Italiana", Georgia, serif; letter-spacing: .06em; animation: ev-rise 1.6s cubic-bezier(.2, .7, .2, 1) .3s both, surprise-glow 3.6s ease-in-out 2s infinite alternate; }
.ev__surprise-line { font: 500 clamp(14px, 1.6vw, 18px)/1.4 "Archivo", system-ui, sans-serif; letter-spacing: .42em; text-transform: uppercase; color: #FFF6DD; animation: ev-rise 1.4s cubic-bezier(.2, .7, .2, 1) .9s both; }
@keyframes surprise-glow { from { text-shadow: 0 0 18px rgba(216, 183, 106, .35), 0 2px 18px rgba(0, 0, 0, .65); } to { text-shadow: 0 0 42px rgba(244, 226, 176, .8), 0 2px 18px rgba(0, 0, 0, .65); } }
@media (prefers-reduced-motion: reduce) { .ev__surprise-title, .ev__surprise-line { animation: ev-fade .6s ease both; } }

/* ---------------------------------------------------------------- details --- */

.ev__info {
  position: relative;
  z-index: 2;
  box-sizing: border-box;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(26px, 4vh, 44px);
  padding: 150px clamp(18px, 5vw, 56px) 70px;
  visibility: hidden;
}
.ev.is-info .ev__info { visibility: visible; }

/* The venue and the timeline (events.js buildPlan; content.js `plan`): two panels, the same on
   every event page, in that page's own ink, accent and ground. Side by side on a wide screen, one
   under the other on a phone. The timeline is a fine line with a dot at each time. */
.ev-plan {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 22px;
  align-items: start;
  width: min(100%, 860px);
  margin: 0 auto clamp(34px, 6vh, 64px);
  color: var(--ev-ink);
  text-align: left;
}
.ev.is-info .ev-plan { animation: ev-rise 1.1s cubic-bezier(.2, .8, .2, 1) .15s both; }
.ev-plan__panel {
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-sizing: border-box;
  padding: 26px 26px 28px;
  border: 1px solid var(--ev-accent);
  border: 1px solid color-mix(in srgb, var(--ev-accent) 55%, transparent);
  border-radius: 6px;
  background: transparent;
  background: color-mix(in srgb, var(--ev-ground) 50%, transparent);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.ev-plan .ev-card__label { display: block; margin: 0; }
.ev-plan__title { font: 400 clamp(26px, 2.6vw, 32px)/1.18 "Italiana", Georgia, serif; text-wrap: balance; }
.ev-plan__text { font: 400 16px/1.6 "Archivo", system-ui, sans-serif; }
.ev-plan__rows { position: relative; display: flex; flex-direction: column; gap: 16px; margin: 14px 0 0; padding: 2px 0 2px 24px; list-style: none; }
.ev-plan__rows::before { content: ""; position: absolute; left: 4px; top: 8px; bottom: 8px; width: 1px; background: var(--ev-accent); opacity: .55; }
.ev-plan__row { position: relative; display: flex; flex-direction: column; gap: 2px; }
.ev-plan__row::before { content: ""; position: absolute; left: -24px; top: 5px; width: 9px; height: 9px; border-radius: 50%; background: var(--ev-accent); }
.ev-plan__when { font: 600 12.5px/1.4 "Archivo", system-ui, sans-serif; letter-spacing: .16em; text-transform: uppercase; color: var(--ev-accent); }
.ev-plan__what { font: 400 17px/1.45 "Archivo", system-ui, sans-serif; }
.ev-plan__where { font: 400 14.5px/1.45 "Archivo", system-ui, sans-serif; opacity: .78; }

/* ---- The path of diyas (events.js buildDiyaPath; content.js `timelineStyle: "diya"`).
   A gold thread with a clay diya at each moment of the day; each flame lights as it is scrolled
   to and the thread fills with gold down to it. Phones: the thread down the left. Wider screens:
   the thread down the middle, the moments alternating either side of it. */
.ev-plan--diya { grid-template-columns: minmax(0, 1fr); }
.ev-plan--diya .ev-plan__panel--time { padding-bottom: 34px; }
.ev-tl-wrap { position: relative; margin-top: 20px; }
.ev-tl__thread, .ev-tl__fill { position: absolute; left: 25px; top: 22px; width: 2px; border-radius: 2px; pointer-events: none; }
.ev-tl__thread { bottom: 22px; background: repeating-linear-gradient(to bottom, var(--ev-accent) 0 6px, transparent 6px 11px); opacity: .35; }
.ev-tl__fill { height: 0; background: linear-gradient(to bottom, var(--ev-accent), #FFE6A8); box-shadow: 0 0 10px var(--ev-accent), 0 0 22px rgba(255, 200, 110, .45); transition: height 1.1s cubic-bezier(.3, .7, .2, 1); }
.ev-tl { position: relative; display: flex; flex-direction: column; gap: 20px; margin: 0; padding: 0; list-style: none; }
.ev-tl__row { position: relative; display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 14px; align-items: start; opacity: .38; transform: translateY(16px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .8, .2, 1); }
.ev-tl__row.is-lit { opacity: 1; transform: none; }
/* the diya */
.ev-tl__lamp { position: relative; z-index: 1; display: grid; place-items: center; width: 52px; height: 52px; }
.ev-tl__lamp::before { content: ""; position: absolute; inset: -6px; border-radius: 50%; background: radial-gradient(circle at 50% 38%, rgba(255, 196, 90, .55), rgba(255, 196, 90, 0) 62%); opacity: 0; transition: opacity .9s ease; }
.ev-tl__row.is-lit .ev-tl__lamp::before { opacity: 1; }
.ev-tl__lamp svg { position: relative; width: 44px; height: 44px; overflow: visible; }
.ev-tl__bowl, .ev-tl__foot { fill: var(--ev-accent); }
.ev-tl__rim { stroke: #FFE6A8; opacity: .7; }
.ev-tl__flame, .ev-tl__flame-core { transform-box: fill-box; transform-origin: 50% 100%; transform: scale(0); transition: transform .6s cubic-bezier(.3, 1.6, .5, 1) .15s; }
.ev-tl__flame { fill: #F6A33B; filter: drop-shadow(0 0 4px rgba(255, 170, 60, .9)); }
.ev-tl__flame-core { fill: #FFF3C9; }
.ev-tl__row.is-lit .ev-tl__flame, .ev-tl__row.is-lit .ev-tl__flame-core { transform: scale(1); animation: tl-flicker 1.9s ease-in-out .8s infinite alternate; }
.ev-tl__row.is-lit .ev-tl__flame-core { animation-duration: 1.3s; }
@keyframes tl-flicker {
  0% { transform: scale(1, 1) rotate(0deg); }
  30% { transform: scale(.93, 1.07) rotate(-3deg); }
  60% { transform: scale(1.04, .95) rotate(2deg); }
  100% { transform: scale(.97, 1.04) rotate(-1deg); }
}
/* the moment's card */
.ev-tl__card { display: flex; flex-direction: column; gap: 3px; padding: 13px 18px 14px; border: 1px solid rgba(255, 255, 255, .16); border: 1px solid color-mix(in srgb, var(--ev-accent) 32%, transparent); border-radius: 12px; background: rgba(0, 0, 0, .2); background: color-mix(in srgb, var(--ev-ground) 55%, transparent); }
.ev-tl__time { font: 400 22px/1.2 "Italiana", Georgia, serif; letter-spacing: .02em; color: var(--ev-accent); }
.ev-tl__what { font: 500 17px/1.45 "Archivo", system-ui, sans-serif; text-wrap: pretty; }
.ev-tl__where { display: inline-flex; align-items: center; gap: 8px; margin-top: 3px; font: 400 14px/1.4 "Archivo", system-ui, sans-serif; opacity: .8; }
.ev-tl__where::before { content: ""; flex: none; width: 7px; height: 7px; border: 1px solid var(--ev-accent); transform: rotate(45deg); }
/* the moment of the day: a larger lamp in a turning halo, a framed and glowing card */
.ev-tl__row--star .ev-tl__lamp::after { content: ""; position: absolute; inset: -4px; border: 1px dashed var(--ev-accent); border-radius: 50%; opacity: 0; transition: opacity .8s ease .4s; }
.ev-tl__row--star.is-lit .ev-tl__lamp::after { opacity: .8; animation: tl-halo 14s linear infinite; }
.ev-tl__row--star .ev-tl__lamp svg { transform: scale(1.18); }
.ev-tl__row--star .ev-tl__card { position: relative; padding: 18px 22px 18px; border: 1px solid var(--ev-accent); box-shadow: inset 0 0 0 4px rgba(0, 0, 0, .12), inset 0 0 0 5px rgba(233, 194, 122, .45), 0 0 40px -10px rgba(255, 196, 90, .55); background: radial-gradient(120% 140% at 0% 0%, rgba(233, 194, 122, .22), rgba(0, 0, 0, 0) 60%), rgba(0, 0, 0, .25); }
.ev-tl__row--star .ev-tl__time { font-size: 30px; }
.ev-tl__row--star .ev-tl__what { font: 400 24px/1.2 "Italiana", Georgia, serif; letter-spacing: .04em; }
.ev-tl__row--star .ev-tl__card::before, .ev-tl__row--star .ev-tl__card::after { content: "✦"; position: absolute; top: 12px; font-size: 12px; color: var(--ev-accent); }
.ev-tl__row--star .ev-tl__card::before { right: 16px; }
.ev-tl__row--star .ev-tl__card::after { right: 34px; opacity: .55; font-size: 9px; top: 14px; }
@keyframes tl-halo { to { transform: rotate(360deg); } }
/* wider screens (17-11-2026): the timeline runs across, left to right. The lights stand in a row
   on a gold thread, the moments alternate above and below them so each has the width of two
   columns, and the lights come on one after another (events.js). The whole path is one grid:
   the list and its items are "display: contents", so the lights and words line up in it. */
@media (min-width: 900px) {
  .ev-plan--diya { width: min(100%, 1180px); }
  .ev-tl-wrap { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); grid-template-rows: auto 64px auto; row-gap: 16px; margin-top: 30px; }
  .ev-tl, .ev-tl__row { display: contents; }
  .ev-tl__thread, .ev-tl__fill { position: static; grid-row: 2; grid-column: 1 / -1; align-self: center; width: auto; height: 2px; margin: 0 calc(50% / var(--n, 4)); }
  .ev-tl__thread { background: repeating-linear-gradient(to right, var(--ev-accent) 0 6px, transparent 6px 11px); }
  .ev-tl__fill { justify-self: start; width: 0; max-width: calc(100% - 100% / var(--n, 4)); background: linear-gradient(to right, var(--ev-accent), #FFE6A8); transition: width 1.1s cubic-bezier(.3, .7, .2, 1); }
  .ev-tl__lamp { grid-row: 2; grid-column: var(--col); justify-self: center; align-self: center; }
  .ev-tl__card { grid-row: 3; grid-column: var(--col); align-self: start; justify-self: center; width: calc(200% - 18px); text-align: center; align-items: center; }
  .ev-tl__row--alt .ev-tl__card { grid-row: 1; align-self: end; }
  .ev-tl__row:first-child .ev-tl__card { justify-self: start; width: calc(150% - 9px); text-align: left; align-items: flex-start; }
  .ev-tl__row:last-child .ev-tl__card { justify-self: end; width: calc(150% - 9px); text-align: right; align-items: flex-end; }
  .ev-tl__row:last-child .ev-tl__where { flex-direction: row-reverse; }
  /* unlit: the light and its words faint, as in the vertical form */
  .ev-tl__lamp, .ev-tl__card { opacity: .38; transition: opacity .8s ease; }
  .ev-tl__row.is-lit .ev-tl__lamp, .ev-tl__row.is-lit .ev-tl__card { opacity: 1; }
  .ev-tl__row--star .ev-tl__time { font-size: 28px; }
  .ev-tl__row--star .ev-tl__what { font-size: 23px; }
}
/* ---- the other pages' lights on the same path (events.js MOTIFS; content.js `timelineStyle`) */
/* Oasis: carnival string-light bulbs, each a different colour when lit */
.ev-tl--bulb .ev-tl__cap { fill: var(--ev-accent); }
.ev-tl--bulb .ev-tl__glass { fill: rgba(120, 90, 40, .14); stroke: rgba(120, 90, 40, .35); stroke-width: 1; transition: fill .6s ease, filter .6s ease; }
.ev-tl--bulb .ev-tl__shine { stroke: #fff; opacity: 0; transition: opacity .6s ease .2s; }
.ev-tl--bulb .ev-tl__row.is-lit .ev-tl__glass { fill: var(--bulb); stroke: rgba(255, 255, 255, .6); filter: drop-shadow(0 0 6px var(--bulb)) drop-shadow(0 0 14px var(--bulb)); }
.ev-tl--bulb .ev-tl__row.is-lit .ev-tl__shine { opacity: .85; }
.ev-tl--bulb .ev-tl__row.is-lit svg { animation: tl-bulb 2.6s ease-in-out .8s infinite; animation-delay: calc(.8s + var(--i, 0) * .37s); }
.ev-tl--bulb .ev-tl__lamp::before { background: radial-gradient(circle at 50% 62%, var(--bulb), transparent 62%); opacity: 0; }
.ev-tl--bulb .ev-tl__row.is-lit .ev-tl__lamp::before { opacity: .35; }
@keyframes tl-bulb { 0%, 100% { filter: brightness(1); } 50% { filter: brightness(1.25); } }
/* Oasis is a light page: its moment of the day on warm paper, framed in the carnival's colours */
.ev-tl--bulb .ev-tl__row--star .ev-tl__card {
  background: radial-gradient(120% 140% at 0% 0%, rgba(255, 201, 60, .28), rgba(255, 201, 60, 0) 55%), radial-gradient(120% 140% at 100% 100%, rgba(247, 37, 133, .14), rgba(247, 37, 133, 0) 55%), rgba(255, 250, 238, .9);
  box-shadow: inset 0 0 0 4px rgba(255, 250, 238, .9), inset 0 0 0 5px rgba(217, 72, 15, .35), 0 14px 34px -14px rgba(217, 72, 15, .45);
}
/* Eden: hanging lanterns that glow lavender and sway */
.ev-tl--lantern .ev-tl__roof, .ev-tl--lantern .ev-tl__base { fill: var(--ev-accent); }
.ev-tl--lantern .ev-tl__hook, .ev-tl--lantern .ev-tl__tassel { stroke: var(--ev-accent); }
.ev-tl--lantern .ev-tl__body { fill: rgba(255, 255, 255, .08); stroke: var(--ev-accent); stroke-width: 1; transition: fill .8s ease, filter .8s ease; }
.ev-tl--lantern .ev-tl__ribs { stroke: var(--ev-accent); opacity: .6; }
.ev-tl--lantern .ev-tl__row.is-lit .ev-tl__body { fill: #F6D9FF; filter: drop-shadow(0 0 6px #D7A6F2) drop-shadow(0 0 16px rgba(201, 162, 224, .8)); }
.ev-tl--lantern .ev-tl__sway { transform-box: view-box; transform-origin: 22px 1px; }
.ev-tl--lantern .ev-tl__row.is-lit .ev-tl__sway { animation: tl-sway 3.4s ease-in-out infinite alternate; animation-delay: calc(var(--i, 0) * -.9s); }
.ev-tl--lantern .ev-tl__lamp::before { background: radial-gradient(circle at 50% 50%, rgba(215, 166, 242, .5), transparent 62%); }
@keyframes tl-sway { from { transform: rotate(-5deg); } to { transform: rotate(5deg); } }
/* Feast: stars over the dunes that light and twinkle */
.ev-tl--star .ev-tl__ray { fill: transparent; stroke: var(--ev-accent); stroke-width: 1.2; stroke-linejoin: round; transition: fill .7s ease, filter .7s ease; }
.ev-tl--star .ev-tl__core { fill: var(--ev-accent); opacity: .4; transition: opacity .7s ease; }
.ev-tl--star .ev-tl__row.is-lit .ev-tl__ray { fill: #F4E2B0; filter: drop-shadow(0 0 5px rgba(244, 226, 176, .95)) drop-shadow(0 0 14px rgba(216, 183, 106, .7)); }
.ev-tl--star .ev-tl__row.is-lit .ev-tl__core { fill: #fff; opacity: 1; }
.ev-tl--star .ev-tl__lamp svg { transform-box: view-box; }
.ev-tl--star .ev-tl__row.is-lit .ev-tl__lamp svg { animation: tl-twinkle 3s ease-in-out infinite; animation-delay: calc(var(--i, 0) * -.7s); }
.ev-tl--star .ev-tl__row--star.is-lit .ev-tl__lamp svg { animation-name: tl-twinkle-big; }
.ev-tl--star .ev-tl__lamp::before { background: radial-gradient(circle, rgba(244, 226, 176, .45), transparent 62%); }
@keyframes tl-twinkle { 0%, 100% { transform: scale(1) rotate(0deg); } 50% { transform: scale(.82) rotate(12deg); } }
@keyframes tl-twinkle-big { 0%, 100% { transform: scale(1.2) rotate(0deg); } 50% { transform: scale(1) rotate(12deg); } }

@media (prefers-reduced-motion: reduce) {
  .ev-tl--bulb .ev-tl__row.is-lit svg, .ev-tl--lantern .ev-tl__row.is-lit .ev-tl__sway, .ev-tl--star .ev-tl__row.is-lit .ev-tl__lamp svg { animation: none; }
  .ev-tl__row { transition: opacity .3s ease; transform: none; }
  .ev-tl__row.is-lit .ev-tl__flame, .ev-tl__row.is-lit .ev-tl__flame-core, .ev-tl__row--star.is-lit .ev-tl__lamp::after { animation: none; }
  .ev-tl__fill { transition: none; }
}
@media (max-width: 720px) {
  .ev-plan { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .ev-plan__panel { padding: 22px 20px 24px; }
}
@media (prefers-reduced-motion: reduce) { .ev.is-info .ev-plan { animation: ev-fade .4s ease both; } }

.ev__head { text-align: center; }
.ev__head > * { margin: 0; }
.ev__kicker { font: 500 11px/1.5 "Archivo", system-ui, sans-serif; letter-spacing: .36em; text-transform: uppercase; color: var(--ev-accent); }
.ev__title {
  margin-top: 10px !important;
  font: 400 clamp(54px, 9vw, 116px)/1 "Italiana", Georgia, serif;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-shadow: 0 0 34px color-mix(in srgb, var(--ev-accent) 55%, transparent), 0 2px 18px rgba(0, 0, 0, .4);
}
.ev__rule { display: block; margin-top: 14px; font-size: 8px; color: var(--ev-accent); }

.ev__cards {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) minmax(0, 1fr);
  align-items: end;
  gap: clamp(14px, 2vw, 24px);
  width: min(100%, 980px);
}
/* A card: tinted glass inside a double gold hairline, crowned by a small jharokha arch. */
.ev-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  box-sizing: border-box;
  min-height: 170px;
  justify-content: center;
  padding: 36px 22px 26px;
  border: 1px solid color-mix(in srgb, var(--ev-accent) 50%, transparent);
  border-radius: 6px;
  background: color-mix(in srgb, var(--ev-ground) 42%, transparent);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  text-align: center;
  box-shadow: 0 20px 50px -30px rgba(0, 0, 0, .7), inset 0 0 0 4px color-mix(in srgb, var(--ev-ground) 30%, transparent), inset 0 0 0 5px color-mix(in srgb, var(--ev-accent) 22%, transparent);
}
.ev-card--feature { min-height: 210px; }
.ev-card--wide { grid-column: 1 / -1; min-height: 0; }
.ev-card::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -13px;
  width: 34px;
  height: 22px;
  transform: translateX(-50%);
  background: var(--ev-ground);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 22'%3E%3Cpath d='M1 22V15C1 8 9 5 13 3C15 2 17 0 17 0C17 0 19 2 21 3C25 5 33 8 33 15V22Z'/%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 34 22'%3E%3Cpath d='M1 22V15C1 8 9 5 13 3C15 2 17 0 17 0C17 0 19 2 21 3C25 5 33 8 33 15V22Z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.ev-card::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -13px;
  width: 34px;
  height: 22px;
  transform: translateX(-50%);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 22' fill='none' stroke='%23E9C26A' stroke-width='1.2'%3E%3Cpath d='M1.5 21.5V15C1.5 8.5 9 5.5 13 3.5C15 2.5 17 .8 17 .8C17 .8 19 2.5 21 3.5C25 5.5 32.5 8.5 32.5 15V21.5'/%3E%3Ccircle cx='17' cy='13' r='2' fill='%23E9C26A' stroke='none'/%3E%3C/svg%3E") center / contain no-repeat;
}
.ev-card__label { font: 500 10px/1.4 "Archivo", system-ui, sans-serif; letter-spacing: .34em; text-transform: uppercase; color: var(--ev-accent); }
.ev-card__text { font: 400 clamp(24px, 2.4vw, 32px)/1.2 "Italiana", Georgia, serif; text-wrap: balance; }
.ev-card--feature .ev-card__text { font-size: clamp(30px, 3.2vw, 42px); }
.ev-card--wide .ev-card__text { font: 300 17px/1.7 "Archivo", system-ui, sans-serif; }
.ev-card__script { font: 400 clamp(44px, 4.6vw, 60px)/1.1 "Mrs Saint Delafield", cursive; color: var(--ev-ink); padding: 0 .2em; }

/* Entrances, each to suit its card, one after another once the details are called. */
.ev.is-info [data-in] { animation-duration: 1.2s; animation-fill-mode: both; animation-timing-function: cubic-bezier(.2, .8, .2, 1); }
.ev.is-info [data-in="top"] { animation-name: ev-from-top; animation-delay: .1s; }
.ev.is-info .ev-card { animation-delay: calc(.55s + var(--i, 0) * .38s); }
.ev.is-info [data-in="left"] { animation-name: ev-from-left; }
.ev.is-info [data-in="right"] { animation-name: ev-from-right; }
.ev.is-info [data-in="pop"] { animation-name: ev-pop; animation-timing-function: cubic-bezier(.3, 1.35, .5, 1); }
.ev__todo {
  margin: 0;
  max-width: 640px;
  padding: 10px 16px;
  border: 1px dashed color-mix(in srgb, var(--ev-accent) 60%, transparent);
  border-radius: 10px;
  font-size: 13px;
  text-align: center;
  color: var(--ev-ink);
  opacity: .8;
}
.ev.is-info .ev__todo { animation: ev-fade 1s ease 2.4s both; }

@keyframes ev-from-top { from { opacity: 0; transform: translateY(-46px); } }
@keyframes ev-from-left { from { opacity: 0; transform: translateX(-90px) rotate(-7deg); } }
@keyframes ev-from-right { from { opacity: 0; transform: translateX(90px) rotate(5deg); } }
@keyframes ev-pop { 0% { opacity: 0; transform: scale(.8) translateY(18px); } 60% { opacity: 1; } }
@keyframes ev-fade { from { opacity: 0; } }
@keyframes ev-rise { from { opacity: 0; transform: translateY(18px); } }

/* The couple's full details: two columns of left-aligned cards, the last across both. */
.ev__line { margin-top: 12px !important; font: 500 12px/1.5 "Archivo", system-ui, sans-serif; letter-spacing: .32em; text-transform: uppercase; color: var(--ev-accent); }
.ev__cards--detail { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; width: min(100%, 900px); gap: clamp(16px, 2vw, 22px) clamp(14px, 2vw, 22px); margin-top: 6px; }
.ev-card--detail { align-items: flex-start; justify-content: flex-start; min-height: 0; padding: 30px 28px 26px; text-align: left; gap: 6px; }
.ev-card--detail::before, .ev-card--detail::after { left: 40px; }
.ev-card__title { font: 400 clamp(26px, 2.6vw, 34px)/1.15 "Italiana", Georgia, serif; }
.ev-card__body { font: 300 15.5px/1.65 "Archivo", system-ui, sans-serif; opacity: .9; text-wrap: pretty; }
.ev-card__list { display: flex; flex-direction: column; gap: 9px; margin: 6px 0 0; padding: 0; list-style: none; font: 400 16.5px/1.4 "Archivo", system-ui, sans-serif; }
.ev-card__list li { display: flex; gap: 12px; align-items: baseline; }
.ev-card__star { color: var(--ev-accent); font-size: 12px; }
.ev-card__swatches { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 10px; width: 100%; margin: 12px 0 0; padding: 0; list-style: none; font: 400 13px/1.3 "Archivo", system-ui, sans-serif; }
.ev-card__swatches li { display: flex; align-items: center; gap: 9px; }
.ev-card__dot { flex: none; width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35), 0 0 0 1px rgba(0, 0, 0, .25), 0 2px 10px rgba(0, 0, 0, .3); }
.ev-card--detail.ev-card--wide .ev-card__body { font-size: 17px; }

/* ------------------------------------------------------- captions over the film --- */

/* One caption at a time, in the part of the scene that leaves room, in a small glass panel. */
.ev__moments { position: absolute; left: 0; right: 0; top: 0; height: 100vh; height: 100svh; z-index: 3; pointer-events: none; }
.ev-moment {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: min(360px, 78vw);
  padding: 16px 22px 18px;
  border: 1px solid color-mix(in srgb, var(--ev-accent) 50%, transparent);
  border-radius: 6px;
  background: color-mix(in srgb, var(--ev-ground) 48%, transparent);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: 0 18px 40px -24px rgba(0, 0, 0, .8);
  text-shadow: 0 1px 10px rgba(0, 0, 0, .35);
  opacity: 0;
  visibility: hidden;
  transition: opacity .7s ease, visibility 0s linear .7s;
}
.ev-moment.is-on { opacity: 1; visibility: visible; transition: opacity .3s ease; animation: .95s cubic-bezier(.2, .8, .2, 1) both; }
.ev-moment[data-in="rise"].is-on { animation-name: ev-rise; }
.ev-moment[data-in="left"].is-on { animation-name: ev-from-left; }
.ev-moment[data-in="top"].is-on { animation-name: ev-from-top; }
.ev-moment[data-in="pop"].is-on { animation-name: ev-pop; animation-timing-function: cubic-bezier(.3, 1.35, .5, 1); }
.ev-moment .ev-card__title { font-size: clamp(24px, 2.6vw, 32px); }
.ev-moment .ev-card__body { font-size: 14px; text-wrap: balance; }
.ev-moment .ev-card__list { font-size: 16px; }
.ev-moment.is-on li { animation: ev-rise .8s cubic-bezier(.2, .8, .2, 1) calc(.35s + var(--n, 0) * .4s) both; }
/* The theme in the empty centre of the light ring: no panel, just the words in the light. */
.ev-moment--centre { left: 50%; top: 50%; translate: -50% -50%; align-items: center; text-align: center; border: 0; background: none; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.ev-moment--centre .ev-card__title { font-size: clamp(30px, 4.4vw, 54px); text-transform: uppercase; letter-spacing: .08em; text-shadow: 0 0 30px rgba(201, 162, 224, .7), 0 2px 16px rgba(0, 0, 0, .6); }
.ev-moment--left { left: clamp(16px, 6vw, 80px); top: 30%; }
.ev-moment--top { right: clamp(16px, 6vw, 80px); top: 21%; }
.ev-moment--upper { left: clamp(16px, 6vw, 80px); top: 22%; }

/* ------------------------------------------------- each event's personality --- */

/* Sangeet, Ultraviolet Underworld: violet night, light like the film's beams. */
.ev--sangeet .ev__title { text-shadow: 0 0 40px rgba(201, 162, 224, .75), 0 0 90px rgba(140, 80, 220, .45), 0 2px 18px rgba(0, 0, 0, .5); }
.ev--sangeet .ev-card { background: rgba(28, 12, 48, .4); }

/* ----------------------------------------------------------------- phones --- */

@media (max-width: 720px) {
  .ev__film-ui { top: calc(100svh - env(safe-area-inset-bottom, 0px) - var(--nav-h, 58px) - 58px); flex-direction: column; align-items: flex-start; gap: 14px; }
  .ev__info { padding: 90px 18px calc(var(--nav-h, 58px) + 40px); justify-content: flex-start; }
  .ev__cards { grid-template-columns: minmax(0, 1fr); }
  .ev-card, .ev-card--feature { min-height: 0; padding: 30px 18px 20px; }
  .ev__cards--detail { grid-template-columns: minmax(0, 1fr); }
  .ev-card--detail { padding: 28px 20px 22px; }
  .ev-card__swatches { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ev-moment--left, .ev-moment--upper { left: 16px; top: 17%; }
  .ev-moment--top { right: 16px; top: 17%; }
  .ev-moment--centre .ev-card__title { font-size: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  .ev.is-info [data-in], .ev__mark, .ev.is-info .ev__todo, .ev-moment.is-on, .ev-moment.is-on li { animation: ev-fade .4s ease both !important; }
  .ev__video { transition-duration: .4s; }
}

/* ================================================ Welcome Lunch & Carnival === */
/* A sunny day at a Rajasthani carnival: light where Sangeet is night. Captions are carnival
   tickets; after the film a warm light veil over the softened final frame; the title's letters
   bounce in under bunting; a ticket, a ribbon programme, game-booth tiles, pennants, a pinned
   note and the photograph, each coming in when scrolled to. */

.ev--welcome-lunch { --cv-ink: #3A2A08; --cv-paper: rgba(255, 250, 238, .92); --cv-gold: #C9963F; }
.ev--welcome-lunch.is-settled .ev__video { filter: blur(9px) brightness(1.04) saturate(1.15); transform: scale(1.06); }
.ev--welcome-lunch .ev__veil {
  background:
    radial-gradient(80% 70% at 50% 40%, rgba(255, 248, 230, .55), rgba(255, 244, 222, .82) 80%),
    linear-gradient(rgba(255, 246, 228, .5), rgba(255, 246, 228, 0) 30%, rgba(255, 240, 214, .6));
}
.ev--welcome-lunch .ev__mark { color: #FFFDF6; text-shadow: 0 2px 18px rgba(80, 40, 0, .55); }

/* Captions over the film: carnival tickets with a perforated stub, sliding in at a tilt. */
.ev--welcome-lunch .ev-moment {
  border: 0;
  border-radius: 4px;
  padding: 14px 22px 16px 36px;
  background:
    radial-gradient(circle at 0 50%, transparent 0 9px, var(--cv-paper) 9.5px) left / 51% 100% no-repeat,
    radial-gradient(circle at 100% 50%, transparent 0 9px, var(--cv-paper) 9.5px) right / 51% 100% no-repeat;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: none;
  color: var(--cv-ink);
  text-shadow: none;
  filter: drop-shadow(0 10px 18px rgba(60, 30, 0, .35));
}
.ev--welcome-lunch .ev-moment::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 10px;
  bottom: 10px;
  border-left: 2px dashed rgba(217, 72, 15, .45);
}
.ev--welcome-lunch .ev-moment .ev-card__label { color: #D9480F; }
.ev--welcome-lunch .ev-moment .ev-card__star { color: #F72585; }
.ev--welcome-lunch .ev-moment.is-on { animation: cv-ticket .9s cubic-bezier(.25, 1.3, .5, 1) both; }
.ev--welcome-lunch .ev-moment.is-on li { animation-name: cv-pop-in; }
.ev--welcome-lunch .ev-moment--low { left: clamp(16px, 6vw, 80px); top: auto; bottom: 150px; }
.ev--welcome-lunch .ev-moment--sky { right: clamp(16px, 6vw, 80px); top: 19%; }
.ev--welcome-lunch .ev-moment--upper { left: clamp(16px, 6vw, 80px); top: 18%; }
@keyframes cv-ticket { 0% { opacity: 0; transform: translateX(-60px) rotate(-9deg); } 65% { transform: translateX(6px) rotate(2deg); } 100% { opacity: 1; transform: rotate(-1.5deg); } }
@keyframes cv-pop-in { 0% { opacity: 0; transform: scale(.6); } 70% { transform: scale(1.08); } 100% { opacity: 1; transform: none; } }

/* After the film: a modern festival in five stages (events.js LAYOUTS.carnival), in festival
   colours (coral, sunshine, turquoise, hot pink, violet), apart from the wedding's royal heritage.
   Ideas from the couple's references appear as graphics: striped canopy drapes, a parasol, a
   carnival mask, ribbons and pennants, carnival stalls under lights. Each stage moves its own way. */
.ev--welcome-lunch { --cv-coral: #FF5E5B; --cv-sun: #FFC93C; --cv-teal: #00C2C7; --cv-pink: #F72585; --cv-violet: #7B2FF7; --cv-card: #FFFBF2; }
.ev--welcome-lunch .cv { color: var(--cv-ink); gap: 0; justify-content: flex-start; padding-top: 110px; overflow-x: clip; }
.cv-sec { position: relative; width: min(100%, 1000px); padding: clamp(40px, 9vh, 90px) 0; opacity: 0; }
.ev.is-info .cv-sec.is-in { opacity: 1; transition: opacity .5s ease; }
.cv .ev-card__label { display: block; margin-bottom: 8px; font: 600 11px/1.4 "Archivo", system-ui, sans-serif; letter-spacing: .28em; text-transform: uppercase; color: var(--cv-coral); }
.cv .ev-card__title { display: block; }
.cv .ev-card__body { display: block; }
.cv-kicker { display: block; margin-bottom: 22px; text-align: center; font: 600 12px/1.4 "Archivo", system-ui, sans-serif; letter-spacing: .34em; text-transform: uppercase; color: var(--cv-coral); }
@keyframes cv-fade-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* 1 — the poster title under a striped canopy, a carnival mask drawing itself behind it. */
.cv-sec--hero { min-height: calc(100vh - 170px); min-height: calc(100svh - 170px); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding-top: 0; }
.cv-canopy { position: absolute; left: 50%; top: -110px; width: 100vw; height: 120px; margin-left: -50vw; display: flex; pointer-events: none; }
.cv-canopy__swag {
  flex: 1;
  height: 100%;
  background: repeating-linear-gradient(100deg, var(--cv-pink) 0 16px, #FF8A3D 16px 32px, var(--cv-sun) 32px 48px, #FFF3E0 48px 54px);
  -webkit-mask: radial-gradient(120% 90% at 50% 0, #000 70%, transparent 71%);
  mask: radial-gradient(120% 90% at 50% 0, #000 70%, transparent 71%);
  transform: translateY(-100%);
  transform-origin: 50% 0;
  filter: drop-shadow(0 8px 10px rgba(120, 40, 0, .18));
}
.ev.is-info .cv-sec--hero.is-in .cv-canopy__swag { animation: cv-canopy 1.3s cubic-bezier(.3, 1.3, .5, 1) both; }
.cv-canopy__swag:nth-child(2) { animation-delay: .08s !important; }
.cv-canopy__swag:nth-child(3) { animation-delay: .16s !important; }
.cv-canopy__swag:nth-child(4) { animation-delay: .24s !important; }
.cv-canopy__swag:nth-child(5) { animation-delay: .32s !important; }
@keyframes cv-canopy { 0% { transform: translateY(-100%); } 70% { transform: translateY(4%) scaleY(1.04); } 100% { transform: none; } }
.cv-hero__event { margin: 0 0 18px; font: 600 11px/1.5 "Archivo", system-ui, sans-serif; letter-spacing: .32em; text-transform: uppercase; opacity: 0; }
.cv-hero__title { display: flex; flex-direction: column; align-items: center; margin: 0; }
.cv-hero__pre { font: 600 clamp(15px, 1.8vw, 22px)/1 "Archivo", system-ui, sans-serif; letter-spacing: .5em; text-transform: uppercase; opacity: 0; }
.cv-hero__mid { position: relative; display: block; margin: 10px 0 0; }
.cv-hero__word { position: relative; display: block; font: 600 clamp(64px, 13vw, 180px)/.92 "Archivo", system-ui, sans-serif; letter-spacing: -.02em; text-transform: uppercase; white-space: nowrap; }
.cv-hero__letter { display: inline-block; opacity: 0; text-shadow: 0 6px 0 rgba(58, 42, 8, .1); }
.cv-hero__post { margin-top: -.18em; font: 400 clamp(54px, 8vw, 110px)/1 "Mrs Saint Delafield", cursive; color: var(--cv-pink); transform: rotate(-5deg); opacity: 0; }
.cv-hero__cue { margin-top: 36px; font: 600 10px/1 "Archivo", system-ui, sans-serif; letter-spacing: .4em; text-transform: uppercase; opacity: 0; }
.cv-hero__cue::after { content: ""; display: block; width: 1px; height: 30px; margin: 10px auto 0; background: currentColor; transform-origin: 50% 0; }
.cv-mask { position: absolute; left: 50%; top: 50%; width: min(78vw, 640px); transform: translate(-50%, -54%); opacity: .22; pointer-events: none; }
.cv-mask svg { display: block; width: 100%; height: auto; overflow: visible; }
.cv-mask path { stroke-width: 1.6; stroke-dasharray: 1; stroke-dashoffset: 1; }
.cv-mask__face, .cv-mask__eye { stroke: var(--cv-violet); }
.ev.is-info .cv-sec--hero.is-in .cv-mask path { animation: cv-draw 2.2s cubic-bezier(.65, 0, .35, 1) .4s both; }
.ev.is-info .cv-sec--hero.is-in .cv-mask__plume { animation-delay: calc(1s + var(--n) * .12s) !important; }
@keyframes cv-draw { to { stroke-dashoffset: 0; } }
.cv-burst { position: absolute; left: 50%; top: 50%; width: 0; height: 0; }
.cv-burst i { position: absolute; left: -4px; top: -10px; width: 8px; height: 20px; border-radius: 2px; opacity: 0; }
.ev.is-info .cv-sec--hero.is-in .cv-hero__event { animation: cv-fade-up 1s ease .1s both; }
.ev.is-info .cv-sec--hero.is-in .cv-hero__pre { animation: cv-fade-up 1s cubic-bezier(.2, .8, .2, 1) .3s both; }
.ev.is-info .cv-sec--hero.is-in .cv-hero__letter { animation: cv-drop .9s cubic-bezier(.3, 1.5, .5, 1) calc(.6s + var(--n) * 80ms) both; }
.ev.is-info .cv-sec--hero.is-in .cv-burst i { animation: cv-burst 1.5s cubic-bezier(.2, .7, .3, 1) 1.4s both; }
.ev.is-info .cv-sec--hero.is-in .cv-hero__post { animation: cv-stamp .9s cubic-bezier(.3, 1.5, .5, 1) 1.6s both; }
.ev.is-info .cv-sec--hero.is-in .cv-hero__cue { animation: cv-fade-up 1s ease 2.6s both; }
.ev.is-info .cv-sec--hero.is-in .cv-hero__cue::after { animation: cv-cue 1.8s ease-in-out 3.4s infinite; }
@keyframes cv-drop { 0% { opacity: 0; transform: translateY(-90%) rotate(-14deg); } 100% { opacity: 1; transform: none; } }
@keyframes cv-burst { 0% { opacity: 1; transform: rotate(var(--a)) translateY(0) scale(.5); } 100% { opacity: 0; transform: rotate(var(--a)) translateY(calc(-1 * var(--d))) rotate(160deg) scale(1); } }
@keyframes cv-stamp { 0% { opacity: 0; transform: rotate(-5deg) scale(1.8); } 100% { opacity: 1; transform: rotate(-5deg) scale(1); } }
@keyframes cv-cue { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }

/* 2 — the theme, layered: the words huge and wiped in, the venue ticket swinging across them, the
   day on a tag hung from a parasol. */
.cv-sec--intro { min-height: 82vh; min-height: 82svh; display: flex; align-items: center; box-sizing: border-box; }
.cv-scene { position: relative; width: 100%; min-height: 560px; }
/* Without the big theme words (content.js `hideTheme`): the ticket and the parasol take the top of
   the scene, with no empty band where the words were. Phones stack them already (see below). */
.cv-sec--intro:has(.cv-scene--plain) { min-height: 0; }
.cv-scene--plain { min-height: 300px; }
@media (min-width: 721px) { .cv-scene--plain .cv-ticket, .cv-scene--plain .cv-parasol { top: 20px; } }
.cv-scene [data-depth] { transition: translate .6s cubic-bezier(.2, .8, .2, 1); }
.cv-theme { position: absolute; left: 0; top: 10px; display: flex; flex-direction: column; }
.cv-theme__label { font: 600 12px/1.4 "Archivo", system-ui, sans-serif; letter-spacing: .34em; text-transform: uppercase; color: var(--cv-coral); margin-bottom: 6px; }
.cv-theme__line { display: block; font: 600 clamp(64px, 9.5vw, 128px)/.9 "Archivo", system-ui, sans-serif; letter-spacing: -.03em; text-transform: uppercase; clip-path: inset(0 100% 0 0); }
.cv-theme__line--outline { color: transparent; -webkit-text-stroke: 2px var(--cv-coral); }
.cv-theme__line--solid { margin-left: .5em; background: linear-gradient(90deg, var(--cv-coral), var(--cv-pink) 55%, var(--cv-violet)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.ev.is-info .cv-sec--intro.is-in .cv-theme__line { animation: cv-wipe 1.1s cubic-bezier(.7, 0, .2, 1) both; }
.ev.is-info .cv-sec--intro.is-in .cv-theme__line--solid { animation-delay: .35s; }
@keyframes cv-wipe { to { clip-path: inset(0 -2% 0 0); } }
.cv-ticket {
  position: absolute;
  right: 0;
  top: 300px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 26px;
  width: min(100%, 460px);
  box-sizing: border-box;
  padding: 24px 28px;
  background:
    radial-gradient(circle at 0 50%, transparent 0 12px, var(--cv-card) 12.5px) left / 51% 100% no-repeat,
    radial-gradient(circle at 100% 50%, transparent 0 12px, var(--cv-card) 12.5px) right / 51% 100% no-repeat;
  filter: drop-shadow(0 18px 26px rgba(120, 50, 0, .25));
  transform: rotate(3deg);
  opacity: 0;
}
.cv-ticket::before { content: ""; position: absolute; left: 14px; right: 14px; top: 0; height: 6px; background: repeating-linear-gradient(90deg, var(--cv-teal) 0 14px, var(--cv-sun) 14px 28px, var(--cv-pink) 28px 42px); border-radius: 0 0 4px 4px; }
.cv-ticket > :not(.cv-ticket__stub) { grid-column: 1; }
.cv-ticket .ev-card__title { font: 400 clamp(26px, 3vw, 34px)/1.15 "Italiana", Georgia, serif; }
.cv-ticket .ev-card__body { margin-top: 4px; font: 400 15px/1.5 "Archivo", system-ui, sans-serif; opacity: .8; }
.cv-ticket__stub { grid-column: 2; grid-row: 1 / span 3; display: grid; place-items: center; padding-left: 22px; border-left: 2px dashed rgba(255, 94, 91, .45); writing-mode: vertical-rl; font: 600 10px/1 "Archivo", system-ui, sans-serif; letter-spacing: .32em; text-transform: uppercase; color: var(--cv-pink); }
.ev.is-info .cv-sec--intro.is-in .cv-ticket { animation: cv-ticket-in 1.2s cubic-bezier(.25, 1.3, .5, 1) .7s both; }
@keyframes cv-ticket-in { 0% { opacity: 0; transform: translateX(120px) rotate(18deg); } 65% { transform: translateX(-8px) rotate(1deg); } 100% { opacity: 1; transform: rotate(3deg); } }
.cv-parasol { position: absolute; left: 6%; top: 300px; display: flex; flex-direction: column; align-items: center; width: 250px; transform-origin: 50% 0; opacity: 0; }
.cv-parasol__top { width: 230px; height: 96px; border-radius: 115px 115px 0 0; background: repeating-conic-gradient(from -90deg at 50% 100%, var(--cv-teal) 0 18deg, #FFF3E0 18deg 36deg); -webkit-mask: radial-gradient(circle at 12px 100%, transparent 11px, #000 11.5px) -12px 0 / 23px 100% repeat-x; mask: radial-gradient(circle at 12px 100%, transparent 11px, #000 11.5px) -12px 0 / 23px 100% repeat-x; filter: drop-shadow(0 10px 12px rgba(0, 80, 80, .2)); }
.cv-parasol__cord { width: 2px; height: 26px; background: var(--cv-ink); opacity: .45; }
.cv-parasol__tag { padding: 18px 22px; border-radius: 16px; background: var(--cv-sun); text-align: center; box-shadow: 0 16px 28px -16px rgba(120, 60, 0, .5); }
.cv-parasol__tag .ev-card__label { color: #9A3A0A; }
.cv-parasol__tag .ev-card__title { font: 400 clamp(24px, 2.6vw, 30px)/1.15 "Italiana", Georgia, serif; }
.cv-parasol__tag .ev-card__body { margin-top: 4px; font: 500 14px/1.5 "Archivo", system-ui, sans-serif; }
.ev.is-info .cv-sec--intro.is-in .cv-parasol { animation: cv-hang 1.8s cubic-bezier(.3, 1.4, .5, 1) 1.1s both; }
@keyframes cv-hang { 0% { opacity: 0; transform: translateY(-60px) rotate(10deg); } 40% { opacity: 1; transform: rotate(-6deg); } 65% { transform: rotate(3deg); } 85% { transform: rotate(-1deg); } 100% { opacity: 1; transform: none; } }

/* 3 — the colour train: a ribbon streams behind it and its carriages hang the pennants. */
.cv-sec--wear { text-align: center; }
.cv-rail { position: relative; width: 100vw; height: 300px; margin-left: calc(50% - 50vw); overflow: hidden; }
.cv-ribbon { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.cv-ribbon path { fill: none; stroke: url(#cv-ribbon-grad); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.cv-flags { position: absolute; left: 50%; top: 40px; width: min(92%, 860px); transform: translateX(-50%); display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; }
.cv-flag { display: flex; flex-direction: column; align-items: center; gap: 10px; padding-top: 18px; cursor: pointer; outline: none; opacity: 0; transform-origin: 50% 0; }
.cv-flag__cloth { width: 58px; height: 70px; background: var(--c); clip-path: polygon(0 0, 100% 0, 100% 64%, 50% 100%, 0 64%); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .45); }
.cv-flag__name { font: 600 11.5px/1.3 "Archivo", system-ui, sans-serif; letter-spacing: .1em; text-transform: uppercase; }
.cv-flag.is-on { opacity: 1; animation: cv-swing 1.5s cubic-bezier(.3, 1.4, .5, 1) both; }
.cv-flag.is-swing { animation: cv-swing 1.4s cubic-bezier(.3, 1.4, .5, 1) both; }
.cv-flag:hover .cv-flag__cloth, .cv-flag:focus-visible .cv-flag__cloth { transform: scale(1.08); }
.cv-flag__cloth { transition: transform .35s cubic-bezier(.3, 1.5, .5, 1); }
@keyframes cv-swing { 0% { opacity: 0; transform: translateY(-40px) rotate(16deg); } 35% { opacity: 1; transform: rotate(-9deg); } 60% { transform: rotate(5deg); } 80% { transform: rotate(-2deg); } 100% { opacity: 1; transform: none; } }
.cv-sparks { position: absolute; inset: 0; pointer-events: none; }
.cv-sparks i { position: absolute; bottom: 92px; width: 7px; height: 12px; border-radius: 2px; animation: cv-spark 1.3s cubic-bezier(.2, .7, .3, 1) both; }
@keyframes cv-spark { 0% { opacity: 1; transform: translate(0, 0) rotate(0); } 100% { opacity: 0; transform: translate(var(--dx), var(--dy)) rotate(var(--r)); } }
.cv-rail__track { position: absolute; left: 0; right: 0; bottom: 18px; height: 10px; background: linear-gradient(var(--cv-ink), var(--cv-ink)) 0 0 / 100% 2px no-repeat, repeating-linear-gradient(90deg, rgba(58, 42, 8, .35) 0 4px, transparent 4px 22px) 0 4px / 100% 6px no-repeat; }
.cv-train { position: absolute; left: 0; bottom: 22px; display: flex; align-items: flex-end; gap: 6px; transform: translateX(-120vw); will-change: transform; }
.cv-train__car, .cv-train__engine { position: relative; flex: none; }
.cv-train__car { width: 92px; height: 44px; margin-bottom: 8px; border-radius: 12px 12px 8px 8px; background: var(--c); box-shadow: inset 0 -8px 0 rgba(0, 0, 0, .14), inset 0 6px 0 rgba(255, 255, 255, .28); }
.cv-train__car::before { content: ""; position: absolute; left: 12px; right: 12px; top: 10px; height: 12px; border-radius: 6px; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .7) 0 15px, transparent 15px 21px); }
.cv-train__car::after, .cv-train__engine::after { content: ""; position: absolute; left: 0; right: 0; bottom: -12px; height: 18px; background: radial-gradient(circle at 24% 50%, #2B2140 0 7px, #FFF8EE 7.5px 9px, transparent 9.5px), radial-gradient(circle at 76% 50%, #2B2140 0 7px, #FFF8EE 7.5px 9px, transparent 9.5px); }
.cv-train__engine { width: 124px; height: 66px; margin-bottom: 8px; border-radius: 14px 34px 10px 10px; background: linear-gradient(90deg, var(--cv-coral), var(--cv-pink)) 0 34px / 100% 6px no-repeat, #3B2E5A; box-shadow: inset 0 -8px 0 rgba(0, 0, 0, .2); }
.cv-train__engine::before { content: ""; position: absolute; right: 30px; top: -22px; width: 18px; height: 24px; border-radius: 4px 4px 0 0; background: linear-gradient(var(--cv-sun) 0 6px, #2B2140 6px); }
.cv-dress { max-width: 38em; margin: 26px auto 0; opacity: 0; }
.cv-dress .ev-card__title { font: 400 clamp(34px, 4.4vw, 54px)/1.1 "Italiana", Georgia, serif; }
.cv-dress .ev-card__body { margin-top: 10px; font: 400 17px/1.65 "Archivo", system-ui, sans-serif; }
.cv-sec--wear.is-run .cv-dress { animation: cv-unfurl 1.2s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes cv-unfurl { 0% { opacity: 0; clip-path: inset(0 50% 0 50%); } 100% { opacity: 1; clip-path: inset(0 0 0 0); } }
.cv-again { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; padding: 10px 18px; border: 1.5px solid var(--cv-coral); border-radius: 999px; background: transparent; color: var(--cv-coral); font: 600 11px/1 "Archivo", system-ui, sans-serif; letter-spacing: .22em; text-transform: uppercase; cursor: pointer; opacity: 0; transition: background-color .3s ease, color .3s ease; }
.cv-again:hover, .cv-again:focus-visible { background: var(--cv-coral); color: #FFF8F0; outline: none; }
.cv-sec--wear.is-run .cv-again { opacity: 1; transition: opacity .6s ease .8s, background-color .3s ease, color .3s ease; }

/* 4 — the activities: carnival stalls under a string of lights. */
.cv-midway { position: relative; padding-top: 40px; }
.cv-lights { position: absolute; left: 0; right: 0; top: 0; height: 30px; display: flex; justify-content: space-between; padding: 0 1%; }
.cv-lights::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 12px; border-bottom: 1.5px solid rgba(58, 42, 8, .5); border-radius: 0 0 50% 50% / 0 0 100% 100%; }
.cv-lights i { position: relative; top: var(--y); width: 10px; height: 13px; border-radius: 50% 50% 45% 45%; background: #E8D9BF; box-shadow: 0 -3px 0 -1px #6B5A3E; transition: background-color .4s ease, box-shadow .4s ease; }
.ev.is-info .cv-sec--stalls.is-in .cv-lights i { animation: cv-bulb .5s ease calc(.2s + var(--n) * 60ms) both; }
@keyframes cv-bulb { to { background: #FFE58A; box-shadow: 0 -3px 0 -1px #6B5A3E, 0 0 14px 4px rgba(255, 210, 90, .75); } }
.cv-stalls { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin: 0; padding: 0; list-style: none; }
.cv-stall { position: relative; display: flex; flex-direction: column; cursor: pointer; outline: none; transition: transform .45s cubic-bezier(.3, 1.4, .5, 1); }
.cv-stall__awning { position: relative; z-index: 1; height: 54px; background: repeating-linear-gradient(90deg, var(--c) 0 22px, #FFF8EE 22px 44px); -webkit-mask: radial-gradient(circle at 11px 0, #000 11px, transparent 11.5px) 0 100% / 22px 12px repeat-x, linear-gradient(#000, #000) 0 0 / 100% calc(100% - 11px) no-repeat; mask: radial-gradient(circle at 11px 0, #000 11px, transparent 11.5px) 0 100% / 22px 12px repeat-x, linear-gradient(#000, #000) 0 0 / 100% calc(100% - 11px) no-repeat; border-radius: 10px 10px 0 0; transform-origin: 50% 0; transform: scaleY(0); filter: drop-shadow(0 6px 6px rgba(0, 0, 0, .12)); }
.cv-stall__counter { display: flex; flex-direction: column; align-items: center; gap: 14px; margin: -6px 10px 0; padding: 28px 14px 24px; border-radius: 0 0 16px 16px; background: var(--cv-card); box-shadow: inset 0 -5px 0 color-mix(in srgb, var(--c) 70%, #fff), 0 20px 30px -22px rgba(80, 30, 0, .6); text-align: center; opacity: 0; }
.cv-stall__icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--c); color: #FFFDF8; transition: transform .5s cubic-bezier(.3, 1.6, .5, 1); }
.cv-stall__icon svg { width: 38px; height: 38px; }
.cv-stall__name { font: 400 clamp(19px, 2vw, 23px)/1.2 "Italiana", Georgia, serif; text-wrap: balance; }
.ev.is-info .cv-sec--stalls.is-in .cv-stall__awning { transform: none; transition: transform .8s cubic-bezier(.3, 1.4, .5, 1) calc(.6s + var(--n) * .18s); }
.ev.is-info .cv-sec--stalls.is-in .cv-stall__counter { opacity: 1; animation: cv-fade-up .8s cubic-bezier(.2, .8, .2, 1) calc(.9s + var(--n) * .18s) backwards; }
.cv-stall:hover, .cv-stall:focus-visible, .cv-stall.is-active { transform: translateY(-10px); }
.cv-stall:hover .cv-stall__awning, .cv-stall:focus-visible .cv-stall__awning, .cv-stall.is-active .cv-stall__awning { animation: cv-flutter .9s ease-in-out; }
.cv-stall:hover .cv-stall__icon, .cv-stall:focus-visible .cv-stall__icon, .cv-stall.is-active .cv-stall__icon { transform: scale(1.12) rotate(-8deg); }
@keyframes cv-flutter { 0%, 100% { transform: none; } 25% { transform: skewX(-4deg) scaleY(1.04); } 50% { transform: skewX(3deg); } 75% { transform: skewX(-2deg); } }

/* 5 — the day at a glance: the ribbon programme, the ticket strip, the pinned note, the photo. */
.cv-sec--glance { display: flex; flex-direction: column; align-items: center; gap: 36px; }
.cv-sec--glance > .cv-kicker { margin-bottom: 0; }
.cv-track { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; width: 100%; margin: 0; padding: 0; list-style: none; }
.cv-track__ribbon { position: absolute; left: 12.5%; right: 12.5%; top: 11px; height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--cv-coral), var(--cv-sun), var(--cv-teal), var(--cv-pink)); transform: scaleX(0); transform-origin: 0 50%; }
.ev.is-info .cv-sec--glance.is-in .cv-track__ribbon { transform: none; transition: transform 1.6s cubic-bezier(.65, 0, .35, 1) .2s; }
.cv-stop { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; opacity: 0; }
.cv-stop__dot { width: 26px; height: 26px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 5px var(--cv-card), 0 6px 14px rgba(0, 0, 0, .18); }
.cv-stop__time { margin-top: 6px; font: 600 12px/1.3 "Archivo", system-ui, sans-serif; letter-spacing: .14em; color: var(--cv-coral); }
.cv-stop__what { font: 400 clamp(17px, 1.7vw, 21px)/1.3 "Italiana", Georgia, serif; text-wrap: balance; }
.ev.is-info .cv-sec--glance.is-in .cv-stop { animation: cv-fade-up .9s cubic-bezier(.2, .8, .2, 1) calc(.5s + var(--n) * .3s) both; }
.cv-strip { display: flex; width: min(100%, 900px); margin: 0; filter: drop-shadow(0 18px 26px rgba(120, 50, 0, .22)); }
.cv-strip__part { position: relative; flex: 1 1 0; padding: 22px 22px 24px; background: radial-gradient(circle at 0 50%, transparent 0 9px, var(--cv-card) 9.5px) left / 51% 100% no-repeat, radial-gradient(circle at 100% 50%, transparent 0 9px, var(--cv-card) 9.5px) right / 51% 100% no-repeat; opacity: 0; }
.cv-strip__part + .cv-strip__part { border-left: 2px dashed rgba(255, 94, 91, .35); }
.cv-strip__part:first-child { flex-grow: 1.3; }
.cv-strip__part:last-child { flex-grow: 1.6; }
.cv-strip dt { font: 600 10.5px/1.4 "Archivo", system-ui, sans-serif; letter-spacing: .28em; text-transform: uppercase; color: var(--cv-coral); }
.cv-strip dd { margin: 6px 0 0; font: 400 clamp(18px, 1.8vw, 22px)/1.3 "Italiana", Georgia, serif; }
.cv-strip .cv-strip__sub { margin-top: 2px; font: 400 13px/1.4 "Archivo", system-ui, sans-serif; opacity: .75; }
.ev.is-info .cv-sec--glance.is-in .cv-strip__part { animation: cv-tear .8s cubic-bezier(.3, 1.3, .5, 1) calc(1.4s + var(--n) * .15s) both; }
@keyframes cv-tear { 0% { opacity: 0; transform: translateY(18px) rotate(-3deg); } 100% { opacity: 1; transform: none; } }
.cv-note { position: relative; width: min(100%, 560px); box-sizing: border-box; padding: 30px 30px 26px; background: #FFF1B8; box-shadow: 0 18px 30px -18px rgba(120, 60, 0, .5); transform: rotate(-1.2deg); transform-origin: 50% 0; opacity: 0; }
.cv-note .ev-card__label { color: #A3340A; }
.cv-note .ev-card__body { font: 400 18px/1.6 "Archivo", system-ui, sans-serif; }
.cv-note__pin { position: absolute; left: 50%; top: -9px; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #FF8FB8, var(--cv-pink) 55%, #A30D57); box-shadow: 0 3px 6px rgba(0, 0, 0, .3); }
.ev.is-info .cv-sec--glance.is-in .cv-note { animation: cv-pinned 1.4s cubic-bezier(.3, 1.3, .5, 1) 2s both; }
@keyframes cv-pinned { 0% { opacity: 0; transform: translateY(-40px) rotate(8deg); } 50% { opacity: 1; transform: rotate(-4deg); } 75% { transform: rotate(1deg); } 100% { opacity: 1; transform: rotate(-1.2deg); } }
.cv-photo { position: relative; margin: 0; width: min(100%, 820px); box-sizing: border-box; padding: 10px; border-radius: 26px; background: var(--cv-card); box-shadow: 0 0 0 2px color-mix(in srgb, var(--cv-coral) 35%, transparent), 0 24px 44px -28px rgba(80, 30, 0, .55); opacity: 0; }
.cv-photo__window { position: relative; overflow: hidden; aspect-ratio: 16 / 9; border-radius: 18px; background: #F6E6CE; }
.cv-photo__ground { position: absolute; inset: 0; background: repeating-linear-gradient(135deg, rgba(255, 94, 91, .08) 0 16px, rgba(255, 201, 60, .1) 16px 32px, rgba(0, 194, 199, .08) 32px 48px), #FBEFDD; }
.cv-photo__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cv-photo.is-empty .cv-photo__img { visibility: hidden; }
.cv-photo__slot { position: absolute; left: 50%; bottom: 12%; transform: translateX(-50%); max-width: 90%; padding: 4px 10px; border-radius: 999px; background: rgba(255, 251, 242, .92); font: 500 11px/1.4 "Archivo", system-ui, sans-serif; color: #6E5E4E; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev.is-info .cv-sec--glance.is-in .cv-photo { animation: cv-fade-up 1.2s cubic-bezier(.2, .8, .2, 1) 2.4s both; }

@media (max-width: 720px) {
  .ev--welcome-lunch .ev-moment--low { bottom: 210px; left: 16px; }
  .ev--welcome-lunch .ev-moment--sky, .ev--welcome-lunch .ev-moment--upper { top: 15%; }
  .ev--welcome-lunch .ev__mark { font-size: 21px; letter-spacing: .1em; }
  .ev--welcome-lunch .cv { padding-top: 70px; }
  /* the canopy hangs just below the top buttons; the event's name and date on lines of their own */
  .cv-canopy { top: -14px; height: 58px; }
  .cv-hero__event span { display: block; }
  .cv-hero__event .cv-hero__sep { display: none; }
  .cv-hero__event { line-height: 1.8; }
  /* thumb-sized controls */
  .cv-again { min-height: 44px; padding-left: 18px; padding-right: 18px; }
  .cv-sec--hero { min-height: calc(100svh - 150px); }
  .cv-hero__word { font-size: 17vw; }
  .cv-hero__pre { letter-spacing: .36em; }
  .cv-mask { width: 96vw; }
  .cv-scene { min-height: 0; display: flex; flex-direction: column; align-items: center; gap: 30px; }
  .cv-theme, .cv-ticket, .cv-parasol { position: relative; left: auto; right: auto; top: auto; bottom: auto; }
  .cv-theme { align-self: flex-start; }
  .cv-theme__line { font-size: 19vw; }
  .cv-ticket { padding: 20px 22px; }
  .cv-rail { height: 270px; }
  .cv-flags { width: calc(100% - 16px); top: 40px; }
  .cv-flag { gap: 8px; }
  .cv-flag__cloth { width: 36px; height: 44px; }
  .cv-flag__name { max-width: 4.6em; font-size: 10.5px; letter-spacing: 0; text-transform: none; text-align: center; line-height: 1.25; }
  .cv-train__car { width: 62px; height: 34px; }
  .cv-train__car::before { left: 8px; right: 8px; top: 8px; height: 10px; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .7) 0 10px, transparent 10px 15px); }
  .cv-train__engine { width: 88px; height: 50px; }
  .cv-stalls { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; row-gap: 26px; }
  .cv-lights i:nth-child(even) { display: none; }
  .cv-track { grid-template-columns: minmax(0, 1fr); gap: 18px; justify-items: start; padding-left: 8px; }
  .cv-track__ribbon { left: 19px; right: auto; top: 12px; bottom: 12px; width: 4px; height: auto; transform: scaleY(0); transform-origin: 50% 0; }
  .ev.is-info .cv-sec--glance.is-in .cv-track__ribbon { transform: none; }
  .cv-stop { flex-direction: row; gap: 14px; text-align: left; }
  .cv-stop__time { margin: 0; min-width: 8.6em; white-space: nowrap; }
  /* the ticket strip as a compact two-by-two ticket; the activities across the bottom */
  .cv-strip { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-radius: 16px; overflow: hidden; background: var(--cv-card); }
  .cv-strip__part { padding: 16px 16px 18px; background: none; }
  .cv-strip__part + .cv-strip__part { border-left: 0; border-top: 2px dashed rgba(255, 94, 91, .3); }
  .cv-strip__part:first-child, .cv-strip__part:last-child { grid-column: 1 / -1; }
  .cv-strip__part:nth-child(3):not(:last-child) { border-left: 2px dashed rgba(255, 94, 91, .3); }
  .cv-strip dd { font-size: 18px; }
  .cv-note { width: calc(100% - 16px); }
}
/* any touch screen (phones and tablets): thumb-sized controls */
@media (pointer: coarse) {
  .cv-again { min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .ev.is-info .cv-sec.is-in *, .ev--welcome-lunch .ev-moment.is-on, .ev--welcome-lunch .ev-moment.is-on li { animation: ev-fade .4s ease both !important; }
  .cv-hero__event, .cv-hero__pre, .cv-hero__letter, .cv-hero__cue, .cv-ticket, .cv-parasol, .cv-dress, .cv-again, .cv-stall__counter, .cv-stop, .cv-strip__part, .cv-photo, .cv-flag { opacity: 1; }
  .cv-hero__post { opacity: 1; transform: rotate(-5deg); }
  .cv-note { opacity: 1; transform: rotate(-1.2deg); }
  .cv-ticket { transform: rotate(3deg); }
  .cv-canopy__swag, .cv-stall__awning { transform: none; }
  .cv-theme__line { clip-path: none; }
  .cv-mask path { stroke-dashoffset: 0; }
  .cv-burst, .cv-sparks { display: none; }
  .cv-track__ribbon { transform: none !important; }
}

/* ============================================================ Gala Dinner === */
/* A formal evening ball in the Enchanted Backyard, its colours taken from the film: midnight
   garden green, champagne gold from the string lights, ivory linen, with the burgundy and rose of
   the dress code. Captions are gold lettering in the dark of each shot with a light sweeping
   across them; after the film the final frame goes to candle-lit soft focus and the details
   settle in slowly: a foil title, an invitation card that unfolds, the order of the evening,
   jewels, a sealed note and a gilded frame. */

.ev--gala-dinner { --gl-gold: #D8B76A; --gl-gold-light: #F4E2B0; --gl-ink: #F6EFDF; --gl-night: #0B1710; --gl-wine: #7A1230; }
.ev--gala-dinner.is-settled .ev__video { filter: blur(8px) brightness(.5) saturate(1.05) sepia(.12); transform: scale(1.05); transition-duration: 3.2s, 3.6s; }
.ev--gala-dinner .ev__veil {
  background:
    radial-gradient(60% 40% at 50% 0%, rgba(244, 226, 176, .16), rgba(244, 226, 176, 0) 70%),
    radial-gradient(85% 75% at 50% 50%, rgba(11, 23, 16, .25), rgba(11, 23, 16, .82) 85%);
  transition-duration: 3.2s;
}
.ev--gala-dinner .ev__mark { color: var(--gl-gold-light); letter-spacing: .3em; font-size: clamp(26px, 3.4vw, 40px); text-shadow: 0 0 24px rgba(216, 183, 106, .45), 0 2px 16px rgba(0, 0, 0, .7); }

/* Captions: engraved gold lettering on the dark of the scene, a light passing over it. */
.ev--gala-dinner .ev-moment {
  border: 0;
  border-radius: 0;
  background: radial-gradient(closest-side, rgba(5, 12, 8, .78), rgba(5, 12, 8, .45) 60%, rgba(5, 12, 8, 0));
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: none;
  padding: 26px 46px;
  align-items: center;
  text-align: center;
  color: var(--gl-ink);
  text-shadow: 0 2px 14px rgba(0, 0, 0, .7);
}
.ev--gala-dinner .ev-moment .ev-card__label { color: var(--gl-gold); letter-spacing: .4em; }
.ev--gala-dinner .ev-moment .ev-card__title {
  font-size: clamp(28px, 3.2vw, 40px);
  letter-spacing: .04em;
  background: linear-gradient(100deg, var(--gl-gold) 0%, var(--gl-gold) 35%, #FFF6D8 50%, var(--gl-gold) 65%, var(--gl-gold) 100%) 0 0 / 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .9));
}
.ev--gala-dinner .ev-moment .ev-card__list { flex-direction: row; gap: 18px; font: 400 clamp(20px, 2vw, 26px)/1.2 "Italiana", Georgia, serif; }
.ev--gala-dinner .ev-moment .ev-card__star { color: var(--gl-gold); font-size: 10px; }
.ev--gala-dinner .ev-moment.is-on { animation: gl-settle 1.6s cubic-bezier(.16, 1, .3, 1) both; }
.ev--gala-dinner .ev-moment.is-on .ev-card__title { animation: gl-sheen 2.4s ease .4s both; }
.ev--gala-dinner .ev-moment.is-on li { animation-name: gl-rise; animation-duration: 1.2s; }
.ev--gala-dinner .ev-moment--left { left: clamp(16px, 7vw, 100px); top: 38%; }
.ev--gala-dinner .ev-moment--right { right: clamp(16px, 7vw, 100px); top: 30%; }
.ev--gala-dinner .ev-moment--low { left: 50%; bottom: 120px; translate: -50% 0; }
.ev--gala-dinner .ev-moment--high { left: 50%; top: 13%; translate: -50% 0; max-width: min(760px, 92vw); }
@keyframes gl-settle { 0% { opacity: 0; transform: scale(1.06); filter: blur(6px); } 100% { opacity: 1; transform: none; filter: blur(0); } }
@keyframes gl-sheen { from { background-position: 100% 0; } to { background-position: 0 0; } }
@keyframes gl-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* After the film. */
.ev--gala-dinner .gl { gap: clamp(36px, 6vh, 64px); justify-content: flex-start; padding-top: 150px; color: var(--gl-ink); }
.gl-sec { width: min(100%, 880px); opacity: 0; }
.ev.is-info .gl-sec.is-in { opacity: 1; transition: opacity 1s ease; }
.gl .ev__kicker, .gl .ev__line, .gl .ev-card__label { color: var(--gl-gold); letter-spacing: .36em; }
.gl .ev-card__label { display: block; margin-bottom: 10px; }
.gl .ev-card__title { display: block; }
.gl .ev-card__body { display: block; opacity: .82; }

/* The title in gold foil, a light passing over it once, and a flourish drawing beneath. */
.gl-head { text-align: center; }
.gl-head > p { margin: 0; }
.gl-title {
  margin: 14px 0 0;
  letter-spacing: .14em;
  background: linear-gradient(100deg, #B8913F 0%, #E8CD86 30%, #FFF6D8 50%, #E8CD86 70%, #B8913F 100%) 0 0 / 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
  filter: drop-shadow(0 4px 18px rgba(0, 0, 0, .55));
  opacity: 0;
}
.ev.is-info .gl-title { animation: gl-settle 2s cubic-bezier(.16, 1, .3, 1) .2s both, gl-sheen 3s ease 1.2s both; }
.gl-head .ev__kicker, .gl-head .ev__line { opacity: 0; }
.ev.is-info .gl-head .ev__kicker { animation: gl-rise 1.4s cubic-bezier(.16, 1, .3, 1) .1s both; }
.ev.is-info .gl-head .ev__line { animation: gl-rise 1.4s cubic-bezier(.16, 1, .3, 1) .9s both; }
.gl-flourish { display: block; width: min(320px, 70%); height: auto; margin: 18px auto 0; overflow: visible; }
.gl-flourish__line { fill: none; stroke: var(--gl-gold); stroke-width: 1.2; stroke-dasharray: 1; stroke-dashoffset: 1; }
.gl-flourish__gem { fill: var(--gl-gold); opacity: 0; }
.ev.is-info .gl-flourish__line { animation: gl-draw 2.2s cubic-bezier(.65, 0, .35, 1) 1.2s both; }
.ev.is-info .gl-flourish__gem { animation: gl-fade 1s ease 2.6s both; }
@keyframes gl-draw { to { stroke-dashoffset: 0; } }
@keyframes gl-fade { to { opacity: 1; } }

/* Venue and timing: a formal invitation card that unfolds from its centre. */
.gl-sec--invite { display: flex; justify-content: center; }
.gl-invite {
  position: relative;
  width: min(100%, 720px);
  box-sizing: border-box;
  padding: 44px clamp(22px, 5vw, 56px);
  background: linear-gradient(160deg, rgba(20, 38, 27, .9), rgba(9, 19, 13, .92));
  box-shadow: inset 0 0 0 1px rgba(216, 183, 106, .8), inset 0 0 0 7px rgba(9, 19, 13, .9), inset 0 0 0 8px rgba(216, 183, 106, .45), 0 30px 60px -30px rgba(0, 0, 0, .8);
  clip-path: inset(0 50% 0 50%);
}
.ev.is-info .gl-sec--invite.is-in .gl-invite { animation: gl-unfold 1.8s cubic-bezier(.65, 0, .35, 1) .1s both; }
@keyframes gl-unfold { 0% { clip-path: inset(0 50% 0 50%); } 100% { clip-path: inset(0 0 0 0); } }
.gl-invite__corner { position: absolute; width: 26px; height: 26px; border: 0 solid var(--gl-gold); }
.gl-invite__corner--tl { left: 14px; top: 14px; border-top-width: 1.5px; border-left-width: 1.5px; }
.gl-invite__corner--tr { right: 14px; top: 14px; border-top-width: 1.5px; border-right-width: 1.5px; }
.gl-invite__corner--bl { left: 14px; bottom: 14px; border-bottom-width: 1.5px; border-left-width: 1.5px; }
.gl-invite__corner--br { right: 14px; bottom: 14px; border-bottom-width: 1.5px; border-right-width: 1.5px; }
.gl-invite__row { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: clamp(16px, 4vw, 40px); text-align: center; }
.gl-invite__gem { color: var(--gl-gold); font-size: 10px; }
.gl-invite .ev-card__title { font: 400 clamp(26px, 3vw, 36px)/1.15 "Italiana", Georgia, serif; color: var(--gl-ink); }
.gl-invite .ev-card__body { margin-top: 8px; font: 300 15px/1.5 "Archivo", system-ui, sans-serif; }
.gl-invite__col { opacity: 0; }
.ev.is-info .gl-sec--invite.is-in .gl-invite__col { animation: gl-settle 1.6s cubic-bezier(.16, 1, .3, 1) 1.3s both; }
.ev.is-info .gl-sec--invite.is-in .gl-invite__col:last-child { animation-delay: 1.6s; }

/* The order of the evening: each word rises in turn and a gold line runs beneath it. */
.gl-sec--order { text-align: center; }
.gl-order { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px clamp(14px, 3vw, 30px); margin: 4px 0 0; padding: 0; list-style: none; }
.gl-order__item { position: relative; padding-bottom: 8px; font: 400 clamp(28px, 3.6vw, 44px)/1.2 "Italiana", Georgia, serif; opacity: 0; }
.gl-order__item::after { content: ""; position: absolute; left: 10%; right: 10%; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--gl-gold), transparent); transform: scaleX(0); }
.gl-order__star { color: var(--gl-gold); font-size: 10px; opacity: 0; }
.ev.is-info .gl-sec--order.is-in .gl-order__item { animation: gl-rise 1.4s cubic-bezier(.16, 1, .3, 1) calc(var(--n) * .45s) both; }
.ev.is-info .gl-sec--order.is-in .gl-order__item::after { transform: none; transition: transform 1.2s cubic-bezier(.65, 0, .35, 1) calc(.5s + var(--n) * .45s); }
.ev.is-info .gl-sec--order.is-in .gl-order__star { animation: gl-fade 1s ease calc(.4s + var(--n) * .45s) both; }

/* What to wear: the colours as faceted jewels, each catching the light. */
.gl-sec--wear { text-align: center; }
.gl-wear__head .ev-card__title { font: 400 clamp(30px, 3.6vw, 44px)/1.15 "Italiana", Georgia, serif; }
.gl-wear__head .ev-card__body { max-width: 36em; margin: 10px auto 0; font: 300 16px/1.7 "Archivo", system-ui, sans-serif; }
.gl-jewels { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; max-width: 700px; margin: 30px auto 0; padding: 0; list-style: none; }
.gl-jewels__item { display: flex; flex-direction: column; align-items: center; gap: 12px; opacity: 0; }
.gl-jewel {
  position: relative;
  width: 46px;
  height: 46px;
  overflow: hidden;
  transform: rotate(45deg);
  border-radius: 6px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0) 45%),
    linear-gradient(315deg, rgba(0, 0, 0, .35), rgba(0, 0, 0, 0) 50%),
    conic-gradient(from 45deg, var(--c), color-mix(in srgb, var(--c) 70%, #fff), var(--c), color-mix(in srgb, var(--c) 70%, #000), var(--c));
  box-shadow: 0 0 0 1.5px var(--gl-gold), 0 0 0 4px rgba(11, 23, 16, .9), 0 0 0 5px rgba(216, 183, 106, .45), 0 10px 22px rgba(0, 0, 0, .5);
}
.gl-jewel::after { content: ""; position: absolute; inset: -40%; background: linear-gradient(90deg, transparent 40%, rgba(255, 255, 255, .75) 50%, transparent 60%); transform: translateX(-100%); }
.gl-jewels__name { font: 400 13px/1.3 "Archivo", system-ui, sans-serif; letter-spacing: .12em; }
.ev.is-info .gl-sec--wear.is-in .gl-jewels__item { animation: gl-settle 1.5s cubic-bezier(.16, 1, .3, 1) calc(.3s + var(--n) * .22s) both; }
.ev.is-info .gl-sec--wear.is-in .gl-jewel::after { animation: gl-glint 1.6s ease calc(1.2s + var(--n) * .22s) both; }
@keyframes gl-glint { to { transform: translateX(100%); } }

/* Good to know: a note closed with a wax seal. */
.gl-sec--note { display: flex; justify-content: center; }
.gl-note { position: relative; width: min(100%, 620px); box-sizing: border-box; padding: 36px clamp(22px, 5vw, 48px) 48px; text-align: center; border-top: 1px solid rgba(216, 183, 106, .6); border-bottom: 1px solid rgba(216, 183, 106, .6); background: linear-gradient(rgba(11, 23, 16, 0), rgba(11, 23, 16, .55) 30%, rgba(11, 23, 16, .55) 70%, rgba(11, 23, 16, 0)); opacity: 0; }
.gl-note .ev-card__body { font: 400 clamp(19px, 1.9vw, 23px)/1.6 "Italiana", Georgia, serif; opacity: 1; }
.gl-note__seal {
  position: absolute;
  left: 50%;
  bottom: -24px;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-left: -24px;
  border-radius: 50% 46% 52% 48%;
  background: radial-gradient(circle at 38% 34%, #C23A5E, var(--gl-wine) 60%, #4A0A1C);
  box-shadow: inset 0 0 0 4px rgba(0, 0, 0, .18), 0 6px 14px rgba(0, 0, 0, .5);
  color: rgba(255, 220, 220, .7);
  font-size: 14px;
  transform: scale(0);
}
.ev.is-info .gl-sec--note.is-in .gl-note { animation: gl-float 1.8s cubic-bezier(.16, 1, .3, 1) both; }
.ev.is-info .gl-sec--note.is-in .gl-note__seal { animation: gl-seal .9s cubic-bezier(.3, 1.4, .5, 1) 1.2s both; }
@keyframes gl-float { 0% { opacity: 0; transform: translateY(30px); } 100% { opacity: 1; transform: none; } }
@keyframes gl-seal { 0% { transform: scale(1.8); opacity: 0; } 100% { transform: scale(1) rotate(-8deg); opacity: 1; } }

/* The photograph in a gilded frame. */
.gl-sec--photo { display: flex; justify-content: center; padding-top: 10px; }
.gl-photo { position: relative; margin: 0; width: min(100%, 760px); box-sizing: border-box; padding: 16px; background: linear-gradient(135deg, #8E6A26, #E8CD86 25%, #B8913F 50%, #F4E2B0 75%, #8E6A26); box-shadow: 0 30px 60px -28px rgba(0, 0, 0, .9); opacity: 0; }
.gl-photo::before { content: ""; position: absolute; inset: 8px; border: 1px solid rgba(60, 40, 10, .45); pointer-events: none; }
.gl-photo__window { position: relative; overflow: hidden; aspect-ratio: 3 / 2; background: #1A2A20; box-shadow: inset 0 0 0 1px rgba(60, 40, 10, .6), inset 0 0 30px rgba(0, 0, 0, .6); }
.gl-photo__ground { position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' fill='none' stroke='%23D8B76A' stroke-opacity='.22' stroke-width='1'%3E%3Cpath d='M14 14H34V34H14ZM24 10L38 24L24 38L10 24ZM0 24H10M38 24H48M24 0V10M24 38V48'/%3E%3C/svg%3E") center / 48px 48px, radial-gradient(closest-side, rgba(216, 183, 106, .14), rgba(216, 183, 106, 0)), #13241A; }
.gl-photo__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gl-photo.is-empty .gl-photo__img { visibility: hidden; }
.gl-photo__slot { position: absolute; left: 50%; bottom: 12%; transform: translateX(-50%); max-width: 90%; padding: 4px 10px; border-radius: 2px; background: rgba(11, 23, 16, .85); font: 500 11px/1.4 "Archivo", system-ui, sans-serif; color: var(--gl-gold-light); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev.is-info .gl-sec--photo.is-in .gl-photo { animation: gl-settle 2s cubic-bezier(.16, 1, .3, 1) both; }

@media (max-width: 720px) {
  .ev--gala-dinner .ev__mark { font-size: 22px; letter-spacing: .2em; }
  .ev--gala-dinner .ev-moment { padding: 20px 26px; }
  .ev--gala-dinner .ev-moment--left, .ev--gala-dinner .ev-moment--right { left: 50%; right: auto; top: 16%; translate: -50% 0; width: max-content; max-width: 86vw; }
  .ev--gala-dinner .ev-moment--low { bottom: 200px; width: max-content; max-width: 90vw; }
  .ev--gala-dinner .ev-moment .ev-card__list { flex-wrap: wrap; justify-content: center; gap: 6px 14px; }
  .ev--gala-dinner .gl { padding-top: 90px; }
  .gl-invite__row { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .gl-jewels { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 24px; }
  .gl-order__star { display: none; }
  .gl-order { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  .ev.is-info .gl-title, .ev.is-info .gl-head *, .ev.is-info .gl-sec.is-in *, .ev--gala-dinner .ev-moment.is-on, .ev--gala-dinner .ev-moment.is-on * { animation: ev-fade .4s ease both !important; }
  .gl-invite { clip-path: none !important; }
  .gl-flourish__line { stroke-dashoffset: 0; }
  .gl-order__item::after { transform: none; }
  .gl-title, .gl-head .ev__kicker, .gl-head .ev__line, .gl-invite__col, .gl-order__item, .gl-order__star, .gl-jewels__item, .gl-note, .gl-photo, .gl-flourish__gem { opacity: 1; }
  .gl-note__seal { transform: rotate(-8deg); }
}

/* A Feast of Indulgence (renamed 31-10-2026): the longer title in gold foil wraps onto two lines
   on phones and keeps inside the screen. */
@media (max-width: 720px) {
  .ev--gala-dinner .gl-title { font-size: clamp(38px, 11.4vw, 64px); letter-spacing: .1em; line-height: 1.08; text-wrap: balance; }
}
