:root {
  --cream: #fbf6ec;
  --cream-2: #f3ead8;
  --paper: #fffdf8;
  --gold: #c9a45c;
  --gold-light: #e8d3a0;
  --gold-dark: #9c7a36;
  --green: #1f3a33;
  --green-2: #2c5147;
  --burgundy: #7a2e3a;
  --text: #3b3024;
  --muted: #7d6e5a;

  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --script: "Marck Script", "Cormorant Garamond", cursive;

  --gold-grad: linear-gradient(135deg, #a9823c 0%, #e8d3a0 45%, #c9a45c 60%, #8f6d2c 100%);
  --radius: 22px;
  --shadow: 0 20px 50px -20px rgba(60, 40, 10, .35);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.6;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 10%, rgba(201, 164, 92, .10), transparent 40%),
    radial-gradient(circle at 90% 60%, rgba(122, 46, 58, .06), transparent 45%),
    var(--cream);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: lining-nums;
}

body.locked { overflow: hidden; height: 100vh; }

img { display: block; max-width: 100%; }

button { font: inherit; cursor: pointer; }

.script { font-family: var(--script); }

/* ---------- Intro / envelope ---------- */
.intro {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 96px;
  background:
    radial-gradient(ellipse at center, #2c5147 0%, #1f3a33 55%, #142722 100%);
  transition: opacity 1.1s ease, visibility 1.1s ease;
  overflow: hidden;
}

.intro.hidden { opacity: 0; visibility: hidden; pointer-events: none; }

.intro__glow {
  position: absolute;
  width: 140vmax;
  height: 140vmax;
  background: conic-gradient(from 0deg, transparent, rgba(232, 211, 160, .08), transparent 30%, rgba(232, 211, 160, .06), transparent 60%);
  animation: spin 30s linear infinite;
  will-change: transform;
}

.intro.hidden .intro__glow { animation: none; }

.intro__hint {
  position: relative;
  order: 2;
  margin: 0;
  color: var(--gold-light);
  letter-spacing: .12em;
  font-size: 17px;
  font-style: italic;
  animation: pulseText 2.2s ease-in-out infinite;
}

.envelope {
  --w: min(84vw, 380px);
  --h: calc(var(--w) * .66);
  position: relative;
  width: var(--w);
  height: var(--h);
  padding: 0;
  border: 0;
  background: none;
  perspective: 1200px;
  animation: floatY 4s ease-in-out infinite;
  filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .45));
}

.envelope span { position: absolute; display: block; }

.envelope__back {
  inset: 0;
  border-radius: 10px;
  background: linear-gradient(160deg, #efe3c8, #d9c49a);
}

.envelope__letter {
  left: 6%;
  right: 6%;
  top: 8%;
  bottom: 6%;
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .12);
  transition: transform 1.1s cubic-bezier(.3, .7, .2, 1) .55s;
  z-index: 1;
}

.envelope__letter-inner {
  position: absolute;
  inset: 8px;
  border: 1px solid var(--gold-light);
  border-radius: 6px;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 14%;
}

.envelope__letter-inner .script {
  position: static;
  font-size: calc(var(--w) * .11);
  color: var(--gold-dark);
  line-height: 1.1;
}

.envelope__letter-inner .small {
  position: static;
  font-size: 14px;
  letter-spacing: .25em;
  color: var(--muted);
}

