:root {
  --ink: #2d241f;
  --muted: #75655c;
  --cream: #fffaf0;
  --paper: #f7eddc;
  --terra: #a8553f;
  --terra2: #7c392d;
  --sage: #6f7f62;
  --gold: #c99b51;
  --line: rgba(73, 53, 42, .16);
  --hero-image: none;
  --penutup-image: none;
  --detail-image: none;
  --display: "Fraunces", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif
}

* {
  box-sizing: border-box
}

html {
  scroll-behavior: smooth
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: var(--sans);
  overflow-x: hidden
}

body.is-locked {
  overflow: hidden
}

body.is-locked #invitation-content,
body.is-locked .floating-nav,
body.is-locked .quick-actions,
body.is-locked .back-portfolio {
  visibility: hidden
}

a {
  color: inherit;
  text-decoration: none
}

button,
input,
textarea,
select {
  font: inherit
}

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

img {
  display: block;
  max-width: 100%
}

section[id] {
  scroll-margin-top: 92px
}

::selection {
  color: #fff;
  background: var(--terra)
}

.demo-ribbon {
  position: fixed;
  z-index: 100;
  top: 13px;
  left: 13px;
  padding: 8px 11px;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 999px;
  color: #fff;
  background: rgba(43, 30, 25, .66);
  backdrop-filter: blur(12px);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .13em
}

.cover {
  position: fixed;
  z-index: 90;
  inset: 0;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 34px 20px;
  color: #fff;
  transition: opacity .8s, visibility .8s
}

body.is-open .cover {
  opacity: 0;
  visibility: hidden;
  pointer-events: none
}

.cover-image {
  position: absolute;
  inset: -3%;
  background-image: var(--hero-image);
  background-size: cover;
  background-position: center 35%;
  animation: slow-zoom 18s ease-in-out alternate infinite
}

.cover-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(32, 21, 16, .35), rgba(42, 22, 17, .78)), radial-gradient(circle at center, transparent 15%, rgba(26, 16, 12, .34))
}

.cover-card {
  position: relative;
  width: min(570px, 100%);
  padding: 48px 34px 34px;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 180px 180px 34px 34px;
  background: rgba(71, 47, 37, .2);
  backdrop-filter: blur(6px);
  text-align: center;
  box-shadow: 0 40px 100px rgba(0, 0, 0, .3)
}

.cover-card:before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(255, 255, 255, .17);
  border-radius: inherit;
  pointer-events: none
}

.kicker,
.eyebrow {
  margin: 4;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: .25em;
  text-transform: uppercase
}

.gunungan-mark {
  width: 55px;
  height: 70px;
  margin: 20px auto;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: 50% 50% 12px 12px;
  transform: rotate(45deg)
}

.gunungan-mark span {
  transform: rotate(-45deg);
  font-size: 22px
}

.cover h1,
.closing h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(54px, 8vw, 94px);
  font-weight: 500;
  line-height: .95;
  letter-spacing: -.06em
}

.cover h1 i,
.closing h2 i {
  color: #f5c77b;
  font-size: .63em;
  font-weight: 400
}

.cover-date {
  margin: 18px 0 28px;
  color: #f4e7d5;
  font-size: 12px;
  letter-spacing: .1em
}

.guest-card {
  width: min(360px, 100%);
  margin: 0 auto 24px;
  padding: 17px;
  border-radius: 16px;
  color: var(--ink);
  background: rgba(255, 250, 240, .93)
}

.guest-card span,
.guest-card small {
  display: block
}

.guest-card span {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: .16em;
  text-transform: uppercase
}

.guest-card strong {
  display: block;
  margin: 5px 0 4px;
  font-family: var(--display);
  font-size: 22px
}

.guest-card small {
  color: #89766c;
  font-size: 9px;
  line-height: 1.45
}

.primary-button,
.secondary-button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: 0 23px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: var(--terra);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 14px 34px rgba(84, 38, 29, .2);
  transition: .25s
}

.primary-button:hover,
.secondary-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(84, 38, 29, .28)
}

.cover .primary-button {
  color: var(--ink);
  background: #fff8e9
}

.button-icon {
  font-size: 17px
}

.petal {
  position: absolute;
  width: 15px;
  height: 27px;
  border-radius: 100% 0 100% 0;
  background: rgba(255, 245, 220, .72);
  animation: petal-fall 7s linear infinite
}

.petal-one {
  left: 14%;
  top: -30px;
  animation-delay: -2s
}

.petal-two {
  left: 77%;
  top: -50px;
  animation-delay: -4s;
  animation-duration: 9s
}

.petal-three {
  left: 52%;
  top: -35px;
  animation-delay: -6s;
  animation-duration: 8s
}

