/* =========================================================
   ROOT & BASE
   ========================================================= */

:root {
  --bg: #eef8ff;
  --paper: #fafdff;
  --ink: #263b4a;
  --muted: #718796;
  --gold: #72b9df;
  --dark: #183447;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Montserrat, sans-serif;
  line-height: 1.8;
}

h1,
h2,
h3,
h4,
h5 {
  font-family: "Cormorant Garamond", serif;
  font-weight: 500;
  line-height: 1.1;
}

/* =========================================================
   FONT
   ========================================================= */

@font-face {
  font-family: "Achieve";
  src: url("assets/fonts/Achieve.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Mirage";
  src: url("assets/fonts/Mirage.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* =========================================================
   OPENING / COVER
   ========================================================= */

.opening {
  position: fixed;
  z-index: 1000;
  inset: 0;

  display: grid;
  place-items: center;

  color: #fff;
  text-align: center;

  background: linear-gradient(135deg, #315d76, #83c1df);

  overflow: hidden;

  perspective: 1200px;
  transform-style: preserve-3d;

  transition:
    opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
    transform 1s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.9s ease;
}

.opening-bg {
  position: absolute;
  inset: 0;

  background:
    linear-gradient(rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.1)),
    linear-gradient(135deg, rgba(21, 244, 238, 0), rgba(79, 195, 247, 0)),
    url("assets/img/opening-bg.jpg") center center / cover no-repeat;

  transform: translateZ(-90px) scale(1.12);

  animation: openingBreath 8s ease-in-out infinite alternate;
}

.opening-bg::before,
.opening-bg::after {
  content: "";

  position: absolute;
  left: 50%;
  top: 50%;

  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 50%;

  transform: translate(-50%, -50%);
}

.opening-bg::before {
  width: 55vw;
  height: 55vw;

  animation: rotateSlow 22s linear infinite;
}

.opening-bg::after {
  width: 78vw;
  height: 78vw;

  border-style: dashed;

  animation: rotateSlow 32s linear infinite reverse;
}

.opening-inner {
  position: relative;

  padding: 25px;

  transform: translateZ(70px);

  animation: up 0.9s ease;

  transition:
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.6s ease;
}

.opening-inner::before {
  content: "";

  position: absolute;
  inset: -45px;

  border: 1px solid rgba(255, 255, 255, 0.22);

  transform: rotate(45deg) scale(0.72);

  animation: framePulse 4s ease-in-out infinite;

  pointer-events: none;
}

/* =========================================================
   OPENING TYPOGRAPHY
   ========================================================= */

.small-title {
  font-family: "Montserrat", serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
}

.opening .small-title {
  color: #fff;
}

.opening h1,
.hero h1 {
  margin: 0;

  font-size: clamp(60px, 13vw, 125px);
}

.opening h1 i,
.hero h1 i {
  margin: 0 8px;

  font-size: 0.55em;
  color: #b9e5fa;
}

.date {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 4px;
}

.guest-box {
  margin: 35px 0 22px;
  color: #eee;
}

.guest-box strong {
  display: block;
  margin-top: 0px;
}

/* =========================================================
   OPENING BUTTON
   ========================================================= */

.open-btn,
.outline-btn {
  display: inline-block;

  padding: 7px 15px;

  border: 1px solid var(--gold);
  border-radius: 30px;

  background: var(--dark);
  color: #fff;

  text-decoration: none;

  transition: 0.25s;
}

.outline-btn {
  background: transparent;
  color: var(--ink);
}

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

.opening .open-btn {
  position: relative;
  overflow: hidden;

  transform: scale(0.92);

  font-family: "Cormorant Garamond", serif;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.5px;

  animation: fadeUp 0.8s 0.7s both;
}

.opening .open-btn::after {
  content: "";

  position: absolute;
  top: 0;
  left: -110%;

  width: 55%;
  height: 100%;

  background: linear-gradient(
    100deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );

  transform: skewX(-20deg);

  animation: shine 3.5s 1.5s infinite;
}

/* =========================================================
   OPENING ANIMATIONS
   ========================================================= */

.opening h1 {
  animation: titleReveal 1.2s 0.15s ease-out forwards;
}

.opening .small-title {
  animation: fadeUp 0.8s both;
}

.opening .date {
  animation: fadeUp 0.8s 0.35s both;
}

.opening .guest-box {
  animation: fadeUp 0.8s 0.5s both;
}

.opening.is-opening {
  opacity: 0 !important;

  transform: scale(1.18) translateY(-2%);

  filter: blur(4px);

  pointer-events: none;
}

.opening.is-opening .opening-inner {
  transform: translateZ(180px) scale(1.08);
  opacity: 0;
}

/* =========================================================
   HERO
   ========================================================= */

.hero {
  position: relative;
  height: 100vh;
  min-height: 550px;

  display: grid;
  place-items: center;

  text-align: center;
  color: #fff;

  background:
    linear-gradient(rgba(35, 125, 170, 0.05), rgba(120, 195, 230, 0.15)),
    url("assets/img/content-bg.jpg") center center / cover no-repeat;

  overflow: hidden;

  background-position: center 0%;
  will-change: background-position;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-content {
  position: relative;
}

.hero .small-title {
  color: #d8f0ff;
}

.hero h1 {
  margin-bottom: 15px;
}

.hero-content p {
  letter-spacing: 4px;
}

.scroll-down {
  position: absolute;
  bottom: 10px;

  font-size: 20px;

  animation: bounce 1.5s infinite;
}

.hero-content,
.hero-overlay,
.scroll-down {
  position: relative;
  z-index: 2;
}

/* =========================================================
   MUSIC BUTTON
   ========================================================= */

.music-btn {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 50;

  width: 35px;
  height: 35px;

  border: 0;
  border-radius: 50%;

  background: var(--dark);
  color: #fff;

  box-shadow: 0 8px 25px #12384a33;
}

body.invitation-open .music-btn {
  bottom: 62px;
}

/* =========================================================
   BOTTOM NAV
   ========================================================= */

.bottom-nav {
  position: fixed;
  left: 50%;
  right: auto;
  bottom: 10px;
  z-index: 40;
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100% - 56px);

  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 2px;

  margin: 0;
  padding: 4px 6px calc(4px + env(safe-area-inset-bottom));

  background: rgba(250, 253, 255, 0.92);
  border: 1px solid rgba(114, 185, 223, 0.45);
  border-radius: 14px;
  box-shadow: 0 8px 22px rgba(24, 52, 71, 0.16);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.bottom-nav-item {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;

  min-width: 44px;
  padding: 4px 8px 3px;

  color: #718796;
  text-decoration: none;
  border-radius: 10px;
  transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.bottom-nav-item i {
  font-size: 13px;
  line-height: 1;
}

.bottom-nav-item span {
  font-family: Montserrat, sans-serif;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.2px;
  line-height: 1.15;
}

.bottom-nav-item:hover {
  color: #3d6f8a;
  background: rgba(158, 213, 242, 0.22);
}

.bottom-nav-item.active {
  color: #fff;
  background: linear-gradient(145deg, #72b9df, #4081aa);
  box-shadow: 0 4px 10px rgba(64, 129, 170, 0.24);
}

/* =========================================================
   PAGE REVEAL
   ========================================================= */

#page .hero {
  opacity: 0;

  transform: scale(1.08);

  transition:
    opacity 1.2s ease,
    transform 1.5s cubic-bezier(0.22, 1, 0.36, 1);
}

#page.page-visible .hero {
  opacity: 1;
  transform: scale(1);
}

#page.page-visible .hero-content {
  animation: heroContent 0.95s 0.35s both cubic-bezier(0.22, 1, 0.36, 1);
}

#page.page-visible .section {
  animation: sectionReveal 0.9s both;
}

#page.page-visible .quote-section {
  animation-delay: 0.1s;
}

#page.page-visible .couple-section {
  animation-delay: 0.2s;
}