.envelope__front {
  inset: 0;
  z-index: 2;
  border-radius: 10px;
  background:
    linear-gradient(to top right, #e6d5b0 50%, transparent 50.3%) left / 50.2% 100% no-repeat,
    linear-gradient(to top left, #e2cfa6 50%, transparent 50.3%) right / 50.2% 100% no-repeat,
    linear-gradient(to top, #eadbb9 0, #eadbb9 0) bottom / 100% 0 no-repeat;
  clip-path: polygon(0 0, 50% 55%, 100% 0, 100% 100%, 0 100%);
  background-color: #eadcbc;
}

.envelope__flap {
  left: 0;
  right: 0;
  top: 0;
  height: 62%;
  z-index: 3;
  background: linear-gradient(180deg, #f1e4c6, #d8c192);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  transform-origin: top center;
  transition: transform .8s cubic-bezier(.5, 0, .3, 1), z-index 0s .4s;
}

.envelope__seal {
  left: 50%;
  top: 62%;
  z-index: 4;
  width: calc(var(--w) * .2);
  height: calc(var(--w) * .2);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #a8434f, #7a2e3a 55%, #561e28);
  box-shadow: inset 0 0 0 4px rgba(255, 255, 255, .08), inset 0 -4px 10px rgba(0, 0, 0, .35), 0 6px 14px rgba(0, 0, 0, .35);
  display: grid !important;
  place-items: center;
  transition: transform .6s ease, opacity .5s ease;
  animation: sealPulse 2.2s ease-in-out infinite;
}

.envelope__seal span {
  position: static;
  font-family: var(--script);
  font-size: calc(var(--w) * .1);
  color: var(--gold-light);
  text-shadow: 0 1px 0 rgba(0, 0, 0, .4);
}

.envelope__title {
  left: 0;
  right: 0;
  bottom: -64px;
  text-align: center;
  font-family: var(--script);
  font-size: 40px;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.envelope.open { animation: none; }
.envelope.open .envelope__seal { transform: translate(-50%, -50%) scale(0); opacity: 0; }
.envelope.open .envelope__flap { transform: rotateX(180deg); z-index: 0; }
.envelope.open .envelope__letter { transform: translateY(-58%); z-index: 2; transition-delay: .5s; }
.envelope.open .envelope__front { z-index: 3; }

/* ---------- Sparkles & petals ---------- */
.sparkles {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 50;
}

.petals {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 49;
}

.petal {
  position: absolute;
  top: -40px;
  width: 16px;
  height: 20px;
  border-radius: 150% 0 150% 0;
  background: linear-gradient(135deg, #fbe3e6, #e9a9b2);
  opacity: .85;
  animation: petalFall linear forwards;
  will-change: transform;
}

.petal.gold { background: linear-gradient(135deg, #f5e6c0, #c9a45c); }
.petal.white { background: linear-gradient(135deg, #ffffff, #efe6d6); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}

.hero__bg {
  position: absolute;
  inset: -10% 0;
  z-index: -2;
}

.hero__bg picture,
.footer__bg picture {
  display: block;
  width: 100%;
  height: 100%;
}

.hero__bg,
.footer__bg { will-change: transform; }

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.15);
  animation: kenBurns 22s ease-in-out infinite alternate;
  will-change: transform;
}

.hero__veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse at center, rgba(20, 39, 34, .35) 0%, rgba(20, 39, 34, .8) 75%),
    linear-gradient(180deg, rgba(20, 39, 34, .55), rgba(20, 39, 34, .25) 40%, rgba(251, 246, 236, 1) 100%);
}

.hero__frame {
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(232, 211, 160, .45);
  border-radius: 6px;
  pointer-events: none;
}

.corner {
  position: absolute;
  width: 84px;
  height: 84px;
  color: var(--gold-light);
  animation: drawIn 2s ease forwards;
}

.corner--tl { top: -1px; left: -1px; }
.corner--tr { top: -1px; right: -1px; transform: scaleX(-1); }
.corner--bl { bottom: -1px; left: -1px; transform: scaleY(-1); }
.corner--br { bottom: -1px; right: -1px; transform: scale(-1, -1); }

.hero__content {
  width: 100%;
  min-width: 0;
  padding: 40px 28px 80px;
  max-width: 720px;
}

.hero__pre {
  margin: 0 0 6px;
  font-size: clamp(14px, 4vw, 18px);
  letter-spacing: clamp(.18em, 1.4vw, .4em);
  text-transform: uppercase;
  color: var(--gold-light);
}

.hero__type {
  margin: 0;
  font-size: clamp(22px, 5vw, 30px);
  font-style: italic;
  letter-spacing: .08em;
}

.hero__name {
  margin: 4px 0 0;
  font-family: var(--script);
  font-weight: 400;
  font-size: clamp(44px, 15vw, 150px);
  line-height: 1.1;
  white-space: nowrap;
}

.split {
  display: inline-block;
  padding: 0 .1em .18em;
  background: var(--gold-grad);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shine 5s linear infinite;
}

.split .ch {
  display: inline-block;
  background: inherit;
  -webkit-background-clip: text;
  background-clip: text;
}

.hero__divider svg {
  width: 220px;
  height: 22px;
  color: var(--gold-light);
}

.hero__date {
  margin: 6px 0 0;
  font-size: clamp(28px, 7vw, 42px);
  font-weight: 600;
  letter-spacing: .12em;
}

.hero__date i {
  font-style: normal;
  color: var(--gold-light);
  margin: 0 .3em;
}

.hero__place {
  margin: 8px 0 0;
  font-size: clamp(15px, 4.2vw, 18px);
  letter-spacing: clamp(.04em, .8vw, .15em);
  color: #f4ecdc;
}

.hero__scroll {
  position: absolute;
  bottom: 38px;
  left: 50%;
  width: 28px;
  height: 46px;
  margin-left: -14px;
  border: 2px solid var(--gold);
  border-radius: 20px;
}

.hero__scroll span {
  position: absolute;
  left: 50%;
  top: 8px;
  width: 4px;
  height: 9px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--gold);
  animation: scrollDot 1.8s ease-in-out infinite;
}

/* ---------- Sections ---------- */
.section {
  position: relative;
  padding: 90px 20px;
  max-width: 1080px;
  margin: 0 auto;
}

.section__head {
  text-align: center;
  margin-bottom: 44px;
}

.section__kicker {
  margin: 0;
  color: var(--gold-dark);
  letter-spacing: .3em;
  text-transform: uppercase;
  font-size: 15px;
  font-weight: 600;
}

.section__title {
  margin: 4px 0 0;
  font-family: var(--script);
  font-weight: 400;
  font-size: clamp(40px, 9vw, 64px);
  line-height: 1.15;
  color: var(--green);
}

.section__title::after {
  content: "";
  display: block;
  width: 70px;
  height: 2px;
  margin: 14px auto 0;
  background: var(--gold-grad);
  border-radius: 2px;
}

/* ---------- Invite paper ---------- */
.invite { padding-top: 40px; }

.paper {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
  padding: 48px 20px;
  text-align: center;
  background:
    linear-gradient(var(--paper), var(--paper)) padding-box,
    var(--gold-grad) border-box;
  border: 2px solid transparent;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.paper::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px dashed rgba(201, 164, 92, .55);
  border-radius: calc(var(--radius) - 8px);
  pointer-events: none;
}

.paper__orn {
  display: block;
  width: 200px;
  height: 20px;
  margin: 0 auto;
  color: var(--gold);
}

.paper__orn--top { margin-bottom: 18px; }
.paper__orn--bottom { margin-top: 22px; }

.invite__salam {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: .35em;
  text-transform: uppercase;
  color: var(--gold-dark);
}

.invite__title {
  margin: 6px 0 18px;
  font-family: var(--script);
  font-weight: 400;
  font-size: clamp(34px, 8vw, 48px);
  color: var(--burgundy);
  line-height: 1.2;
}

.invite__text {
  margin: 0 auto 10px;
  max-width: 500px;
  font-size: 21px;
}

.invite__name {
  margin: 4px 0 8px;
  font-size: clamp(20px, 6.4vw, 40px);
  letter-spacing: clamp(0em, .3vw, .08em);
  color: var(--green);
  white-space: nowrap;
}

.invite__name strong {
  background: var(--gold-grad);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shine 5s linear infinite;
}

.accent { color: var(--burgundy); font-weight: 700; }

.invite__wish {
  margin-top: 16px;
  font-style: italic;
  color: var(--muted);
}

.invite__sign {
  margin: 24px 0 0;
  font-style: italic;
  color: var(--muted);
}

.invite__family {
  margin: 0;
  font-family: var(--script);
  font-size: clamp(34px, 8vw, 46px);
  color: var(--green);
  line-height: 1.2;
}

/* ---------- Calendar & countdown ---------- */
.calendar {
  max-width: 420px;
  margin: 0 auto 44px;
  padding: 26px 22px;
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(201, 164, 92, .35);
}

.calendar__month {
  text-align: center;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: .12em;
  color: var(--green);
  margin-bottom: 14px;
}

.calendar__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  text-align: center;
}

.calendar__grid .wd {
  font-size: 14px;
  font-weight: 700;
  color: var(--gold-dark);
  text-transform: uppercase;
}

.calendar__grid .d {
  position: relative;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  font-size: 18px;
  border-radius: 50%;
  color: var(--text);
}

.calendar__grid .d.today {
  color: #fff;
  font-weight: 700;
  z-index: 0;
}

.calendar__grid .d.today::before {
  content: "";
  position: absolute;
  inset: -2px;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #a8434f, var(--burgundy));
  animation: heartBeat 1.6s ease-in-out infinite;
}

.calendar__grid .d.today::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  animation: ripple 2s ease-out infinite;
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  max-width: 560px;
  margin: 0 auto;
}

.cd { text-align: center; }

.cd__num {
  position: relative;
  padding: 18px 0 14px;
  font-size: clamp(30px, 8vw, 48px);
  font-weight: 700;
  line-height: 1;
  color: var(--gold-light);
  background: linear-gradient(180deg, var(--green-2) 0 50%, var(--green) 50% 100%);
  border-radius: 14px;
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(232, 211, 160, .25);
  perspective: 400px;
  overflow: hidden;
}

.cd__num::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: rgba(0, 0, 0, .35);
}

.cd__num.flip { animation: flip .6s cubic-bezier(.4, 0, .2, 1); }

.cd__label {
  margin-top: 8px;
  font-size: 16px;
  letter-spacing: .15em;
  color: var(--muted);
  text-transform: uppercase;
}

.countdown__done {
  text-align: center;
  font-family: var(--script);
  font-size: 36px;
  color: var(--burgundy);
}

/* ---------- Program cards ---------- */
.program__cards {
  display: grid;
  gap: 28px;
  grid-template-columns: 1fr;
  max-width: 900px;
  margin: 0 auto;
}

.card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper);
  box-shadow: var(--shadow);
  transform-style: preserve-3d;
  transition: transform .25s ease-out, box-shadow .3s ease;
  border: 1px solid rgba(201, 164, 92, .35);
}

