/* ═══════════════════════════════════════════════════════════
   PIU Commencement 2026 — Invitation Styles (Redesign)
   Palette: Royal Blue · White · No Gold
   Type: Poppins (body) + IM Fell English (display/Ivy Presto alt)
   ═══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400&family=IM+Fell+English:ital@0;1&display=swap');

@font-face {
  font-family: 'Ivy Presto';
  src: url('../font/ivy-presto-text.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Ivy Presto';
  src: url('../font/ivy-presto-text-semi-bold.otf') format('opentype');
  font-weight: 600;
  font-style: normal;
}

@font-face {
  font-family: 'Ivy Presto';
  src: url('../font/ivy-presto-text-light.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: 'Ivy Presto';
  src: url('../font/ivy-presto-text-thin.otf') format('opentype');
  font-weight: 200;
  font-style: normal;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --blue: #1A2F8C;
  --blue-dark: #122070;
  --blue-deep: #0D1650;
  --blue-mid: #2540A8;
  --blue-light: #3358C4;
  --white: #FFF;
  --white-90: rgba(255, 255, 255, 0.90);
  --white-70: rgba(255, 255, 255, 0.70);
  --white-45: rgba(255, 255, 255, 0.45);
  --white-20: rgba(255, 255, 255, 0.20);
  --white-08: rgba(255, 255, 255, 0.08);
  --off-white: #F4F6FC;
  --pale-blue: #E8EDF8;
  /* Warm ivory + wave pattern for the invitation surface */
  --cream: #F7F3E8;
  --cream-line: #C7BDA2;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--blue-deep);
  font-family: 'Poppins', sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-x: hidden;
}

/* ══════════════════════════════════════
   WAVE BACKGROUND TEXTURE
══════════════════════════════════════ */
.wave-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg,
      transparent 0px, transparent 14px,
      rgba(255, 255, 255, 0.022) 14px, rgba(255, 255, 255, 0.022) 15px),
    repeating-linear-gradient(90deg,
      transparent 0px, transparent 14px,
      rgba(255, 255, 255, 0.012) 14px, rgba(255, 255, 255, 0.012) 15px);
  pointer-events: none;
  z-index: 0;
}

/* ══════════════════════════════════════
   KHMER DIAMOND STRIP (signature element)
   SVG pattern mimicking the textile border
   on the physical invitation card
══════════════════════════════════════ */
.khmer-strip-left {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 30px;
  z-index: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.khmer-strip-right {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 30px;
  z-index: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.khmer-strip::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(255, 255, 255, 0.12) 0%, transparent 100%);
  border-right: 1px solid rgba(255, 255, 255, 0.18);
}

/* .khmer-strip-inner {
  position: absolute;
  inset: 0;
  background-image: url("../SVG/Asset_1.svg");
  background-repeat: repeat, repeat;
  background-size: 50px 50px;
  /* background-size: 40px 40px, 40px 40px; */
/* background-position: 0 0, 10px 10px; */
/* background-position: center; */
/* centers the pattern } */
.khmer-strip-inner-left {
  position: absolute;
  inset: 0;
  background-image: url("../SVG/Asset_1.svg");
  background-repeat: repeat, repeat;
  background-size: 30px 30px, 30px, 30px;
  background-position: 0 0, 20px 20px;
  /* second layer shifted */
  opacity: 0.9;
}

.khmer-strip-inner-right {
  position: absolute;
  inset: 0;
  background-image: url("../SVG/Asset_11.svg");
  background-repeat: repeat, repeat;
  background-size: 30px 30px, 30px, 30px;
  background-position: 0 0, 20px 20px;
  /* second layer shifted */
  opacity: 0.9;
}



/* Thin accent lines matching physical card */
.khmer-strip-lines-left {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  display: flex;
  gap: 1px;
  padding-right: 0;
  color: #3358C4;
}

.khmer-strip-lines-right {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  display: flex;
  gap: 1px;
  padding-right: 0;
  color: #3358C4;
}


.khmer-strip-lines-left span,
.khmer-strip-lines-right span {
  display: block;
  width: 2px;
  height: 100%;
  opacity: 50%;
  background: rgba(255, 255, 255, 0.25);
}