.floating-nav {
  position: sticky;
  z-index: 50;
  top: 14px;
  width: min(1040px, calc(100% - 28px));
  height: 64px;
  margin: 14px auto -78px;
  padding: 0 14px 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(255, 255, 255, .54);
  border-radius: 20px;
  background: rgba(255, 250, 240, .86);
  backdrop-filter: blur(18px);
  box-shadow: 0 14px 45px rgba(83, 60, 47, .12)
}

.mini-brand {
  display: flex;
  align-items: center;
  gap: 3px;
  font-family: var(--display);
  font-size: 19px;
  font-weight: 600
}

.mini-brand i {
  color: var(--terra);
  font-size: .76em
}

.floating-nav nav {
  display: flex;
  gap: 28px
}

.floating-nav nav a {
  color: #6a5a51;
  font-size: 11px;
  font-weight: 600
}

.floating-nav nav a:hover {
  color: var(--terra)
}

.nav-menu {
  display: none;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: var(--terra);
  cursor: pointer
}

.section-pad {
  padding: 130px max(6vw, 24px)
}

.intro {
  padding-top: 175px;
  overflow: hidden;
  text-align: center;
  background: linear-gradient(180deg, var(--cream), #f8efdf)
}

.ornament-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: var(--gold)
}

.ornament-line:before,
.ornament-line:after {
  content: "";
  width: 70px;
  height: 1px;
  background: var(--line)
}

.intro .eyebrow {
  margin-top: 20px;
  color: var(--terra)
}

.intro>h2,
.section-heading h2,
.ticket-copy h2,
.gift-copy h2 {
  margin: 14px 0 0;
  font-family: var(--display);
  font-size: clamp(43px, 5.8vw, 78px);
  font-weight: 500;
  line-height: 1.03;
  letter-spacing: -.045em
}

h2 em {
  color: var(--terra);
  font-weight: inherit
}

.intro>.lead {
  width: min(630px, 100%);
  margin: 24px auto 70px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.85
}

.couple-layout {
  width: min(1180px, 100%);
  margin: auto;
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  align-items: center;
  gap: 26px
}

.person-card {
  padding: 32px 26px;
  text-align: left
}

.person-two {
  text-align: right
}


/* Foto pengantin menggantikan nomor 01 dan 02 */
.person-card .person-number {
  position: relative;
  inset: auto;
  display: block;
  width: clamp(120px, 35vw, 160px);
  height: auto;
  aspect-ratio: 4 / 5;
  margin: 0 auto 24px;
  padding: 6px;

  border: 1px solid #c89b52;
  border-radius: 48% 48% 42% 42%;
  background: linear-gradient(
    145deg,
    #fff8e9 0%,
    #e9ce98 45%,
    #fffaf0 100%
  );

  box-shadow:
    0 12px 28px rgba(106, 73, 35, 0.15),
    0 0 0 5px rgba(200, 155, 82, 0.1);

  box-sizing: border-box;
  overflow: visible;
  opacity: 1;
  transform: none;
  line-height: 1;
  font-size: 0;
  isolation: isolate;
}

/* Foto memenuhi bingkai tanpa mengubah proporsi wajah */
.person-card .person-number img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center 25%;
  border-radius: inherit;
}

/* Ornamen kecil bernuansa undangan Jawa */
.person-card .person-number::before,
.person-card .person-number::after {
  position: absolute;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(200, 155, 82, 0.5);
  border-radius: 50%;
  background: #fff8ec;
  color: #a87935;
  font-size: 17px;
  line-height: 1;
  pointer-events: none;
}

.person-card .person-number::before {
  content: "✦";
  top: 8px;
  left: -10px;
}

.person-card .person-number::after {
  content: "✿";
  right: -10px;
  bottom: 12px;
}

.person-number {
  color: var(--gold);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .18em
}

.person-card>p {
  margin: 18px 0 7px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .15em;
  text-transform: uppercase
}

.person-card h3 {
  margin: 0 0 18px;
  color: var(--terra2);
  font-family: var(--display);
  font-size: clamp(31px, 3.2vw, 48px);
  font-weight: 500;
  line-height: 1.04
}

.family-copy {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.75
}

.little-note {
  display: inline-block;
  margin-top: 21px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
  color: var(--sage);
  font-family: var(--display);
  font-size: 13px;
  font-style: italic
}

.couple-photo {
  position: relative;
  margin: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 220px 220px 28px 28px;
  background: #f0e2ce;
  transform: rotate(-1.2deg)
}

.couple-photo img {
  width: 100%;
  aspect-ratio: 4/5;
  border-radius: 210px 210px 20px 20px;
  object-fit: cover
}

.couple-photo figcaption {
  position: absolute;
  right: -30px;
  bottom: 28px;
  padding: 13px 17px;
  border-radius: 999px;
  color: #fff;
  background: var(--terra);
  font-family: var(--display);
  font-size: 12px;
  transform: rotate(-5deg);
  box-shadow: 0 12px 30px rgba(70, 34, 25, .2)
}