.card:hover { box-shadow: 0 30px 60px -20px rgba(60, 40, 10, .5); }

.card__img {
  height: 220px;
  overflow: hidden;
}

.card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s ease;
}

.card:hover .card__img img { transform: scale(1.08); }

.card__body {
  position: relative;
  padding: 26px 24px 30px;
  text-align: center;
}

.card__body::before {
  content: "";
  position: absolute;
  top: -26px;
  left: 50%;
  width: 52px;
  height: 52px;
  margin-left: -26px;
  border-radius: 50%;
  background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23c9a45c' d='M12 21s-7.5-4.6-9.6-9.3C.9 8.4 3 4.5 6.7 4.5c2.1 0 3.6 1.2 5.3 3.1 1.7-1.9 3.2-3.1 5.3-3.1 3.7 0 5.8 3.9 4.3 7.2C19.5 16.4 12 21 12 21z'/%3E%3C/svg%3E") center / 24px no-repeat;
  box-shadow: 0 6px 16px rgba(60, 40, 10, .18);
}

.card__for {
  margin: 8px 0 0;
  letter-spacing: .3em;
  text-transform: uppercase;
  font-size: 15px;
  font-weight: 700;
  color: var(--gold-dark);
}

.card__title {
  margin: 2px 0 12px;
  font-family: var(--script);
  font-weight: 400;
  font-size: 40px;
  color: var(--green);
}