#page.page-visible .countdown-section {
  animation-delay: 0.3s;
}

#page.page-visible .event-section {
  animation-delay: 0.4s;
}

#page.page-visible .gallery-section {
  animation-delay: 0.5s;
}

#page.page-visible .gift-section {
  animation-delay: 0.6s;
}

#page.page-visible .wishes-section {
  animation-delay: 0.7s;
}

/* =========================================================
   GENERAL SECTION
   ========================================================= */

.section {
  max-width: 1050px;
  margin: auto;
  padding: 100px 25px;

  text-align: center;
}

/* =========================
   QUOTE SECTION
========================= */

.couple-section {
  position: relative;
  max-width: none;
  background: linear-gradient(180deg, #f7fbfd 0%, #eef7fb 50%, #f8faf8 100%);
}

.quote-section {
  position: relative;
  max-width: none;
  width: 100%;
  min-height: 100vh;
  margin: 0;
  padding: 90px 24px;

  display: flex;
  justify-content: center;
  align-items: center;

  text-align: center;
  color: #2f4a5a;

  background: #faf8f4 url("assets/img/content.png") center center / cover
    no-repeat;

  overflow: hidden;
}

.quote-inner {
  position: relative;
  z-index: 1;
  width: min(100%, 640px);
  margin: auto;
  padding: 28px 18px;
}

.quote-bismillah {
  margin: 0 0 10px;

  font-family: "Mirage", "Cormorant Garamond", serif;
  font-size: clamp(28px, 6vw, 40px);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.25;

  color: #3d6f8a;
}

.quote-salam {
  margin: 0 auto 22px;
  max-width: 420px;

  font-family: "Cormorant Garamond", serif;
  font-size: clamp(16px, 3.4vw, 20px);
  font-style: italic;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.5;

  color: #5a7d90;
}

.quote-ornament {
  margin: 0 auto 26px;

  font-size: 14px;
  letter-spacing: 0.35em;
  color: #8cb9d0;
}

.quote-line {
  width: 64px;
  height: 1px;
  margin: 22px auto 14px;

  background: linear-gradient(to right, transparent, #8bb8ce, transparent);
}

.quote-section .arabic {
  margin: 0 auto 26px;
  max-width: 540px;

  font-family: "Amiri", "Traditional Arabic", serif;
  font-size: clamp(22px, 4.2vw, 28px);
  font-weight: 400;
  line-height: 2.05;

  color: #243f50;
  direction: rtl;
}

.quote-section .quote {
  margin: 0 auto;
  max-width: 520px;

  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: clamp(18px, 3.8vw, 23px);
  font-weight: 500;
  line-height: 1.7;

  color: #4f6f82;
}

.quote-source {
  display: block;

  font-family: "Montserrat", sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;

  color: #7a9aab;
}

@media (max-width: 480px) {
  .quote-section {
    min-height: auto;
    padding: 70px 18px 80px;

    background-size: cover;
    background-position: center top;
  }

  .quote-inner {
    padding: 12px 6px;
  }

  .quote-section .arabic {
    font-size: 20px;
    line-height: 1.95;
  }

  .quote-section .quote {
    font-size: 17px;
    line-height: 1.65;
  }
}

/* ========================================
   COUPLE SECTION
======================================== */

.couple-section {
  position: relative;
  max-width: none;
  padding: 80px 20px;

  overflow: hidden;

  display: flex;
  justify-content: center;

  background:
    linear-gradient(
      180deg,
      rgba(250, 248, 244, 0.58) 0%,
      rgba(245, 251, 253, 0.62) 100%
    ),
    url("assets/img/content.jpg") center center / cover no-repeat;
}

/* ========================================
   FRAME
======================================== */

.couple-frame {
  position: relative;

  width: min(100%, 1050px);

  padding: 65px 45px 60px;

  background: rgba(255, 255, 255, 0.24);

  border: 1px solid rgba(93, 150, 180, 0.28);

  border-radius: 32px;

  box-shadow:
    0 18px 50px rgba(70, 130, 160, 0.08),
    inset 0 0 0 1px rgba(255, 255, 255, 0.4);

  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);

  text-align: center;
}

/* Inner border */

.couple-frame::before {
  content: "";

  position: absolute;

  inset: 10px;

  border: 1px solid rgba(105, 181, 217, 0.16);

  border-radius: 25px;

  pointer-events: none;
}

/* ========================================
   HEADER
======================================== */

.couple-section .small-title {
  position: relative;

  font-family: "Montserrat", sans-serif;

  font-size: 10px;
  font-weight: 500;

  letter-spacing: 2.5px;

  color: var(--dark);

  margin-bottom: 15px;
}

.couple-section h2 {
  position: relative;

  margin: 0;

  font-family: "Mirage", "Cormorant Garamond", serif;

  font-size: clamp(36px, 6vw, 58px);

  font-weight: 400;

  font-style: normal;

  color: #31566c;
}

/* ========================================
   DIVIDER
======================================== */

.couple-divider {
  display: flex;

  align-items: center;
  justify-content: center;

  gap: 12px;

  margin: 15px auto 22px;
}

.couple-divider span {
  width: 55px;
  height: 1px;

  background: linear-gradient(to right, transparent, #79b9d5);
}

.couple-divider span:last-child {
  background: linear-gradient(to left, transparent, #79b9d5);
}

.couple-divider i {
  font-family: serif;

  font-size: 22px;

  font-style: normal;

  color: #70b3d2;
}

/* ========================================
   DESCRIPTION
======================================== */

.couple-section .lead-copy {
  position: relative;

  max-width: 650px;

  margin: 0 auto 45px;

  font-family: "Cormorant Garamond", serif;

  font-size: 19px;

  line-height: 1.6;

  color: var(--dark);
}

/* ========================================
   COUPLE ROW
======================================== */

.couple-row {
  position: relative;
}

/* ========================================
   PERSON CARD
======================================== */

.person-card {
  position: relative;

  padding: 10px 20px 25px;

  transition: transform 0.35s ease;
}

.person-card:hover {
  transform: translateY(-5px);
}

/* ========================================
   PHOTO
======================================== */

.portrait-wrap {
  position: relative;

  display: inline-flex;

  justify-content: center;
  align-items: center;

  margin-bottom: 18px;
}

/* Lingkaran dekorasi belakang */

.portrait-wrap::before {
  content: "";

  position: absolute;

  width: 245px;
  height: 245px;

  border: 1px solid rgba(104, 178, 211, 0.35);

  border-radius: 50%;

  transform: rotate(20deg);
}

/* Lingkaran kedua */

.portrait-wrap::after {
  content: "";

  position: absolute;

  width: 260px;
  height: 260px;

  border: 1px dashed rgba(104, 178, 211, 0.22);

  border-radius: 50%;

  transform: rotate(-15deg);
}

/* Foto */

.couple-section .portrait {
  position: relative;
  z-index: 2;

  width: 210px;
  height: 210px;

  margin: 0;

  display: flex;

  align-items: center;
  justify-content: center;

  overflow: hidden;

  border-radius: 50%;

  background: linear-gradient(145deg, #dff3fc, #a9d7ea);

  border: 5px solid rgba(255, 255, 255, 0.8);

  box-shadow: 0 12px 30px rgba(70, 130, 160, 0.16);

  font-family: "Cormorant Garamond", serif;

  font-size: 70px;

  color: #5ca9ce;
}

/* Kalau portrait berupa gambar */

.couple-section .portrait img {
  width: 100%;
  height: 100%;

  object-fit: cover;

  display: block;
}

/* ========================================
   ROLE
======================================== */

.person-role {
  margin-top: 8px;

  font-family: "Montserrat", sans-serif;

  font-size: 9px;

  font-weight: 600;

  letter-spacing: 3px;

  color: #79aec4;
}

/* ========================================
   NAME
======================================== */

.couple-section .person h3 {
  margin: 6px 0 5px;

  font-family: "Achieve", "Cormorant Garamond", cursive;

  font-size: clamp(32px, 5vw, 42px);

  font-weight: 400;

  color: #31566c;
}

/* ========================================
   SMALL DIVIDER
======================================== */

.person-line {
  width: 35px;
  height: 1px;

  margin: 8px auto 12px;

  background: #8bbdd3;
}

/* ========================================
   PARENTS
======================================== */

.couple-section .person p {
  margin: 0 auto 10px;

  max-width: 300px;

  font-family: "Cormorant Garamond", serif;

  font-size: 16px;

  line-height: 1.5;

  color: #718c9b;
}

.couple-section .person p span {
  color: #58798b;
}

/* ========================================
   INSTAGRAM
======================================== */

.couple-section .person a {
  font-family: "Montserrat", sans-serif;

  font-size: 11px;

  letter-spacing: 0.8px;

  text-decoration: none;

  color: #fff;

  transition: 0.3s ease;
}

.couple-section .person a:hover {
  color: #31566c;
}

/* ========================================
   AMPERSAND
======================================== */

.ampersand-wrap {
  position: relative;

  display: flex;

  justify-content: center;
  align-items: center;
}

.ampersand {
  position: relative;

  width: 62px;
  height: 62px;

  display: flex;

  align-items: center;
  justify-content: center;

  border: 1px solid rgba(110, 177, 207, 0.45);

  border-radius: 50%;

  background: rgba(255, 255, 255, 0.5);

  box-shadow: 0 5px 18px rgba(70, 130, 160, 0.08);
}

.ampersand::before,
.ampersand::after {
  content: "";

  position: absolute;

  width: 45px;
  height: 1px;

  background: rgba(110, 177, 207, 0.35);

  top: 50%;
}

.ampersand::before {
  right: 100%;
}

.ampersand::after {
  left: 100%;
}

.ampersand span {
  font-family: "Cormorant Garamond", serif;

  font-size: 32px;

  font-style: italic;

  color: #6aaecb;
}

/* ========================================
   CORNER ORNAMENTS
======================================== */

.couple-corner {
  position: absolute;

  z-index: 2;

  font-family: serif;

  font-size: 30px;

  color: #76b6d2;

  opacity: 0.75;
}

.corner-tl {
  top: 18px;
  left: 22px;

  transform: rotate(-45deg);
}

.corner-tr {
  top: 18px;
  right: 22px;

  transform: rotate(45deg);
}

.corner-bl {
  bottom: 18px;
  left: 22px;

  transform: rotate(-135deg);
}

.corner-br {
  bottom: 18px;
  right: 22px;

  transform: rotate(135deg);
}

/* ========================================
   MOBILE
======================================== */

@media (max-width: 767px) {
  .event-card {
    padding: 42px 18px 32px;
    border-radius: 25px;
  }

  .event-card::before {
    border-radius: 18px;
  }
}

@media (max-width: 767px) {
  .couple-section {
    padding: 55px 15px;
  }

  .couple-frame {
    padding: 50px 18px 45px;

    border-radius: 25px;
  }

  .couple-section .lead-copy {
    font-size: 18px;

    margin-bottom: 35px;
  }

  .couple-section .portrait {
    width: 175px;
    height: 175px;

    font-size: 55px;
  }

  .portrait-wrap::before {
    width: 205px;
    height: 205px;
  }

  .portrait-wrap::after {
    width: 220px;
    height: 220px;
  }

  .couple-section .person h3 {
    font-size: 34px;
  }

  .ampersand-wrap {
    margin: 5px 0 15px;
  }

  .ampersand {
    width: 52px;
    height: 52px;
  }

  .ampersand span {
    font-size: 27px;
  }

  .ampersand::before,
  .ampersand::after {
    display: none;
  }

  .couple-corner {
    font-size: 24px;
  }
}

.event-section h2,
.gallery-section h2,
.gift-section h2,
.wishes-section h2 {
  margin: 10px 0 20px;

  font-size: 55px;
}

.lead-copy {
  max-width: 680px;
  margin: 0 auto 45px;

  color: var(--muted);
}

.person h3 {
  margin: 20px 0 8px;

  font-size: 38px;
}

.person p {
  color: var(--muted);
}

.person a {
  color: var(--gold);
  text-decoration: none;
}

.portrait {
  width: 220px;
  height: 290px;
  margin: auto;
  overflow: hidden;

  border-radius: 120px 120px 15px 15px;

  background: linear-gradient(145deg, #9bcbe3, #54798d);

  box-shadow: 0 20px 50px #315d761c;
}

.portrait img {
  width: 100%;
  height: 100%;
  display: block;

  object-fit: cover;
  object-position: center;

  image-rendering: auto;
}

.portrait.bride {
  background: linear-gradient(145deg, #b6dff2, #688b9d);
}

.ampersand {
  font: 60px "Cormorant Garamond";
  color: var(--gold);
}

/* =========================================================
   COUNTDOWN
   ========================================================= */

.countdown-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  max-width: none;
  min-height: 72vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: #fff;
}

.countdown-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url("assets/img/content.jpg") center center / cover no-repeat;
}

.countdown-section::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    180deg,
    rgba(24, 52, 71, 0.28) 0%,
    rgba(24, 52, 71, 0.48) 50%,
    rgba(24, 52, 71, 0.32) 100%
  );
}

.countdown-inner {
  position: relative;
  z-index: 1;
  width: min(100%, 760px);
}

.countdown-section .small-title {
  color: #e8f6ff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.28);
}

.countdown-section h2 {
  font-size: 45px;
  color: #fff;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.32);
}

.countdown {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.countdown .cd-box {
  width: 86px;
  min-height: 96px;
  padding: 16px 8px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 6px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 12px 28px rgba(16, 40, 56, 0.22);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}

.countdown .cd-box strong {
  display: block;
  font: 600 40px/1 "Cormorant Garamond", serif;
  letter-spacing: 0.04em;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.countdown .cd-box span {
  margin-top: 8px;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 2px;
  color: rgba(232, 246, 255, 0.9);
}

.countdown .cd-sep {
  font-family: "Cormorant Garamond", serif;
  font-size: 34px;
  line-height: 1;
  color: #fff;
  opacity: 0.85;
  margin: 0 2px 10px;
}

/* =========================================================
   EVENT
   ========================================================= */

.event-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  max-width: none;
  background: transparent;
}

.event-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: #f7fbfd url("assets/img/content.png") center center / cover no-repeat;
}

.event-section::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    180deg,
    rgba(247, 251, 253, 0.55) 0%,
    rgba(238, 248, 255, 0.72) 100%
  );
}