.event-section {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: #5e3b30
}

.event-backdrop {
  position: absolute;
  inset: 0;
  opacity: .33;
  background-image: var(--detail-image);
  background-size: cover;
  background-position: center;
  filter: saturate(.7)
}

.event-section:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(72, 37, 29, .97), rgba(76, 52, 39, .72))
}

.event-section>*:not(.event-backdrop) {
  position: relative;
  z-index: 1
}

.section-heading {
  max-width: 730px
}

.section-heading.light h2 em,
.rsvp-section h2 em {
  color: #ffd89b
}

.section-heading.light .eyebrow {
  color: #efd29e
}

.countdown {
  width: min(780px, 100%);
  margin: 48px 0 54px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-block: 1px solid rgba(255, 255, 255, .18)
}

.countdown div {
  padding: 23px 12px;
  text-align: center;
  border-right: 1px solid rgba(255, 255, 255, .18)
}

.countdown div:last-child {
  border-right: 0
}

.countdown strong {
  display: block;
  font-family: var(--display);
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 500
}

.countdown span {
  color: #dbc6b9;
  font-size: 9px;
  letter-spacing: .16em;
  text-transform: uppercase
}

.event-cards {
  width: min(900px, 100%);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px
}

.event-card {
  position: relative;
  padding: 37px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 26px;
  background: rgba(255, 250, 240, .09);
  backdrop-filter: blur(8px)
}

.event-card.featured {
  color: var(--ink);
  background: #fff8e9
}

.event-icon {
  position: absolute;
  right: 26px;
  top: 24px;
  color: #efc682;
  font-size: 30px
}

.featured .event-icon {
  color: var(--terra)
}

.event-label {
  color: #efc682;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .18em
}

.featured .event-label {
  color: var(--terra)
}

.event-card h3 {
  margin: 20px 0 6px;
  font-family: var(--display);
  font-size: 29px;
  font-weight: 500
}

.event-card p,
.event-card small {
  color: #dbc6b9;
  font-size: 11px
}

.featured p,
.featured small {
  color: var(--muted)
}

.event-card hr {
  margin: 25px 0;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, .16)
}

.featured hr {
  border-color: var(--line)
}

.event-card strong,
.event-card small {
  display: block
}

.event-card strong {
  margin-bottom: 7px
}

.secondary-button {
  margin-top: 30px;
  color: var(--terra2);
  background: #f7dba7
}

.story-section {
  display: grid;
  grid-template-columns: minmax(320px, .9fr) minmax(430px, 1.1fr);
  gap: 8vw;
  align-items: center
}

.story-photo {
  position: relative;
  max-width: 530px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 26px 190px 26px 26px;
  background: var(--paper);
  transform: rotate(1.3deg)
}

.story-photo img {
  width: 100%;
  aspect-ratio: 4/5;
  border-radius: 18px 180px 18px 18px;
  object-fit: cover
}

.photo-sticker {
  position: absolute;
  left: -24px;
  bottom: 40px;
  padding: 15px 18px;
  border-radius: 11px;
  color: #fff;
  background: var(--terra);
  font-family: var(--display);
  font-size: 14px;
  line-height: 1.3;
  transform: rotate(-6deg);
  box-shadow: 0 14px 35px rgba(92, 39, 28, .2)
}

.story-copy .section-heading p:last-child,
.ticket-copy>p:not(.eyebrow),
.gift-copy>p {
  margin-top: 21px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8
}

.story-copy .eyebrow,
.gallery-section .eyebrow,
.ticket-copy .eyebrow,
.gift-copy .eyebrow {
  color: var(--terra)
}

.timeline {
  margin: 42px 0 0;
  padding: 0;
  list-style: none
}

.timeline li {
  display: grid;
  grid-template-columns: 45px 1fr;
  gap: 20px
}

.timeline li>span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--terra);
  font-size: 9px;
  font-weight: 700
}

.timeline li>div {
  padding: 0 0 28px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line)
}

.timeline small {
  color: var(--gold);
  font-size: 9px;
  font-weight: 700
}

.timeline h3 {
  margin: 5px 0 8px;
  font-family: var(--display);
  font-size: 25px;
  font-weight: 500
}

.timeline p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7
}

.gallery-section {
  background: #eef1e6
}

.centered {
  margin: 0 auto 60px;
  text-align: center
}

.gallery-grid {
  width: min(1180px, 100%);
  margin: auto;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 135px;
  gap: 13px
}

.gallery-grid figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 18px;
  background: #d6d9cf
}

.gallery-grid figure:nth-child(1) {
  grid-column: span 5;
  grid-row: span 4
}