.card__time {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 22px;
  border-radius: 40px;
  background: var(--cream-2);
  font-size: 21px;
}

.card__time svg { width: 22px; height: 22px; fill: var(--burgundy); }
.card__time b { font-size: 26px; color: var(--burgundy); }

/* ---------- Gallery ---------- */
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 170px;
  gap: 12px;
}

.g {
  margin: 0;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: var(--shadow);
  position: relative;
}

.g::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, .35) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .9s ease;
}

.g:hover::after { transform: translateX(120%); }

.g img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s ease;
}

.g:hover img { transform: scale(1.08); }

.g--tall { grid-row: span 2; }
.g--wide { grid-column: span 2; }

/* ---------- Location ---------- */
.location__addr {
  margin: 12px 0 0;
  font-size: 20px;
  color: var(--muted);
}

.map {
  position: relative;
  max-width: 900px;
  height: 380px;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background:
    linear-gradient(var(--cream-2), var(--cream-2)) padding-box,
    var(--gold-grad) border-box;
  border: 3px solid transparent;
}

.map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.map__pin {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--burgundy);
  box-shadow: 0 6px 16px rgba(0, 0, 0, .3);
  pointer-events: none;
  animation: bounce 2s ease-in-out infinite;
}

.map__pin svg { width: 24px; height: 24px; fill: #fff; }

.location__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 30px;
}

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 50px;
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: .05em;
  text-decoration: none;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
  border: 0;
}

.btn svg { width: 20px; height: 20px; fill: currentColor; }

.btn:hover { transform: translateY(-3px); }
.btn:active { transform: translateY(0) scale(.98); }

.btn--gold {
  color: #2b2113;
  background: var(--gold-grad);
  background-size: 200% auto;
  box-shadow: 0 12px 26px -10px rgba(156, 122, 54, .8);
}

.btn--gold::after {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .7), transparent);
  transform: skewX(-20deg);
  animation: shimmer 3s ease-in-out infinite;
}

.btn--outline {
  color: var(--green);
  background: transparent;
  box-shadow: inset 0 0 0 2px var(--gold);
}

.btn--outline:hover { background: rgba(201, 164, 92, .12); }

/* ---------- Footer ---------- */
.footer {
  position: relative;
  margin-top: 40px;
  padding: 130px 20px 110px;
  text-align: center;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}

.footer__bg {
  position: absolute;
  inset: -15% 0;
  z-index: -2;
}

