/* ==========================================================================
   Custom Font Setup
   ========================================================================== */
@font-face {
  font-family: 'Patung';
  src: url('Patung.ttf') format('truetype'),
    url('patung.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* ==========================================================================
   Global Reset & Base Setup
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  background-color: #0b0b0d;
  font-family: 'Inter Tight', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  touch-action: manipulation;
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

html {
  overscroll-behavior: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

img,
svg,
canvas {
  max-width: 100%;
}

/* ==========================================================================
   Full Screen Welcome Container (Landing Page Cover)
   ========================================================================== */
.welcome-container {
  position: relative;
  width: 100vw;
  height: var(--app-height, 100vh);
  height: 100svh;
  height: 100dvh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: url('background.png') no-repeat center center / cover;
  background-attachment: fixed;
  overflow: hidden;
}

/* Dark Tint Overlay */
.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.54) 0%, rgba(0, 0, 0, 0.46) 52%, rgba(0, 0, 0, 0.68) 100%);
  backdrop-filter: blur(2px) grayscale(1);
  -webkit-backdrop-filter: blur(2px) grayscale(1);
  z-index: 1;
}

/* Main Content Wrapper (Landing Cover Layout) */
.content-wrapper {
  position: relative;
  z-index: 2;
  width: min(92%, 1240px);
  max-width: 1240px;
  /* Aligned to Figma specs for mobile proportions */
  height: var(--app-height, 100vh);
  height: 100dvh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  text-align: center;
  color: #ffffff;
  padding: 0;
  /* Margins will handle spacing */
  overflow-y: hidden;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

/* Hide scrollbar while preserving scroll functionality */
.content-wrapper::-webkit-scrollbar {
  display: none;
}

.content-wrapper {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Header Section */
.header-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  margin-top: 8.5vh;
  /* 80px out of 940px */
}

.pre-header {
  display: grid;
  grid-template-columns: minmax(24px, 1fr) auto minmax(24px, 1fr);
  align-items: center;
  column-gap: clamp(16px, 3vw, 52px);
  width: 100%;
  max-width: 400px;
}

.pre-header .line {
  width: 100%;
  height: 1px;
  background-color: #fafafa;
}

.pre-header-text {
  font-family: 'Inter Tight', sans-serif;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.3em;
  color: #fafafa;
  margin: 0;
  white-space: nowrap;
  text-transform: uppercase;
}

.sub-heading {
  font-family: 'Patung', 'Brush Script MT', cursive;
  font-size: 34px;
  font-weight: normal;
  color: #fafafa;
  margin-top: 24px;
  margin-bottom: 0;
  line-height: 1;
}

/* Center Hero Section ("Tasya" • 3D Rings • "Fachrul") */
.hero-section-welcome {
  flex: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.names-row {
  position: relative;
  width: 100%;
  max-width: 400px;
  height: 306px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  flex-shrink: 0;
}

.groom-bride-name {
  font-family: 'Patung', 'Brush Script MT', cursive;
  font-size: clamp(76px, 23vw, 100px);
  font-weight: normal;
  color: #fafafa;
  line-height: 1;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
  white-space: nowrap;
  position: absolute;
}

.names-row .groom-bride-name:first-child {
  top: 40px;
  left: 20px;
}

.names-row .groom-bride-name:last-child {
  bottom: 10px;
  right: 20px;
}

/* 3D Rotating Ring Wrapper & Canvas */
.rings-wrapper {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: clamp(100px, 28vw, 126px);
  height: clamp(68px, 19vw, 84px);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 600px;
}

.rings-sequence-frame {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.5));
}

.wedding-date {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 6.4vh;
  /* 60px distance approx */
  margin-bottom: 0;
}

.wedding-date span {
  font-family: 'Inter Tight', sans-serif;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: #fafafa;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.date-dot {
  width: 6px;
  height: 6px;
  background-color: #fafafa;
  border-radius: 50%;
  display: block;
}

.guest-greeting {
  margin-top: clamp(22px, 3.2vh, 30px);
  padding: 0;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(24px, 1fr) auto minmax(24px, 1fr);
  align-items: center;
  column-gap: clamp(16px, 3vw, 52px);
  flex-shrink: 0;
  line-height: 1.2;
  color: #f5f0e8;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

.guest-salutation {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
  color: #fafafa;
  opacity: 50%;
}

.guest-line {
  width: 100%;
  height: 1px;
  background: rgba(250, 250, 250, 0.8);
}

.guest-title {
  margin-top: 1px;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.035em;
  color: #e3dfd9;
  opacity: 50%;
}

.guest-greeting .guest-name {
  grid-column: 1 / -1;
  margin: clamp(22px, 3vh, 28px) auto 0;
  width: 100%;
  max-width: 680px;
  padding-bottom: clamp(16px, 2.4vh, 22px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  font-family: 'Inter Tight', sans-serif;
  font-size: clamp(16px, 2vw, 18px);
  font-weight: 400;
  font-style: normal;
  line-height: 1.3;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.button-wrapper {
  margin-top: 20px;
  margin-bottom: auto;
  /* Pushes footer down */
  width: 100%;
  display: flex;
  justify-content: center;
}

.btn-open {
  background-color: #fafafa;
  color: #010101;
  font-family: 'Inter Tight', sans-serif;
  font-size: 12px;
  font-weight: 400;
  padding: 10px 20px;
  border-radius: 100px;
  border: 1px solid #010101;
  cursor: pointer;
  outline: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.btn-open:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
}

.btn-open:active {
  transform: translateY(1px) scale(0.98);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.footer-section {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  margin-top: 5vh;
  margin-bottom: 8.5vh;
}

.footer-logo-container {
  position: relative;
  width: clamp(32px, min(11vw, 6vh), 49px);
  aspect-ratio: 49 / 70;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  scale: 70%;
}

.footer-logo-ring1 {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0.35px solid #fafafa;
  border-radius: 999px;
}

.footer-logo-ring2 {
  position: absolute;
  width: 91.43%;
  height: 94%;
  border: 0.35px solid #fafafa;
  border-radius: 999px;
}

.footer-logo-icon {
  width: 48.27%;
  height: 47%;
  object-fit: contain;
  z-index: 2;
}

/* Wide cover follows the horizontal Figma composition. */
@media (min-width: 769px) {

  .pre-header,
  .names-row {
    max-width: 1100px;
  }

  .pre-header .line {
    max-width: none;
  }

  .names-row {
    height: clamp(150px, 23vh, 230px);
  }

  .groom-bride-name {
    font-size: clamp(76px, 7.2vw, 106px);
  }

  .names-row .groom-bride-name:first-child {
    top: 50%;
    left: 28%;
    transform: translateY(-50%);
  }

  .names-row .groom-bride-name:last-child {
    right: 24%;
    bottom: auto;
    top: 50%;
    transform: translateY(-50%);
  }

  .wedding-date {
    margin-top: clamp(20px, 3.5vh, 36px);
  }

  .guest-greeting {
    max-width: 1100px;
  }
}

.animate-fade-in {
  opacity: 0;
  transform: translateY(18px);
  animation: fadeInUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: calc(var(--delay, 1) * 0.15s);
}

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

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

/* ==========================================================================
   Homepage Layout (Figma Node 11835-15781 / 11835-6)
   ========================================================================== */
.homepage-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: var(--app-height, 100vh);
  height: 100dvh;
  background-color: #000000;
  overflow: hidden;
  z-index: 10;
}

/* --------------------------------------------------------------------------
   Desktop Split Screen Layout: Left Static Content Frame
   -------------------------------------------------------------------------- */
.static-content-frame {
  position: fixed;
  left: 0;
  top: 0;
  width: calc(100vw - 440px);
  height: var(--app-height, 100vh);
  height: 100dvh;
  overflow: hidden;
  z-index: 1;
  background-color: #050505;
}

.static-bg-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.static-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(4px);
  transform: scale(1.04);
}

.static-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
}

.static-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.85) 100%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2;
}