.khmer-strip-lines span:nth-child(2) {
  background: rgba(255, 255, 255, 0.12);
}

/* Twinkling starfield */
.starfield {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.star {
  position: absolute;
  background: #2fbdff;
  /* light blue */
  border-radius: 50%;
  box-shadow: 0 0 6px 1px rgba(120, 150, 230, 0.5);
  /* soft light-blue glow */
  animation: twinkle 2.6s ease-in-out infinite;
}

@keyframes twinkle {

  0%,
  100% {
    opacity: 0.04;
    transform: scale(0.6);
  }

  50% {
    opacity: 0.45;
    transform: scale(1.15);
  }
}

/* starfield that sits on top (over the card) */
.starfield.over {
  z-index: 2;
}

/* Floating music play/pause button */
.music-btn {
  position: fixed;
  bottom: 18px;
  /* stay inside the portrait (≤460px wide, centred) on large screens */
  right: max(18px, calc(50vw - 212px));
  z-index: 5000;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(13, 22, 80, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  transition: transform 0.18s ease, background 0.18s ease;
}

.music-btn:hover {
  transform: scale(1.08);
  background: rgba(26, 47, 140, 0.75);
}

.music-btn svg {
  width: 18px;
  height: 18px;
  fill: #fff;
}

.music-btn .ic-pause {
  display: none;
}

.music-btn.playing .ic-play {
  display: none;
}

.music-btn.playing .ic-pause {
  display: inline;
}

/* Full-screen smoke transition between envelope and invitation */
.smoke-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  overflow: hidden;
}

.smoke-cloud {
  position: absolute;
  width: 70vmax;
  height: 70vmax;
  border-radius: 50%;
  background: radial-gradient(circle,
      rgba(245, 247, 255, 0.92) 0%,
      rgba(220, 226, 248, 0.55) 42%,
      rgba(255, 255, 255, 0) 70%);
  filter: blur(34px);
  will-change: transform, opacity;
}

/* ══════════════════════════════════════
   ENVELOPE SCENE — landing
══════════════════════════════════════ */
.envelope-scene {
  /* Cover is portrait only — capped to a portrait panel and centered,
     so it never stretches to a landscape band on wide screens. */
  width: 100%;
  max-width: 480px;
  margin-inline: auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at 50% 35%, var(--blue-mid) 0%, var(--blue-deep) 70%);
  position: relative;
  overflow: hidden;
  padding: 40px 24px;
}

/* On larger screens, present the portrait cover as a distinct card */
@media (min-width: 540px) {
  .envelope-scene {
    min-height: 100dvh;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
  }
}

.env-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 520px;
  width: 100%;
  /* keep all text inside the left/right khmer strips (strips are 30px wide) */
  padding-inline: 18px;
}

/* envelope illustration */
.envelope-art {
  width: 340px;
  margin-bottom: 36px;
  position: relative;
}

.env-body {
  width: 340px;
  height: 228px;
  background: var(--off-white);
  /* border-radius: 2px; */
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.env-flap {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 124px;
  background: var(--blue);
  clip-path: polygon(0 0, 100% 0, 50% 68%);
  z-index: 3;
  transform-origin: top center;
}

.env-body.open .env-flap {
  /* transform: rotateX(180deg); removed for GSAP */
}

.env-left-tri {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 114px 0 114px 170px;
  border-color: transparent transparent transparent var(--blue);
  opacity: 0.15;
}

.env-right-tri {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 114px 170px 114px 0;
  border-color: transparent var(--blue) transparent transparent;
  opacity: 0.15;
}

.env-bottom-tri {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 114px;
  background: var(--blue);
  clip-path: polygon(0 100%, 100% 100%, 50% 0%);
  opacity: 0.12;
}

/* wax seal — now white/blue instead of gold */
.env-seal {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 4;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--blue);
  border: 2.5px solid rgba(255, 255, 255, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  cursor: pointer;
}

.env-seal:hover {
  transform: translate(-50%, -50%) scale(1.08);
  box-shadow: 0 8px 32px rgba(26, 47, 140, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.env-seal svg {
  width: 38px;
  height: 46px;
}

/* letter peeking out */
.env-letter {
  position: absolute;
  bottom: 0;
  left: 16px;
  right: 16px;
  height: 136px;
  background: #fff;
  border-radius: 2px 2px 0 0;
  z-index: 2;
  transform: translateY(136px);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.12);
}

.env-body.open .env-letter {
  /* transform: translateY(0); removed for GSAP */
}

.env-letter-preview {
  text-align: center;
  padding: 12px;
}

.env-letter-preview-title {
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  letter-spacing: 2.5px;
  color: var(--ink);
  margin-bottom: 6px;
  text-transform: uppercase;
}

.env-letter-preview-name {
  font-family: 'Ivy Presto', serif;
  text-transform: uppercase;
  font-size: 14px;
  font-weight: 300;
  color: var(--blue-light);
  line-height: 1.3;
  text-transform: uppercase;
}

.env-univ {
  font-family: 'Ivy Presto', serif;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 4px;
  text-transform: uppercase;
  /* color: var(--white-100); */
  color: #ffff;
  margin-bottom: 50px;
}

.env-guest-name {
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--white-70);
  margin-bottom: 6px;
  text-transform: uppercase;
}

.env-tap-hint {
  font-family: 'Poppins', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--white-90);
  animation: breathe 1.6s ease-in-out infinite;
  margin-top: 10px;
}