.gallery-grid figure:nth-child(2) {
  grid-column: span 4;
  grid-row: span 2
}

.gallery-grid figure:nth-child(3) {
  grid-column: span 3;
  grid-row: span 2
}

.gallery-grid figure:nth-child(4) {
  grid-column: span 4;
  grid-row: span 2
}

.gallery-grid figure:nth-child(5) {
  grid-column: span 3;
  grid-row: span 2
}

.gallery-grid figure:nth-child(6) {
  grid-column: span 4;
  grid-row: span 2
}
.gallery-grid figure:nth-child(7) {
  grid-column: span 3;
  grid-row: span 2
}

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

.gallery-grid figure:hover img {
  transform: scale(1.05)
}

.gallery-grid figcaption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 7px 9px;
  border-radius: 999px;
  color: #fff;
  background: rgba(43, 32, 27, .58);
  font-size: 8px;
  letter-spacing: .12em;
  text-transform: uppercase
}

.ticket-section {
  display: grid;
  grid-template-columns: 1fr 390px;
  align-items: center;
  gap: 8vw
}

.ticket-copy {
  max-width: 650px
}

.ticket-tips {
  margin-top: 30px;
  display: grid;
  grid-template-columns: 35px 1fr;
  gap: 14px
}

.ticket-tips span {
  color: var(--terra);
  font-size: 9px;
  font-weight: 700
}

.ticket-tips p {
  margin: 0 0 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px
}

.guest-ticket {
  position: relative;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(155deg, #fffdf7, #efe1cb);
  box-shadow: 0 30px 80px rgba(78, 54, 39, .16);
  text-align: center
}

.ticket-top {
  padding-bottom: 18px;
  display: flex;
  justify-content: space-between;
  border-bottom: 1px dashed var(--line)
}

.ticket-top span,
.ticket-top small {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .14em
}

.ticket-top small {
  color: var(--muted)
}

.qr-box {
  width: 204px;
  height: 204px;
  margin: 28px auto 18px;
  padding: 12px;
  border-radius: 15px;
  background: #fffdf7
}

.qr-box img,
.qr-box canvas {
  width: 180px !important;
  height: 180px !important
}

.guest-ticket>strong {
  display: block;
  font-family: var(--display);
  font-size: 26px
}

.ticket-meta {
  margin-top: 22px;
  padding-top: 19px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px dashed var(--line)
}

.ticket-meta span {
  border-right: 1px solid var(--line)
}

.ticket-meta span:last-child {
  border: 0
}

.ticket-meta small,
.ticket-meta b {
  display: block
}

.ticket-meta small {
  color: var(--muted);
  font-size: 7px
}

.ticket-meta b {
  margin-top: 4px;
  font-size: 11px
}

.scanner-link {
  display: inline-block;
  margin-top: 22px;
  color: var(--terra);
  font-size: 10px;
  font-weight: 700
}

.rsvp-section {
  color: #fff;
  background: #273428
}

.rsvp-inner {
  width: min(1050px, 100%);
  margin: auto
}

.rsvp-inner>.section-heading {
  margin: 0 auto 48px;
  text-align: center
}

.rsvp-inner>.section-heading>p:last-child {
  color: #bac6b4;
  font-size: 12px
}

.rsvp-form {
  padding: 28px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 24px;
  background: rgba(255, 255, 255, .06)
}

.rsvp-form label {
  color: #dfe6da;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase
}

.rsvp-form input,
.rsvp-form textarea,
.rsvp-form select {
  width: 100%;
  margin-top: 8px;
  padding: 14px 15px;
  border: 1px solid rgba(255, 255, 255, .17);
  border-radius: 12px;
  outline: 0;
  color: #fff;
  background: rgba(255, 255, 255, .07);
  font-size: 12px;
  text-transform: none;
  letter-spacing: 0
}

.rsvp-form select option {
  color: var(--ink)
}

.rsvp-form .full {
  grid-column: 1/-1
}

.rsvp-form button {
  width: 100%;
  color: #283327;
  background: #f0d39e
}

.form-status {
  min-height: 18px;
  margin: 0;
  color: #f0d39e;
  font-size: 11px;
  text-align: center
}

.wishes {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px
}

.wishes article {
  padding: 19px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 17px;
  background: rgba(255, 255, 255, .05)
}

.wishes article div {
  display: flex;
  justify-content: space-between
}

.wishes strong {
  font-family: var(--display);
  font-size: 17px
}

.wishes span {
  color: #e5c684;
  font-size: 9px
}

.wishes p {
  margin: 10px 0 0;
  color: #bac6b4;
  font-size: 11px;
  line-height: 1.65
}

.gift-section {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  gap: 7vw;
  background: #f4ead9
}

.gift-image {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: #fff8eb;
  transform: rotate(-1deg)
}

.gift-image img {
  width: 100%;
  aspect-ratio: 16/10;
  border-radius: 20px;
  object-fit: cover
}

.disabled-gift {
  margin-top: 10px;
  padding: 15px 17px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  color: #8b786d;
  background: rgba(255, 255, 255, .4);
  font-size: 10px
}

.closing {
  position: relative;
  min-height: 650px;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #fff;
  text-align: center
}

.closing-photo {
  position: absolute;
  inset: 0;
  background-image: var(--penutup-image);
  background-size: cover;
  background-position: center 70%
}

.closing-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(41, 23, 17, .35), rgba(39, 20, 15, .84))
}