.static-ring-wrapper {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  width: clamp(140px, 15vw, 190px);
  display: flex;
  justify-content: center;
  align-items: center;
}

.static-ring-img {
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.65));
}

/* --------------------------------------------------------------------------
   Desktop Split Screen Layout: Right Main Scrollable Frame (Width: 440px)
   -------------------------------------------------------------------------- */
.main-content-frame {
  position: absolute;
  right: 0;
  top: 0;
  width: 440px;
  height: var(--app-height, 100vh);
  height: 100dvh;
  overscroll-behavior-y: contain;
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 2;
  background-color: #000000;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  box-shadow: -8px 0 30px rgba(0, 0, 0, 0.5);
}

.main-content-frame::-webkit-scrollbar {
  width: 5px;
}

.main-content-frame::-webkit-scrollbar-track {
  background: #0b0b0d;
}

.main-content-frame::-webkit-scrollbar-thumb {
  background: #25252b;
  border-radius: 4px;
}

.hp-section {
  position: relative;
  width: 100%;
  background-color: #000000;
}

/* ==========================================================================
   A. Homepage Hero Section (Figma Specs: 440px x 940px)
   ========================================================================== */
.hero-hp-section {
  height: 940px;
  min-height: 940px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 73.33px 20px;
  overflow: hidden;
  position: relative;
}

.hero-hp-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-hp-img {
  width: 100%;
  height: 100%;
  object-fit: cover;

  transform: scale(1.05);
}

.hero-hp-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0) 50%, #000000 100%);
}

.hero-hp-content {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  text-align: center;
}

.top-badge-outer {
  width: 38.5px;
  height: 55px;
  border: 0.275px solid #fafafa;
  border-radius: 33px;
  display: flex;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.top-badge-inner {
  width: 35.2px;
  height: 51.7px;
  border: 0.275px solid #fafafa;
  border-radius: 33px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.top-badge-icon {
  width: 18.58px;
  height: 25.85px;
  object-fit: contain;
}

.hero-names-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0px 0;
  width: 100%;
  max-width: 403px;
  position: relative;
}

.hero-name {
  font-family: 'Patung', 'Brush Script MT', cursive;
  font-size: 82.5px;
  font-weight: normal;
  color: #fafafa;
  line-height: 1;
  text-shadow: 0 4px 14px rgba(0, 0, 0, 0.6);
  margin: 0;
}

.name-fachrul {
  align-self: flex-start;
  margin-left: 18px;
}

.hero-ampersand-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(12.78deg);
  margin: -30px 0;
  height: 93px;
}

.hero-ampersand {
  font-family: 'Patung', 'Brush Script MT', cursive;
  font-size: 82.5px;
  color: #fafafa;
  text-shadow: 0 4px 14px rgba(0, 0, 0, 0.6);
  line-height: 1;
}

.name-tasya {
  align-self: flex-end;
  margin-right: 18px;
}