.event-inner {
  position: relative;
  z-index: 1;
  width: min(100%, 1050px);
  margin: 0 auto;
}

.event-card {
  position: relative;
  height: 100%;
  padding: 50px 28px 36px;
  background: rgba(255, 255, 255, 0.24);
  border: 1px solid rgba(93, 150, 180, 0.28);
  border-radius: 32px;
  box-shadow:
    0 18px 50px rgba(70, 130, 160, 0.08),
    inset 0 0 0 1px rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  text-align: center;
  transition: transform 0.35s ease;
}

.event-card::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(105, 181, 217, 0.16);
  border-radius: 25px;
  pointer-events: none;
}

.event-card:hover {
  transform: translateY(-5px);
}

.event-corner {
  position: absolute;
  z-index: 2;
  font-family: serif;
  font-size: 30px;
  color: #76b6d2;
  opacity: 0.75;
  line-height: 1;
  pointer-events: none;
}

.event-corner-tl {
  top: 18px;
  left: 22px;
  transform: rotate(-45deg);
}

.event-corner-tr {
  top: 18px;
  right: 22px;
  transform: rotate(45deg);
}

.event-corner-bl {
  bottom: 18px;
  left: 22px;
  transform: rotate(-135deg);
}

.event-corner-br {
  bottom: 18px;
  right: 22px;
  transform: rotate(135deg);
}