.closing-content {
  position: relative;
  z-index: 1;
  width: min(650px, 100%)
}

.closing-content>span {
  color: #f6d296;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .24em
}

.closing-content p {
  margin: 24px auto;
  max-width: 550px;
  color: #f2e7dc;
  font-size: 14px;
  line-height: 1.8
}

.closing h2 {
  margin: 23px 0
}

.closing small {
  color: #d4c2b6;
  font-size: 9px
}

.quick-actions {
  position: fixed;
  z-index: 45;
  right: 18px;
  bottom: 18px;
  padding: 7px;
  display: flex;
  gap: 5px;
  border-radius: 18px;
  background: rgba(255, 250, 240, .87);
  backdrop-filter: blur(14px);
  box-shadow: 0 12px 40px rgba(66, 43, 31, .13)
}

.quick-actions button,
.quick-actions a {
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 12px;
  color: var(--terra);
  background: transparent;
  font-size: 17px;
  cursor: pointer
}

.quick-actions :hover {
  color: #fff;
  background: var(--terra)
}

.back-portfolio {
  position: fixed;
  z-index: 44;
  left: 18px;
  bottom: 18px;
  padding: 12px 15px;
  border-radius: 999px;
  background: rgba(255, 250, 240, .87);
  font-size: 9px;
  font-weight: 700;
  box-shadow: 0 12px 40px rgba(66, 43, 31, .13)
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s, transform .8s
}

.reveal.visible {
  opacity: 1;
  transform: none
}

@keyframes slow-zoom {
  to {
    transform: scale(1.07)
  }
}

@keyframes petal-fall {
  0% {
    transform: translateY(-30px);
    opacity: 0
  }

  15% {
    opacity: .8
  }

  100% {
    transform: translate(60px, 110vh) rotate(390deg);
    opacity: 0
  }
}

/* Check-in */
.checkin-body {
  min-height: 100vh;
  color: #eff3eb;
  background: #1f2920
}

.checkin-header {
  width: min(1180px, calc(100% - 32px));
  min-height: 68px;
  margin: 16px auto 0;
  padding: 10px 14px 10px 18px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 19px;
  background: rgba(255, 255, 255, .05)
}

.checkin-header>div {
  text-align: center
}

.checkin-header>div strong,
.checkin-header>div span {
  display: block
}

.checkin-header>div strong {
  font-family: var(--display);
  font-size: 17px
}

.checkin-header>div span {
  color: #aebba8;
  font-size: 8px
}

.checkin-back {
  justify-self: end;
  padding: 10px 13px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 999px;
  color: #c6d1c1;
  font-size: 9px
}

.checkin-shell {
  width: min(1180px, calc(100% - 32px));
  margin: auto;
  padding: 90px 0
}

.checkin-hero {
  display: grid;
  grid-template-columns: 1fr 520px;
  align-items: end;
  gap: 7vw
}

.checkin-hero .eyebrow,
.attendance-head .eyebrow {
  color: #e8c98e
}

.checkin-hero h1 {
  margin: 13px 0 22px;
  font-family: var(--display);
  font-size: clamp(48px, 6.5vw, 87px);
  font-weight: 500;
  line-height: .98;
  letter-spacing: -.05em
}

.checkin-hero h1 em {
  color: #e8c98e
}

.checkin-hero>div>p:last-child {
  color: #aebba8;
  font-size: 12px;
  line-height: 1.8
}

.checkin-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 20px;
  overflow: hidden
}

.checkin-stats article {
  padding: 19px;
  border-right: 1px solid rgba(255, 255, 255, .12)
}

.checkin-stats article:last-child {
  border: 0
}

.checkin-stats span,
.checkin-stats small {
  display: block;
  color: #9baa94;
  font-size: 8px
}

.checkin-stats strong {
  display: block;
  margin: 8px 0 2px;
  color: #f3d9aa;
  font-family: var(--display);
  font-size: 31px
}

.scanner-grid {
  margin-top: 65px;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 18px
}

.scanner-card,
.result-card,
.attendance-section {
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 24px;
  background: rgba(255, 255, 255, .045)
}

.scanner-card {
  padding: 25px
}

.card-heading {
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between
}