.hero-subtitle {
  font-family: 'Inter Tight', sans-serif;
  font-size: 12.83px;
  font-weight: 400;
  letter-spacing: 3.85px;
  text-transform: uppercase;
  color: #fafafa;
  margin-bottom: 20px;
  margin-top: 300px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

.scroll-down-outer {
  width: 38.5px;
  height: 55px;
  border: 0.275px solid #fafafa;
  border-radius: 33px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  animation: bounceDown 2.2s ease-in-out infinite;
}

.scroll-down-inner {
  width: 35.2px;
  height: 51.7px;
  border: 0.275px solid #fafafa;
  border-radius: 33px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.scroll-down-icon {
  width: 25.67px;
  height: 25.67px;
  object-fit: contain;
}

@keyframes bounceDown {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }

  40% {
    transform: translateY(6px);
  }

  60% {
    transform: translateY(3px);
  }
}

/* ==========================================================================
   B. Quran Verse Section (Figma Specs: 440px x 272px)
   ========================================================================== */
.ayat-hp-section {
  background-color: #000000;
  height: 272px;
  min-height: 272px;
  padding: 55px 36.67px;
  text-align: center;
  color: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.ayat-container {
  max-width: 366.67px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.ayat-bismillah {
  font-family: 'Inter Tight', sans-serif;
  font-style: italic;
  font-weight: 300;
  font-size: 12.83px;
  letter-spacing: -0.128px;
  color: #ffffff;
  margin-bottom: 14px;
}

.ayat-quote {
  font-family: 'Inter Tight', sans-serif;
  font-style: italic;
  font-weight: 300;
  font-size: 12.83px;
  line-height: 1.6;
  letter-spacing: -0.128px;
  color: #ffffff;
  margin-bottom: 18px;
  max-width: 366.67px;
}

.ayat-surah {
  font-family: 'Inter Tight', sans-serif;
  font-style: italic;
  font-weight: 400;
  font-size: 14.67px;
  letter-spacing: -0.147px;
  color: #ffffff;
}

/* ==========================================================================
   C & D. Bride & Groom Section Base Styling (Figma Specs)
   ========================================================================== */
.couple-hp-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #ffffff;
  overflow: hidden;
}

.bride-hp-section {
  height: 765px;
  min-height: 765px;
  padding: 129.25px 36.67px 45px 36.67px;
}

.groom-hp-section {
  height: 723px;
  min-height: 723px;
  padding: 128.33px 36.67px 45px 36.67px;
}

.couple-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.couple-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.couple-bg-overlay {
  position: absolute;
  inset: 0;
  background: #000000;
  opacity: 0.15;
  z-index: 1;
}

.couple-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 385px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.framed-photo-container {
  position: relative;
  width: 385px;
  height: 330px;
  margin-bottom: 45px;
}

.photo-border-box {
  width: 299.75px;
  height: 330px;
  border: 1px solid #fafafa;
  overflow: hidden;
  position: relative;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  margin-left: 85.25px;
}

.groom-photo-container .photo-border-box {
  margin-left: 0;
}

.couple-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.section-script-title {
  font-family: 'Patung', 'Brush Script MT', cursive;
  font-size: 45.83px;
  font-weight: normal;
  color: #ffffff;
  position: absolute;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.7);
  white-space: nowrap;
  pointer-events: none;
  z-index: 3;
}

.title-bride {
  top: 9.17px;
  left: 0;
}

.title-groom {
  top: 9.17px;
  right: 0;
}

.person-info-block {
  width: 100%;
  max-width: 366.67px;
}

.person-full-name {
  font-family: 'Inter Tight', sans-serif;
  font-style: italic;
  font-weight: 400;
  font-size: 27.5px;
  color: #ffffff;
  line-height: 1.3;
  letter-spacing: -0.275px;
  margin-bottom: 25px;
  display: flex;
  flex-direction: column;
}

.name-line2 {
  margin-left: 36.67px;
}

.groom-name-text {
  text-align: right;
  align-items: flex-end;
  font-size: 27.5px;
}

.parents-meta-label {
  display: flex;
  align-items: center;
  width: 100%;
  margin-bottom: 20px;
  gap: 10px;
}

.groom-meta-label {
  flex-direction: row-reverse;
}

.meta-label-text {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 300;
  font-size: 12.83px;
  letter-spacing: -0.257px;
  color: #ffffff;
  white-space: nowrap;
}

.meta-line {
  flex: 1;
  display: flex;
  align-items: center;
}

.line-svg-full {
  width: 100%;
  height: 1px;
  display: block;
}

.parents-names-layout {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-left: 8px;
  position: relative;
}

.parent-row {
  display: flex;
  align-items: baseline;
  gap: 14px;
}

.parent-row-father {
  align-items: flex-start;
}

.father-names {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.father-second-line {
  margin-left: 55px;
}

.parent-title {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 300;
  font-size: 12.83px;
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: -0.257px;
  min-width: 60px;
}

.parent-name {
  font-family: 'Inter Tight', sans-serif;
  font-style: italic;
  font-weight: 400;
  font-size: 18.33px;
  color: #ffffff;
  line-height: 1.2;
}

.parent-and-divider {
  font-family: 'Patung', 'Brush Script MT', cursive;
  font-size: 27.5px;
  color: rgba(255, 255, 255, 0.8);
  margin: -4px 0 -4px 36px;
}

.groom-divider {
  margin-left: 36px;
}

/* ==========================================================================
   E. The Date Section Styling (Figma Specs: Node 11835-15781 / 11835-201)
   ========================================================================== */
.collect-section {
  position: relative;
  isolation: isolate;
  background: #000;
}

.collect-bg {
  position: sticky;
  top: 0;
  width: 100%;
  height: var(--app-height, 100vh);
  height: 100dvh;
  margin-bottom: calc(-1 * var(--app-height, 100vh));
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.date-hp-section {
  position: relative;
  width: 100%;
  min-height: 800px;
  background-color: transparent;
  color: #fafafa;
  padding: 73.33px 18.33px;
  /* A non-scrolling overflow ancestor prevents the date capsule's sticky
     interaction in Safari and other mobile browsers. */
  overflow: visible;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Static Background Image Container for Date Section */
.bg-date-image-wrapper {
  position: absolute;
  inset: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.bg-date-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bg-date-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(1, 1, 1, 0.75) 0%, rgba(1, 1, 1, 0.35) 50%, rgba(1, 1, 1, 0.75) 100%);
  backdrop-filter: blur(1.5px);
  -webkit-backdrop-filter: blur(5.5px);
}

.date-content-wrapper {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 403.33px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Header & Countdown Block */
.date-header-block {
  width: 100%;
  text-align: center;
  margin-bottom: 100px;
}

.date-title-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 25px;
}

.date-title {
  font-family: 'Inter Tight', sans-serif;
  font-size: 14.67px;
  font-weight: 400;
  letter-spacing: 0;
  color: #fafafa;
  white-space: nowrap;
}

.date-header-line {
  flex: 1;
  max-width: 142.08px;
  height: 0.92px;
  background-color: #fafafa;
}

/* Countdown Timer */
.countdown-wrapper {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 8px;
  margin-bottom: 30px;
  width: 100%;
}

.cd-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 92.58px;
}

.cd-number {
  font-family: 'Patung', 'Brush Script MT', cursive;
  font-size: 45.83px;
  line-height: 1;
  color: #fafafa;
  text-transform: uppercase;
  text-align: center;
}

.cd-line {
  width: 100%;
  height: 0.46px;
  background-color: rgba(250, 250, 250, 0.4);
  margin: 8px 0;
}

.cd-label {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 300;
  font-size: 12.83px;
  letter-spacing: -0.257px;
  color: #fafafa;
  text-align: center;
}

.cd-colon {
  font-family: 'Patung', 'Brush Script MT', cursive;
  font-size: 45.83px;
  line-height: 1;
  color: #fafafa;
}

/* Save the Date Button Row */
.save-date-row {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: 14px;
}

.save-date-line {
  flex: 1;
  max-width: 111.83px;
  height: 0.46px;
  background-color: #fafafa;
}

.btn-save-date {
  background-color: #fafafa;
  color: #010101;
  font-family: 'Inter Tight', sans-serif;
  font-size: 11px;
  font-weight: 400;
  padding: 7.33px 18.33px;
  border-radius: 91.67px;
  border: 0.917px solid #fafafa;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.3s ease;
  user-select: none;
}

.btn-save-date:hover {
  background-color: transparent;
  color: #fafafa;
  transform: translateY(-1px);
}

.btn-save-date:active {
  transform: translateY(1px);
}

/* ==========================================================================
   Event Section Layout: Left Sticky Date Capsule & Right Event Date List
   ========================================================================== */
.event-section-wrapper {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  width: 100%;
  gap: 18px;
  position: relative;
  /* The wrapper's height is the lower boundary for the sticky capsule. */
  overflow: visible;
}

/* Sticky Date Capsule Container */
.date-capsule-sticky-container {
  position: -webkit-sticky;
  position: sticky;
  top: max(30px, env(safe-area-inset-top, 30px));
  flex-shrink: 0;
  width: 103.58px;
  z-index: 3;
  align-self: flex-start;
  height: fit-content;
  will-change: transform;
}

.date-capsule-card {
  width: 103.58px;
  height: 168.67px;
  position: relative;
}

.capsule-outer-border {
  width: 103.58px;
  height: 168.67px;
  border: 0.917px solid #fafafa;
  border-radius: 183.33px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4.5px;
}

.capsule-inner-border {
  width: 94.42px;
  height: 159.5px;
  border: 0.917px solid #fafafa;
  border-radius: 183.33px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.capsule-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
}

.capsule-day-name {
  font-family: 'Inter Tight', sans-serif;
  font-size: 14.67px;
  font-weight: 400;
  color: #fafafa;
  text-transform: uppercase;
  letter-spacing: 0;
}

.capsule-divider {
  width: 48.97px;
  height: 0.94px;
  background-color: #fafafa;
}

.capsule-day-num {
  font-family: 'Patung', 'Brush Script MT', cursive;
  font-size: 49.5px;
  line-height: 1;
  color: #fafafa;
  text-transform: uppercase;
}

.capsule-month-name {
  font-family: 'Inter Tight', sans-serif;
  font-size: 14.67px;
  font-weight: 400;
  color: #fafafa;
  text-transform: uppercase;
}

/* Right Column Event List */
.event-date-list {
  flex: 1;
  max-width: 281.42px;
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.event-card-item {
  width: 100%;
  display: flex;
  flex-direction: column;
}

.event-card-header {
  display: flex;
  align-items: center;
  width: 100%;
  margin-bottom: 16px;
  gap: 12px;
}

.event-type-title {
  font-family: 'Inter Tight', sans-serif;
  font-size: 14.67px;
  font-weight: 400;
  color: rgba(250, 250, 250, 0.3);
  text-transform: uppercase;
  letter-spacing: 0;
  white-space: nowrap;
}

.event-header-line {
  flex: 1;
  height: 0.46px;
  background-color: rgba(250, 250, 250, 0.3);
}

.event-card-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-left: 1px;
}

.event-time-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 10px;
}

.event-time-value {
  font-family: 'Patung', 'Brush Script MT', cursive;
  font-size: 45.83px;
  line-height: 1;
  color: #fafafa;
}

.event-time-tz {
  font-family: 'Inter Tight', sans-serif;
  font-size: 12.83px;
  font-weight: 400;
  color: rgba(250, 250, 250, 0.3);
  text-transform: uppercase;
}

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

.event-venue-name {
  font-family: 'Inter Tight', sans-serif;
  font-size: 18.33px;
  font-weight: 400;
  color: #fafafa;
  margin-bottom: 4px;
  line-height: 1.25;
}

.event-venue-address {
  font-family: 'Inter Tight', sans-serif;
  font-style: italic;
  font-weight: 300;
  font-size: 12.83px;
  color: rgba(250, 250, 250, 0.5);
  line-height: 1.4;
  letter-spacing: -0.257px;
}

.btn-location {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #fafafa;
  color: #010101;
  font-family: 'Inter Tight', sans-serif;
  font-size: 11px;
  font-weight: 400;
  padding: 7.33px 18.33px;
  border-radius: 91.67px;
  border: 0.917px solid #fafafa;
  text-decoration: none;
  transition: all 0.3s ease;
  user-select: none;
}

.btn-location:hover {
  background-color: transparent;
  color: #fafafa;
  transform: translateY(-1px);
}

.btn-location:active {
  transform: translateY(1px);
}

/* ==========================================================================
   Responsive Mobile Setup (max-width: 768px, 480px, 390px, 375px, 320px)
   ========================================================================== */
@media (max-width: 768px) {
  .welcome-container {
    /* `fixed` backgrounds repaint incorrectly during scroll in iOS Safari. */
    background-attachment: scroll;
  }

  .static-content-frame {
    display: none !important;
  }

  .main-content-frame {
    position: relative;
    right: auto;
    left: 0;
    width: 100% !important;
    max-width: 100% !important;
    box-shadow: none;
    padding-left: env(safe-area-inset-left, 0px);
    padding-right: env(safe-area-inset-right, 0px);
  }

  .framed-photo-container {
    width: 100%;
    max-width: 385px;
  }

  .title-bride {
    left: 0;
    font-size: clamp(2.2rem, 10vw, 3rem);
  }

  .title-groom {
    right: 0;
    font-size: clamp(2.2rem, 10vw, 3rem);
  }

  .person-full-name {
    font-size: clamp(1.4rem, 6vw, 1.72rem);
  }
}

@media (max-width: 480px) {
  .content-wrapper {
    width: 100%;
    padding-top: env(safe-area-inset-top, 0px);
    padding-right: max(16px, env(safe-area-inset-right, 16px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
    padding-left: max(16px, env(safe-area-inset-left, 16px));
  }

  .header-section {
    margin-top: max(6.6vh, env(safe-area-inset-top, 0px));
  }

  .sub-heading {
    margin-top: clamp(14px, 2.5vh, 22px);
    font-size: clamp(27px, 8vw, 34px);
  }

  .hero-section-welcome {
    min-height: 0;
  }

  .pre-header .line {
    width: 100%;
    max-width: none;
  }

  .pre-header {
    grid-template-columns: minmax(36px, 1fr) auto minmax(36px, 1fr);
    column-gap: clamp(14px, 6vw, 28px);
  }

  .pre-header-text {
    font-size: 12px;
    letter-spacing: 0.3em;
    margin: 0;
  }

  .names-row {
    height: clamp(208px, 34vh, 276px);
    gap: 0.3rem;
  }

  .groom-bride-name {
    font-size: clamp(76px, 22vw, 96px);
  }

  .wedding-date {
    gap: clamp(12px, 4.4vw, 20px);
    margin-top: clamp(14px, 2.5vh, 24px);
  }

  .wedding-date span {
    font-size: clamp(11px, 3.2vw, 13px);
  }

  .guest-greeting {
    grid-template-columns: minmax(36px, 1fr) auto minmax(36px, 1fr);
    column-gap: clamp(14px, 6vw, 28px);
    margin-top: clamp(19px, 2.8vh, 26px);
  }

  .guest-salutation,
  .guest-title {
    font-size: clamp(9px, 2.65vw, 11px);
  }

  .guest-greeting .guest-name {
    margin-top: clamp(18px, 2.7vh, 24px);
    font-size: clamp(14px, 4vw, 16px);
  }

  .button-wrapper {
    margin-top: clamp(22px, 3.4vh, 30px);
  }

  .btn-open {
    font-size: 11px;
    padding: 8px 18px;
  }

  .footer-section {
    margin-top: clamp(22px, 3.3vh, 30px);
    margin-bottom: max(6.2vh, env(safe-area-inset-bottom, 0px));
  }

  .event-section-wrapper {
    gap: 12px;
  }

  .hero-hp-section {
    padding-left: max(16px, env(safe-area-inset-left, 16px));
    padding-right: max(16px, env(safe-area-inset-right, 16px));
  }

  .date-hp-section,
  .gift-hp-section {
    padding-left: max(14px, env(safe-area-inset-left, 14px));
    padding-right: max(14px, env(safe-area-inset-right, 14px));
  }

  .date-capsule-sticky-container {
    width: 90px;
  }

  .date-capsule-card,
  .capsule-outer-border {
    width: 90px;
    height: 150px;
  }

  .capsule-inner-border {
    width: 82px;
    height: 142px;
  }

  .capsule-day-num {
    font-size: 40px;
  }

  .cd-unit {
    width: auto;
    min-width: 0;
    flex: 1 1 0;
  }

  .cd-number,
  .cd-colon {
    font-size: clamp(29px, 9vw, 35px);
  }

  .countdown-wrapper {
    gap: clamp(3px, 1.5vw, 8px);
  }
}

@media (max-width: 375px) {
  .content-wrapper {
    padding-right: max(15px, env(safe-area-inset-right, 15px));
    padding-left: max(15px, env(safe-area-inset-left, 15px));
  }

  .header-section {
    margin-top: max(6vh, env(safe-area-inset-top, 0px));
  }

  .pre-header-text {
    font-size: 11px;
    letter-spacing: 0.24em;
    margin: 0;
  }

  .pre-header .line {
    width: 100%;
    min-width: 0;
    max-width: none;
  }

  .pre-header {
    grid-template-columns: minmax(32px, 1fr) auto minmax(32px, 1fr);
    column-gap: 14px;
  }

  .sub-heading {
    margin-top: clamp(12px, 2vh, 16px);
    font-size: 29px;
  }

  .names-row {
    height: clamp(190px, 31vh, 245px);
  }

  .groom-bride-name {
    font-size: clamp(66px, 20.5vw, 77px);
  }

  .names-row .groom-bride-name:first-child {
    top: 22px;
    left: 5px;
  }

  .names-row .groom-bride-name:last-child {
    right: 5px;
    bottom: 4px;
  }

  .rings-wrapper {
    width: 92px;
    height: 62px;
  }

  .wedding-date {
    gap: 12px;
    margin-top: clamp(12px, 2vh, 16px);
  }

  .wedding-date span {
    font-size: 11px;
    letter-spacing: 1.25px;
  }

  .date-dot {
    width: 4px;
    height: 4px;
  }

  .guest-greeting {
    grid-template-columns: minmax(32px, 1fr) auto minmax(32px, 1fr);
    column-gap: 14px;
    margin-top: clamp(16px, 2.5vh, 20px);
  }

  .guest-salutation,
  .guest-title {
    font-size: 9px;
  }

  .guest-greeting .guest-name {
    margin-top: clamp(15px, 2.2vh, 18px);
    max-width: 315px;
    font-size: 14px;
  }

  .button-wrapper {
    margin-top: clamp(18px, 2.8vh, 23px);
  }

  .btn-open {
    min-height: 32px;
    padding: 7px 17px;
    font-size: 10px;
  }

  .footer-section {
    margin-top: clamp(18px, 2.8vh, 23px);
    margin-bottom: max(5vh, env(safe-area-inset-bottom, 0px));
  }

  /* Main invitation: scale the 440px Figma canvas to a 375px viewport. */
  .main-content-frame {
    width: 100%;
    max-width: 375px;
    margin: 0 auto;
  }

  .hero-hp-section {
    height: 100dvh;
    min-height: 667px;
    max-height: 801px;
    padding: 52px 17px;
  }

  .hero-hp-img {
    transform: scale(1.03);
  }

  .top-badge-outer,
  .scroll-down-outer {
    width: 33px;
    height: 47px;
  }

  .top-badge-inner,
  .scroll-down-inner {
    width: 30px;
    height: 44px;
  }

  .top-badge-icon {
    width: 16px;
    height: 22px;
  }

  .hero-names-group {
    max-width: 344px;
  }

  .name-fachrul {
    margin-left: 15px;
  }

  .name-tasya {
    margin-right: 15px;
  }

  .hero-ampersand-wrapper {
    height: 79px;
    margin: -26px 0;
  }

  .hero-subtitle {
    margin-top: clamp(190px, 34vh, 255px);
    margin-bottom: 17px;
    font-size: 11px;
    letter-spacing: 3.2px;
  }

  .scroll-down-icon {
    width: 22px;
    height: 22px;
  }

  .ayat-hp-section {
    height: auto;
    min-height: 232px;
    padding: 40px 31px;
  }

  .ayat-container {
    max-width: 313px;
  }

  .ayat-bismillah,
  .ayat-quote {
    font-size: 11px;
  }

  .ayat-quote {
    margin-bottom: 15px;
    line-height: 1.55;
  }

  .ayat-surah {
    font-size: 12.5px;
  }

  .bride-hp-section {
    height: 652px;
    min-height: 652px;
    padding: 110px 31px 38px;
  }

  .groom-hp-section {
    height: 617px;
    min-height: 617px;
    padding: 109px 31px 38px;
  }

  .couple-content,
  .person-info-block {
    max-width: 313px;
  }

  .framed-photo-container {
    width: 343px;
    height: 281px;
    margin-bottom: 38px;
  }

  .photo-border-box {
    width: 255px;
    height: 281px;
    margin-left: 88px;
  }

  .groom-photo-container .photo-border-box {
    margin-left: 0;
  }

  .section-script-title {
    top: 8px;
    font-size: 39px;
  }

  .person-full-name,
  .groom-name-text {
    margin-bottom: 21px;
    font-size: 23.5px;
  }

  .name-line2 {
    margin-left: 31px;
  }

  .parents-meta-label {
    margin-bottom: 17px;
  }

  .meta-label-text,
  .parent-title {
    font-size: 11px;
  }

  .parent-title {
    min-width: 61px;
  }

  .parent-name {
    font-size: 15.5px;
  }

  .parent-and-divider {
    margin-left: 31px;
    font-size: 23.5px;
  }

  .father-second-line {
    margin-left: 47px;
  }

  .bride-hp-section .parents-names-layout {
    padding-left: 94px;
  }

  .groom-hp-section .parents-names-layout {
    padding-left: 0;
  }

  .bride-hp-section .parent-and-divider,
  .groom-hp-section .parent-and-divider {
    margin-left: 0;
  }

  .date-hp-section {
    min-height: 682px;
    padding: 62px 15px;
  }

  .date-content-wrapper,
  .moment-header-block,
  .gift-content-wrapper {
    max-width: 344px;
  }

  .date-header-block {
    margin-bottom: 70px;
  }

  .date-title-row {
    margin-bottom: 21px;
  }

  .date-title,
  .moment-title {
    font-size: 12.5px;
  }

  .countdown-wrapper {
    margin-bottom: 25px;
  }

  .cd-number,
  .cd-colon {
    font-size: 39px;
  }

  .cd-label,
  .event-time-tz,
  .event-venue-address {
    font-size: 11px;
  }

  .event-date-list {
    gap: 30px;
  }

  .event-type-title {
    font-size: 12.5px;
  }

  .event-time-value {
    font-size: 39px;
  }

  .event-venue-name {
    font-size: 15.5px;
  }

  .moment-header-block {
    top: 62px;
  }

  .moment-photo-stack {
    max-width: 375px;
    height: 350px;
    transform: scale(.88);
  }

  .gift-hp-section {
    padding: 45px 15px;
  }

  .gift-header {
    top: auto;
  }

  .gift-account-number {
    font-size: 18px;
  }

  .gift-account-name,
  .gift-address {
    font-size: 17px;
  }

  .wishes-hp-section {
    min-height: 812px;
  }

  .wishes-content {
    max-width: 375px;
    padding: 55px 15px 49px;
  }

  .wishes-form,
  .wishes-list {
    padding-right: 12px;
    padding-left: 12px;
  }

  .hero-name {
    font-size: 70px;
  }

  .hero-ampersand {
    font-size: 70px;
  }

  .event-section-wrapper {
    gap: 9px;
  }

  .date-capsule-sticky-container,
  .date-capsule-card,
  .capsule-outer-border {
    width: 78px;
  }

  .capsule-inner-border {
    width: 70px;
  }
}

/* Short mobile viewports and landscape phones. */
@media (max-height: 600px) and (max-width: 932px) {
  .header-section {
    margin-top: max(14px, env(safe-area-inset-top, 0px));
  }

  .footer-section {
    margin-bottom: max(12px, env(safe-area-inset-bottom, 0px));
  }

  .sub-heading {
    margin-top: 6px;
    font-size: 25px;
  }

  .names-row {
    height: 150px;
  }

  .groom-bride-name {
    font-size: clamp(60px, 18vw, 76px);
  }

  .names-row .groom-bride-name:first-child {
    top: 4px;
  }

  .names-row .groom-bride-name:last-child {
    bottom: 0;
  }

  .wedding-date,
  .button-wrapper {
    margin-top: 10px;
  }

  .footer-section {
    margin-top: 10px;
  }

  .guest-greeting {
    margin-top: 10px;
  }

  .guest-greeting .guest-name {
    margin-top: 8px;
  }

  .moment-header-block {
    top: max(24px, env(safe-area-inset-top, 24px));
  }

  .gift-header {
    top: auto;
  }

  .moment-photo-stack {
    height: min(68dvh, 340px);
  }

  .pict-frame {
    width: 135px;
    height: 180px;
  }

  .lightbox-close {
    top: max(4px, env(safe-area-inset-top, 4px));
    right: max(4px, env(safe-area-inset-right, 4px));
  }
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   F. Moment Section (Scroll Stack & Expand)
   ========================================================================== */
.moment-hp-section {
  position: relative;
  width: 100%;
  height: 200vh;
  /* High height to allow for scroll duration */
  background-color: transparent;
  color: #fafafa;
}

.moment-sticky-container {
  position: sticky;
  top: 0;
  width: 100%;
  height: var(--app-height, 100vh);
  height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.gift-hp-section {
  position: relative;
  z-index: 1;
  min-height: 0vh;
  padding: 23.33px 18.33px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: #fafafa;
}

.gift-content-wrapper {
  width: 100%;
  max-width: 403.33px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.moment-bg-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.moment-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.moment-bg-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.85) 100%);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.moment-header-block {
  position: absolute;
  top: 73.33px;
  width: 100%;
  max-width: 403.33px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  z-index: 2;
  transition: opacity 0.3s ease;
}

.gift-header {
  position: relative;
  top: auto;
  margin-bottom: 20px;
}

.moment-title {
  font-family: 'Inter Tight', sans-serif;
  font-size: 14.67px;
  font-weight: 400;
  letter-spacing: 0;
  color: #fafafa;
  white-space: nowrap;
}

.moment-header-line {
  flex: 1;
  max-width: 126.5px;
  height: 0.92px;
  background-color: #fafafa;
}

.moment-photo-stack {
  position: relative;
  width: 100%;
  max-width: 440px;
  height: 400px;
  z-index: 3;
}

.pict-frame {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 180px;
  height: 240px;
  background-color: #fafafa;
  padding: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);

  --p: 0;
  opacity: calc(var(--p) * 4);
  /* Fades in fast */

  transform: translate(calc(-50% + var(--tx) * var(--p)),
      calc(-50% + var(--ty) * var(--p) + (1 - var(--p)) * 60vh)) rotate(calc(var(--trot) * var(--p) + var(--irot) * (1 - var(--p)))) scale(calc(1 + (1 - var(--p)) * 0.4));
}

.pict-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

/* Individual Picture Positions (Target offset and rotation) */
.pict-01 {
  --tx: 30px;
  --ty: 80px;
  --trot: -4deg;
  --irot: -12deg;
  z-index: 9;
}

.pict-02 {
  --tx: -40px;
  --ty: 60px;
  --trot: 8deg;
  --irot: 10deg;
  z-index: 8;
}

.pict-03 {
  --tx: 25px;
  --ty: -15px;
  --trot: 3deg;
  --irot: -5deg;
  z-index: 7;
}

.pict-04 {
  --tx: 70px;
  --ty: 30px;
  --trot: -5deg;
  --irot: 7deg;
  z-index: 6;
}

.pict-05 {
  --tx: -85px;
  --ty: 5px;
  --trot: 2deg;
  --irot: -8deg;
  z-index: 5;
}

.pict-06 {
  --tx: -35px;
  --ty: -35px;
  --trot: -10deg;
  --irot: 9deg;
  z-index: 4;
}

.pict-07 {
  --tx: 65px;
  --ty: -60px;
  --trot: 6deg;
  --irot: -6deg;
  z-index: 3;
}

.pict-08 {
  --tx: -65px;
  --ty: -85px;
  --trot: -4deg;
  --irot: 11deg;
  z-index: 2;
}

.pict-09 {
  --tx: 10px;
  --ty: -110px;
  --trot: 4deg;
  --irot: -9deg;
  z-index: 1;
}

.moment-footer-block {
  position: absolute;
  bottom: 50px;
  width: 100%;
  max-width: 404px;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 4;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
}

.moment-footer-block.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.moment-gift-text {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 300;
  font-size: 12.83px;
  line-height: 1.5;
  text-align: center;
  color: #ffffff;
  letter-spacing: -0.128px;
  margin-bottom: 25px;
}

.btn-gift {
  border-radius: 91.67px;
  background-color: #fafafa;
  color: #010101;
  border: 0.917px solid #fafafa;
  font-size: 11px;
  padding: 7.33px 18.33px;
  cursor: pointer;
  transition: all 0.3s ease;
  gap: 10px;
}

.btn-gift:hover {
  background-color: transparent;
  color: #fafafa;
  transform: translateY(-1px);
}

.gift-toggle-icon {
  width: 6px;
  height: 6px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.3s ease;
}

.btn-gift[aria-expanded="true"] .gift-toggle-icon {
  transform: rotate(225deg) translate(-2px, -2px);
}

.gift-dropdown {
  width: 100%;
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  margin-top: 0;
  transition: grid-template-rows 0.45s ease, opacity 0.3s ease, margin-top 0.45s ease;
}

.gift-dropdown.open {
  grid-template-rows: 1fr;
  opacity: 1;
  margin-top: 22px;
}

.gift-dropdown-inner {
  min-height: 0;
  overflow: hidden;
  text-align: left;
  border-top: 1px solid rgba(250, 250, 250, 0.9);

  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 0 24px;
  transition: padding 0.45s ease;
}

.gift-dropdown.open .gift-dropdown-inner {
  padding: 18px 24px 24px;
}

.gift-detail-row {
  padding: 18px 0 24px;
  border-bottom: 1px solid rgba(250, 250, 250, 0.3);
}

.gift-detail-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.gift-bank-heading,
.gift-bank-footer,
.gift-address-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.gift-detail-label {
  font-family: 'Inter Tight', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: rgba(250, 250, 250, 0.55);
  white-space: nowrap;
}

.gift-account-number {
  font-family: 'Inter Tight', sans-serif;
  font-size: clamp(18px, 24px);
  font-weight: 400;
  color: #fafafa;
  white-space: nowrap;
}

.gift-bank-footer {
  margin-top: 10px;
}

.gift-account-name {
  font-family: 'Inter Tight', sans-serif;
  font-size: clamp(18px, 22px);
  font-style: italic;
  font-weight: 300;
  color: #fafafa;
}

.gift-copy-btn {
  flex: 0 0 auto;
  padding: 6px 14px;
  border: 0;
  border-radius: 999px;
  background: #fafafa;
  color: #010101;
  font: 400 11px 'Inter Tight', sans-serif;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.gift-copy-btn:hover {
  transform: translateY(-1px);
  background: #e5e5e5;
}

.gift-address-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.gift-address-content {
  width: 100%;
  align-items: flex-start;
}

.gift-address {
  margin: 0;
  max-width: 235px;
  text-align: right;
  font-family: 'Inter Tight', sans-serif;
  font-size: clamp(18px, 22px);
  font-style: normal;
  font-weight: 400;
  line-height: 1.35;
  color: #fafafa;
}

.gift-address-copy {
  margin-top: -28px;
}

@media (max-width: 390px) {
  .gift-dropdown.open .gift-dropdown-inner {
    padding-right: 18px;
    padding-left: 18px;
  }

  .gift-bank-heading,
  .gift-bank-footer {
    gap: 8px;
  }

  .gift-detail-label {
    font-size: 12px;
  }
}

/* ==========================================================================
   Lightbox Gallery Modal
   ========================================================================== */
.lightbox-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-slider {
  display: flex;
  width: 100%;
  height: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

/* Hide scrollbar for slider */
.lightbox-slider::-webkit-scrollbar {
  display: none;
}

.lightbox-slider {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.lightbox-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  scroll-snap-align: center;
  padding: 20px;
}

.lightbox-slide img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.5);
  user-select: none;
}

.lightbox-close {
  position: absolute;
  top: 25px;
  right: 25px;
  background: none;
  border: none;
  color: #fafafa;
  font-size: 40px;
  cursor: pointer;
  z-index: 10;
  line-height: 1;
  padding: 10px;
  -webkit-tap-highlight-color: transparent;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  color: #fafafa;
  border: none;
  font-size: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: background 0.3s ease;
  -webkit-tap-highlight-color: transparent;
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.2);
}

.lightbox-prev {
  left: 15px;
}

.lightbox-next {
  right: 15px;
}

@media (max-width: 768px) {

  .lightbox-prev,
  .lightbox-next {
    display: none;
    /* Rely on swiping for mobile */
  }
}

@media (orientation: landscape) and (max-height: 500px) {
  .welcome-container {
    min-height: 520px;
  }

  .content-wrapper {
    min-height: 520px;
  }
}

/* ==========================================================================
   Wishes Section
   ========================================================================== */
.wishes-hp-section {
  min-height: 940px;
  color: #fafafa;
  background: #050705 url('wish_bg.png') center / cover no-repeat;
  isolation: isolate;
}

.wishes-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(0, 0, 0, .74) 0%, rgba(0, 0, 0, .28) 40%, rgba(0, 0, 0, .82) 100%);
}