.event-icon {
  width: 62px;
  height: 62px;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(145deg, #b6dff2, #4081aa);
  color: #fff;
  font-size: 22px;
  box-shadow:
    0 10px 22px rgba(64, 129, 170, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.event-label {
  display: inline-block;
  margin: 8px 0 0;
  padding: 0;
  border: 0;
  background: transparent;
  font-family: "Montserrat", sans-serif;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 3px;
  color: #79aec4;
}

.event-card h3 {
  margin: 10px 0 6px;
  font-size: 36px;
  color: var(--dark);
}

.event-date {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: 16px;
  font-style: italic;
  color: #5a7d90;
}

.event-date i {
  font-size: 13px;
  font-style: normal;
  color: #72b9df;
}

.event-card p {
  color: var(--muted);
}

.event-card h5 {
  margin: 0 0 6px;
  font-size: 27px;
  color: var(--ink);
}

.event-line {
  position: relative;
  width: 92px;
  height: 1px;
  margin: 22px auto 20px;
  background: linear-gradient(to right, transparent, #72b9df, transparent);
}

.event-line i {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 10px;
  font-style: normal;
  color: #72b9df;
  background: rgba(247, 251, 255, 0.65);
  padding: 0 7px;
}

.event-venue {
  margin-bottom: 18px;
}

.event-venue p {
  margin: 0;
  line-height: 1.7;
}

.event-map {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 180px;
  margin: 0 0 16px;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(93, 150, 180, 0.28);
  box-shadow: 0 10px 24px rgba(70, 130, 160, 0.08);
}

.event-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.event-map-btn {
  margin-top: 4px;
  padding: 8px 18px;
  background: var(--dark);
  color: #fff;
  border-color: var(--dark);
}

.event-map-btn:hover {
  background: #4081aa;
  border-color: #4081aa;
  color: #fff;
}

/* =========================================================
   GALLERY
   ========================================================= */

.gallery-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  max-width: none;
  background: transparent;
  color: #fff;
}

.gallery-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url("assets/img/content-bg.jpg") center center / cover no-repeat;
}

.gallery-section::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    180deg,
    rgba(24, 52, 71, 0.42) 0%,
    rgba(24, 52, 71, 0.58) 100%
  );
}