.card-heading>div {
  display: flex;
  align-items: center;
  gap: 12px
}

.card-heading span {
  color: #e8c98e;
  font-size: 8px
}

.card-heading h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 23px
}

.card-heading p {
  max-width: 210px;
  margin: 0;
  color: #9baa94;
  font-size: 9px;
  text-align: right
}

.reader-box {
  min-height: 340px;
  overflow: hidden;
  border-radius: 17px;
  color: var(--ink);
  background: #f8f1e5
}

.reader-box button {
  padding: 10px !important;
  border: 0 !important;
  border-radius: 9px !important;
  color: #fff !important;
  background: var(--terra) !important
}

.manual-checkin {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, .1)
}

.manual-checkin label {
  font-size: 9px
}

.manual-checkin textarea {
  width: 100%;
  margin: 8px 0 10px;
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 11px;
  color: #fff;
  background: rgba(255, 255, 255, .06);
  font-size: 10px
}

.manual-checkin .primary-button {
  min-height: 44px
}

.result-card {
  padding: 42px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center
}

.result-card.success {
  background: rgba(77, 142, 91, .19)
}

.result-card.duplicate {
  background: rgba(160, 115, 44, .18)
}

.result-card.error {
  background: rgba(153, 64, 53, .18)
}

.result-state {
  color: #e8c98e;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .19em
}

.result-icon {
  width: 82px;
  height: 82px;
  margin: 25px auto;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .17);
  border-radius: 50%;
  color: #e8c98e;
  font-size: 34px
}

.result-card h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 31px
}

.result-card>p {
  color: #aebba8;
  font-size: 11px
}

.result-card dl {
  margin: 24px 0 0;
  padding-top: 21px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(255, 255, 255, .11)
}

.result-card dl div {
  border-right: 1px solid rgba(255, 255, 255, .11)
}

.result-card dl div:last-child {
  border: 0
}

.result-card dt {
  color: #94a18f;
  font-size: 8px
}

.result-card dd {
  margin: 6px 0;
  font-size: 12px
}

.attendance-section {
  margin-top: 18px;
  padding: 25px
}

.attendance-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 25px
}

.attendance-head h2 {
  margin: 7px 0 0;
  font-family: var(--display);
  font-size: 28px
}

.table-actions {
  display: flex;
  gap: 8px
}

.table-actions button {
  padding: 10px 13px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 9px;
  color: #dce5d7;
  background: rgba(255, 255, 255, .05);
  font-size: 9px
}

.table-actions .danger-button {
  color: #efb2aa
}

.attendance-table-wrap {
  margin-top: 22px;
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 13px
}

.attendance-table-wrap table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse
}

.attendance-table-wrap th,
.attendance-table-wrap td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  text-align: left
}

.attendance-table-wrap th {
  color: #99a795;
  font-size: 8px
}

.attendance-table-wrap td {
  color: #d8e1d3;
  font-size: 10px
}

.empty-row td {
  text-align: center
}

.privacy-note {
  color: #899584;
  font-size: 9px
}

@media(max-width:900px) {
  .floating-nav nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    padding: 15px;
    flex-direction: column;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fffaf0
  }

  .nav-open .floating-nav nav {
    display: flex
  }

  .nav-menu {
    display: grid;
    place-items: center
  }

  .couple-layout {
    grid-template-columns: 1fr 1.2fr
  }

  .person-two {
    grid-column: 1/-1;
    text-align: center
  }

  .story-section {
    grid-template-columns: .85fr 1.15fr
  }

  .ticket-section {
    grid-template-columns: 1fr 340px
  }

  .checkin-hero,
  .scanner-grid {
    grid-template-columns: 1fr
  }

  .result-card {
    min-height: 420px
  }
}