.wishes-content {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  padding: 65px 16px 58px;
}

.wishes-heading {
  display: grid;
  grid-template-columns: minmax(30px, 1fr) auto minmax(30px, 1fr);
  align-items: center;
  gap: 22px;
}

.wishes-heading h2 {
  margin: 0;
  font: 400 12px/1 'Inter Tight', sans-serif;
}

.wishes-heading-line,
.wishes-pagination-line,
.wish-submit-line {
  display: block;
  height: 1px;
  background: rgba(250, 250, 250, .82);
}

.wishes-form {
  padding: 28px 14px 0;
}

.wish-field {
  position: relative;
  padding: 14px 0 16px;
  border-bottom: 1px solid rgba(250, 250, 250, .34);
}

.wish-field label {
  display: block;
  color: rgba(250, 250, 250, .55);
  font: 300 13px/1.25 'Inter Tight', sans-serif;
  pointer-events: none;
}

.wish-field input,
.wish-field textarea {
  display: block;
  width: 100%;
  margin-top: 7px;
  padding: 0;
  border: 0;
  outline: 0;
  resize: none;
  background: transparent;
  color: #fafafa;
  font: 400 14px/1.45 'Inter Tight', sans-serif;
}

.wish-field input {
  height: 20px;
}

.wish-field textarea {
  height: auto;
  min-height: 61px;
  overflow: hidden;
}