@keyframes breathe {

  0%,
  100% {
    opacity: .35
  }

  50% {
    opacity: .85
  }
}

/* ══════════════════════════════════════
   COVER PAGE
══════════════════════════════════════ */
.cover-page {
  display: none;
  width: 100%;
  min-height: 100vh;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at 50% 28%, var(--blue-mid) 0%, var(--blue-deep) 72%);
  position: relative;
  overflow: hidden;
  padding: 48px 24px 72px;
  animation: fadeUp 0.65s ease both;
}

.cover-page.show {
  display: flex;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Khmer strip on cover */
.cover-page .khmer-strip {
  width: 72px;
}

/* Right strip mirror */
.cover-page .khmer-strip-right {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 16px;
  border-left: 1px solid var(--white-08);
  z-index: 1;
}

.cover-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 480px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* PIU spire mark */
.spire {
  margin-bottom: 24px;
}

.spire svg {
  width: 48px;
  height: 58px;
}

.cover-univ {
  font-family: 'Ivy Presto', normal;
  font-size: 12px;
  font-weight: 200;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--white-70);
  margin-bottom: 5px;
}

.cover-h1 {
  font-family: 'Ivy Presto', normal;
  /* shrink to fit so it always stays on a single line within the frame */
  font-size: clamp(13px, 4.2vw, 19px);
  font-weight: 400;
  color: var(--white);
  line-height: 1.15;
  letter-spacing: 2.5px;
  margin-bottom: 5px;
  text-transform: uppercase;
  white-space: nowrap;
}

.cover-class {
  font-family: 'Ivy Presto', normal;
  font-size: 12px;
  font-weight: 200;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--white-70);
  margin-bottom: 28px;
}

/* white divider — replaces gold rule */
.white-rule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 28px;
}

.wr-line {
  width: 48px;
  height: 1px;
  background: var(--white-45);
}

.wr-gem {
  color: var(--white-70);
  font-size: 10px;
}

.cover-honor {
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 300;
  /* font-style: italic; */
  color: var(--white-70);
  margin-bottom: 14px;
}

.cover-guest-name {
  font-family: 'IM Fell English', serif;
  font-size: 26px;
  font-weight: 400;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 8px;
}

.cover-guest-pos {
  font-family: 'Poppins', sans-serif;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--white-70);
  margin-bottom: 24px;
}

.cover-join {
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 300;
  /* font-style: italic; */
  color: var(--white-45);
  line-height: 1.9;
  margin-bottom: 36px;
}

/* curved flap at bottom */
.cover-flap {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 88px;
  background: var(--off-white);
  clip-path: ellipse(56% 100% at 50% 100%);
  z-index: 3;
}

/* wax seal — blue on cream */
.wax-seal {
  position: absolute;
  bottom: 44px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--blue);
  border: 2px solid rgba(255, 255, 255, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.wax-seal svg {
  width: 30px;
  height: 38px;
}

/* open button */
.btn-open {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 36px;
  background: transparent;
  border: 1.5px solid var(--white-45);
  color: var(--white-90);
  font-family: 'Poppins', sans-serif;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 3.5px;
  cursor: pointer;
  transition: background 0.22s, bordeinv2-plater-color 0.22s, color 0.22s;
  text-transform: uppercase;
  margin-bottom: 100px;
  border-radius: 0;
}

.btn-open:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--white-90);
  color: var(--white);
}