@media(max-width:700px) {
  .demo-ribbon {
    font-size: 7px
  }

  .cover-card {
    padding: 39px 18px 24px;
    border-radius: 130px 130px 27px 27px
  }

  .cover h1 {
    font-size: 54px
  }

  .section-pad {
    padding: 95px 20px
  }

  .intro {
    padding-top: 140px
  }

  .intro>h2,
  .section-heading h2,
  .ticket-copy h2,
  .gift-copy h2 {
    font-size: 43px
  }

  .couple-layout,
  .story-section,
  .ticket-section,
  .gift-section {
    grid-template-columns: 1fr
  }

  .person-card,
  .person-two {
    text-align: center
  }

  .couple-photo {
    grid-row: 1
  }

  .couple-photo figcaption {
    right: -5px
  }

  .countdown div {
    padding: 18px 4px
  }

  .countdown strong {
    font-size: 34px
  }

  .event-cards {
    grid-template-columns: 1fr
  }

  @media (max-width: 768px) {
    .gallery-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      grid-auto-rows: auto;
      gap: 12px;
      align-items: start;
    }
  
    .gallery-grid figure:nth-child(n) {
      grid-column: span 1;
      grid-row: span 1;
      width: 100%;
      min-width: 0;
      height: auto;
      margin: 0;
      overflow: hidden;
      border-radius: 16px;
    }
  
    .gallery-grid figure:nth-child(1),
    .gallery-grid figure:nth-child(4) {
      grid-column: span 2;
    }
  
    .gallery-grid figure img {
      display: block;
      position: static;
      width: 100%;
      max-width: 100%;
      height: auto;
      aspect-ratio: auto;
    }
  }
  
  @media (max-width: 380px) {
    .gallery-grid {
      gap: 8px;
    }
  
    .gallery-grid figure:nth-child(n) {
      border-radius: 12px;
    }
  }

  .rsvp-form {
    grid-template-columns: 1fr
  }

  .rsvp-form .full {
    grid-column: auto
  }

  .wishes {
    grid-template-columns: 1fr
  }

  .quick-actions {
    right: 10px;
    bottom: 10px
  }

  .back-portfolio {
    left: 10px;
    bottom: 10px;
    max-width: 155px
  }

  .checkin-header {
    grid-template-columns: auto 1fr
  }

  .checkin-header>div {
    text-align: right
  }

  .checkin-back {
    display: none
  }

  .checkin-shell {
    padding: 70px 0
  }

  .checkin-hero h1 {
    font-size: 49px
  }

  .scanner-card,
  .attendance-section {
    padding: 17px
  }

  .card-heading,
  .attendance-head {
    align-items: start;
    flex-direction: column
  }

  .card-heading p {
    text-align: left
  }

  .table-actions {
    width: 100%
  }

  .table-actions button {
    flex: 1
  }
}

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

  *,
  *:before,
  *:after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition-duration: .01ms !important
  }

  .reveal {
    opacity: 1;
    transform: none
  }
}

/* Romantic refinement */
:root {
  --blush: #d98d86;
  --rose: #ad5d57;
  --champagne: #f0cf9b
}

.cover-overlay {
  background: linear-gradient(180deg, rgba(42, 23, 20, .22), rgba(58, 27, 27, .82)), radial-gradient(circle at 52% 35%, rgba(232, 174, 161, .12), transparent 30%)
}

.cover-card {
  box-shadow: 0 44px 120px rgba(53, 20, 24, .42), inset 0 0 45px rgba(255, 223, 211, .06)
}

.cover-card:after {
  content: "";
  position: absolute;
  inset: 20px;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(circle at 50% 16%, rgba(255, 226, 213, .14), transparent 24%)
}

.cover h1 i,
.closing h2 i {
  color: #ffd0b6
}