.wish-field:focus-within {
  border-bottom-color: #fafafa;
}

.wish-submit-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 28px;
  padding-top: 11px;
}

.wish-submit {
  min-width: 52px;
  padding: 7px 15px;
  border: 0;
  border-radius: 999px;
  background: #fafafa;
  color: #111;
  font: 400 10px/1 'Inter Tight', sans-serif;
  cursor: pointer;
}

.wish-submit:disabled {
  opacity: .55;
  cursor: wait;
}

.wish-form-status {
  min-height: 15px;
  margin: 6px 0 0;
  text-align: right;
  font: 300 10px/1.4 'Inter Tight', sans-serif;
}

.your-wishes-heading {
  margin-top: 35px;
  gap: 25px;
}

.wishes-list {
  padding: 16px 14px 0;
}

.wish-card {
  display: grid;
  grid-template-columns: 27px minmax(0, 1fr);
  gap: 12px;
  padding: 15px 0 20px;
  border-bottom: 1px solid rgba(250, 250, 250, .25);
}

.wish-avatar {
  position: relative;
  display: block;
  width: 25px;
  height: 25px;
  margin-top: 1px;
  border-radius: 50%;
  background: #fafafa;
}

.wish-avatar::before {
  content: '';
  position: absolute;
  top: 5px;
  left: 9px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #5f6559;
}

