:root {
  --pk: #8f2545;
  --pk-d: #7a1e3a;
  --pk-l: #c96e8a;
  --blush: #fbe9ee;
  --blush-w: #fff6f8;
  --gold: #c9a550;
  --gold-l: #e0c070;
  --charcoal: #2c2c3e;
  --text: #4a3535;
  --text-l: #7a5c5c;
  --muted: #9b7878;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: "Cormorant Garamond", Georgia, serif;
  background: var(--blush);
  color: var(--text);
}
img {
  display: block;
  max-width: 100%;
}
a {
  text-decoration: none;
  color: inherit;
}
button {
  font-family: inherit;
  cursor: pointer;
}

/* ── SCROLL REVEAL ─────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* ── LAYOUT ───────────────────────────────────── */
.app {
  width: 100%;
  min-height: 100vh;
}

/* ── HERO (video envelope + names) ─────────────── */
.hero {
  position: relative;
  height: 100vh;
  height: 100dvh;
  min-height: 480px;
  overflow: hidden;
  background: #1a1420;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Biased toward the lower half so the seal (baked into the footage,
     well below center) stays in frame once wide/short viewports force
     object-fit:cover to crop vertically. Applied to both clips so the
     framing doesn't jump at the intro→loop handoff. */
  object-position: 50% 65%;
  z-index: 1;
}

.hero-video-intro {
  z-index: 2;
  transition: opacity 0.4s ease;
}

.hero-video-intro.is-hidden {
  opacity: 0;
  pointer-events: none;
}

/* Darkens the footage so the white overlay text stays legible — only
   once the scenery + text are showing, never over the closed envelope */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.2s ease;
  background:
    radial-gradient(
      ellipse 65% 60% at 50% 46%,
      rgba(0, 0, 0, 0.45) 0%,
      rgba(0, 0, 0, 0.2) 55%,
      rgba(0, 0, 0, 0.08) 100%
    ),
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.15) 0%,
      rgba(0, 0, 0, 0.05) 25%,
      rgba(0, 0, 0, 0.05) 75%,
      rgba(0, 0, 0, 0.3) 100%
    );
}

.hero-overlay.is-visible {
  opacity: 1;
}

.hero-tap {
  position: absolute;
  inset: 0;
  z-index: 5;
  width: 100%;
  height: 100%;
  background: transparent;
  border: none;
}

.hero-content {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 2rem;
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 1s ease 0.15s,
    transform 1s ease 0.15s;
  pointer-events: none;
}

.hero-content.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-glyph {
  color: rgba(255, 255, 255, 0.85);
  font-size: clamp(1.1rem, 1.6vw, 1.4rem);
  margin-bottom: 1rem;
  text-shadow:
    0 1px 3px rgba(0, 0, 0, 0.65),
    0 6px 16px rgba(0, 0, 0, 0.5);
}

.hero-welcome {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: clamp(1.05rem, 1.5vw, 1.45rem);
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.7;
  text-shadow:
    0 1px 3px rgba(0, 0, 0, 0.65),
    0 6px 16px rgba(0, 0, 0, 0.5);
}

.hero-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 1.1rem 0 1.4rem;
}

.hero-divider-line {
  width: clamp(28px, 3.5vw, 48px);
  height: 1px;
  background: rgba(255, 255, 255, 0.5);
}

.hero-divider-heart {
  font-size: clamp(0.55rem, 0.8vw, 0.75rem);
  color: rgba(255, 255, 255, 0.8);
}

.hero-name {
  font-family: "Great Vibes", cursive;
  font-size: clamp(3.1rem, 7.5vw, 7.2rem);
  color: #fff;
  line-height: 1;
  margin-bottom: 0.4rem;
  text-shadow:
    0 2px 4px rgba(0, 0, 0, 0.6),
    0 10px 28px rgba(0, 0, 0, 0.5);
}