.cover .primary-button {
  color: #733f3c;
  background: linear-gradient(135deg, #fff9ef, #f7dacb)
}

.love-spark {
  position: absolute;
  z-index: 2;
  color: rgba(255, 225, 210, .78);
  font-family: Georgia, serif;
  animation: love-drift 5.4s ease-in-out infinite
}

.spark-one {
  left: 10%;
  top: 24%;
  font-size: 25px
}

.spark-two {
  right: 12%;
  top: 18%;
  animation-delay: -2s
}

.spark-three {
  right: 18%;
  bottom: 17%;
  font-size: 31px;
  animation-delay: -3.5s
}

.intro {
  background: radial-gradient(circle at 12% 14%, rgba(222, 153, 142, .13), transparent 26%), linear-gradient(180deg, #fffaf5, #f7e9df)
}

.romance-note {
  width: min(800px, 100%);
  margin: -42px auto 58px;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  border: 1px solid rgba(173, 93, 87, .18);
  border-radius: 999px;
  color: #7e4a47;
  background: rgba(255, 255, 255, .62);
  box-shadow: 0 14px 38px rgba(119, 64, 58, .08)
}

.romance-note p {
  margin: 0;
  font-family: var(--display);
  font-size: 14px;
  font-style: italic
}

.romance-note span {
  color: var(--rose)
}

.couple-photo {
  box-shadow: 0 34px 85px rgba(144, 76, 67, .17)
}

.couple-photo:after {
  content: "♡";
  position: absolute;
  right: 24px;
  top: 25px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: rgba(156, 78, 71, .72);
  backdrop-filter: blur(8px);
  animation: heart-beat 2.4s ease-in-out infinite
}

.little-note {
  color: #a25d57
}

.photo-sticker {
  background: linear-gradient(135deg, #a8554e, #d58172)
}

.gallery-section {
  background: linear-gradient(180deg, #f6e8e1, #edf0e5)
}

.closing-overlay {
  background: linear-gradient(180deg, rgba(49, 24, 19, .2), rgba(67, 26, 29, .88))
}

.bank-card {
  position: relative;
  max-width: 430px;
  margin-top: 28px;
  padding: 24px;
  overflow: hidden;
  color: #ffffff;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.22), transparent 35%),
    linear-gradient(135deg, #0876c9 0%, #00549b 55%, #003d73 100%);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 22px;
  box-shadow: 0 18px 45px rgba(0, 65, 120, 0.22);
}

.bank-card::after {
  content: "";
  position: absolute;
  right: -50px;
  bottom: -70px;
  width: 190px;
  height: 190px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
}

.bank-card-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.bank-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.35rem;
  letter-spacing: 0.08em;
}

.bank-logo svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bank-label {
  padding: 7px 12px;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
}

.account-information {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  margin-top: 34px;
}

.account-caption {
  margin-bottom: 7px;
  font-size: 0.82rem;
  opacity: 0.76;
}

.account-number {
  font-size: clamp(1.45rem, 4vw, 2rem);
  line-height: 1.2;
  letter-spacing: 0.1em;
}

.account-owner {
  margin-top: 9px;
  font-size: 0.9rem;
  opacity: 0.86;
}

.copy-account {
  position: relative;
  z-index: 1;
  width: 100%;
  margin-top: 24px;
  padding: 13px 18px;
  color: #00549b;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  background: #ffffff;
  border: 0;
  border-radius: 999px;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.copy-account:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 34, 67, 0.2);
}

.copy-account:active {
  transform: translateY(0);
}

.gift-note {
  margin-top: 18px;
  font-size: 0.88rem;
  font-style: italic;
  opacity: 0.76;
}

@media (max-width: 600px) {
  .bank-card {
    padding: 20px;
    border-radius: 18px;
  }

  .bank-card-top {
    align-items: flex-start;
  }

  .account-number {
    letter-spacing: 0.06em;
  }
}

@keyframes love-drift {
  50% {
    transform: translateY(-13px) rotate(8deg);
    opacity: .48
  }
}

@keyframes heart-beat {
  50% {
    transform: scale(1.12);
    box-shadow: 0 0 0 8px rgba(173, 93, 87, .12)
  }
}

@media(max-width:700px) {
  .romance-note {
    margin: -40px auto 48px;
    border-radius: 22px
  }

  .romance-note p {
    font-size: 12px
  }

  .spark-one {
    left: 5%
  }

  .spark-two {
    right: 6%
  }
}
/* =========================
   GALLERY ZOOM
========================= */

.gallery-grid img {
  display: block;
  width: 100%;
  cursor: zoom-in;
}

.gallery-grid button,
.gallery-item {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

body.gallery-modal-open {
  overflow: hidden;
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(10, 14, 11, 0.94);
  backdrop-filter: blur(8px);
}

.gallery-lightbox.is-open {
  display: flex;
}

.gallery-lightbox-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(100%, 1100px);
  margin: 0;
}

.gallery-lightbox-image {
  display: block;
  max-width: 100%;
  max-height: 82vh;
  object-fit: contain;
  border-radius: 12px;
  cursor: zoom-in;
  user-select: none;
  transition:
    transform 0.3s ease,
    border-radius 0.3s ease;
}

.gallery-lightbox-image.is-zoomed {
  max-width: none;
  max-height: none;
  transform: scale(1.5);
  cursor: zoom-out;
}

.gallery-lightbox-caption {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  padding-top: 14px;
  color: #ffffff;
  font-size: 14px;
}

.gallery-lightbox-counter {
  flex-shrink: 0;
  opacity: 0.75;
}

.gallery-lightbox-close {
  position: absolute;
  top: 18px;
  right: 22px;
  z-index: 3;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
}

.gallery-lightbox-nav {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: 24px;
  cursor: pointer;
  transform: translateY(-50%);
}

.gallery-lightbox-prev {
  left: 22px;
}

.gallery-lightbox-next {
  right: 22px;
}

.gallery-lightbox-close:hover,
.gallery-lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.22);
}

@media (max-width: 768px) {
  .gallery-lightbox {
    padding: 70px 14px 30px;
  }

  .gallery-lightbox-image {
    max-height: 72vh;
  }

  .gallery-lightbox-prev {
    left: 10px;
  }

  .gallery-lightbox-next {
    right: 10px;
  }

  .gallery-lightbox-close {
    top: 12px;
    right: 12px;
  }

  .gallery-lightbox-nav {
    width: 42px;
    height: 42px;
  }

  .gallery-lightbox-caption {
    padding-inline: 4px;
    font-size: 12px;
  }
}
#music-toggle {
  position: fixed;
  right: 20px;
  bottom: 85px;
  z-index: 9999;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  background: #273428;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

#music-toggle.is-playing {
  animation: musicRotate 4s linear infinite;
}

#music-toggle.is-paused {
  opacity: 0.65;
  animation: none;
}

@keyframes musicRotate {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}