.wish-avatar::after {
  content: '';
  position: absolute;
  left: 6px;
  bottom: 4px;
  width: 13px;
  height: 7px;
  border-radius: 8px 8px 5px 5px;
  background: #5f6559;
}

.wish-copy h3 {
  margin: 0 0 8px;
  font: 500 15px/1.15 'Inter Tight', sans-serif;
}

.wish-copy p {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: 300 11px/1.15 'Inter Tight', sans-serif;
}

.wishes-empty {
  margin: 30px 14px;
  text-align: center;
  font: 300 12px/1.4 'Inter Tight', sans-serif;
}

.wishes-pagination {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 22px;
  margin-top: 28px;
}

.wishes-page-controls {
  display: flex;
  align-items: center;
  gap: 14px;
  font: 400 12px/1 'Inter Tight', sans-serif;
}

.wishes-page-controls button {
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #fafafa;
  color: #222;
  font: 700 11px/1 sans-serif;
  cursor: pointer;
}

.wishes-page-controls button:disabled {
  opacity: .42;
  cursor: default;
}

@media (max-width: 375px) {
  .wishes-content {
    padding-right: 15px;
    padding-left: 15px;
  }

  .wishes-heading {
    gap: 18px;
  }

  .wishes-form,
  .wishes-list {
    padding-right: 14px;
    padding-left: 14px;
  }

  .your-wishes-heading {
    gap: 20px;
  }
}