.hero-meta {
  font-size: clamp(0.85rem, 1vw, 1.05rem);
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.75;
  text-shadow:
    0 1px 3px rgba(0, 0, 0, 0.6),
    0 4px 12px rgba(0, 0, 0, 0.45);
}

.hero-amp {
  font-family: "Great Vibes", cursive;
  font-size: clamp(1.9rem, 2.4vw, 2.7rem);
  color: var(--gold-l);
  margin: 0.7rem 0;
  text-shadow:
    0 2px 4px rgba(0, 0, 0, 0.6),
    0 6px 16px rgba(0, 0, 0, 0.45);
}

.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 1.6rem;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  font-family: "Inter", sans-serif;
  animation: fade-in 1s ease 1s both;
}

.hero-scroll-chevron {
  width: 7px;
  height: 7px;
  border-right: 1.5px solid rgba(255, 255, 255, 0.75);
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.75);
  transform: rotate(45deg);
  animation: scroll-bounce 1.6s ease-in-out infinite;
}

@keyframes scroll-bounce {
  0%,
  100% {
    transform: rotate(45deg) translate(0, 0);
  }
  50% {
    transform: rotate(45deg) translate(3px, 3px);
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* ── INTRO (dark recap section) ────────────────── */
.intro-section {
  background: linear-gradient(
    180deg,
    #202135 0%,
    #252739 12%,
    #2c2a40 24%,
    #363047 36%,
    #443549 48%,
    #573c4c 60%,
    #714450 70%,
    #93505a 79%,
    #b96877 87%,
    #dc9aa6 93%,
    #f2c7cf 97%,
    var(--blush) 100%
  );
  padding: 5rem 1.8rem 8rem;
  text-align: center;
}

.intro-section .divider {
  color: var(--pk-l);
}
.intro-section .div-line {
  border-top-color: var(--pk-l);
}

.intro-text {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  color: rgba(240, 232, 224, 0.92);
  line-height: 1.9;
  max-width: 800px;
  margin: 0 auto;
}

.intro-heart {
  display: inline-block;
  color: var(--pk-l);
  margin-top: 0.2rem;
  font-size: 1em;
  font-style: normal;
}

/* ── SHARED SECTION STYLES ────────────────────── */
.section {
  padding: 2rem 1.6rem;
  text-align: center;
}

.section.bg-white {
  background: var(--white);
}
.section.bg-blush {
  background: var(--blush);
}
.section.bg-blushw {
  background: var(--blush-w);
}

/* Section icon ring */
.sec-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1.5px solid var(--pk);
  margin: 0 auto 0.6rem;
  color: var(--pk);
  font-size: 1rem;
}

/* Section heading */
.sec-title {
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  font-size: clamp(1.2rem, 5vw, 1.45rem);
  color: var(--pk);
  margin-bottom: 0.15rem;
}

/* Decorative divider */
.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0.55rem auto 1.2rem;
  color: var(--gold);
}

.div-line {
  width: 34px;
  height: 0;
  border-top: 1px dashed var(--gold);
}

.div-gem {
  font-size: 0.5rem;
}

/* ── SCRATCH CARD ─────────────────────────────── */
.scratch-section {
  position: relative;
  overflow: hidden;
  background: var(--blush);
  padding: 5.5rem 1.6rem 6.5rem;
  text-align: center;
}

.scratch-section .sec-title {
  font-family: "Great Vibes", cursive;
  font-weight: 400;
  font-size: clamp(2.2rem, 5.5vw, 3.6rem);
  margin-bottom: 0.3rem;
}

.confetti-layer {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 20;
}

.confetti-piece {
  position: absolute;
  top: -8%;
  border-radius: 2px;
  opacity: 0.95;
  animation-name: confetti-fall;
  animation-timing-function: ease-in;
  animation-fill-mode: forwards;
}