.btn-open svg {
  width: 13px;
  height: 13px;
  transition: transform 0.22s;
}

.btn-open:hover svg {
  transform: translateY(2px);
}

/* ══════════════════════════════════════
   INVITATION PAGES
══════════════════════════════════════ */
.invitation-section {
  display: none;
  width: 100%;
  min-height: 100dvh;
  /* at least one screen, grows if taller */
  overflow-y: auto;
  /* scroll when the card is taller than the screen */
  /* royal-blue gradient root — fills the whole screen */
  background: radial-gradient(ellipse at 100% 0%, var(--blue-mid) 0%, var(--blue-deep) 55%) no-repeat;
  background-attachment: fixed;
  background-size: cover;
  padding: 12px;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  /* start at top so nothing is cropped */
  /* animation: fadeUp 0.65s ease both; removed for GSAP */
}

.invitation-section.show {
  display: flex;
}

.card-wrap {
  position: relative;
  z-index: 1;
  /* sit above the starfield */
  width: 100%;
  max-width: 460px;
  min-height: calc(100dvh - 24px);
  /* fill the screen when content is short */
  height: auto;
  /* grow to content (no cropping) */
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.30);
  /* Warm ivory base + repeating wavy-line texture */
  background-color: var(--cream);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='150' height='14' viewBox='0 0 150 14'%3E%3Crect width='150' height='14' fill='%23F7F3E8'/%3E%3Cpath d='M0 7 q37.5 -7 75 0 t75 0' fill='none' stroke='%23C7BDA2' stroke-width='1' stroke-opacity='0.2'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 100px 14px;
}

