.template-page {
  --tpl-bg: #fbfaf7;
  --tpl-ink: #171717;
  --tpl-muted: rgba(23, 23, 23, 0.68);
  --tpl-accent: #b58b6a;
  --tpl-line: rgba(23, 23, 23, 0.16);
  --tpl-panel: #ffffff;
  background: var(--tpl-bg);
  color: var(--tpl-ink);
  min-height: 100svh;
  overflow-x: hidden;
  position: relative;
}

.template-page::before {
  animation: tplFadeOut 700ms ease-out both;
  background: var(--tpl-transition, var(--tpl-accent));
  content: "";
  inset: 0;
  pointer-events: none;
  position: fixed;
  z-index: 80;
}

.template-page * {
  box-sizing: border-box;
}

.template-page h1,
.template-page h2,
.template-page h3,
.template-page p {
  margin: 0;
}

.template-page h1 {
  font-size: clamp(52px, 10vw, 150px);
  letter-spacing: 0;
  line-height: 0.9;
  overflow-wrap: break-word;
  word-break: normal;
}

.template-page h2 {
  font-size: clamp(32px, 5.5vw, 76px);
  letter-spacing: 0;
  line-height: 0.96;
}

.template-page section {
  padding: clamp(58px, 9vw, 122px) clamp(18px, 6vw, 76px);
}

.tpl-nav {
  align-items: center;
  color: inherit;
  display: flex;
  font-weight: 900;
  justify-content: space-between;
  left: 0;
  padding: 20px clamp(16px, 4vw, 52px);
  position: absolute;
  right: 0;
  top: 0;
  z-index: 20;
}

.tpl-nav > div {
  display: flex;
  gap: 18px;
}

.tpl-nav a {
  color: inherit;
  font-size: 14px;
  text-decoration: none;
}

.tpl-neon .tpl-nav,
.tpl-jubilee .tpl-nav,
.tpl-signal .tpl-nav,
.tpl-campus .tpl-nav,
.tpl-candle .tpl-nav,
.tpl-gallery .tpl-nav,
.tpl-riviera .tpl-nav,
.tpl-rose .tpl-nav,
.tpl-garage .tpl-nav,
.tpl-home .tpl-nav,
.tpl-gala .tpl-nav,
.tpl-runway .tpl-nav,
.tpl-orbit .tpl-nav,
.tpl-stadium .tpl-nav {
  color: #ffffff;
}

.tpl-kicker,
.tpl-title > p,
.neon-title > p,
.jubilee-title > p,
.campus-title > p,
.candy-title > p,
.gallery-title > p,
.rose-title > p,
.garage-title > p,
.winter-title > p,
.home-title > p,
.studio-title > p,
.gala-title > p,
.runway-title > p,
.orbit-title > p,
.retreat-title > p,
.stadium-title > p {
  color: var(--tpl-accent);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.16em;
  margin-bottom: 14px;
  text-transform: uppercase;
}

.tpl-title > span,
.neon-title > span,
.jubilee-title > span,
.campus-title > span,
.candy-title > span,
.gallery-title > span,
.rose-title > span,
.garage-title > span,
.winter-title > span,
.home-title > span,
.studio-title > span,
.gala-title > span,
.runway-title > span,
.orbit-title > span,
.retreat-title > span,
.stadium-title > span {
  display: block;
  font-size: clamp(18px, 2vw, 26px);
  line-height: 1.35;
  margin-top: 22px;
  max-width: 760px;
}

.tpl-guest {
  border-left: 4px solid var(--tpl-accent);
  display: grid;
  gap: 4px;
  margin-top: 26px;
  max-width: 620px;
  padding-left: 16px;
}

.tpl-guest b {
  display: block;
}

.tpl-guest span {
  color: currentColor;
  opacity: 0.76;
}

.tpl-facts {
  border-top: 1px solid var(--tpl-line);
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 34px;
  padding-top: 20px;
}

.tpl-facts b {
  display: block;
  font-size: clamp(22px, 3vw, 38px);
  line-height: 1;
}

.tpl-facts span {
  color: currentColor;
  display: block;
  margin-top: 5px;
  opacity: 0.68;
}

.tpl-story {
  display: grid;
  gap: 18px;
}

.tpl-story p,
.tpl-section-head > p,
.tpl-details p,
.tpl-muted {
  color: var(--tpl-muted);
  font-size: 18px;
  line-height: 1.7;
}

.tpl-program-list {
  display: grid;
  gap: 14px;
}

.tpl-program-list article {
  display: grid;
  gap: 18px;
  grid-template-columns: 120px 1fr;
  min-width: 0;
  padding: 22px;
}

.tpl-program-list time {
  color: var(--tpl-accent);
  font-size: 22px;
  font-weight: 950;
}