@keyframes confetti-fall {
  0% {
    transform: translateY(0) translateX(0) rotate(0deg);
    opacity: 1;
  }
  85% {
    opacity: 1;
  }
  100% {
    transform: translateY(480px) translateX(var(--drift)) rotate(var(--rotate));
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .confetti-layer {
    display: none;
  }
}

.scratch-heart-wrap {
  position: relative;
  width: clamp(240px, 26vw, 340px);
  aspect-ratio: 200 / 180;
  margin: 0.5rem auto 1rem;
  user-select: none;
  filter: drop-shadow(0 8px 24px rgba(143, 37, 69, 0.22));
  /* lets .scratch-content scale text off this box's own rendered width
     (cqw) instead of viewport width, so text can never outgrow the heart
     even in the viewport range where this box's own vw-clamp hasn't yet
     caught up to its max */
  container-type: inline-size;
}

.scratch-heart-outline {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.scratch-heart-outline path {
  fill: var(--blush-w);
  stroke: var(--pk);
  stroke-width: 1.5;
}

.scratch-content {
  position: absolute;
  left: 50%;
  top: 44%;
  transform: translate(-50%, -50%);
  width: 78%;
  text-align: center;
  pointer-events: none;
}

.scratch-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  touch-action: none;
  animation: pop-in 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes pop-in {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.sparkle {
  position: absolute;
  color: var(--gold-l);
  font-size: 0.9rem;
  animation: sparkle-pulse 1.6s ease-in-out infinite;
}

.sparkle.s1 {
  top: 4px;
  right: 4px;
  animation-delay: 0s;
}
.sparkle.s2 {
  top: 34px;
  right: -8px;
  font-size: 0.65rem;
  animation-delay: 0.5s;
}
.sparkle.s3 {
  top: 6px;
  left: 4px;
  font-size: 0.65rem;
  animation-delay: 1s;
}

@keyframes sparkle-pulse {
  0%,
  100% {
    opacity: 0.4;
    transform: scale(0.8);
  }
  50% {
    opacity: 1;
    transform: scale(1.3);
  }
}

.reveal-invited {
  font-family: "Great Vibes", cursive;
  font-size: clamp(0.95rem, 9cqw, 1.4rem);
  color: var(--pk);
  margin-bottom: 0.28rem;
  white-space: nowrap;
}

.reveal-date {
  font-size: clamp(1.05rem, 10cqw, 1.8rem);
  font-weight: 900;
  color: var(--charcoal);
  margin-bottom: 0.1rem;
  line-height: 1.15;
}

.reveal-day {
  font-size: clamp(0.78rem, 6.5cqw, 1.2rem);
  color: var(--text-l);
  line-height: 1.25;
}

.reveal-time {
  font-size: clamp(0.8rem, 6.8cqw, 1.2rem);
  color: var(--text-l);
  margin-top: 0.05rem;
  line-height: 1.2;
}

/* ── GALLERY ──────────────────────────────────── */
.gallery-section {
  padding: 0 0 1.2rem;
  background: var(--blush);
}

.gallery-slide {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: gallery-fade 0.5s ease both;
}

@keyframes gallery-fade {
  from {
    opacity: 0;
    transform: scale(1.02);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.gallery-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding-top: 0.8rem;
}

.gdot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(143, 37, 69, 0.32);
  padding: 0;
  transition: all 0.25s ease;
}

.gdot.active {
  background: var(--pk);
  width: 24px;
  border-radius: 4px;
}

/* ── COUNTDOWN ────────────────────────────────── */
.countdown-section {
  background: var(--blush-w);
  padding: 5.5rem 1.6rem 6.5rem;
  text-align: center;
}

.countdown-section .sec-title {
  font-family: "Great Vibes", cursive;
  font-weight: 400;
  font-size: clamp(2.2rem, 5.5vw, 3.6rem);
  margin-bottom: 0.3rem;
}

.cd-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(0.6rem, 2vw, 1.2rem);
  margin-top: 2rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.cd-box {
  background: var(--blush);
  border-radius: 14px;
  padding: clamp(0.9rem, 3vw, 1.6rem) 0.2rem;
  box-shadow: 0 2px 12px rgba(180, 80, 100, 0.1);
}

.cd-num {
  display: block;
  font-family: "Playfair Display", serif;
  font-size: clamp(1.65rem, 4.5vw, 2.6rem);
  font-weight: 700;
  color: var(--charcoal);
  line-height: 1;
}

.cd-lbl {
  display: block;
  font-size: clamp(0.55rem, 1.2vw, 0.7rem);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-top: 0.5rem;
  font-family: "Inter", sans-serif;
}

/* ── TIMELINE ─────────────────────────────────── */
.timeline-section {
  background: var(--blush);
  padding: 5.5rem 1.6rem 6.5rem;
  text-align: center;
}

.timeline-section .sec-title,
.venue-section .sec-title {
  font-family: "Great Vibes", cursive;
  font-weight: 400;
  font-size: clamp(2.3rem, 5.5vw, 3.6rem);
  margin-bottom: 0.4rem;
}

.timeline-section .sec-icon,
.venue-section .sec-icon {
  width: 38px;
  height: 38px;
}

.timeline-section .divider,
.venue-section .divider {
  color: var(--pk-l);
}
.timeline-section .div-line,
.venue-section .div-line {
  border-top-color: var(--pk-l);
}

.clock-icon,
.pin-icon {
  width: 18px;
  height: 18px;
}

.tl-list {
  text-align: left;
  margin-top: 2rem;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

.tl-item {
  display: flex;
  gap: 0.9rem;
  align-items: stretch;
}

.tl-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}

.tl-bullet {
  flex-shrink: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--pk);
  margin-top: 6px;
}

.tl-line {
  flex: 1;
  width: 1px;
  background: rgba(143, 37, 69, 0.25);
  margin: 0.35rem 0;
}

.tl-body {
  flex: 1;
  padding-bottom: 2.1rem;
}

.tl-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--pk);
  margin-bottom: 0.35rem;
}