.gallery-inner {
  position: relative;
  z-index: 1;
  width: min(100%, 1050px);
  margin: 0 auto;
}

.gallery-section .small-title {
  color: #d8f0ff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.28);
}

.gallery-section h2 {
  color: #fff;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.32);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 220px;
  gap: 12px;
}

.gallery-item {
  overflow: hidden;
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

.gallery-item.tall {
  grid-row: span 2;
}

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.5s;
}

.gallery-item:hover img {
  transform: scale(1.06);
}

/* =========================================================
   GIFT
   ========================================================= */

.gift-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  max-width: none;
  background: transparent;
  color: #fff;
}

.gift-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url("assets/img/content.jpg") center center / cover no-repeat;
}

.gift-section::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    180deg,
    rgba(24, 52, 71, 0.45) 0%,
    rgba(24, 52, 71, 0.62) 100%
  );
}

.gift-inner {
  position: relative;
  z-index: 1;
  width: min(100%, 760px);
  margin: 0 auto;
}

.gift-section .small-title {
  color: #d8f0ff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.28);
}

.gift-section h2 {
  color: #fff;
}

.gift-section .lead-copy {
  color: rgba(232, 246, 255, 0.88);
}

.atm-card.gift-card {
  position: relative;
  width: min(100%, 390px);
  aspect-ratio: 1.586 / 1;
  margin: 0 auto;
  padding: 22px 24px 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: left;
  color: #fff;
  border-radius: 18px;
  background:
    radial-gradient(circle at 118% -10%, rgba(255, 255, 255, 0.28), transparent 42%),
    linear-gradient(135deg, #16384c 0%, #2d6d93 48%, #6eb6dc 100%);
  box-shadow:
    0 22px 48px rgba(16, 40, 56, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.atm-card.gift-card::before {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  right: -50px;
  bottom: -70px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}

.atm-card.gift-card::after {
  content: "";
  position: absolute;
  width: 120px;
  height: 120px;
  right: 40px;
  bottom: -50px;
  border-radius: 50%;
  background: rgba(24, 52, 71, 0.18);
}

.atm-chip {
  position: relative;
  z-index: 1;
  width: 46px;
  height: 34px;
  border-radius: 7px;
  background: linear-gradient(145deg, #f6e7b2, #c9a227 45%, #f3e2a8);
  box-shadow: inset 0 0 0 1px rgba(120, 86, 18, 0.25);
}

.atm-chip::before,
.atm-chip::after {
  content: "";
  position: absolute;
}

.atm-chip::before {
  left: 0;
  right: 0;
  top: 10px;
  height: 14px;
  border-top: 1px solid rgba(110, 78, 16, 0.35);
  border-bottom: 1px solid rgba(110, 78, 16, 0.35);
}

.atm-chip::after {
  top: 0;
  bottom: 0;
  left: 14px;
  width: 18px;
  border-left: 1px solid rgba(110, 78, 16, 0.28);
  border-right: 1px solid rgba(110, 78, 16, 0.28);
}

.atm-contactless {
  position: absolute;
  top: 22px;
  left: 82px;
  z-index: 1;
  color: rgba(255, 255, 255, 0.85);
  transform: rotate(90deg);
  font-size: 20px;
}

.atm-card .bank {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 1;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 3px;
}

.atm-card #accountNumber,
.atm-card strong {
  position: relative;
  z-index: 1;
  margin-top: auto;
  font-family: Montserrat, sans-serif;
  font-size: clamp(18px, 4.4vw, 24px);
  font-weight: 500;
  letter-spacing: 0.18em;
  color: #fff;
}

.atm-holder {
  position: relative;
  z-index: 1;
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.atm-holder small {
  font-size: 8px;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.7);
}

.atm-card .atm-holder span {
  color: #fff;
  font-size: 13px;
  letter-spacing: 0.06em;
}

.copy-btn {
  margin-top: 22px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.copy-btn:hover {
  background: #fff;
  color: var(--dark);
}

/* =========================================================
   WISHES
   ========================================================= */

.wish-form {
  max-width: 650px;
  margin: 30px auto;
}

.wish-form input,
.wish-form textarea {
  width: 100%;

  margin-bottom: 12px;
  padding: 13px 15px;

  border: 1px solid #c8e3f1;
  border-radius: 5px;

  background: var(--paper);

  outline: none;
}

.wish-form textarea {
  min-height: 120px;
}

.wish {
  max-width: 650px;
  margin: 10px auto;
  padding: 15px 18px;

  text-align: left;

  background: var(--paper);

  border-left: 3px solid var(--gold);
}

.wish strong {
  display: block;
}

.wish small {
  color: var(--muted);
}

/* =========================================================
   FOOTER
   ========================================================= */

footer {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 90px 20px 130px;
  background: transparent;
  color: #fff;
  text-align: center;
}

footer::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url("assets/img/hero.jpg") center center / cover no-repeat;
}

footer::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    180deg,
    rgba(24, 52, 71, 0.55) 0%,
    rgba(16, 36, 50, 0.78) 100%
  );
}

.footer-inner {
  position: relative;
  z-index: 1;
}

footer .ornament {
  margin-bottom: 10px;
  font-size: 22px;
  color: #9ed5f2;
}

footer h2 {
  font-size: 50px;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.3);
}

footer p {
  color: #d5ebf7;
}

footer small {
  color: rgba(213, 235, 247, 0.72);
}

/* =========================================================
   KEYFRAMES
   ========================================================= */

@keyframes up {
  from {
    opacity: 0;
    transform: translateY(25px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes bounce {
  50% {
    transform: translateY(7px);
  }
}

@keyframes openingBreath {
  from {
    transform: translateZ(-90px) scale(1.12);
  }

  to {
    transform: translateZ(-90px) scale(1.2) translate3d(1%, -1%, 0);
  }
}

@keyframes rotateSlow {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes framePulse {
  0%,
  100% {
    opacity: 0.25;
    transform: rotate(45deg) scale(0.72);
  }

  50% {
    opacity: 0.55;
    transform: rotate(45deg) scale(0.78);
  }
}

@keyframes titleReveal {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

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

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

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes shine {
  0%,
  65% {
    left: -110%;
  }

  85%,
  100% {
    left: 160%;
  }
}

@keyframes heroContent {
  from {
    opacity: 0;
    transform: translateY(35px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes sectionReveal {
  from {
    opacity: 0;
    transform: translateY(25px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 767px) {
  .section {
    padding: 75px 18px;
  }

  .event-section h2,
  .gallery-section h2,
  .gift-section h2,
  .wishes-section h2 {
    font-size: 45px;
  }

  .ampersand {
    margin: -15px 0;
  }

  .portrait {
    width: 190px;
    height: 245px;
  }

  .countdown {
    gap: 8px;
  }

  .countdown .cd-box {
    width: 68px;
    min-height: 82px;
    padding: 12px 6px 10px;
  }

  .countdown .cd-box strong {
    font-size: 30px;
  }

  .countdown .cd-sep {
    font-size: 26px;
    margin-bottom: 8px;
  }

  .gallery {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 180px;
  }

  .gallery-item.tall {
    grid-row: span 2;
  }

  .event-card {
    padding: 40px 20px 28px;
  }

  .event-card h3 {
    font-size: 30px;
  }

  .atm-card.gift-card {
    width: min(100%, 340px);
    padding: 18px 18px 16px;
  }

  .atm-card .bank {
    font-size: 11px;
    right: 18px;
    top: 18px;
  }

  footer h2 {
    font-size: 40px;
  }
}

/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* ===== V8 Editorial Wedding Date ===== */
.editorial-date {
  position: relative;
  width: min(310px, 78vw);
  margin: 26px auto 25px;
  display: grid;
  grid-template-columns: 1fr 1.05fr 1fr;
  align-items: center;
  min-height: 92px;
  color: #fafdff;
  text-shadow: 0 3px 18px rgba(15, 65, 90, 0.22);
}
.editorial-date::before,
.editorial-date::after {
  content: "";
  position: absolute;
  top: 7px;
  bottom: 7px;
  width: 1px;
  background: #000;
}
.editorial-date::before {
  left: 39%;
}
.editorial-date::after {
  right: 39%;
}
.date-weekday,
.date-month {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.date-weekday {
  grid-column: 1;
  grid-row: 1;
  text-align: center;
}
.date-month {
  grid-column: 3;
  grid-row: 1;
  text-align: center;
}
.date-center {
  grid-column: 2;
  grid-row: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
}
.date-day {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(64px, 16vw, 82px);
  font-weight: 300;
  letter-spacing: -0.035em;
  line-height: 0.78;
}
.date-year {
  margin-top: 12px;
  font-family: "Montserrat", sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.34em;
  padding-left: 0.34em;
  opacity: 0.92;
}
.editorial-date .date-weekday,
.editorial-date .date-day,
.editorial-date .date-year,
.editorial-date .date-month {
  opacity: 0;
  animation: editorialDateReveal 0.85s both cubic-bezier(0.22, 1, 0.36, 1);
}
.editorial-date .date-weekday {
  animation-delay: 0.68s;
}
.editorial-date .date-day {
  animation-delay: 0.78s;
}
.editorial-date .date-year {
  animation-delay: 0.94s;
}
.editorial-date .date-month {
  animation-delay: 1.04s;
}
@keyframes editorialDateReveal {
  from {
    opacity: 0;
    transform: translateY(16px);
    filter: blur(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}
.opening.is-opening .editorial-date {
  transform: translateZ(100px) scale(1.06);
  transition: 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
@media (max-width: 575px) {
  .editorial-date {
    width: min(285px, 80vw);
    min-height: 86px;
    margin: 23px auto 24px;
  }
  .date-weekday,
  .date-month {
    font-size: 17px;
  }
  .date-day {
    font-size: 58px;
    margin-top: -10px;
  }
  .date-year {
    font-size: 10px;
    margin-top: 11px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .editorial-date .date-weekday,
  .editorial-date .date-day,
  .editorial-date .date-year,
  .editorial-date .date-month {
    animation: none !important;
    opacity: 1 !important;
    filter: none !important;
  }
}