.tpl-program-list span {
  color: var(--tpl-accent);
  display: block;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.16em;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.tpl-program-list h3 {
  font-size: clamp(22px, 2.4vw, 34px);
}

.tpl-program-list p {
  color: currentColor;
  line-height: 1.55;
  margin-top: 8px;
  opacity: 0.7;
}

.tpl-mini-program {
  display: grid;
  gap: 10px;
}

.tpl-mini-program span {
  display: grid;
  gap: 4px;
}

.tpl-mini-program b {
  color: var(--tpl-accent);
}

.tpl-details {
  display: grid;
  gap: 34px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.tpl-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.tpl-swatches span {
  align-items: center;
  background: var(--tpl-panel);
  border: 1px solid var(--tpl-line);
  color: var(--tpl-ink);
  display: inline-flex;
  font-size: 13px;
  font-weight: 900;
  gap: 8px;
  padding: 8px 12px 8px 8px;
}

.tpl-swatches i {
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 50%;
  display: block;
  height: 24px;
  width: 24px;
}

.tpl-section-head {
  max-width: 760px;
}

.tpl-section-head > p:not(.tpl-kicker) {
  margin-top: 12px;
}

.tpl-rsvp-form {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 30px;
  max-width: 980px;
}

.tpl-rsvp-form label {
  color: currentColor;
  display: grid;
  font-size: 13px;
  font-weight: 900;
  gap: 8px;
  opacity: 0.82;
}

.tpl-rsvp-form .wide {
  grid-column: 1 / -1;
}

.tpl-rsvp-form input,
.tpl-rsvp-form select,
.tpl-rsvp-form textarea {
  background: var(--tpl-panel);
  border: 1px solid var(--tpl-line);
  border-radius: 0;
  color: var(--tpl-ink);
  min-height: 46px;
  padding: 12px;
}

.tpl-button,
.tpl-gift button {
  background: var(--tpl-accent);
  border: 0;
  color: var(--tpl-button-ink, #ffffff);
  cursor: pointer;
  display: inline-flex;
  font-weight: 950;
  justify-content: center;
  margin-top: 24px;
  min-height: 46px;
  padding: 12px 18px;
  text-decoration: none;
}

.tpl-form-status {
  color: currentColor;
  font-weight: 900;
  margin: 12px 0 0;
  opacity: 0.72;
}

.tpl-gift-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 30px;
}

.tpl-gift {
  background: var(--tpl-panel);
  border: 1px solid var(--tpl-line);
  color: var(--tpl-ink);
  display: grid;
  gap: 18px;
  min-width: 0;
  padding: 22px;
}

.tpl-gift p {
  color: var(--tpl-accent);
  font-weight: 950;
  margin-bottom: 10px;
}

.tpl-gift h3 {
  font-size: 22px;
}

.tpl-gift span {
  color: var(--tpl-muted);
  display: block;
  line-height: 1.5;
  margin-top: 8px;
}

.tpl-gift button {
  background: var(--tpl-ink);
  color: var(--tpl-bg);
  margin-top: 0;
}

.tpl-gift button:disabled,
.tpl-gift.is-reserved button {
  cursor: default;
  opacity: 0.48;
}

.ivory-hero,
.neon-poster,
.jubilee-hall,
.signal-dashboard,
.cotton-book,
.campus-stage,
.candy-scrapbook,
.candle-menu-cover,
.gallery-wall,
.riviera-map,
.rose-cover,
.garage-flyer,
.winter-glass,
.home-moodboard,
.studio-bench,
.gala-theatre,
.runway-catwalk,
.orbit-universe,
.retreat-journal,
.stadium-broadcast {
  min-height: 100svh;
  overflow: hidden;
  padding: 116px clamp(18px, 6vw, 76px) clamp(40px, 7vw, 82px);
  position: relative;
}

.ivory-hero::before,
.neon-poster::before,
.jubilee-hall::before,
.signal-dashboard::before,
.cotton-book::before,
.campus-stage::before,
.candy-scrapbook::before,
.candle-menu-cover::before,
.gallery-wall::before,
.riviera-map::before,
.rose-cover::before,
.garage-flyer::before,
.winter-glass::before,
.home-moodboard::before,
.studio-bench::before,
.gala-theatre::before,
.runway-catwalk::before,
.orbit-universe::before,
.retreat-journal::before,
.stadium-broadcast::before {
  background: var(--hero-image) center/cover;
  content: "";
  inset: 0;
  position: absolute;
  z-index: 0;
}

.ivory-hero > *,
.neon-poster > *,
.jubilee-hall > *,
.signal-dashboard > *,
.cotton-book > *,
.campus-stage > *,
.candy-scrapbook > *,
.candle-menu-cover > *,
.gallery-wall > *,
.riviera-map > *,
.rose-cover > *,
.garage-flyer > *,
.winter-glass > *,
.home-moodboard > *,
.studio-bench > *,
.gala-theatre > *,
.runway-catwalk > *,
.orbit-universe > *,
.retreat-journal > *,
.stadium-broadcast > * {
  position: relative;
  z-index: 1;
}

.tpl-ivory {
  --tpl-accent: #b58b6a;
  --tpl-bg: #fbf7f0;
  --tpl-ink: #2e241e;
  --tpl-line: rgba(46, 36, 30, 0.14);
  --tpl-transition: linear-gradient(105deg, #fbf7f0, #e7cab8, #ffffff);
  font-family: Georgia, "Times New Roman", serif;
}

.tpl-ivory .tpl-nav {
  color: #2e241e;
}

.ivory-hero {
  align-items: end;
  display: grid;
  gap: 34px;
  grid-template-columns: minmax(0, 1fr) minmax(270px, 390px);
}

.ivory-hero::before {
  background:
    linear-gradient(90deg, rgba(251, 247, 240, 0.98), rgba(251, 247, 240, 0.78) 46%, rgba(251, 247, 240, 0.08)),
    var(--hero-image) center right/cover;
}

.ivory-letter {
  max-width: 780px;
}

.ivory-letter h1 {
  color: #2e241e;
  font-weight: 500;
}

.ivory-card {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(181, 139, 106, 0.28);
  box-shadow: 0 30px 90px rgba(74, 46, 31, 0.18);
  min-height: 430px;
  padding: 34px;
}

.ivory-card span {
  color: var(--tpl-accent);
  display: block;
  font-weight: 900;
  text-transform: uppercase;
}

.ivory-card b {
  display: block;
  font-size: clamp(64px, 10vw, 120px);
  line-height: 0.9;
  margin: 28px 0;
}

.ivory-story {
  display: grid;
  gap: 38px;
  grid-template-columns: 1fr 1fr;
}

.ivory-program {
  background: #2e241e;
  color: #fbf7f0;
}

.ivory-program h2 {
  margin-bottom: 34px;
}

.ivory-program .tpl-program-list article {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  padding-left: 0;
  padding-right: 0;
}

.ivory-rsvp,
.ivory-wishlist {
  background: #f1e5d8;
}

.tpl-neon {
  --tpl-accent: #ff4d9d;
  --tpl-bg: #0e0a18;
  --tpl-ink: #fff7fb;
  --tpl-muted: rgba(255, 247, 251, 0.68);
  --tpl-panel: #ffffff;
  --tpl-line: rgba(255, 255, 255, 0.18);
  --tpl-transition: radial-gradient(circle, #ff4d9d, #2f80ff, #0e0a18);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}

.neon-poster {
  align-content: end;
  background: #0e0a18;
  color: white;
  display: grid;
  gap: 28px;
  grid-template-columns: 120px 1fr 150px;
}

.neon-poster::before {
  background:
    repeating-linear-gradient(90deg, rgba(255, 77, 157, 0.18) 0 1px, transparent 1px 88px),
    linear-gradient(180deg, rgba(14, 10, 24, 0.18), rgba(14, 10, 24, 0.92)),
    var(--hero-image) center/cover;
}

.neon-date {
  align-self: stretch;
  border-right: 3px solid var(--tpl-accent);
  color: var(--tpl-accent);
  font-weight: 950;
  letter-spacing: 0.18em;
  text-orientation: mixed;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}

.neon-title h1 {
  font-size: clamp(72px, 15vw, 190px);
  font-weight: 950;
  text-transform: uppercase;
}

.neon-disc {
  align-self: center;
  aspect-ratio: 1;
  border: 2px solid rgba(255, 255, 255, 0.58);
  border-radius: 50%;
  display: grid;
  font-weight: 950;
  place-items: center;
  text-align: center;
}

.neon-guest {
  grid-column: 2 / -1;
}

.neon-zine {
  background: #0e0a18;
}

.neon-lineup,
.neon-rsvp,
.neon-wishlist,
.neon-details {
  background: #110d20;
  color: white;
}

.neon-program {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.neon-program article,
.neon-wishlist .tpl-gift {
  background: #ffffff;
  color: #171717;
  transform: rotate(-1deg);
}

.neon-program article:nth-child(even),
.neon-wishlist .tpl-gift:nth-child(even) {
  transform: rotate(1deg);
}

.tpl-jubilee {
  --tpl-accent: #c89a3c;
  --tpl-bg: #f8f1df;
  --tpl-ink: #251b10;
  --tpl-muted: rgba(37, 27, 16, 0.68);
  --tpl-transition: linear-gradient(90deg, #251b10, #c89a3c, #f8f1df);
  font-family: Georgia, "Times New Roman", serif;
}

.jubilee-hall {
  align-items: end;
  color: #fff8e8;
  display: grid;
  gap: 42px;
  grid-template-columns: minmax(260px, 0.42fr) minmax(0, 1fr);
}

.jubilee-hall::before {
  background:
    linear-gradient(90deg, rgba(20, 12, 6, 0.88), rgba(20, 12, 6, 0.26)),
    var(--hero-image) center/cover;
}

.jubilee-menu {
  background: #f8f1df;
  color: #251b10;
  min-height: 58svh;
  padding: 34px;
}

.jubilee-menu > span {
  color: var(--tpl-accent);
  font-weight: 950;
  text-transform: uppercase;
}

.jubilee-title h1 {
  font-weight: 500;
}

.jubilee-toast {
  align-items: center;
  display: grid;
  gap: 40px;
  grid-template-columns: 1fr 0.8fr;
}

.jubilee-courses,
.jubilee-rsvp {
  background: #251b10;
  color: #f8f1df;
}

.jubilee-program article {
  background: transparent;
  border-bottom: 1px solid rgba(200, 154, 60, 0.34);
}

.tpl-signal {
  --tpl-accent: #31a8ff;
  --tpl-bg: #eef6fb;
  --tpl-ink: #071827;
  --tpl-muted: rgba(7, 24, 39, 0.66);
  --tpl-transition: repeating-linear-gradient(90deg, #071827 0 18px, #31a8ff 18px 20px, #eef6fb 20px 52px);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}

.signal-dashboard {
  color: white;
  display: grid;
  gap: 30px;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
}

.signal-dashboard::before {
  background:
    linear-gradient(90deg, rgba(4, 15, 25, 0.74), rgba(4, 15, 25, 0.24)),
    repeating-linear-gradient(90deg, rgba(49, 168, 255, 0.18) 0 1px, transparent 1px 110px),
    var(--hero-image) center/cover;
}

.signal-hero-copy {
  align-self: end;
}

.signal-hero-copy h1 {
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-weight: 950;
  text-transform: uppercase;
}

.signal-live {
  align-self: end;
  background: rgba(4, 15, 25, 0.88);
  border: 1px solid rgba(49, 168, 255, 0.3);
  padding: 28px;
}

.signal-live > span {
  color: var(--tpl-accent);
  font-weight: 950;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.signal-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
}

.signal-agenda,
.signal-rsvp {
  background: #071827;
  color: white;
}

.signal-program article {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(49, 168, 255, 0.22);
}

.signal-notes {
  grid-column: 1 / -1;
}

.tpl-cotton {
  --tpl-accent: #8fb8df;
  --tpl-bg: #f4f9fd;
  --tpl-ink: #24344a;
  --tpl-muted: rgba(36, 52, 74, 0.66);
  --tpl-transition: radial-gradient(ellipse, #ffffff, #d8ebfa, #f4f9fd);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}

.tpl-cotton .tpl-nav {
  color: #24344a;
}

.cotton-book {
  align-items: center;
  color: #24344a;
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 360px);
}

.cotton-book::before {
  background:
    linear-gradient(90deg, rgba(244, 249, 253, 0.96), rgba(244, 249, 253, 0.68), rgba(244, 249, 253, 0.12)),
    var(--hero-image) center/cover;
}

.cotton-cloud-card {
  background: rgba(255, 255, 255, 0.74);
  border-radius: 36px 36px 130px 36px;
  padding: clamp(28px, 5vw, 58px);
}

.cotton-moon {
  background: white;
  border-radius: 999px 999px 999px 50px;
  padding: 34px;
}

.cotton-pages {
  background: linear-gradient(180deg, #f4f9fd, #ffffff);
}

.cotton-wishlist,
.cotton-rsvp {
  background: #edf6fc;
}

.cotton-program article {
  background: white;
  border-radius: 24px;
}

.tpl-campus {
  --tpl-accent: #7f7cff;
  --tpl-bg: #111124;
  --tpl-ink: #f5f3ff;
  --tpl-muted: rgba(245, 243, 255, 0.68);
  --tpl-transition: linear-gradient(70deg, #111124, #7f7cff, #f5f3ff);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}

.campus-stage {
  align-content: end;
  color: white;
  display: grid;
  gap: 24px;
}

.campus-stage::before {
  background:
    radial-gradient(circle at 18% 0, rgba(127, 124, 255, 0.58), transparent 30%),
    linear-gradient(180deg, rgba(17, 17, 36, 0.22), rgba(17, 17, 36, 0.9)),
    var(--hero-image) center/cover;
}

.stage-beams {
  display: flex;
  gap: 12px;
}

.stage-beams span {
  background: var(--tpl-accent);
  border-radius: 50%;
  box-shadow: 0 0 36px currentColor;
  color: var(--tpl-accent);
  height: 18px;
  width: 18px;
}

.campus-title h1 {
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-weight: 950;
  text-transform: uppercase;
}

.campus-lineup {
  background: #111124;
  color: white;
}

.campus-program {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.campus-program article {
  align-content: end;
  background: rgba(255, 255, 255, 0.08);
  grid-template-columns: 1fr;
  min-height: 270px;
}

.campus-backstage {
  display: grid;
  gap: 40px;
  grid-template-columns: 1fr 1fr;
}

.tpl-candy {
  --tpl-accent: #ff8a3d;
  --tpl-bg: #fff3df;
  --tpl-ink: #171717;
  --tpl-muted: rgba(23, 23, 23, 0.66);
  --tpl-panel: #ffffff;
  --tpl-transition: repeating-linear-gradient(45deg, #ff8a3d 0 24px, #77ddc0 24px 48px, #ff6fb1 48px 72px);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}

.candy-scrapbook {
  align-items: center;
  display: grid;
  gap: 26px;
  grid-template-columns: 220px minmax(0, 1fr) minmax(230px, 320px);
}

.candy-scrapbook::before {
  background:
    linear-gradient(90deg, rgba(255, 243, 223, 0.72), rgba(255, 243, 223, 0.28)),
    var(--hero-image) center/cover;
}

.candy-stickers {
  display: grid;
  gap: 16px;
}

.candy-stickers span {
  background: #ffffff;
  border: 4px solid #171717;
  border-radius: 26px;
  box-shadow: 8px 8px 0 #171717;
  font-size: 28px;
  font-weight: 950;
  padding: 18px;
  transform: rotate(-6deg);
}

.candy-stickers span:nth-child(2) {
  background: #77ddc0;
  transform: rotate(5deg);
}

.candy-stickers span:nth-child(3) {
  background: #ff6fb1;
  transform: rotate(-2deg);
}

.candy-polaroid {
  background: white;
  border: 4px solid #171717;
  box-shadow: 14px 14px 0 #171717;
  padding: clamp(24px, 5vw, 54px);
  transform: rotate(-1deg);
}

.candy-title h1 {
  color: #171717;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-weight: 950;
  text-shadow: 5px 5px 0 #ff8a3d;
  text-transform: uppercase;
}

.candy-ticket {
  background: #fff;
  border: 3px dashed #171717;
  padding: 22px;
  transform: rotate(2deg);
}

.candy-ticket .tpl-facts {
  grid-template-columns: 1fr;
}

.candy-board {
  background:
    radial-gradient(circle at 12% 12%, rgba(255, 111, 177, 0.3), transparent 26%),
    #fff3df;
}

.candy-games,
.candy-wishlist {
  background: #77ddc0;
}

.candy-program {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.candy-program article,
.candy-wishlist .tpl-gift {
  background: #fff;
  border: 3px solid #171717;
  box-shadow: 8px 8px 0 #171717;
  transform: rotate(-1deg);
}

.candy-program article:nth-child(even),
.candy-wishlist .tpl-gift:nth-child(even) {
  transform: rotate(1deg);
}

.candy-story {
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr 1fr;
}

.candy-rsvp {
  background: #ff6fb1;
}

.tpl-candle {
  --tpl-accent: #d58255;
  --tpl-bg: #1f100d;
  --tpl-ink: #f9ede1;
  --tpl-muted: rgba(249, 237, 225, 0.68);
  --tpl-panel: #f7eadc;
  --tpl-line: rgba(213, 130, 85, 0.32);
  --tpl-transition: linear-gradient(95deg, #1f100d, #d58255, #f9ede1);
  font-family: Georgia, "Times New Roman", serif;
}

.candle-menu-cover {
  color: #f9ede1;
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(270px, 430px) minmax(0, 1fr);
}

.candle-menu-cover::before {
  background:
    linear-gradient(90deg, rgba(31, 16, 13, 0.8), rgba(31, 16, 13, 0.18)),
    var(--hero-image) center/cover;
}

.candle-courses {
  align-self: center;
  background: rgba(31, 16, 13, 0.82);
  border: 1px solid rgba(213, 130, 85, 0.42);
  padding: 32px;
}

.candle-courses .tpl-mini-program span {
  align-items: baseline;
  border-top: 1px solid rgba(213, 130, 85, 0.3);
  display: grid;
  font-size: 26px;
  grid-template-columns: 96px 1fr;
  padding: 16px 0;
}

.candle-title {
  align-self: end;
}

.candle-title h1 {
  font-weight: 500;
}

.candle-chef {
  display: grid;
  gap: 38px;
  grid-template-columns: 1fr 1fr;
}

.candle-program,
.candle-rsvp {
  background: #120908;
  color: #f9ede1;
}

.candle-program article {
  background: transparent;
  border-top: 1px solid rgba(213, 130, 85, 0.28);
}

.tpl-gallery {
  --tpl-accent: #d7ad23;
  --tpl-bg: #f7f7f2;
  --tpl-ink: #191919;
  --tpl-muted: rgba(25, 25, 25, 0.62);
  --tpl-transition: linear-gradient(90deg, #ffffff 0 20%, #191919 20% 23%, #f4d35e 23% 60%, #f7f7f2 60%);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}

.gallery-wall {
  align-items: end;
  color: white;
  display: grid;
  gap: 26px;
  grid-template-columns: minmax(240px, 340px) minmax(0, 1fr);
}

.gallery-wall::before {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.72)),
    var(--hero-image) center/cover;
}

.gallery-label {
  align-self: start;
  background: #ffffff;
  color: #191919;
  padding: 24px;
}

.gallery-title h1 {
  font-size: clamp(64px, 12vw, 160px);
  font-weight: 950;
}

.gallery-catalog {
  background: #f7f7f2;
}

.gallery-essay {
  border-bottom: 18px solid #191919;
  border-top: 18px solid #191919;
  display: grid;
  gap: 34px;
  grid-template-columns: 1fr 1fr;
}

.gallery-program {
  background: #ffffff;
}

.gallery-program .tpl-program-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gallery-program article {
  border: 1px solid #191919;
  grid-template-columns: 1fr;
}

.tpl-riviera {
  --tpl-accent: #38a6a5;
  --tpl-bg: #edf9f7;
  --tpl-ink: #073c45;
  --tpl-muted: rgba(7, 60, 69, 0.66);
  --tpl-transition: linear-gradient(160deg, #38a6a5, #e8d0a0, #edf9f7);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}

.riviera-map {
  align-items: end;
  color: white;
  display: grid;
  gap: 32px;
  grid-template-columns: minmax(260px, 380px) minmax(0, 1fr);
}

.riviera-map::before {
  background:
    linear-gradient(90deg, rgba(7, 60, 69, 0.78), rgba(7, 60, 69, 0.12)),
    var(--hero-image) center/cover;
}

.riviera-route {
  border-left: 4px solid var(--tpl-accent);
  padding-left: 24px;
}

.riviera-title h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
}

.riviera-days {
  background: #073c45;
  color: white;
}

.riviera-program article {
  background: transparent;
  border-left: 3px solid rgba(255, 255, 255, 0.28);
}

.riviera-note {
  display: grid;
  gap: 38px;
  grid-template-columns: 1fr 1fr;
}

.tpl-rose {
  --tpl-accent: #e75480;
  --tpl-bg: #fff2f6;
  --tpl-ink: #24121b;
  --tpl-muted: rgba(36, 18, 27, 0.66);
  --tpl-transition: linear-gradient(120deg, #171019, #e75480, #fff2f6);
  font-family: Georgia, "Times New Roman", serif;
}

.rose-cover {
  color: white;
  display: grid;
  gap: 28px;
  grid-template-columns: 120px minmax(0, 1fr) minmax(170px, 260px);
}

.rose-cover::before {
  background:
    linear-gradient(110deg, rgba(23, 16, 25, 0.82), rgba(80, 22, 48, 0.3), rgba(23, 16, 25, 0.08)),
    var(--hero-image) center/cover;
}

.rose-issue {
  align-self: stretch;
  border-right: 1px solid rgba(255, 255, 255, 0.26);
  display: grid;
  place-items: end center;
}

.rose-issue b {
  text-orientation: mixed;
  writing-mode: vertical-rl;
}

.rose-title h1 {
  font-style: italic;
}

.rose-side {
  align-self: end;
  background: rgba(255, 255, 255, 0.16);
  padding: 20px;
}

.rose-editorial {
  background: #fff2f6;
}

.rose-story {
  column-count: 2;
  column-gap: 34px;
}

.rose-program,
.rose-rsvp {
  background: #2a101d;
  color: white;
}

.tpl-garage {
  --tpl-accent: #f05d23;
  --tpl-bg: #101010;
  --tpl-ink: #f4f0ea;
  --tpl-muted: rgba(244, 240, 234, 0.66);
  --tpl-panel: #f4f0ea;
  --tpl-transition: repeating-linear-gradient(0deg, #101010 0 18px, #f05d23 18px 22px, #292929 22px 40px);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}

.garage-flyer {
  color: white;
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1fr) 120px;
}

.garage-flyer::before {
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 8px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.46)),
    var(--hero-image) center/cover;
}

.garage-poster {
  align-self: end;
  background: rgba(0, 0, 0, 0.68);
  border-left: 12px solid var(--tpl-accent);
  padding: clamp(24px, 5vw, 56px);
  transform: rotate(-1deg);
}

.garage-title h1 {
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-weight: 950;
  text-transform: uppercase;
}

.garage-barcode {
  background: #f4f0ea;
  color: #101010;
  display: grid;
  gap: 8px;
  padding: 14px;
}

.garage-barcode span {
  background: #101010;
}

.garage-program,
.garage-rsvp {
  background: #171717;
  color: white;
}

.garage-program article,
.garage-wishlist .tpl-gift {
  border-left: 5px solid var(--tpl-accent);
}

.tpl-winter {
  --tpl-accent: #7cc7d9;
  --tpl-bg: #eff7fb;
  --tpl-ink: #14202b;
  --tpl-muted: rgba(20, 32, 43, 0.66);
  --tpl-transition: radial-gradient(circle, #ffffff, #7cc7d9, #eff7fb);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}

.tpl-winter .tpl-nav {
  color: #14202b;
}

.winter-glass {
  color: #14202b;
  display: grid;
  place-items: center start;
}

.winter-glass::before {
  background:
    linear-gradient(90deg, rgba(239, 247, 251, 0.94), rgba(239, 247, 251, 0.46)),
    var(--hero-image) center/cover;
}

.winter-card {
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(124, 199, 217, 0.3);
  max-width: 880px;
  padding: clamp(28px, 6vw, 68px);
}

.winter-title h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
}

.winter-snow {
  background:
    radial-gradient(circle at 12% 20%, rgba(255, 255, 255, 0.8), transparent 20%),
    #eff7fb;
}

.winter-details,
.winter-rsvp {
  background: rgba(255, 255, 255, 0.72);
}

.tpl-home {
  --tpl-accent: #7b8f55;
  --tpl-bg: #f5eadc;
  --tpl-ink: #2c231b;
  --tpl-muted: rgba(44, 35, 27, 0.66);
  --tpl-transition: linear-gradient(90deg, #6b4b35, #ffe7b2, #f5eadc);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}

.home-moodboard {
  color: #f9ecdf;
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 380px);
}

.home-moodboard::before {
  background:
    linear-gradient(90deg, rgba(50, 33, 22, 0.76), rgba(50, 33, 22, 0.18)),
    var(--hero-image) center/cover;
}

.home-note {
  align-self: end;
  background: rgba(66, 43, 28, 0.58);
  padding: clamp(24px, 5vw, 56px);
}

.home-title h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
}

.home-tiles {
  display: grid;
  gap: 12px;
}

.home-tiles .tpl-facts {
  border: 0;
  display: grid;
  grid-template-columns: 1fr;
  margin: 0;
  padding: 0;
}

.home-tiles .tpl-facts > div {
  background: #f5eadc;
  color: #2c231b;
  padding: 22px;
}

.home-rooms {
  background: #f5eadc;
}

.home-story {
  display: grid;
  gap: 34px;
  grid-template-columns: 1fr 1fr;
}

.home-wishlist,
.home-details {
  background: #efe0cf;
}

.tpl-studio {
  --tpl-accent: #e0a72f;
  --tpl-bg: #f6f1e8;
  --tpl-ink: #24211d;
  --tpl-muted: rgba(36, 33, 29, 0.66);
  --tpl-transition: repeating-linear-gradient(90deg, #f6f1e8 0 40px, #e0a72f 40px 44px, #24211d 44px 46px);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}

.tpl-studio .tpl-nav {
  color: #24211d;
}

.studio-bench {
  color: #24211d;
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 380px);
}

.studio-bench::before {
  background:
    repeating-linear-gradient(90deg, rgba(36, 33, 29, 0.08) 0 1px, transparent 1px 44px),
    linear-gradient(90deg, rgba(246, 241, 232, 0.94), rgba(246, 241, 232, 0.58)),
    var(--hero-image) center/cover;
}

.studio-clipboard {
  background: #f7f1e5;
  border: 2px solid #24211d;
  box-shadow: 12px 12px 0 rgba(36, 33, 29, 0.22);
  padding: clamp(24px, 5vw, 58px);
}

.studio-title h1 {
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-weight: 950;
}

.studio-tools {
  align-self: end;
  background: rgba(255, 255, 255, 0.72);
  padding: 24px;
}

.studio-grid {
  background:
    repeating-linear-gradient(90deg, rgba(36, 33, 29, 0.08) 0 1px, transparent 1px 44px),
    #f6f1e8;
}

.studio-program article {
  background: white;
  border: 1px solid rgba(36, 33, 29, 0.12);
}

.tpl-gala {
  --tpl-accent: #d6b56d;
  --tpl-bg: #151214;
  --tpl-ink: #f7efe4;
  --tpl-muted: rgba(247, 239, 228, 0.68);
  --tpl-panel: #f7efe4;
  --tpl-transition: linear-gradient(180deg, #0f0d0f, #d6b56d, #151214);
  font-family: Georgia, "Times New Roman", serif;
}

.gala-theatre {
  color: #f7efe4;
  display: grid;
  gap: 34px;
  place-items: center;
  text-align: center;
}

.gala-theatre::before {
  background:
    radial-gradient(circle at 50% 16%, rgba(214, 181, 109, 0.28), transparent 34%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.32), rgba(12, 8, 10, 0.92)),
    var(--hero-image) center/cover;
}

.gala-marquee {
  border-bottom: 1px solid rgba(214, 181, 109, 0.42);
  border-top: 1px solid rgba(214, 181, 109, 0.42);
  color: var(--tpl-accent);
  display: flex;
  gap: 34px;
  justify-content: center;
  letter-spacing: 0.28em;
  padding: 12px 0;
  text-transform: uppercase;
  width: min(100%, 980px);
}

.gala-title h1 {
  font-weight: 500;
}

.gala-cause {
  display: grid;
  gap: 38px;
  grid-template-columns: 0.8fr 1.2fr;
}

.gala-events,
.gala-rsvp {
  background: #0f0d0f;
  color: #f7efe4;
}

.tpl-runway {
  --tpl-accent: #ff3b6b;
  --tpl-bg: #09090c;
  --tpl-ink: #f8f4f7;
  --tpl-muted: rgba(248, 244, 247, 0.68);
  --tpl-panel: #f8f4f7;
  --tpl-transition: repeating-linear-gradient(90deg, #050508 0 13vw, #ff3b6b 13vw 14vw, #f8f4f7 14vw 15vw);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}

.runway-catwalk {
  color: white;
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(170px, 260px) minmax(0, 1fr);
}

.runway-catwalk::before {
  background:
    linear-gradient(90deg, rgba(5, 5, 8, 0.96) 0 30%, rgba(5, 5, 8, 0.38) 56%, rgba(5, 5, 8, 0.18)),
    var(--hero-image) center/cover;
}

.runway-schedule {
  align-self: stretch;
  border-right: 1px solid rgba(255, 59, 107, 0.42);
  padding-right: 22px;
}

.runway-title {
  align-self: end;
}

.runway-title h1 {
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(66px, 13vw, 170px);
  font-weight: 950;
  text-transform: uppercase;
}

.runway-program {
  background: #07070a;
  color: white;
}

.runway-program .tpl-program-list {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.runway-program article {
  border-top: 4px solid var(--tpl-accent);
  grid-template-columns: 1fr;
  min-height: 300px;
}

.tpl-orbit {
  --tpl-accent: #7c5cff;
  --tpl-bg: #090b1a;
  --tpl-ink: #f3f1ff;
  --tpl-muted: rgba(243, 241, 255, 0.68);
  --tpl-panel: #f3f1ff;
  --tpl-transition: conic-gradient(from 0deg, #090b1a, #7c5cff, #20d6ff, #090b1a);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}

.orbit-universe {
  color: white;
  display: grid;
  place-items: center;
  text-align: center;
}

.orbit-universe::before {
  background:
    radial-gradient(circle at 50% 45%, rgba(124, 92, 255, 0.42), transparent 28%),
    radial-gradient(circle at 50% 50%, rgba(32, 214, 255, 0.2), transparent 50%),
    linear-gradient(180deg, rgba(9, 11, 26, 0.24), rgba(9, 11, 26, 0.96)),
    var(--hero-image) center/cover;
}

.orbit-ring {
  animation: orbitSpin 18s linear infinite;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  position: absolute;
  width: min(72vw, 720px);
}

.orbit-ring span {
  background: var(--tpl-accent);
  border-radius: 50%;
  height: 16px;
  position: absolute;
  width: 16px;
}

.orbit-ring span:nth-child(1) { left: 50%; top: -8px; }
.orbit-ring span:nth-child(2) { bottom: 12%; right: 8%; }
.orbit-ring span:nth-child(3) { bottom: 10%; left: 10%; }

.orbit-title h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(64px, 11vw, 150px);
}

.orbit-planets .tpl-facts {
  border: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 28px;
}

.orbit-planets .tpl-facts > div {
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  padding: 14px 18px;
}

.orbit-program,
.orbit-rsvp,
.orbit-details {
  background: #070817;
  color: white;
}

.orbit-program .tpl-program-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tpl-retreat {
  --tpl-accent: #6f9f8b;
  --tpl-bg: #eef3eb;
  --tpl-ink: #233229;
  --tpl-muted: rgba(35, 50, 41, 0.66);
  --tpl-transition: radial-gradient(ellipse, #ffffff, #cddfd3, #eef3eb);
  font-family: Georgia, "Times New Roman", serif;
}

.tpl-retreat .tpl-nav {
  color: #233229;
}

.retreat-journal {
  color: #233229;
  display: grid;
  gap: 44px;
  grid-template-columns: minmax(250px, 420px) minmax(0, 1fr);
}

.retreat-journal::before {
  background:
    linear-gradient(90deg, rgba(238, 243, 235, 0.94), rgba(238, 243, 235, 0.62), rgba(238, 243, 235, 0.08)),
    var(--hero-image) center/cover;
}

.retreat-journal blockquote {
  border-left: 3px solid var(--tpl-accent);
  font-size: clamp(30px, 4.4vw, 58px);
  line-height: 1.08;
  margin: 0;
  padding-left: 24px;
}

.retreat-title h1 {
  font-weight: 500;
}

.retreat-pages {
  background: #eef3eb;
}

.retreat-story {
  padding-left: clamp(18px, 14vw, 180px);
  padding-right: clamp(18px, 14vw, 180px);
}

.retreat-program article {
  background: rgba(255, 255, 255, 0.54);
}

.retreat-rsvp,
.retreat-details {
  background: #dfe9df;
}

.tpl-stadium {
  --tpl-accent: #31d158;
  --tpl-bg: #07110c;
  --tpl-ink: #f5fff8;
  --tpl-muted: rgba(245, 255, 248, 0.68);
  --tpl-panel: #f5fff8;
  --tpl-transition: repeating-linear-gradient(0deg, #07110c 0 22px, #31d158 22px 26px, #f5fff8 26px 28px);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}

.stadium-broadcast {
  color: white;
  display: grid;
  gap: 30px;
  grid-template-columns: minmax(240px, 340px) minmax(0, 1fr);
}

.stadium-broadcast::before {
  background:
    repeating-linear-gradient(0deg, rgba(49, 209, 88, 0.16) 0 2px, transparent 2px 18px),
    linear-gradient(90deg, rgba(7, 17, 12, 0.92), rgba(7, 17, 12, 0.48)),
    var(--hero-image) center/cover;
}

.stadium-score {
  align-self: start;
  background: #07110c;
  border: 2px solid rgba(49, 209, 88, 0.58);
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr 1fr;
  padding: 24px;
}

.stadium-score b {
  color: var(--tpl-accent);
  font-size: 38px;
  font-weight: 950;
}

.stadium-title {
  align-self: end;
}

.stadium-title h1 {
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-weight: 950;
  text-transform: uppercase;
}

.stadium-feed {
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 9px),
    #07110c;
}

.stadium-program,
.stadium-details,
.stadium-rsvp {
  background: #0a1a10;
  color: white;
}

.stadium-program .tpl-program-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.stadium-program article {
  border: 1px solid rgba(49, 209, 88, 0.28);
  grid-template-columns: 1fr;
}

@keyframes tplFadeOut {
  from { opacity: 1; transform: translateX(0); }
  to { opacity: 0; transform: translateX(4%); }
}

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

@media (max-width: 1024px) {
  .tpl-gift-grid,
  .neon-program,
  .gallery-program .tpl-program-list,
  .runway-program .tpl-program-list,
  .stadium-program .tpl-program-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .signal-grid,
  .jubilee-toast,
  .campus-backstage,
  .candy-story,
  .candle-chef,
  .gallery-essay,
  .riviera-note,
  .home-story,
  .gala-cause {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .template-page h1 {
    font-size: clamp(42px, 15vw, 72px);
    line-height: 0.92;
  }

  .template-page h2 {
    font-size: clamp(30px, 10vw, 48px);
  }

  .template-page section {
    padding: 54px 16px;
  }

  .tpl-nav {
    align-items: flex-start;
    padding: 16px;
  }

  .tpl-nav > div {
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
  }

  .tpl-nav a {
    font-size: 12px;
  }

  .ivory-hero,
  .neon-poster,
  .jubilee-hall,
  .signal-dashboard,
  .cotton-book,
  .campus-stage,
  .candy-scrapbook,
  .candle-menu-cover,
  .gallery-wall,
  .riviera-map,
  .rose-cover,
  .garage-flyer,
  .winter-glass,
  .home-moodboard,
  .studio-bench,
  .gala-theatre,
  .runway-catwalk,
  .orbit-universe,
  .retreat-journal,
  .stadium-broadcast {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 96px 16px 44px;
  }

  .tpl-facts,
  .tpl-details,
  .tpl-rsvp-form,
  .tpl-gift-grid,
  .tpl-program-list,
  .campus-program,
  .orbit-program .tpl-program-list,
  .stadium-program .tpl-program-list {
    grid-template-columns: 1fr;
  }

  .tpl-program-list article {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .tpl-rsvp-form .wide {
    grid-column: auto;
  }

  .neon-poster {
    text-align: left;
  }

  .neon-date,
  .rose-issue b {
    border: 0;
    text-orientation: initial;
    writing-mode: horizontal-tb;
  }

  .neon-disc {
    aspect-ratio: auto;
    border-radius: 999px;
    justify-self: start;
    min-height: 58px;
    padding: 0 20px;
  }

  .candy-stickers {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .candy-stickers span {
    box-shadow: 5px 5px 0 #171717;
    font-size: 18px;
    padding: 12px;
  }

  .candy-polaroid,
  .candy-ticket,
  .garage-poster {
    transform: none;
  }

  .candle-courses .tpl-mini-program span {
    font-size: 20px;
    grid-template-columns: 74px 1fr;
  }

  .rose-cover,
  .garage-flyer,
  .stadium-broadcast {
    align-content: end;
  }

  .orbit-ring {
    width: 82vw;
  }

  .orbit-planets .tpl-facts {
    grid-template-columns: 1fr;
  }

  .runway-schedule {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 59, 107, 0.42);
    padding: 0 0 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .template-page::before,
  .orbit-ring {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
  }
}