.tl-date {
  font-size: 1.25rem;
  color: var(--text);
  margin-bottom: 0.35rem;
}

.tl-desc {
  font-size: 1.05rem;
  color: var(--text-l);
  line-height: 1.5;
}

/* ── VENUE ────────────────────────────────────── */
.venue-section {
  background: var(--blush-w);
  padding: 5.5rem 1.6rem 4rem;
  text-align: center;
}

.venue-name {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  font-weight: 700;
  color: var(--charcoal);
  margin: 0.8rem 0 0.4rem;
}

.venue-addr {
  font-size: clamp(0.9rem, 1.8vw, 1.05rem);
  color: var(--muted);
  line-height: 1.7;
  font-family: "Inter", sans-serif;
  margin: 1rem 0;
}

.maps-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.85rem 2rem;
  border: none;
  border-radius: 999px;
  color: var(--white);
  font-size: 0.92rem;
  background: var(--pk);
  font-family: "Inter", sans-serif;
  transition: background 0.2s;
}

.maps-btn:hover {
  background: var(--pk-d);
}

.venue-photo {
  width: 100%;
  max-width: 420px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 16px;
  margin: 1.4rem auto 0;
  box-shadow: 0 10px 30px rgba(143, 37, 69, 0.18);
}

/* ── DRESS CODE ───────────────────────────────── */
.dress-section {
  background: var(--white);
  padding: 2rem 1.6rem;
  text-align: center;
}

.dress-list {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  margin-top: 1.4rem;
}

.dress-item {
  text-align: center;
}

.dress-cat {
  font-size: 0.95rem;
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  color: var(--pk);
  margin-bottom: 0.2rem;
}

.dress-val {
  font-size: 0.8rem;
  color: var(--muted);
  font-family: "Inter", sans-serif;
}

/* ── PRE-WEDDING EVENTS ───────────────────────── */
.prewedding-section {
  background: var(--blush);
  padding: 2rem 1.6rem;
  text-align: center;
}