/* ==========================================================================
   Thanks / Closing Section
   ========================================================================== */
.thanks-hp-section {
  container-type: inline-size;
  aspect-ratio: 1125 / 2436;
  min-height: 0;
  overflow: hidden;
  color: #fafafa;
  background: #030403 url('thanks_bg.png') center / 100% 100% no-repeat;
}

.thanks-content {
  position: absolute;
  inset: 0;
  text-align: center;
}

.thanks-heading,
.thanks-family-heading {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.thanks-line {
  display: block;
  height: 1px;
  background: rgba(250, 250, 250, .88);
}

.thanks-heading {
  position: absolute;
  top: 7.45%;
  right: 4.15%;
  left: 4.15%;
  gap: 5.1cqw;
}

.thanks-heading h2 {
  margin: 0;
  font: 400 3.25cqw/1 'Inter Tight', sans-serif;
}

.thanks-message {
  position: absolute;
  top: 12.85%;
  right: 4%;
  left: 4%;
}

.thanks-message>p:first-child {
  margin: 0;
  color: rgba(250, 250, 250, .9);
  font: 300 3.08cqw/1.38 'Inter Tight', sans-serif;
  letter-spacing: -.02em;
}

.thanks-script,
.thanks-names {
  font-family: 'Patung', 'Brush Script MT', cursive;
  font-weight: 400;
  color: #fafafa;
}

.thanks-script {
  margin: 4.7cqw 0 0;
  font-size: 14.2cqw;
  line-height: .9;
}

.thanks-family {
  position: absolute;
  top: 62.65%;
  right: 4.6%;
  left: 4.6%;
}

.thanks-family-heading {
  gap: 4.8cqw;
}

.thanks-family-heading p {
  margin: 0;
  white-space: nowrap;
  color: rgba(250, 250, 250, .72);
  font: 300 3.08cqw/1 'Inter Tight', sans-serif;
}

.thanks-names {
  margin: 6.1cqw 0 0;
  white-space: nowrap;
  font-size: 12.1cqw;
  line-height: .9;
}

.thanks-cats {
  display: block;
  width: 68.5%;
  height: auto;
  margin: 7.2cqw auto 0;
}

.thanks-credit {
  position: absolute;
  right: 0;
  bottom: 4.8%;
  left: 0;
  margin: 0;
  font: 400 3.05cqw/1 'Inter Tight', sans-serif;
}

.thanks-credit span {
  display: inline-block;
  margin: 0 .18em;
  font-size: .95em;
}

/* Floating background-music control */
.music-toggle {
  position: fixed;
  right: max(14px, env(safe-area-inset-right, 14px));
  bottom: max(14px, env(safe-area-inset-bottom, 14px));
  z-index: 10000;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid rgba(250, 250, 250, .72);
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  background: rgba(8, 8, 8, .48);
  color: #fafafa;
  box-shadow: 0 3px 14px rgba(0, 0, 0, .25);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  cursor: pointer;
  transition: opacity .25s ease, background-color .2s ease, transform .2s ease;
  -webkit-tap-highlight-color: transparent;
}

.music-toggle.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.music-toggle:hover {
  background: rgba(8, 8, 8, .72);
}

.music-toggle:active {
  transform: scale(.94);
}

.music-toggle-icon,
.music-toggle-icon::after {
  display: block;
  width: 3px;
  height: 11px;
  border-radius: 1px;
  background: currentColor;
}

.music-toggle-icon {
  position: relative;
  margin-right: 5px;
}

.music-toggle-icon::after {
  content: '';
  position: absolute;
  left: 6px;
  top: 0;
}

.music-toggle.is-paused .music-toggle-icon {
  width: 0;
  height: 0;
  margin: 0 0 0 2px;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 9px solid currentColor;
  border-radius: 0;
  background: transparent;
}

.music-toggle.is-paused .music-toggle-icon::after {
  display: none;
}

@supports not (font-size: 1cqw) {
  .thanks-heading h2 {
    font-size: 13px;
  }

  .thanks-message>p:first-child,
  .thanks-family-heading p,
  .thanks-credit {
    font-size: 12px;
  }

  .thanks-script {
    margin-top: 18px;
    font-size: 55px;
  }

  .thanks-names {
    margin-top: 24px;
    font-size: 47px;
  }

  .thanks-cats {
    margin-top: 28px;
  }
}