#invitation-container,
#program-container {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* ── Page 1: formal invitation ── */
.page-invite {
  /* background: var(--off-white); */
  padding: 18px 44px;
  text-align: center;
  position: relative;
  overflow: hidden;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.inv-khmer-strip-left {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 30px;
  z-index: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.inv-khmer-strip-right {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 30px;
  z-index: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.inv-khmer-strip-inner {
  position: absolute;
  inset: 0;
  background-image: url("../SVG/2pattern.svg");
  background-repeat: repeat, repeat;
  background-size: 30px 30px, 30px, 30px;
  background-position: 0 0, 20px 20px;
  /* second layer shifted */
  opacity: 1;
  /* static — no motion */
}

/* Shared entrance: strips + bottom-left motif fade in together. */
@keyframes cardArtReveal {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.inv-khmer-strip-left,
.inv-khmer-strip-right {
  animation: cardArtReveal 0.8s ease both;
}

.inv-khmer-strip-lines-right {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  display: flex;
  gap: 1px;
  padding-right: 0;
  color: #3358C4;
}

.inv-khmer-strip-lines-left {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  display: flex;
  gap: 1px;
  padding-right: 0;
  color: #3358C4;
}

.inv-khmer-strip-lines-left span,
.inv-khmer-strip-lines-right span {
  display: block;
  width: 1.5px;
  height: 100%;
  opacity: 50%;
  background: rgba(0, 94, 170, 0.363);
}


.inv-khmer-strip::before {
  content: '';
  position: absolute;
  top: 0;
  right: -5px;
  bottom: 0;
  width: 1px;
  background: rgba(26, 47, 140, 0.2);
}

.inv-khmer-strip::after {
  content: '';
  position: absolute;
  top: 0;
  right: -10px;
  bottom: 0;
  width: 1px;
  background: rgba(26, 47, 140, 0.08);
}

.inv-body {
  position: relative;
  z-index: 2;
}

/* Corner images (top-left and bottom-right of the card). */
.inv-corner {
  position: absolute;
  z-index: 3;
  width: 110px;
  height: auto;
  pointer-events: none;
}

.inv-corner-tl {
  top: 16px;
  left: 44px;
}

.inv-corner-br {
  bottom: 16px;
  right: 44px;
}

.inv-badge {
  display: inline-block;
  border: 1.5px solid var(--blue);
  padding: 8px 32px;
  font-family: 'Poppins', sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 28px;
}

.inv-preamble {
  font-family: 'Poppins', sans-serif;
  font-size: 12.5px;
  font-weight: 300;
  /* font-style: italic; */
  color: #4a5680;
  line-height: 1.8;
  margin-bottom: 4px;
}

/* ornament — clean dots, no gold */
.blue-orn {
  color: var(--blue);
  letter-spacing: 6px;
  font-size: 10px;
  margin: 16px 0;
  opacity: 0.5;
}

.inv-name {
  font-family: 'Ivy Presto', serif;
  font-size: 24px;
  font-weight: 400;
  color: var(--blue);
  line-height: 1.2;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.inv-pos {
  font-family: 'Ivy Presto', serif;
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  /* color: var(--blue-light); */
  margin-bottom: 4px;
  color: var(--blue);
}

.inv-company {
  font-family: 'Ivy Presto', serif;
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  /* color: var(--blue-light); */
  color: var(--blue);
}

.inv-body-text {
  font-family: 'Poppins', sans-serif;
  font-size: 12.5px;
  font-weight: 300;
  color: #3a4260;
  line-height: 2;
  margin-bottom: 4px;
}

.inv-datetime {
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 500;

  /* color: var(--blue); */
  margin: 10px 0;
  letter-spacing: 0.3px;
}

.inv-closing {
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  font-weight: 300;
  font-style: italic;
  color: #4a5680;
  line-height: 2;
}

.inv-rsvp {
  font-family: 'Poppins', sans-serif;
  font-size: 10px;
  font-weight: 400;
  color: #8898bb;
  line-height: 2.2;
  letter-spacing: 0.3px;
  margin-top: 40px;
}

/* ── Page 2: program ── */
.page-prog-top {
  background: var(--blue);
  padding: 42px 56px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Khmer pattern faint on blue bg */
.page-prog-top::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cg fill='none' stroke='rgba(255,255,255,0.06)' stroke-width='0.7'%3E%3Crect x='6' y='6' width='20' height='20' rx='1' transform='rotate(45 16 16)'/%3E%3Crect x='10' y='10' width='12' height='12' transform='rotate(45 16 16)'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 32px 32px;
  pointer-events: none;
}

.prog-bg-year {
  position: absolute;
  font-family: 'IM Fell English', serif;
  font-size: 120px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.04);
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  pointer-events: none;
  z-index: 1;
}

.prog-eyebrow {
  font-family: 'Poppins', sans-serif;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--white-45);
  margin-bottom: 12px;
  position: relative;
  z-index: 2;
}

.prog-heading {
  font-family: 'IM Fell English', serif;
  font-size: 24px;
  font-weight: 400;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 8px;
  position: relative;
  z-index: 2;
}

.prog-sub {
  font-family: 'Poppins', sans-serif;
  font-size: 11px;
  font-weight: 300;
  font-style: italic;
  color: var(--white-70);
  position: relative;
  z-index: 2;
}

.page-prog-body {
  background: transparent;
  padding: 36px 56px 48px;
  border-radius: 0 0 2px 2px;
}

.prog-list {
  list-style: none;
}

.prog-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 16px 0;
  border-bottom: 0.5px solid rgba(26, 47, 140, 0.1);
}

.prog-item:last-child {
  border-bottom: none;
}

.prog-time {
  font-family: 'Poppins', sans-serif;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--blue);
  white-space: nowrap;
  min-width: 52px;
  padding-top: 3px;
  opacity: 0.7;
}

.prog-title {
  font-family: 'IM Fell English', serif;
  font-size: 14px;
  font-weight: 400;
  color: var(--blue);
  margin-bottom: 4px;
}

.prog-desc {
  font-family: 'Poppins', sans-serif;
  font-size: 11px;
  font-weight: 300;
  color: #5a6a8a;
  line-height: 1.65;
}

.prog-footer {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 0.5px solid rgba(26, 47, 140, 0.12);
  text-align: center;
}

.prog-footer-name {
  font-family: 'Poppins', sans-serif;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 6px;
  opacity: 0.7;
}

.prog-footer-tag {
  font-family: 'Poppins', sans-serif;
  font-style: italic;
  fo