.pw-list {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  margin-top: 1.4rem;
}

.pw-item {
  text-align: center;
}

.pw-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--pk);
  margin-bottom: 0.2rem;
}

.pw-date,
.pw-loc {
  font-size: 0.76rem;
  color: var(--muted);
  font-family: "Inter", sans-serif;
  line-height: 1.6;
}

/* ── LOGISTICS (transportation, accommodation, gifts) ── */
.logistic-section {
  padding: 2rem 1.6rem;
  text-align: center;
}

.logistic-section.bg-blush {
  background: var(--blush-w);
}
.logistic-section.bg-white {
  background: var(--white);
}
.logistic-section.bg-blushp {
  background: var(--blush);
}

.logistic-text {
  font-size: 0.86rem;
  color: var(--text-l);
  line-height: 1.75;
  max-width: 300px;
  margin: 0 auto;
  font-family: "Inter", sans-serif;
}

/* ── RSVP FORM ────────────────────────────────── */
.form-section {
  background: var(--white);
  padding: 2rem 1.6rem;
  text-align: center;
}

.rsvp-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.2rem;
  text-align: left;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.field-label {
  font-size: 0.7rem;
  font-family: "Inter", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.field-input,
.field-select,
.field-textarea {
  width: 100%;
  padding: 0.78rem 0.95rem;
  border: 1.5px solid rgba(143, 37, 69, 0.32);
  border-radius: 10px;
  background: var(--blush);
  color: var(--text);
  font-family: "Cormorant Garamond", serif;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
  appearance: none;
  -webkit-appearance: none;
}

.field-input:focus,
.field-select:focus,
.field-textarea:focus {
  border-color: var(--pk);
}

.field-textarea {
  resize: none;
}

.submit-btn {
  width: 100%;
  padding: 0.9rem;
  background: var(--pk);
  color: var(--white);
  border: none;
  border-radius: 999px;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 0.25rem;
  transition:
    background 0.2s,
    transform 0.1s;
  letter-spacing: 0.05em;
}

.submit-btn:hover {
  background: var(--pk-d);
}
.submit-btn:active {
  transform: scale(0.98);
}

/* ── FOOTER ───────────────────────────────────── */
.footer {
  background: var(--blush);
  padding: 2.5rem 1.6rem 3rem;
  text-align: center;
}

.wave-divider {
  width: clamp(50%, 80%, 30%);
  height: 2rem;
  margin: 0 auto 1.1rem;
  color: var(--pk-l);
  display: block;
}

.wave-divider path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1;
  stroke-dasharray: 1 5;
  stroke-linecap: round;
}

.footer-headline {
  font-family: "Great Vibes", cursive;
  font-size: clamp(2.3rem, 9vw, 3.2rem);
  color: var(--pk);
  line-height: 1;
  margin-top: 2rem;
}

.footer-names {
  font-size: clamp(.8rem, 5vw, 1.5rem);
  color: var(--muted);
  letter-spacing: 0.04em;
  margin-top: 0.8rem;
  margin-bottom: 2rem;
  font-family: "Great Vibes", cursive;
}

/* ── SECTION SEPARATOR ────────────────────────── */
.sep {
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(143, 37, 69, 0.25),
    transparent
  );
  margin: 0 1.4rem;
}

/* ── RESPONSIVE ───────────────────────────────── */

/* Small phones */
@media (max-width: 360px) {
  .scratch-heart-wrap {
    width: clamp(200px, 62vw, 240px);
  }
}

/* Tablet / desktop — full width, keep long content columns readable */
@media (min-width: 720px) {
  .hero-content {
    max-width: 640px;
    margin: 0 auto;
  }

  .cd-grid,
  .tl-list,
  .dress-list,
  .pw-list,
  .rsvp-form {
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
  }

  .gallery-slide {
    max-width: 640px;
    margin: 0 auto;
  }
}