.footer__bg img { width: 100%; height: 100%; object-fit: cover; }

.footer__veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, var(--cream) 0%, rgba(20, 39, 34, .75) 30%, rgba(20, 39, 34, .9) 100%);
}

.footer__orn { width: 200px; height: 20px; color: var(--gold-light); }

.footer__text {
  margin: 14px 0 20px;
  font-size: 22px;
  font-style: italic;
}

.footer__sign {
  margin: 0;
  letter-spacing: .15em;
  color: var(--gold-light);
}

.footer__family {
  margin: 0 0 30px;
  font-family: var(--script);
  font-size: clamp(46px, 11vw, 76px);
  line-height: 1.2;
  background: var(--gold-grad);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shine 6s linear infinite;
}

/* ---------- Scroll top ---------- */
.scroll-top {
  position: fixed;
  right: 16px;
  bottom: 18px;
  z-index: 60;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: var(--gold-grad);
  box-shadow: 0 10px 22px -8px rgba(0, 0, 0, .45);
  opacity: 0;
  transform: translateY(20px) scale(.8);
  transition: opacity .35s ease, transform .35s ease;
  pointer-events: none;
}

.scroll-top.show { opacity: 1; transform: none; pointer-events: auto; }
.scroll-top svg { width: 22px; height: 22px; fill: #2b2113; }

.is-off,
.is-off *,
.is-off *::before,
.is-off *::after { animation-play-state: paused !important; }

/* ---------- Reveal fallback (used when GSAP is unavailable) ---------- */
.no-gsap .reveal,
.no-gsap .reveal-line {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s ease, transform 1s cubic-bezier(.2, .7, .2, 1);
}

.no-gsap .reveal.in,
.no-gsap .reveal-line.in { opacity: 1; transform: none; }

/* ---------- Keyframes ---------- */
@keyframes spin { to { transform: rotate(360deg); } }

@keyframes floatY {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-12px) rotate(1deg); }
}

@keyframes pulseText {
  0%, 100% { opacity: .5; }
  50% { opacity: 1; }
}

@keyframes sealPulse {
  0%, 100% { box-shadow: inset 0 0 0 4px rgba(255, 255, 255, .08), inset 0 -4px 10px rgba(0, 0, 0, .35), 0 0 0 0 rgba(232, 211, 160, .6); }
  50% { box-shadow: inset 0 0 0 4px rgba(255, 255, 255, .08), inset 0 -4px 10px rgba(0, 0, 0, .35), 0 0 0 14px rgba(232, 211, 160, 0); }
}

@keyframes petalFall {
  0% { transform: translate3d(0, -40px, 0) rotate(0deg); }
  25% { transform: translate3d(var(--sway), 25vh, 0) rotate(120deg); }
  50% { transform: translate3d(calc(var(--sway) * -1), 50vh, 0) rotate(220deg); }
  75% { transform: translate3d(var(--sway), 75vh, 0) rotate(300deg); }
  100% { transform: translate3d(0, 110vh, 0) rotate(400deg); }
}

@keyframes kenBurns {
  from { transform: scale(1.15) translate(0, 0); }
  to { transform: scale(1.3) translate(-2%, -2%); }
}

@keyframes shine { to { background-position: 200% center; } }

@keyframes drawIn {
  from { clip-path: inset(0 100% 100% 0); opacity: 0; }
  to { clip-path: inset(0 0 0 0); opacity: 1; }
}

@keyframes scrollDot {
  0% { transform: translateY(0); opacity: 1; }
  80% { transform: translateY(18px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

@keyframes heartBeat {
  0%, 100% { transform: scale(1); }
  15% { transform: scale(1.15); }
  30% { transform: scale(1); }
  45% { transform: scale(1.1); }
}

@keyframes ripple {
  from { transform: scale(.8); opacity: 1; }
  to { transform: scale(1.5); opacity: 0; }
}

@keyframes flip {
  0% { transform: rotateX(0); }
  50% { transform: rotateX(-90deg); filter: brightness(1.4); }
  100% { transform: rotateX(0); }
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes shimmer {
  0% { left: -60%; }
  60%, 100% { left: 130%; }
}

/* ---------- Responsive ---------- */
@media (min-width: 720px) {
  body { font-size: 20px; }
  .section { padding: 120px 32px; }
  .paper { padding: 70px 60px; }
  .program__cards { grid-template-columns: 1fr 1fr; }
  .card__img { height: 260px; }
  .gallery__grid { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: 16px; }
  .map { height: 460px; }
  .corner { width: 120px; height: 120px; }
  .hero__frame { inset: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .petals,
  .sparkles { display: none; }
}
