:root {
  --ivory: #fbf8f3;
  --cream: #f4ede4;
  --champagne: #d6b98c;
  --rose: #b98076;
  --rose-deep: #8f5e56;
  --ink: #2d2926;
  --muted: #746b64;
  --line: rgba(64, 50, 42, 0.16);
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Be Vietnam Pro", "Segoe UI", sans-serif;
  --shadow: 0 24px 70px rgba(59, 43, 33, 0.13);
  --hero-image: url("assets/images/hero.jpg?v=ab671c0-202611040641");
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 70px;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.75;
  overflow-x: hidden;
}

body.is-locked {
  overflow: hidden;
}

img {
  display: block;
  width: 100%;
}

button,
input,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

.content-width {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.invitation-gate {
  position: fixed;
  z-index: 999;
  inset: 0;
  overflow: hidden;
  color: var(--ink);
}

.gate-content {
  position: relative;
  z-index: 2;
  width: min(560px, calc(100% - 48px));
  text-align: center;
  transition:
    opacity 0.45s ease,
    transform 0.7s ease;
}

.gate-kicker,
.eyebrow {
  display: block;
  margin: 0 0 14px;
  color: var(--rose-deep);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.34em;
}

.gate-note {
  margin: 0;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 18px;
  font-style: italic;
}

.gate-names {
  margin: 18px 0 28px;
  font-family: var(--serif);
  font-size: clamp(40px, 7vw, 78px);
  font-weight: 400;
  line-height: 0.9;
}

.gate-names span {
  display: block;
}

.gate-names i {
  display: block;
  margin: 10px 0;
  color: var(--rose);
  font-size: 0.55em;
  font-weight: 400;
}

.seal-button {
  position: relative;
  width: 76px;
  height: 76px;
  padding: 0;
  cursor: pointer;
  color: #fff9f3;
  border: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 28%, #cb8f83 0, #9c625a 52%, #74433d 100%);
  box-shadow:
    0 7px 20px rgba(107, 61, 54, 0.28),
    inset 0 0 0 4px rgba(255, 255, 255, 0.1),
    inset 0 0 0 7px rgba(86, 44, 39, 0.15);
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease;
}

.seal-button::before {
  content: "";
  position: absolute;
  inset: -9px;
  border: 1px solid rgba(143, 94, 86, 0.28);
  border-radius: 50%;
}

.seal-button:hover {
  transform: translateY(-4px) rotate(-3deg);
  box-shadow: 0 12px 28px rgba(107, 61, 54, 0.32);
}

.seal-monogram {
  font-family: var(--serif);
  font-style: italic;
}

.gate-hint {
  display: block;
  margin-top: 20px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.invitation-gate.is-open .gate-content {
  opacity: 0;
  transform: scale(0.9);
}

.hero {
  position: relative;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: white;
}

.hero-media,
.hero-grain {
  position: absolute;
  inset: -5%;
}

.hero-media {
  background-image:
    linear-gradient(90deg, rgba(28, 23, 20, 0.52), rgba(28, 23, 20, 0.08) 58%, rgba(28, 23, 20, 0.12)),
    linear-gradient(0deg, rgba(30, 23, 20, 0.4), transparent 40%),
    var(--hero-image);
  background-position: center;
  background-size: cover;
}

.hero-grain {
  opacity: 0.12;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
}

.hero-content {
  width: min(1280px, calc(100% - 72px));
  margin: 64px auto 0;
  text-align: left;
}

.hero-eyebrow {
  margin: 0 0 24px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.42em;
  animation: riseIn 1s 0.55s both;
}

.hero-title {
  margin: 0;
  max-width: 700px;
  font-family: var(--serif);
  font-size: clamp(64px, 9vw, 132px);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.72;
}

.hero-title span {
  display: block;
  animation: riseIn 1.1s 0.7s both;
}

.hero-title span:last-child {
  margin-left: 0.62em;
  animation-delay: 0.9s;
}

.hero-title em {
  display: block;
  width: 2em;
  margin: 0.06em 0 -0.05em 1.3em;
  font-size: 0.54em;
  font-weight: 400;
  text-align: center;
  animation: riseIn 1.1s 0.8s both;
}

.hero-date {
  display: flex;
  align-items: center;
  gap: 16px;
  width: min(430px, 100%);
  margin: 42px 0 10px;
  animation: riseIn 1s 1.05s both;
}

.hero-date .line {
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.55);
}

.hero-date time {
  font-size: 12px;
  letter-spacing: 0.32em;
}

.hero-location {
  width: min(430px, 100%);
  margin: 0 0 28px;
  font-family: var(--serif);
  font-size: 18px;
  font-style: italic;
  text-align: center;
  animation: riseIn 1s 1.1s both;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 50px;
  padding: 0 24px;
  cursor: pointer;
  border: 1px solid transparent;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition:
    transform 0.3s ease,
    background 0.3s ease,
    color 0.3s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button--glass {
  color: white;
  border-color: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(7px);
  animation: riseIn 1s 1.2s both;
}

.button--glass:hover {
  color: var(--ink);
  background: white;
}

.button--dark {
  color: white;
  background: var(--ink);
}

.scroll-cue {
  position: absolute;
  z-index: 2;
  right: clamp(24px, 4vw, 68px);
  bottom: 36px;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.scroll-cue span {
  font-size: 9px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}

.scroll-cue i {
  position: relative;
  display: block;
  width: 1px;
  height: 48px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.35);
}

.scroll-cue i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: white;
  animation: scrollLine 1.9s ease-in-out infinite;
}

.petals {
  position: absolute;
  z-index: 3;
  inset: 0;
  pointer-events: none;
}

.petals i {
  position: absolute;
  top: -5%;
  left: var(--x);
  width: var(--size);
  height: calc(var(--size) * 1.55);
  border-radius: 70% 15% 70% 20%;
  background: #f0d5c7;
}

.chapter {
  padding: clamp(100px, 12vw, 180px) 0;
}

.chapter--intro {
  overflow: hidden;
  background:
    radial-gradient(circle at 16% 12%, rgba(214, 185, 140, 0.15), transparent 25%),
    var(--ivory);
}

.ornament {
  position: absolute;
  color: rgba(185, 128, 118, 0.12);
  font-family: var(--serif);
  font-size: 280px;
  line-height: 1;
}

.ornament--one {
  top: 30px;
  right: -35px;
  transform: rotate(20deg);
}

.section-heading {
  width: min(690px, calc(100% - 40px));
  margin: 0 auto clamp(64px, 8vw, 105px);
  text-align: center;
}

.section-number {
  display: block;
  margin-bottom: 32px;
  color: var(--champagne);
  font-family: var(--serif);
  font-size: 11px;
  letter-spacing: 0.2em;
}

.section-heading h2,
.gallery-heading h2,
.gift-copy h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(48px, 7vw, 80px);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 0.95;
}

.section-heading h2::after {
  content: "";
  display: block;
  width: 52px;
  height: 1px;
  margin: 28px auto;
  background: var(--champagne);
}

.section-lead {
  margin: 0 auto;
  max-width: 570px;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 19px;
  font-style: italic;
}

.couple-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px minmax(0, 1fr);
  align-items: center;
  gap: 38px;
}

.person-card {
  position: relative;
}

.person-card--groom {
  margin-top: 110px;
}

.portrait-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 0.72;
  background: var(--cream);
  box-shadow: var(--shadow);
}

.portrait-frame img {
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}

.person-card:hover img {
  transform: scale(1.035);
}

.portrait-label {
  position: absolute;
  z-index: 2;
  bottom: 32px;
  left: -42px;
  padding: 8px 16px;
  color: white;
  background: rgba(46, 37, 33, 0.6);
  font-size: 9px;
  letter-spacing: 0.25em;
  transform: rotate(-90deg);
  backdrop-filter: blur(8px);
}

.person-copy {
  width: min(88%, 430px);
  margin: -28px auto 0;
  padding: 28px 28px 10px;
  position: relative;
  z-index: 3;
  text-align: center;
  background: var(--ivory);
}

.script-label {
  color: var(--rose);
  font-family: var(--serif);
  font-size: 21px;
  font-style: italic;
}

.person-copy h3 {
  margin: 3px 0 14px;
  font-family: var(--serif);
  font-size: clamp(31px, 3.8vw, 48px);
  font-weight: 500;
  line-height: 1;
}

.person-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.couple-connector {
  text-align: center;
  color: var(--muted);
  font-family: var(--serif);
}

.couple-connector span,
.couple-connector strong {
  display: block;
  font-size: 16px;
  font-style: italic;
  font-weight: 400;
}

.couple-connector strong {
  color: var(--rose);
  font-size: 23px;
}

.couple-connector i {
  display: block;
  margin-top: 12px;
  color: var(--champagne);
  font-size: 38px;
  font-style: normal;
}

.quote-break {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: white;
}

.quote-image {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(35, 30, 27, 0.46), rgba(35, 30, 27, 0.46)),
    url("assets/images/field.jpg?v=ab671c0-202611040641") center 42% / cover;
  background-attachment: fixed;
}

.quote-break blockquote {
  width: min(820px, calc(100% - 42px));
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 45px);
  font-style: italic;
  line-height: 1.25;
  text-align: center;
}

.quote-break blockquote span {
  display: block;
  margin-bottom: -10px;
  color: #ecd5b5;
  font-size: 82px;
  line-height: 0.7;
}

.story-section {
  background:
    linear-gradient(rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.6)),
    radial-gradient(circle at 75% 30%, #f0e1d6, transparent 30%),
    var(--ivory);
}

.timeline {
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 70px;
  bottom: 70px;
  left: 50%;
  width: 1px;
  background: linear-gradient(transparent, var(--champagne) 6%, var(--champagne) 94%, transparent);
}

.countdown-section {
  position: relative;
  display: grid;
  min-height: 690px;
  place-items: center;
  padding: 80px 20px;
  overflow: hidden;
}

.countdown-backdrop {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(31, 27, 25, 0.62), rgba(31, 27, 25, 0.34)),
    url("assets/images/hero.jpg?v=ab671c0-202611040641") center / cover;
}

.countdown-card {
  position: relative;
  width: min(920px, 100%);
  padding: clamp(45px, 7vw, 82px) clamp(20px, 7vw, 80px);
  text-align: center;
  backdrop-filter: blur(10px);
}

.countdown-card::before,
.countdown-card::after {
  content: "";
  position: absolute;
  width: 34px;
  height: 34px;
  border-color: #e5ca9f;
  border-style: solid;
}

.countdown-card::before {
  top: 13px;
  left: 13px;
  border-width: 1px 0 0 1px;
}

.countdown-card::after {
  right: 13px;
  bottom: 13px;
  border-width: 0 1px 1px 0;
}

.countdown-card h2 {
  margin: 0 0 14px;
  font-family: var(--serif);
  font-size: clamp(42px, 6vw, 72px);
  font-weight: 400;
  line-height: 1;
}

.countdown-card > p {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-family: var(--serif);
  font-size: 18px;
  font-style: italic;
}

.countdown {
  display: grid;
  grid-template-columns: 1fr 1px 1fr 1px 1fr 1px 1fr;
  align-items: center;
  margin: 50px 0 34px;
}

.countdown > i {
  width: 1px;
  height: 52px;
  background: rgba(255, 255, 255, 0.28);
}

.countdown strong,
.countdown span {
  display: block;
}

.countdown strong {
  font-family: var(--serif);
  font-size: clamp(39px, 6vw, 66px);
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.countdown span {
  margin-top: 10px;
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.countdown-date {
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

.event-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.event-card {
  position: relative;
  text-align: center;
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease;
}

.event-card:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow);
}

.event-index {
  position: absolute;
  top: -18px;
  right: 14px;
  font-family: var(--serif);
  font-size: 130px;
  line-height: 1;
}

.event-card .eyebrow {
  position: relative;
}

.event-time {
  margin: 12px 0 4px;
  font-family: var(--serif);
  font-size: clamp(60px, 8vw, 88px);
  font-weight: 400;
  line-height: 1;
}

.event-card time {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.event-rule {
  display: block;
  width: 1px;
  height: 44px;
  margin: 27px auto;
  background: var(--champagne);
}

.event-card h3 {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-weight: 500;
}

.event-address {
  margin: 0 0 28px;
  color: var(--muted);
}

.text-link {
  display: inline-flex;
  gap: 9px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--rose);
  color: var(--rose-deep);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gallery-section {
  overflow: hidden;
}

.gallery-heading {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: end;
  gap: 70px;
  margin-bottom: 70px;
}

.gallery-heading .section-number {
  color: #bca37f;
}

.gallery-heading .eyebrow {
  color: #d3b98e;
}

.gallery-heading h2 em,
.gift-copy h2 em {
  color: #d8bca4;
  font-weight: 400;
}

.gallery-heading > p {
  max-width: 430px;
  margin: 0 0 4px;
  font-family: var(--serif);
  font-size: 18px;
  font-style: italic;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: 310px 250px;
}

.gallery-item {
  position: relative;
  padding: 0;
  cursor: zoom-in;
}

.gallery-item:nth-child(1) {
  grid-column: 1 / 6;
  grid-row: 1 / 3;
}

.gallery-item:nth-child(2) {
  grid-column: 6 / 9;
  grid-row: 1;
}

.gallery-item:nth-child(3) {
  grid-column: 9 / 13;
  grid-row: 1;
}

.gallery-item:nth-child(4) {
  grid-column: 6 / 9;
  grid-row: 2;
}

.gallery-item:nth-child(5) {
  grid-column: 9 / 13;
  grid-row: 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 52%, rgba(24, 20, 18, 0.74));
  opacity: 0.78;
  transition: opacity 0.35s ease;
}

.gallery-item > span {
  position: absolute;
  z-index: 2;
  right: 22px;
  bottom: 18px;
  left: 22px;
  color: white;
  font-family: var(--serif);
  font-size: 16px;
  font-style: italic;
  text-align: left;
  transform: translateY(8px);
  opacity: 0;
  transition:
    opacity 0.35s ease,
    transform 0.35s ease;
}

.gallery-item > span i {
  margin-right: 12px;
  color: #dac29e;
  font-size: 10px;
  font-style: normal;
}

.gallery-item:hover > span {
  opacity: 1;
  transform: translateY(0);
}

.wish-form {
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 18px 55px rgba(62, 44, 33, 0.06);
}

.wish-form label {
  margin-bottom: 24px;
}

.wish-form label > span {
  display: block;
  margin-bottom: 9px;
  color: var(--ink);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.wish-form input,
.wish-form textarea {
  resize: vertical;
  border-bottom: 1px solid rgba(64, 50, 42, 0.25);
  outline: none;
  transition: border-color 0.25s ease;
}

.wish-form input::placeholder,
.wish-form textarea::placeholder {
  color: #a59a92;
  font-family: var(--serif);
  font-size: 16px;
  font-style: italic;
}

.wish-form .button {
  width: 100%;
}

.form-status {
  text-align: center;
}

.wish-wall {
  min-width: 0;
}

.wish-wall-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.wish-list {
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--champagne) transparent;
}

.wish-card {
  position: relative;
  display: grid;
}

.wish-card h3 {
  margin: 0 0 4px;
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
}

.wish-card p {
  margin: 0;
}

.wish-card > span {
  position: absolute;
}

.site-footer {
  padding: 110px 20px 45px;
  color: white;
  text-align: center;
}

.site-footer .eyebrow {
  color: #dbc19c;
}

.site-footer h2 {
  margin: 20px 0 25px;
  font-family: var(--serif);
  font-size: clamp(45px, 7vw, 82px);
  font-weight: 400;
  line-height: 0.85;
}

.site-footer h2 span {
  display: block;
}

.site-footer h2 em {
  display: block;
  margin: 8px 0;
  color: #e2c8a4;
  font-size: 0.6em;
  font-weight: 400;
}

.site-footer time {
  font-size: 11px;
  letter-spacing: 0.25em;
}

.site-footer > p:not(.eyebrow) {
  margin: 28px auto 60px;
  color: rgba(255, 255, 255, 0.75);
  font-family: var(--serif);
  font-size: 18px;
  font-style: italic;
}

.site-footer small {
  color: rgba(255, 255, 255, 0.45);
  font-size: 9px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.footer-petal {
  font-family: var(--serif);
  font-size: 52px;
}

.lightbox {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 50px;
  color: white;
  border: 0;
  background: rgba(26, 22, 20, 0.94);
}

.lightbox[open] {
  display: grid;
  grid-template-columns: 55px 1fr 55px;
  align-items: center;
}

.lightbox::backdrop {
  background: rgba(26, 22, 20, 0.94);
}

.lightbox figure {
  margin: 0;
  text-align: center;
}

.lightbox figure img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 78vh;
  margin: auto;
  object-fit: contain;
}

.lightbox figcaption {
  margin-top: 14px;
  font-family: var(--serif);
  font-size: 17px;
  font-style: italic;
}

.lightbox button {
  cursor: pointer;
  color: white;
  border: 0;
  background: transparent;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  font-family: var(--serif);
  font-size: 42px;
}

.lightbox-nav {
  font-size: 27px;
}

.heart-burst {
  position: fixed;
  z-index: 200;
  left: 50%;
  top: 50%;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.heart-burst i {
  position: absolute;
  display: none;
  color: var(--rose);
  font-style: normal;
}

.heart-burst.is-active i {
  display: block;
  animation: burst 1.3s var(--delay) cubic-bezier(0.18, 0.89, 0.32, 1.28) both;
}

.reveal {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-enabled .reveal:not(.is-visible) {
  opacity: 0;
  transform: translateY(36px);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.gallery-item:nth-child(even) {
  transition-delay: 0.08s;
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(32px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scrollLine {
  0% {
    transform: translateY(-100%);
  }
  55%,
  100% {
    transform: translateY(100%);
  }
}

@keyframes petalFall {
  0% {
    transform: translate3d(0, -10vh, 0) rotate(0deg);
  }
  50% {
    transform: translate3d(var(--drift), 52vh, 0) rotate(220deg);
  }
  100% {
    transform: translate3d(var(--drift), 110vh, 0) rotate(480deg);
  }
}

@keyframes burst {
  0% {
    opacity: 0;
    transform: rotate(var(--angle)) translateX(0) scale(0.4);
  }
  30% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: rotate(var(--angle)) translateX(var(--distance)) scale(1.2);
  }
}

@media (max-width: 900px) {

  .couple-grid {
    grid-template-columns: 1fr 70px 1fr;
    gap: 18px;
  }

  .person-card--groom {
    margin-top: 80px;
  }

  .gallery-grid {
    grid-template-rows: 250px 210px;
  }
}

@media (max-width: 680px) {
  body {
    font-size: 14px;
  }

  .content-width {
    width: min(100% - 28px, 520px);
  }

  .hero-media {
    background-image:
      linear-gradient(0deg, rgba(24, 20, 18, 0.68), rgba(24, 20, 18, 0.03) 65%),
      var(--hero-image);
    background-position: 61% center;
  }

  .hero {
    align-items: end;
  }

  .hero-content {
    width: calc(100% - 36px);
    margin: 0 auto 78px;
  }

  .hero-eyebrow {
    margin-bottom: 18px;
    font-size: 8px;
  }

  .hero-title {
    font-size: clamp(54px, 17vw, 76px);
    line-height: 0.79;
  }

  .hero-title span:last-child {
    margin-left: 0.36em;
  }

  .hero-title em {
    margin-left: 0.72em;
  }

  .hero-date {
    margin-top: 30px;
  }

  .hero-location {
    margin-bottom: 20px;
    text-align: left;
  }

  .button--glass {
    width: 100%;
  }

  .chapter {
    padding: 95px 0;
  }

  .section-heading {
    margin-bottom: 55px;
  }

  .section-number {
    margin-bottom: 24px;
  }

  .section-heading h2,
  .gallery-heading h2,
  .gift-copy h2 {
    font-size: 47px;
  }

  .couple-grid {
    display: block;
  }

  .person-card {
    max-width: 430px;
    margin: 0 auto;
  }

  .person-card--groom {
    margin-top: 30px;
  }

  .couple-connector {
    margin: 45px 0;
  }

  .portrait-frame {
    aspect-ratio: 0.76;
  }

  .quote-image {
    background-attachment: scroll;
    background-position: 58% center;
  }

  .timeline::before {
    left: 17px;
  }

  .countdown-section {
    min-height: 620px;
    padding: 42px 14px;
  }

  .countdown-card {
    padding: 48px 13px;
  }

  .countdown-card h2 {
    font-size: 42px;
  }

  .countdown-card > p {
    font-size: 16px;
  }

  .countdown {
    margin: 38px 0 30px;
  }

  .countdown strong {
    font-size: 38px;
  }

  .countdown span {
    font-size: 8px;
    letter-spacing: 0.1em;
  }

  .countdown-date {
    font-size: 8px;
    letter-spacing: 0.12em;
  }

  .event-grid {
    grid-template-columns: 1fr;
  }

  .gallery-heading {
    display: block;
    margin-bottom: 50px;
  }

  .gallery-heading > p {
    margin-top: 30px;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 310px 210px 290px 220px;
  }

  .gallery-item:nth-child(1) {
    grid-column: 1 / 3;
    grid-row: 1;
  }

  .gallery-item:nth-child(2) {
    grid-column: 1;
    grid-row: 2;
  }

  .gallery-item:nth-child(3) {
    grid-column: 1 / 3;
    grid-row: 3;
  }

  .gallery-item:nth-child(4) {
    grid-column: 2;
    grid-row: 2;
  }

  .gallery-item:nth-child(5) {
    grid-column: 1 / 3;
    grid-row: 4;
  }

  .gallery-item > span {
    opacity: 1;
    transform: none;
  }

  .lightbox {
    padding: 45px 12px;
  }

  .lightbox[open] {
    grid-template-columns: 35px 1fr 35px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html[data-effects="off"] *,
  html[data-effects="off"] *::before,
  html[data-effects="off"] *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html[data-effects="off"] .quote-image {
    background-attachment: scroll;
  }
}

.person-hometown {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 0 15px;
  color: var(--rose-deep);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.person-hometown i {
  display: block;
  width: 5px;
  height: 5px;
  border: 1px solid currentColor;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(185, 128, 118, 0.1);
}

.origin-bridge {
  position: relative;
  min-height: 720px;
  padding: clamp(100px, 12vw, 170px) 0;
  overflow: hidden;
  isolation: isolate;
  color: #f9f4ec;
  background:
    radial-gradient(circle at 18% 85%, rgba(185, 128, 118, 0.22), transparent 28%),
    radial-gradient(circle at 84% 15%, rgba(214, 185, 140, 0.17), transparent 25%),
    #25211e;
}

.origin-bridge::before {
  content: "HOME";
  position: absolute;
  z-index: -1;
  right: -0.04em;
  bottom: -0.25em;
  color: rgba(255, 255, 255, 0.025);
  font-family: var(--serif);
  font-size: min(30vw, 430px);
  font-weight: 600;
  letter-spacing: -0.08em;
  line-height: 1;
}

.origin-bridge__glow {
  position: absolute;
  z-index: -1;
  top: 42%;
  left: 50%;
  width: min(70vw, 850px);
  height: 160px;
  border-radius: 50%;
  background: rgba(209, 169, 116, 0.1);
  filter: blur(70px);
  transform: translate(-50%, -50%);
}

.origin-bridge__heading {
  width: min(650px, calc(100% - 40px));
  margin: 0 auto 80px;
  text-align: center;
}

.origin-bridge__heading .eyebrow {
  color: #d7b681;
}

.origin-bridge__heading h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(53px, 7.5vw, 92px);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.82;
}

.origin-bridge__heading h2 em {
  color: #e1c39b;
  font-weight: 400;
}

.origin-route {
  position: relative;
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(280px, 1.4fr) minmax(220px, 0.8fr);
  align-items: center;
  gap: 12px;
  max-width: 1120px;
  perspective: 1200px;
}

.origin-place {
  --shine-x: 50%;
  --shine-y: 50%;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 38px 34px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.17);
  backdrop-filter: blur(14px);
  transition:
    transform 0.28s ease-out,
    border-color 0.3s ease,
    background 0.3s ease;
}

.origin-place::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  background: radial-gradient(
    circle at var(--shine-x) var(--shine-y),
    rgba(238, 209, 166, 0.24),
    transparent 32%
  );
  transition: opacity 0.3s ease;
}

.origin-place:hover {
  border-color: rgba(225, 195, 155, 0.45);
  background: rgba(255, 255, 255, 0.085);
}

.origin-place:hover::before {
  opacity: 1;
}

.origin-place > span {
  margin-bottom: 14px;
  color: #d7b681;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.origin-place strong {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1;
}

.origin-place p {
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.56);
  font-size: 10px;
  letter-spacing: 0.05em;
}

.origin-place--bride {
  text-align: right;
  transform-origin: right center;
}

.origin-place--groom {
  transform-origin: left center;
}

.origin-path {
  position: relative;
  height: 170px;
}

.origin-path svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.origin-path path {
  fill: none;
  stroke-width: 1;
}

.origin-path__ghost {
  stroke: rgba(255, 255, 255, 0.1);
}

.origin-path__draw {
  stroke-dasharray: 850;
  stroke-dashoffset: 850;
}

.origin-route.is-visible .origin-path__draw {
  animation: routeDraw 2.2s 0.35s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.origin-heart {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 0;
  font-family: var(--serif);
  font-size: 30px;
  opacity: 0;
  offset-path: path("M20 128 C165 2 430 8 580 128");
  offset-distance: 0%;
  filter: drop-shadow(0 0 12px rgba(225, 193, 143, 0.45));
}

.origin-route.is-visible .origin-heart {
  animation: routeHeart 2.2s 0.35s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.origin-dot {
  position: absolute;
  bottom: 34px;
  width: 9px;
  height: 9px;
  border: 2px solid #29241f;
  border-radius: 50%;
  background: #d9b57f;
  box-shadow: 0 0 0 1px #d9b57f;
}

.origin-dot--one {
  left: 12px;
}

.origin-dot--two {
  right: 12px;
}

.origin-bridge__note {
  width: min(650px, calc(100% - 40px));
  margin: 65px auto 0;
  color: rgba(255, 255, 255, 0.58);
  font-family: var(--serif);
  font-size: 18px;
  font-style: italic;
  text-align: center;
}

.origin-bridge__note em {
  color: #e1c39b;
}

@keyframes routeDraw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes routeHeart {
  0% {
    offset-distance: 0%;
    opacity: 0;
    transform: scale(0.5);
  }
  12%,
  88% {
    opacity: 1;
  }
  50% {
    transform: scale(1.15);
  }
  100% {
    offset-distance: 100%;
    opacity: 0;
    transform: scale(0.5);
  }
}

@media (max-width: 760px) {
  .person-hometown {
    font-size: 8px;
    letter-spacing: 0.05em;
  }

  .origin-bridge {
    min-height: 0;
    padding: 100px 0;
  }

  .origin-bridge__heading {
    margin-bottom: 60px;
  }

  .origin-bridge__heading h2 {
    font-size: 54px;
  }

  .origin-route {
    grid-template-columns: 1fr;
    gap: 0;
    width: min(100% - 36px, 460px);
  }

  .origin-place {
    text-align: center;
  }

  .origin-path {
    order: 2;
    width: 120px;
    height: 125px;
    margin: -10px auto;
    transform: rotate(90deg);
  }

  .origin-place--bride {
    order: 1;
  }

  .origin-place--groom {
    order: 3;
  }

  .origin-dot {
    bottom: 24px;
  }

  .origin-heart {
    font-size: 25px;
  }

  .origin-bridge__note {
    margin-top: 50px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html[data-effects="off"] .origin-path__draw {
    stroke-dashoffset: 0;
  }

  html[data-effects="off"] .origin-heart {
    display: none;
  }
}

/* ──────────────────────────────────────────────────────────
   CINEMATIC 3D STORYTELLING LAYER
   ────────────────────────────────────────────────────────── */

body::before {
  content: "";
  position: fixed;
  z-index: 900;
  inset: 0;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

.ambient-canvas {
  position: fixed;
  z-index: 4;
  inset: 0;
  pointer-events: none;
  mix-blend-mode: screen;
}

.cursor-orbit {
  will-change: transform;
}

.cursor-orbit i {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--rose);
  transform: translate(-50%, -50%);
}

.cursor-orbit.is-hovering {
  top: -27px;
  left: -27px;
  border-color: rgba(214, 185, 140, 0.52);
}

.chapter-rail {
  position: fixed;
  z-index: 45;
  top: 50%;
  left: 24px;
  flex-direction: column;
  gap: 18px;
  color: white;
  transform: translateY(-50%);
  mix-blend-mode: difference;
}

.chapter-rail__line {
  position: absolute;
  z-index: -1;
  top: 8px;
  bottom: 8px;
  left: 3px;
  width: 1px;
  background: rgba(255, 255, 255, 0.2);
}

.chapter-rail__line i {
  display: block;
  width: 100%;
  height: 20%;
  background: white;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.chapter-rail a {
  display: grid;
  grid-template-columns: 8px 1fr;
  align-items: center;
  gap: 10px;
  opacity: 0.42;
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}

.chapter-rail a::before {
  content: "";
  width: 7px;
  height: 7px;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: transparent;
  transition: background 0.3s ease;
}

.chapter-rail a b {
  display: none;
}

.chapter-rail a em {
  overflow: hidden;
  width: 0;
  font-size: 8px;
  font-style: normal;
  letter-spacing: 0.17em;
  white-space: nowrap;
  text-transform: uppercase;
  opacity: 0;
  transition:
    width 0.3s ease,
    opacity 0.3s ease;
}

.chapter-rail a:hover,
.chapter-rail a.is-active {
  opacity: 1;
  transform: translateX(3px);
}

.chapter-rail a:hover em,
.chapter-rail a.is-active em {
  width: 70px;
  opacity: 1;
}

.chapter-rail a.is-active::before {
  background: currentColor;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.12);
}

.hero {
  perspective: 1400px;
}

.hero-media {
  inset: -8%;
  background-position: 66% center;
}

.hero::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  pointer-events: none;
}

.hero-photo-shell {
  --shine-x: 50%;
  --shine-y: 30%;
  position: absolute;
  z-index: 2;
  top: 8vh;
  right: clamp(28px, 7vw, 120px);
  width: min(47vw, 660px);
  height: 84vh;
  overflow: hidden;
  border-radius: 48% 48% 18px 18px;
  transform-style: preserve-3d;
  transition: transform 0.28s ease-out;
  will-change: transform;
  animation: portalIn 1.6s 0.15s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-photo-shell::before {
  content: "";
  position: absolute;
  z-index: 3;
  inset: 0;
  pointer-events: none;
  opacity: 0.42;
  background: radial-gradient(
    circle at var(--shine-x) var(--shine-y),
    rgba(255, 244, 220, 0.62),
    transparent 32%
  );
  mix-blend-mode: soft-light;
}

.hero-photo-shell__image {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(0deg, rgba(29, 24, 21, 0.45), transparent 38%),
    var(--hero-image);
  background-position: 68% center;
  background-size: cover;
  transform: scale(1.035);
  animation: portalBreath 12s ease-in-out infinite alternate;
}

.hero-photo-shell__edge {
  position: absolute;
  z-index: 4;
  inset: 14px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: inherit;
  pointer-events: none;
}

.hero-photo-shell__index,
.hero-photo-shell__caption {
  position: absolute;
  z-index: 5;
  bottom: 27px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 8px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.hero-photo-shell__index {
  left: 30px;
}

.hero-photo-shell__index b {
  font-weight: 500;
}

.hero-photo-shell__caption {
  right: 30px;
  font-family: var(--serif);
  font-size: 12px;
  font-style: italic;
  letter-spacing: 0.06em;
  text-transform: none;
}

.hero-aurora {
  position: absolute;
  z-index: 1;
  width: 40vw;
  aspect-ratio: 1;
  border-radius: 50%;
  pointer-events: none;
  mix-blend-mode: screen;
  animation: auroraFloat 11s ease-in-out infinite alternate;
}

.hero-aurora--one {
  top: -14vw;
  right: 12vw;
  background: #c78f78;
}

.hero-aurora--two {
  right: -15vw;
  bottom: -20vw;
  background: #d9b87f;
  animation-delay: -5s;
}

.hero-kinetic {
  position: absolute;
  z-index: 1;
  right: -0.13em;
  bottom: -0.06em;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  color: rgba(255, 255, 255, 0.055);
  font-family: var(--serif);
  font-size: clamp(90px, 13vw, 210px);
  font-weight: 500;
  letter-spacing: -0.06em;
  line-height: 0.65;
  pointer-events: none;
}

.hero-kinetic span:nth-child(2) {
  margin-right: 0.35em;
}

.hero-kinetic span:nth-child(3) {
  margin-right: 0.72em;
}

.hero-content {
  width: min(1320px, calc(100% - 100px));
  pointer-events: none;
}

.hero-content > * {
  pointer-events: auto;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
}

.hero-eyebrow span {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 50%;
  letter-spacing: 0;
}

.hero-title {
  max-width: 650px;
  font-size: clamp(72px, 8.3vw, 126px);
  mix-blend-mode: normal;
}

.hero-title span:last-child {
  margin-left: 0.38em;
}

.hero-date,
.hero-location {
  width: min(390px, 100%);
}

[data-tilt] {
  --shine-x: 50%;
  --shine-y: 50%;
}

.event-card::before,
.gallery-item::before {
  content: "";
  position: absolute;
  z-index: 3;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(
    circle at var(--shine-x) var(--shine-y),
    rgba(255, 255, 255, 0.36),
    transparent 28%
  );
  transition: opacity 0.3s ease;
}

.event-card:hover::before,
.gallery-item:hover::before {
  opacity: 0.42;
}

.quote-break {
  perspective: 1100px;
}

.quote-image {
  transform: scale(1.06);
}

.quote-break blockquote {
  padding: 70px 40px;
  background: rgba(37, 31, 27, 0.18);
  backdrop-filter: blur(4px);
  transform-style: preserve-3d;
}

.quote-break blockquote.is-visible {
  transform: rotateX(0) translateZ(40px);
}

.quote-rings {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  width: min(78vw, 850px);
  aspect-ratio: 1;
  pointer-events: none;
  transform: translate(-50%, -50%) rotateX(68deg);
  transform-style: preserve-3d;
}

.quote-rings i {
  position: absolute;
  inset: calc(var(--ring, 0) * 9%);
  border: 1px solid rgba(232, 208, 173, 0.22);
  border-radius: 50%;
  animation: ringOrbit 14s linear infinite;
}

.quote-rings i:nth-child(2) {
  --ring: 1;
  animation-direction: reverse;
  animation-duration: 18s;
}

.quote-rings i:nth-child(3) {
  --ring: 2;
  animation-duration: 22s;
}

.story-section {
  overflow: clip;
  padding-bottom: 10vh;
  background:
    radial-gradient(circle at 18% 25%, rgba(210, 170, 142, 0.2), transparent 25%),
    radial-gradient(circle at 80% 70%, rgba(214, 185, 140, 0.2), transparent 24%),
    #f5efe7;
}

.story-section::before {
  content: "LOVE";
  position: absolute;
  top: 9%;
  right: -0.1em;
  color: rgba(83, 63, 53, 0.035);
  font-family: var(--serif);
  font-size: 25vw;
  font-weight: 600;
  line-height: 1;
  pointer-events: none;
}

.story-experience {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: clamp(38px, 6vw, 90px);
  align-items: start;
  max-width: 1240px;
}

.story-stage {
  position: sticky;
  top: 10vh;
  height: 80vh;
  perspective: 1500px;
}

.story-camera {
  --camera-roll: 0deg;
  --camera-lift: 0px;
  position: relative;
  height: 100%;
  transform: translateY(var(--camera-lift)) rotateZ(var(--camera-roll));
  transform-style: preserve-3d;
  transition: transform 0.25s ease-out;
}

.story-camera__backdrop {
  position: absolute;
  inset: 10% 3% 4% 9%;
  border-radius: 6px;
  background: #c9ad8b;
  box-shadow: 0 35px 90px rgba(69, 48, 36, 0.22);
  transform: translate3d(26px, 21px, -80px) rotateZ(2.5deg);
}

.story-camera__glow {
  position: absolute;
  top: 4%;
  left: 8%;
  width: 65%;
  height: 65%;
  border-radius: 50%;
  background: rgba(209, 148, 119, 0.3);
  transform: translateZ(-160px);
}

.story-panels {
  position: absolute;
  inset: 5% 6% 7% 3%;
  transform-style: preserve-3d;
}

.story-panel {
  position: absolute;
  inset: 0;
  margin: 0;
  overflow: hidden;
  opacity: 0;
  background: #3b322d;
  box-shadow: 0 35px 90px rgba(52, 37, 29, 0.28);
  transform: translate3d(18%, 1%, -220px) rotateY(-18deg) scale(0.88);
  transform-origin: left center;
  filter: saturate(0.65) brightness(0.72);
  backface-visibility: hidden;
}

.story-panel.is-active {
  z-index: 3;
  opacity: 1;
  filter: saturate(0.92) brightness(1);
  transform: translate3d(0, 0, 0) rotateY(0) scale(1);
}

.story-panel.is-past {
  opacity: 0;
  transform: translate3d(-18%, -1%, -180px) rotateY(17deg) scale(0.9);
  transform-origin: right center;
}

.story-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  transition: transform 7s ease;
}

.story-panel.is-active img {
  transform: scale(1.11);
}

.story-panel__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(29, 23, 20, 0.12), transparent 55%),
    linear-gradient(0deg, rgba(28, 23, 20, 0.62), transparent 42%);
}

.story-panel figcaption {
  position: absolute;
  z-index: 2;
  right: 28px;
  bottom: 24px;
  color: rgba(255, 255, 255, 0.76);
  font-family: var(--serif);
  font-size: 17px;
  font-style: italic;
}

.story-frame {
  position: absolute;
  z-index: 6;
  inset: 2% 3% 4% 0;
  pointer-events: none;
  transform: translateZ(45px);
}

.story-frame i {
  position: absolute;
  width: 42px;
  height: 42px;
  border-color: rgba(255, 255, 255, 0.65);
  border-style: solid;
}

.story-frame i:nth-child(1) {
  top: 0;
  left: 0;
  border-width: 1px 0 0 1px;
}

.story-frame i:nth-child(2) {
  top: 0;
  right: 0;
  border-width: 1px 1px 0 0;
}

.story-frame i:nth-child(3) {
  right: 0;
  bottom: 0;
  border-width: 0 1px 1px 0;
}

.story-frame i:nth-child(4) {
  bottom: 0;
  left: 0;
  border-width: 0 0 1px 1px;
}

.story-hud {
  position: absolute;
  z-index: 8;
  top: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--ink);
  transform: translateZ(80px);
}

.story-hud span {
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.22em;
}

.story-hud strong {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 400;
}

.story-hud strong b {
  color: var(--rose);
  font-size: 32px;
  font-weight: 400;
}

.story-depth-label {
  position: absolute;
  z-index: 8;
  bottom: 0;
  left: 0;
  color: var(--muted);
  font-size: 7px;
  letter-spacing: 0.24em;
  transform: translateZ(75px);
}

.story-progress {
  position: absolute;
  top: 12%;
  right: -18px;
  bottom: 10%;
  width: 1px;
  background: rgba(101, 73, 57, 0.18);
}

.story-progress i {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--rose);
  transform: scaleY(0);
  transform-origin: top;
}

.story-step {
  min-height: 88vh;
  display: flex;
  align-items: center;
  perspective: 900px;
  opacity: 0.3;
  transition: opacity 0.6s ease;
}

.story-step.is-active {
  opacity: 1;
}

.story-step__glass {
  position: relative;
  padding: 52px 42px 44px;
  border: 1px solid rgba(94, 70, 57, 0.14);
  background: rgba(251, 248, 243, 0.58);
  box-shadow: 0 25px 70px rgba(67, 48, 38, 0.08);
  backdrop-filter: blur(16px);
  transform: rotateY(-7deg) translateZ(-30px);
  transform-origin: left;
}

.story-step.is-active .story-step__glass {
  background: rgba(255, 252, 247, 0.86);
  box-shadow: 0 30px 80px rgba(67, 48, 38, 0.14);
  transform: rotateY(0) translateZ(16px);
}

.story-step__number {
  position: absolute;
  top: -0.3em;
  right: 14px;
  color: rgba(185, 128, 118, 0.1);
  font-family: var(--serif);
  font-size: 112px;
  line-height: 1;
}

.story-step time {
  position: relative;
  color: var(--rose-deep);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.2em;
}

.story-step h3 {
  position: relative;
  margin: 14px 0 20px;
  font-family: var(--serif);
  font-size: clamp(39px, 4vw, 57px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 0.95;
}

.story-step p {
  position: relative;
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 12px;
}

.story-step small {
  position: relative;
  color: var(--champagne);
  font-family: var(--serif);
  font-size: 17px;
  font-style: italic;
}

.gallery-item {
  transition:
    transform 0.28s ease-out,
    opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}

.gallery-item img,
.gallery-item::after {
  overflow: hidden;
}

.gallery-item img {
  clip-path: inset(0);
}

.event-card {
  transition:
    transform 0.28s ease-out,
    box-shadow 0.35s ease,
    opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes portalIn {
  from {
    opacity: 0;
    transform: translate3d(8vw, 5vh, -260px) rotateY(-16deg) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) rotateY(0) scale(1);
  }
}

@keyframes portalBreath {
  from {
    transform: scale(1.035);
  }
  to {
    transform: scale(1.09);
  }
}

@keyframes auroraFloat {
  from {
    transform: translate3d(-5%, -3%, 0) scale(0.92);
  }
  to {
    transform: translate3d(8%, 7%, 0) scale(1.12);
  }
}

@keyframes ringOrbit {
  from {
    transform: rotateZ(0) rotateX(3deg);
  }
  to {
    transform: rotateZ(360deg) rotateX(3deg);
  }
}

@media (max-width: 1100px) {

  .hero-photo-shell {
    right: 3vw;
    width: 52vw;
  }

  .hero-content {
    width: calc(100% - 56px);
  }

  .story-experience {
    grid-template-columns: minmax(0, 1.1fr) minmax(290px, 0.9fr);
    gap: 34px;
  }
}

@media (max-width: 760px) {

  .hero {
    perspective: none;
  }

  .hero::after {
    z-index: 3;
  }

  .hero-photo-shell {
    z-index: 2;
    inset: 70px 14px 112px;
    width: auto;
    height: auto;
    border-radius: 46% 46% 18px 18px;
    opacity: 0.92;
  }

  .hero-photo-shell__image {
    background-position: 67% center;
  }

  .hero-photo-shell__caption {
    display: none;
  }

  .hero-aurora {
    z-index: 2;
    width: 80vw;
  }

  .hero-kinetic {
    display: none;
  }

  .hero-content {
    width: calc(100% - 38px);
    margin-bottom: 58px;
  }

  .hero-eyebrow {
    margin-bottom: 14px;
  }

  .hero-eyebrow span {
    width: 26px;
    height: 26px;
  }

  .hero-title {
    max-width: 100%;
    font-size: clamp(54px, 16vw, 72px);
  }

  .hero-date {
    margin-top: 24px;
  }

  .quote-break blockquote {
    padding: 55px 24px;
    font-size: 28px;
  }

  .quote-rings {
    width: 130vw;
  }

  .story-section {
    padding-bottom: 40px;
  }

  .story-experience {
    display: block;
    width: 100%;
  }

  .story-stage {
    z-index: 2;
    top: 58px;
    width: calc(100% - 28px);
    height: 55svh;
    margin: 0 auto;
  }

  .story-panels {
    inset: 5% 0 8%;
  }

  .story-camera__backdrop {
    inset: 10% 0 3% 5%;
    transform: translate3d(13px, 12px, -80px) rotateZ(2deg);
  }

  .story-frame {
    inset: 1% -3px 5%;
  }

  .story-hud {
    right: 4px;
  }

  .story-depth-label {
    left: 3px;
  }

  .story-progress {
    right: -4px;
  }

  .story-panel figcaption {
    right: 18px;
    bottom: 17px;
  }

  .story-steps {
    position: relative;
    z-index: 4;
    margin-top: -7vh;
    padding: 0 14px;
  }

  .story-step {
    min-height: 78svh;
    align-items: flex-end;
    padding-bottom: 9vh;
  }

  .story-step:first-child {
    padding-top: 36vh;
  }

  .story-step__glass {
    width: 100%;
    padding: 40px 28px 34px;
    border-color: rgba(255, 255, 255, 0.48);
    background: rgba(250, 245, 237, 0.88);
    box-shadow: 0 28px 70px rgba(54, 38, 30, 0.2);
    backdrop-filter: blur(18px);
    transform: translateY(25px) scale(0.96);
  }

  .story-step.is-active .story-step__glass {
    background: rgba(255, 252, 247, 0.95);
    transform: translateY(0) scale(1);
  }

  .story-step__number {
    font-size: 90px;
  }

  .story-step h3 {
    font-size: 42px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html[data-effects="off"] .ambient-canvas,
  html[data-effects="off"] .cursor-orbit {
    display: none;
  }

  html[data-effects="off"] .hero-photo-shell,
  html[data-effects="off"] .hero-photo-shell__image,
  html[data-effects="off"] .hero-aurora,
  html[data-effects="off"] .quote-rings i {
    animation: none !important;
  }

  html[data-effects="off"] .story-panel,
  html[data-effects="off"] .story-step__glass {
    transition-duration: 0.01ms !important;
  }
}

/* ──────────────────────────────────────────────────────────
   CINEMATIC INVITATION OPENING
   ────────────────────────────────────────────────────────── */

.invitation-gate {
  transform-style: preserve-3d;
}

.invitation-gate[hidden] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
}

.gate-content {
  z-index: 6;
  width: min(610px, calc(100% - 48px));
  padding: 42px 52px 36px;
  border: 1px solid rgba(128, 89, 68, 0.22);
  background: rgba(250, 246, 239, 0.38);
  box-shadow:
    0 30px 90px rgba(60, 42, 32, 0.12),
    inset 0 0 45px rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(2px);
  transform: translateZ(70px);
  transform-style: preserve-3d;
  transition:
    opacity 0.55s ease,
    transform 1s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.8s ease;
  animation: gateCardFloat 5s ease-in-out infinite alternate;
}

.gate-content::before,
.gate-content::after {
  content: "";
  position: absolute;
  width: 38px;
  height: 38px;
  border-color: rgba(143, 94, 86, 0.48);
  border-style: solid;
}

.gate-content::before {
  top: 12px;
  left: 12px;
  border-width: 1px 0 0 1px;
}

.gate-content::after {
  right: 12px;
  bottom: 12px;
  border-width: 0 1px 1px 0;
}

.gate-chapter {
  display: block;
  margin-bottom: 18px;
  color: rgba(93, 68, 56, 0.55);
  font-size: 7px;
  font-weight: 600;
  letter-spacing: 0.36em;
}

.gate-kicker {
  margin-bottom: 10px;
  color: var(--rose-deep);
}

.gate-note {
  color: #776a62;
}

.gate-names {
  margin: 14px 0 25px;
  text-shadow: 0 2px 18px rgba(100, 67, 52, 0.08);
}

.seal-button {
  z-index: 2;
  width: 88px;
  height: 88px;
  overflow: visible;
  background:
    radial-gradient(circle at 33% 25%, #d49a8e 0, #a26057 43%, #7b413b 75%, #592c29 100%);
  box-shadow:
    0 13px 30px rgba(101, 56, 49, 0.32),
    inset 0 0 0 3px rgba(255, 255, 255, 0.12),
    inset 0 0 0 8px rgba(71, 33, 29, 0.16),
    0 0 42px rgba(195, 132, 111, 0.2);
  animation: sealLevitate 2.6s ease-in-out infinite;
}

.seal-button::before {
  inset: -12px;
  border-color: rgba(143, 94, 86, 0.34);
}

.seal-button::after {
  content: "";
  position: absolute;
  inset: 9px;
  border: 1px dashed rgba(255, 242, 229, 0.35);
  border-radius: 50%;
  animation: sealSpin 14s linear infinite;
}

.seal-monogram {
  z-index: 3;
  align-items: center;
  justify-content: center;
  gap: 3px;
  line-height: 1;
  text-shadow: 0 2px 4px rgba(58, 26, 24, 0.28);
}

.seal-monogram span {
  color: #edcfb2;
}

.seal-halo {
  position: absolute;
  z-index: -1;
  pointer-events: none;
  border: 1px solid rgba(161, 98, 87, 0.32);
  border-radius: 50%;
  animation: sealHalo 2.6s ease-out infinite;
}

.seal-halo--two {
  animation-delay: 1.3s;
}

.gate-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 22px;
  color: rgba(87, 65, 55, 0.66);
}

.gate-hint i {
  display: block;
  width: 24px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0.5);
  animation: hintLine 2s ease-in-out infinite alternate;
}

.gate-stars {
  position: absolute;
  z-index: 8;
  top: 65%;
  left: 50%;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.gate-stars i {
  position: absolute;
  top: 0;
  left: 0;
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  opacity: 0.15;
  box-shadow: 0 0 8px 2px rgba(255, 219, 164, 0.5);
  transform: translate(var(--from-x), var(--from-y));
}

.invitation-gate.is-breaking-seal .seal-button {
  animation: sealBreak 0.52s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.invitation-gate.is-breaking-seal .seal-halo {
  animation: haloBreak 0.72s ease-out forwards;
}

.invitation-gate.is-open {
  background: transparent;
  animation: dismissInvitationGate 2.2s 0.15s forwards;
}

.invitation-gate.is-open .gate-content {
  opacity: 0;
  filter: blur(14px);
  animation: none;
  transform: translateZ(520px) scale(1.25);
}

.invitation-gate.is-open .gate-stars {
  opacity: 0;
  transition: opacity 1.1s 0.5s ease;
}

.hero-content,
.scroll-cue {
  transition:
    opacity 0.75s ease,
    transform 0.9s cubic-bezier(0.16, 1, 0.3, 1),
    visibility 0s linear;
}

body.hero-ready .hero-content,
body.hero-ready .scroll-cue {
  visibility: visible;
  opacity: 1;
}

.force-visible {
  visibility: visible !important;
  opacity: 1 !important;
}

body.hero-ready .hero-content *,
body.hero-ready .hero-media,
body.hero-ready .hero-photo-shell,
body.hero-ready .hero-photo-shell__image {
  animation-play-state: running !important;
}

body.invitation-revealed .hero::before {
  content: "";
  position: absolute;
  z-index: 8;
  inset: 0;
  pointer-events: none;
  background: white;
  opacity: 0;
  animation: heroAfterglow 1.3s ease-out;
}

@keyframes gateCardFloat {
  from {
    transform: translateZ(70px) translateY(-4px) rotateX(0.4deg);
  }
  to {
    transform: translateZ(78px) translateY(4px) rotateX(-0.4deg);
  }
}

@keyframes sealLevitate {
  0%,
  100% {
    transform: translateY(0) rotate(-1deg);
    box-shadow:
      0 13px 30px rgba(101, 56, 49, 0.32),
      inset 0 0 0 3px rgba(255, 255, 255, 0.12),
      inset 0 0 0 8px rgba(71, 33, 29, 0.16),
      0 0 32px rgba(195, 132, 111, 0.16);
  }
  50% {
    transform: translateY(-5px) rotate(1deg);
    box-shadow:
      0 19px 38px rgba(101, 56, 49, 0.38),
      inset 0 0 0 3px rgba(255, 255, 255, 0.12),
      inset 0 0 0 8px rgba(71, 33, 29, 0.16),
      0 0 48px rgba(195, 132, 111, 0.3);
  }
}

@keyframes sealSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes sealHalo {
  0% {
    opacity: 0.6;
    transform: scale(0.78);
  }
  100% {
    opacity: 0;
    transform: scale(1.45);
  }
}

@keyframes hintLine {
  to {
    transform: scaleX(1);
  }
}

@keyframes gateTwinkle {
  from {
    opacity: 0.08;
    transform: translate(var(--from-x), var(--from-y)) scale(0.5);
  }
  to {
    opacity: 0.75;
    transform: translate(var(--from-x), var(--from-y)) scale(1.25);
  }
}

@keyframes haloBreak {
  to {
    opacity: 0;
    transform: scale(3.2);
    border-color: #ffe1ad;
  }
}

@keyframes gateParticleBurst {
  0% {
    opacity: 0;
    transform: translate(var(--from-x), var(--from-y)) scale(0.2);
  }
  18% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(var(--to-x), var(--to-y)) scale(0);
  }
}

@keyframes heroAfterglow {
  from {
    opacity: 0.88;
  }
  to {
    opacity: 0;
  }
}

@keyframes dismissInvitationGate {
  0%,
  72% {
    visibility: visible;
    opacity: 1;
  }
  99% {
    visibility: visible;
    opacity: 0;
  }
  100% {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
  }
}

@media (max-width: 680px) {
  .gate-content {
    width: calc(100% - 34px);
    padding: 34px 20px 28px;
  }

  .gate-chapter {
    margin-bottom: 15px;
    font-size: 6px;
  }

  .gate-note {
    font-size: 16px;
  }

  .gate-names {
    margin: 13px 0 22px;
    font-size: clamp(41px, 13vw, 58px);
  }

  .seal-button {
    width: 80px;
    height: 80px;
  }

  .gate-stars {
    top: 67%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html[data-effects="off"] .gate-content,
  html[data-effects="off"] .seal-button,
  html[data-effects="off"] .seal-button::after,
  html[data-effects="off"] .seal-halo,
  html[data-effects="off"] .gate-stars i,
  html[data-effects="off"] .gate-hint i {
    animation: none !important;
  }

  html[data-effects="off"] .invitation-gate.is-open {
    display: none !important;
  }
}

/* ──────────────────────────────────────────────────────────
   REFINED ENVELOPE OPENING — WARM EDITORIAL
   ────────────────────────────────────────────────────────── */

.invitation-gate .gate-content {
  position: absolute;
  z-index: 2;
  bottom: 42px;
  left: 11%;
  width: 78%;
  height: 540px;
  padding: 55px 42px 40px;
  overflow: hidden;
  border: 1px solid rgba(148, 108, 75, 0.25);
  border-radius: 2px;
  opacity: 1;
  color: var(--ink);
  background:
    radial-gradient(circle at 50% 0, rgba(215, 183, 140, 0.17), transparent 32%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.62), transparent 35%),
    #f8f1e7;
  box-shadow:
    0 15px 45px rgba(69, 46, 32, 0.18),
    inset 0 0 45px rgba(191, 156, 112, 0.09);
  filter: none;
  transform: translateZ(2px);
  transform-origin: bottom center;
  animation: invitationCardIdle 4s ease-in-out infinite alternate;
  transition: none;
}

.invitation-gate .gate-content::before,
.invitation-gate .gate-content::after {
  width: 46px;
  height: 46px;
  border-color: rgba(172, 124, 85, 0.42);
}

.gate-date {
  display: inline-block;
  margin-top: 2px;
  padding: 8px 17px;
  color: #7f5d4e;
  border-top: 1px solid rgba(148, 108, 75, 0.25);
  border-bottom: 1px solid rgba(148, 108, 75, 0.25);
  font-size: 9px;
  letter-spacing: 0.26em;
}

.invitation-gate .seal-button {
  position: absolute;
  z-index: 20;
  top: 58%;
  left: 50%;
  margin: 0;
  visibility: visible !important;
  opacity: 1 !important;
  transform: translate3d(-50%, -50%, 180px);
  backface-visibility: visible;
  animation: envelopeSealFloat 2.8s ease-in-out infinite;
}

.invitation-gate .seal-button::before {
  border-color: rgba(255, 224, 190, 0.48);
  box-shadow: 0 0 24px rgba(255, 209, 161, 0.28);
}

.gate-stars {
  top: 60%;
}

.invitation-gate.is-breaking-seal .seal-button {
  animation: sealBreak 0.52s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.invitation-gate.is-open .gate-content {
  opacity: 1;
  filter: none;
  animation: invitationCardRise 1.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transform: translateZ(2px);
}

@keyframes invitationCardIdle {
  from {
    transform: translate3d(0, 2px, 2px);
  }
  to {
    transform: translate3d(0, -5px, 10px);
  }
}

@keyframes envelopeSealFloat {
  0%,
  100% {
    transform: translate3d(-50%, -50%, 180px) translateY(0) rotate(-1deg);
  }
  50% {
    transform: translate3d(-50%, -50%, 180px) translateY(-7px) rotate(1deg);
  }
}

@keyframes invitationCardRise {
  0% {
    opacity: 1;
    transform: translate3d(0, 0, 2px) scale(1);
  }
  62% {
    opacity: 1;
    transform: translate3d(0, -155px, 80px) scale(1.035);
  }
  100% {
    opacity: 0;
    transform: translate3d(0, -210px, 180px) scale(1.08);
  }
}

@media (max-width: 680px) {

  .invitation-gate .gate-content {
    bottom: 28px;
    left: 8%;
    width: 84%;
    height: 440px;
    padding: 40px 20px 28px;
  }

  .invitation-gate .gate-names {
    margin: 12px 0 17px;
    font-size: clamp(39px, 12vw, 54px);
  }

  .invitation-gate .gate-note {
    font-size: 14px;
  }

  .invitation-gate .seal-button {
    top: 58%;
    width: 76px;
    height: 76px;
  }

  .gate-stars {
    top: 61%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html[data-effects="off"] .invitation-gate .gate-content,
  html[data-effects="off"] .invitation-gate .seal-button {
    animation: none !important;
  }
}

/* ──────────────────────────────────────────────────────────
   LUXURY ART DIRECTION — FINAL POLISH
   ────────────────────────────────────────────────────────── */

:root {
  --pointer-x: 50vw;
  --pointer-y: 50vh;
}

body::after {
  content: "";
  position: fixed;
  z-index: 3;
  inset: 0;
  pointer-events: none;
  opacity: 0.2;
  background: radial-gradient(
    360px circle at var(--pointer-x) var(--pointer-y),
    rgba(255, 225, 182, 0.22),
    transparent 68%
  );
  mix-blend-mode: soft-light;
}

.invitation-gate .gate-content {
  bottom: 35px;
  left: 14%;
  width: 72%;
  height: 505px;
  padding: 48px 34px 34px;
  border-radius: 4px;
  background:
    linear-gradient(90deg, transparent 49.8%, rgba(177, 139, 98, 0.06) 50%, transparent 50.2%),
    radial-gradient(circle at 50% -8%, rgba(215, 183, 140, 0.2), transparent 33%),
    #fbf5eb;
}

.invitation-gate .gate-content::before,
.invitation-gate .gate-content::after {
  width: 34px;
  height: 34px;
}

.invitation-gate .gate-chapter {
  margin-bottom: 15px;
  font-size: 6px;
}

.invitation-gate .gate-kicker {
  font-size: 8px;
}

.invitation-gate .gate-note {
  font-size: 16px;
}

.invitation-gate .gate-names {
  margin: 13px 0 18px;
  font-size: clamp(43px, 6vw, 62px);
  line-height: 0.82;
}

.invitation-gate .gate-names i {
  margin: 7px 0;
}

.invitation-gate .seal-button {
  top: 58%;
  width: 104px;
  height: 104px;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
  filter: drop-shadow(0 14px 13px rgba(54, 23, 20, 0.28));
}

.invitation-gate .seal-button::before {
  inset: -10px;
  border-color: rgba(216, 163, 128, 0.28);
  box-shadow:
    0 0 0 7px rgba(255, 223, 186, 0.035),
    0 0 28px rgba(255, 203, 153, 0.25);
}

.invitation-gate .seal-button::after {
  display: none;
}

.wax-seal {
  overflow: visible;
}

.wax-seal__body {
  transform-origin: center;
}

.wax-seal__ridge {
  stroke: rgba(246, 180, 158, 0.22);
  stroke-width: 1;
}

.wax-seal__line {
  stroke: rgba(255, 207, 181, 0.42);
  stroke-width: 0.8;
  stroke-dasharray: 1.5 3;
}

.wax-seal__sprig {
  fill: none;
  stroke: rgba(243, 192, 164, 0.5);
  stroke-width: 1;
  stroke-linecap: round;
}

.wax-seal__letter,
.wax-seal__amp {
  fill: #f4cbb5;
  font-family: var(--serif);
  font-style: italic;
  text-anchor: middle;
  filter: url("#sealEmboss");
}

.wax-seal__letter {
  font-size: 28px;
}

.wax-seal__amp {
  font-size: 13px;
}

.invitation-gate .seal-button:hover .wax-seal__body {
  animation: waxPulse 0.8s ease-in-out infinite alternate;
}

.button {
  isolation: isolate;
}

.button::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -100%;
  bottom: -100%;
  left: -45%;
  width: 34%;
  opacity: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.44), transparent);
  transform: rotate(18deg) translateX(-180%);
  transition:
    transform 0.8s ease,
    opacity 0.25s ease;
}

.button:hover::before {
  opacity: 1;
  transform: rotate(18deg) translateX(580%);
}

.portrait-frame::before {
  content: "";
  position: absolute;
  z-index: 3;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(120deg, transparent 35%, rgba(255, 238, 213, 0.24), transparent 63%);
  transform: translateX(-100%);
  transition:
    transform 0.9s ease,
    opacity 0.4s ease;
}

.person-card:hover .portrait-frame::before {
  opacity: 1;
  transform: translateX(100%);
}

@keyframes waxPulse {
  from {
    transform: scale(0.98);
  }
  to {
    transform: scale(1.025);
  }
}

@keyframes sealBreak {
  0% {
    opacity: 1;
    transform: translate3d(-50%, -50%, 180px) scale(1) rotate(0);
    filter: brightness(1);
  }
  42% {
    opacity: 1;
    transform: translate3d(-50%, -50%, 180px) scale(0.9) rotate(-4deg);
    filter: brightness(1.22);
  }
  74% {
    opacity: 1;
    transform: translate3d(-50%, -50%, 180px) scale(1.13) rotate(3deg);
    filter: brightness(1.48);
  }
  100% {
    opacity: 0;
    transform: translate3d(-50%, -50%, 180px) scale(0.45) rotate(10deg);
    filter: brightness(1.8);
  }
}

@media (max-width: 680px) {

  .invitation-gate .gate-content {
    bottom: 26px;
    left: 10%;
    width: 80%;
    height: 415px;
    padding: 37px 18px 25px;
  }

  .invitation-gate .gate-names {
    font-size: clamp(37px, 11.5vw, 50px);
  }

  .invitation-gate .seal-button {
    top: 58%;
    width: 84px;
    height: 84px;
  }
}

@media (prefers-reduced-motion: reduce) {

  html[data-effects="off"] body::after {
    display: none;
  }
}

/* ──────────────────────────────────────────────────────────
   MINIMAL ARCH INVITATION — CLEAN REBUILD
   ────────────────────────────────────────────────────────── */

body::after {
  opacity: 0.1;
}

.cover-backdrop {
  position: absolute;
  filter: blur(11px) saturate(0.62);
  transform: scale(1.08);
  transition:
    filter 1.5s ease,
    transform 1.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.cover-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 43%, rgba(247, 218, 176, 0.2), transparent 25%),
    linear-gradient(90deg, rgba(19, 16, 14, 0.25), transparent 30% 70%, rgba(19, 16, 14, 0.25));
}

.invitation-cover {
  position: relative;
  z-index: 5;
}

.invitation-cover__glow {
  position: absolute;
  z-index: -1;
  inset: 8% -18% -4%;
  border-radius: 50%;
  opacity: 0.3;
  background: rgba(224, 180, 126, 0.3);
  filter: blur(65px);
  animation: coverGlowBreath 4s ease-in-out infinite alternate;
}

.invitation-cover__paper {
  position: absolute;
  inset: 0;
  overflow: hidden;
  color: var(--ink);
}

.invitation-cover__paper::before {
  content: "";
  position: absolute;
  pointer-events: none;
}

.invitation-cover__paper::after {
  content: "";
  position: absolute;
  top: 15px;
  width: 1px;
  height: 54px;
}

.cover-corner {
  position: absolute;
  z-index: 2;
  width: 72px;
  height: 72px;
  pointer-events: none;
  border-style: solid;
}

.cover-corner--one {
  top: 31%;
  left: 26px;
  border-width: 1px 0 0 1px;
  border-radius: 36px 0 0;
}

.cover-corner--two {
  right: 26px;
  bottom: 27px;
  border-width: 0 1px 1px 0;
  border-radius: 0 0 36px;
}

.invitation-cover .gate-content {
  inset: auto;
  z-index: 3;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: visible;
  border: 0;
  border-radius: 0;
  opacity: 1;
  background: transparent;
  box-shadow: none;
  filter: none;
  text-align: center;
  animation: none;
}

.invitation-cover .gate-content::before,
.invitation-cover .gate-content::after {
  display: none;
}

.invitation-cover .gate-chapter {
  margin: 0 0 15px;
  font-size: 6px;
  letter-spacing: 0.38em;
}

.gate-ornament {
  margin-bottom: 6px;
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1;
}

.invitation-cover .gate-kicker {
  margin: 0 0 14px;
  font-size: 8px;
  letter-spacing: 0.34em;
}

.invitation-cover .gate-note {
  margin: 0;
  font-size: 16px;
}

.invitation-cover .gate-names {
  margin: 17px 0 18px;
  letter-spacing: -0.035em;
}

.invitation-cover .gate-names i {
  margin: 8px 0;
  font-size: 0.48em;
}

.invitation-cover .gate-date {
  margin: 0;
  padding: 7px 16px;
  font-size: 8px;
  letter-spacing: 0.3em;
}

.cover-rule {
  display: block;
  width: 1px;
  height: 24px;
  margin: 10px 0 8px;
  background: linear-gradient(#c29a72, transparent);
}

.invitation-cover .seal-button {
  position: relative;
  inset: auto;
  z-index: 4;
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
  visibility: visible !important;
  opacity: 1 !important;
  border-radius: 50%;
  transform: none;
}

.invitation-cover .seal-button::before {
  border-color: rgba(173, 105, 91, 0.22);
}

.invitation-cover .seal-halo {
  inset: -5px;
}

.invitation-cover .gate-hint {
  display: block;
}

.gate-stars {
  top: 72%;
}

.cover-afterglow {
  position: absolute;
  z-index: 8;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 12px;
  pointer-events: none;
  opacity: 0;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
}

.invitation-gate.is-open .invitation-cover .gate-content {
  opacity: 1;
  filter: none;
  transform: none;
  animation: none;
}

.invitation-gate.is-open .cover-backdrop {
  filter: blur(3px) saturate(0.85);
  transform: scale(1.02);
}

.invitation-gate.is-open .cover-afterglow {
  animation: coverFlash 1.35s ease-out forwards;
}

@keyframes coverGlowBreath {
  from {
    opacity: 0.18;
    transform: scale(0.92);
  }
  to {
    opacity: 0.38;
    transform: scale(1.08);
  }
}

@keyframes coverFlash {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0);
  }
  30% {
    opacity: 0.48;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(52);
  }
}

@media (max-width: 680px) {

  .invitation-cover .gate-note {
    font-size: 14px;
  }
}

@media (max-height: 650px) {

  .invitation-cover .gate-chapter,
  .gate-ornament {
    display: none;
  }

  .invitation-cover .gate-names {
    margin: 12px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html[data-effects="off"] .invitation-cover__glow,
  html[data-effects="off"] .invitation-cover__paper,
  html[data-effects="off"] .invitation-cover .seal-button {
    animation: none !important;
  }
}

/* ──────────────────────────────────────────────────────────
   EDITORIAL RESET — CONSISTENT, QUIET, PREMIUM
   ────────────────────────────────────────────────────────── */

.cursor-orbit,
.chapter-rail,
body::after {
  display: none !important;
}

/* Opening: editorial split screen */
.invitation-gate {
  align-items: stretch;
  justify-content: flex-end;
  overflow: hidden;
}

.cover-backdrop {
  filter: none;
  transform: none;
}

.cover-backdrop::after {
  background: linear-gradient(90deg, transparent 65%, rgba(28, 23, 20, 0.36));
}

.invitation-cover__paper::after {
  height: 42px;
}

.cover-corner--one {
  top: 24px;
  left: 24px;
}

.cover-corner--two {
  right: 24px;
  bottom: 24px;
}

.invitation-cover .gate-chapter {
  margin-bottom: 12px;
}

.invitation-cover .gate-names {
  margin: 20px 0 23px;
}

.invitation-cover .gate-note {
  max-width: 320px;
}

.invitation-cover .seal-button {
  margin-top: 2px;
}

.gate-stars {
  top: 69%;
  left: 78%;
}

.invitation-gate.is-open .cover-backdrop {
  filter: none;
  transform: scale(1.035);
}

/* Couple information */
.chapter--intro {
  background: #fbf8f3;
}

.couple-grid {
  max-width: 1080px;
  grid-template-columns: minmax(0, 1fr) 74px minmax(0, 1fr);
  gap: 30px;
}

.person-card--groom {
  margin-top: 0;
}

.portrait-frame {
  aspect-ratio: 0.76;
  border-radius: 220px 220px 16px 16px;
  box-shadow: 0 22px 60px rgba(64, 46, 36, 0.12);
}

.portrait-label {
  left: 24px;
  bottom: 20px;
  padding: 6px 10px;
  transform: none;
}

.person-copy {
  width: 92%;
  margin: 25px auto 0;
  padding: 0 12px;
  background: transparent;
}

.person-copy h3 {
  font-size: clamp(34px, 4vw, 48px);
}

.person-hometown {
  margin-bottom: 13px;
}

.couple-connector strong {
  font-size: 20px;
}

/* Hometowns / family information */
.origin-bridge {
  min-height: 0;
  padding: clamp(95px, 11vw, 145px) 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 50% 48%, rgba(214, 185, 140, 0.12), transparent 28%),
    #f2ebe2;
}

.origin-bridge::before {
  color: rgba(100, 74, 59, 0.025);
}

.origin-bridge__glow {
  opacity: 0.35;
}

.origin-bridge__heading {
  margin-bottom: 60px;
}

.origin-bridge__heading .eyebrow {
  color: var(--rose-deep);
}

.origin-bridge__heading h2 {
  font-size: clamp(50px, 7vw, 78px);
}

.origin-bridge__heading h2 em {
  color: var(--rose);
}

.origin-route {
  max-width: 1040px;
  grid-template-columns: 1fr 1.15fr 1fr;
  gap: 20px;
}

.origin-place {
  padding: 34px 30px;
  color: var(--ink);
  border: 1px solid rgba(109, 80, 63, 0.12);
  backdrop-filter: none;
}

.origin-place:hover {
  border-color: rgba(185, 128, 118, 0.35);
  background: #fffdfa;
}

.origin-place > span {
  color: var(--rose-deep);
}

.origin-place p {
  color: var(--muted);
}

.origin-path__ghost {
  stroke: rgba(105, 75, 58, 0.13);
}

.origin-dot {
  border-color: #f2ebe2;
}

.origin-bridge__note {
  margin-top: 48px;
  color: var(--muted);
}

.origin-bridge__note em {
  color: var(--rose-deep);
}

/* Message */

.quote-image {
  transform: none;
  background:
    linear-gradient(rgba(37, 31, 27, 0.34), rgba(37, 31, 27, 0.46)),
    url("assets/images/field.jpg?v=ab671c0-202611040641") center 46% / cover;
}

.quote-rings {
  display: none;
}

.quote-break blockquote {
  max-width: 690px;
  padding: 58px 54px;
  color: var(--ink);
  border-radius: 18px;
  background: rgba(251, 247, 240, 0.92);
  backdrop-filter: blur(8px);
}

.quote-break blockquote.is-visible {
  transform: translateY(0);
}

.quote-break blockquote span {
  color: var(--rose);
}

/* Wedding information */

.event-index {
  top: 20px;
  right: 22px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(185, 128, 118, 0.25);
  border-radius: 50%;
  font-size: 13px;
}

.event-time {
  font-size: clamp(54px, 7vw, 72px);
}

.event-rule {
  height: 32px;
  margin: 22px auto;
}

/* Gift / QR */

.gift-copy > p:not(.eyebrow) {
  margin-bottom: 30px;
}

/* Wishes */

.wish-form {
  border: 1px solid rgba(99, 71, 55, 0.1);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(66, 45, 33, 0.06);
}

@media (max-width: 820px) {

  .invitation-cover {
    align-self: end;
    margin-top: 32svh;
  }

  .invitation-cover__paper {
    backdrop-filter: blur(9px);
  }

  .invitation-cover .gate-chapter,
  .gate-ornament {
    display: none;
  }

  .invitation-cover .gate-names {
    margin: 12px 0 15px;
  }

  .gate-stars {
    top: 80%;
    left: 50%;
  }

  .couple-grid {
    display: block;
  }

  .person-card {
    max-width: 440px;
    margin: 0 auto;
  }

  .person-card--groom {
    margin-top: 58px;
  }

  .couple-connector {
    margin: 40px 0;
  }

  .origin-route {
    grid-template-columns: 1fr;
    width: min(100% - 32px, 480px);
  }

  .origin-place {
    text-align: center;
  }

  .quote-break blockquote {
    width: calc(100% - 30px);
    padding: 44px 24px;
    font-size: 27px;
  }

  .event-grid,
  .wishes-layout {
    grid-template-columns: 1fr;
  }
}

/* ──────────────────────────────────────────────────────────────
   CINEMATIC LUXE PASS — cleaner 3D, light, sparkle, premium cards
   ────────────────────────────────────────────────────────────── */

:root {
  --gold-soft: #e7c98f;
  --gold: #c7a15e;
  --blush: #f4d7ce;
  --paper: #fffaf2;
  --paper-deep: #efe2d0;
  --spotlight-x: 50vw;
  --spotlight-y: 42vh;
}

.ambient-canvas {
  mix-blend-mode: screen;
}

/* Opening gate: no bulky envelope, no ugly wax; a premium 3D invitation card */
.invitation-gate {
  display: grid !important;
  place-items: center !important;
  isolation: isolate;
}

.invitation-gate::before,
.invitation-gate::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.invitation-gate::before {
  inset: -25%;
  z-index: 1;
  background:
    conic-gradient(from 12deg at 50% 50%, transparent, rgba(255, 232, 188, 0.16), transparent 18%, transparent 64%, rgba(244, 215, 206, 0.16), transparent 82%),
    radial-gradient(circle at 50% 50%, transparent 0 22%, rgba(255, 244, 224, 0.08) 23%, transparent 40%);
}

.invitation-gate::after {
  inset: 0;
  z-index: 6;
  opacity: 0.48;
  background:
    linear-gradient(115deg, transparent 0 36%, rgba(255, 249, 229, 0.18) 43%, transparent 51%),
    radial-gradient(circle at 50% 42%, rgba(255, 238, 198, 0.16), transparent 27rem);
  mix-blend-mode: screen;
}

.cover-backdrop {
  inset: -4% !important;
  z-index: 0;
  background:
    linear-gradient(115deg, rgba(18, 14, 12, 0.46), rgba(18, 14, 12, 0.2) 48%, rgba(18, 14, 12, 0.64)),
    var(--hero-image) 58% center / cover !important;
  filter: blur(5px) saturate(0.72) brightness(0.82);
  transform: scale(1.08);
  transition:
    filter 1.6s ease,
    transform 1.8s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 1.1s ease;
}

.cover-backdrop::after {
  background:
    radial-gradient(circle at 50% 42%, transparent 0 12rem, rgba(15, 11, 9, 0.36) 31rem),
    linear-gradient(180deg, rgba(10, 8, 7, 0.08), rgba(10, 8, 7, 0.42));
}

.invitation-cover {
  z-index: 7;
  width: min(520px, calc(100% - 34px)) !important;
  height: min(690px, calc(100svh - 34px)) !important;
  max-width: none !important;
  margin: 0 !important;
  perspective: 1500px !important;
  transform-style: preserve-3d;
}

.invitation-cover::before {
  content: "";
  position: absolute;
  inset: auto 11% -24px;
  height: 42px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.36);
  filter: blur(22px);
  transform: translateZ(-80px);
}

.invitation-cover__glow {
  display: block !important;
  inset: 6% -18% -8%;
  border-radius: 46%;
  opacity: 0.72;
  background:
    radial-gradient(circle at 50% 28%, rgba(255, 243, 214, 0.55), transparent 30%),
    radial-gradient(circle at 50% 72%, rgba(185, 128, 118, 0.2), transparent 42%);
  filter: blur(44px);
  animation: luxeCoverGlow 3.8s ease-in-out infinite alternate;
}

.invitation-cover__paper {
  transform: rotateX(7deg) rotateY(-5deg) translateZ(0);
  animation: luxeCardEnter 1.25s cubic-bezier(0.16, 1, 0.3, 1) both !important;
}

.invitation-cover__paper::before {
  inset: 18px !important;
}

.invitation-cover__paper::after {
  top: -25%;
  width: 35%;
  height: 150%;
  transform: rotate(18deg);
  animation: paperLightPass 5.5s 1.2s ease-in-out infinite;
}

.cover-corner {
  width: 82px;
  height: 82px;
}

.invitation-cover .gate-content {
  transform: translateZ(54px) !important;
  padding: clamp(46px, 7vh, 74px) clamp(30px, 5vw, 54px) 34px !important;
}

.invitation-cover .gate-chapter {
  color: rgba(122, 94, 75, 0.7) !important;
  font-weight: 600;
  letter-spacing: 0.44em;
}

.gate-ornament {
  color: var(--gold) !important;
  text-shadow: 0 0 18px rgba(199, 161, 94, 0.35);
}

.invitation-cover .gate-kicker {
  color: #a76058 !important;
  font-weight: 600;
}

.invitation-cover .gate-note {
  color: #746358 !important;
}

.invitation-cover .gate-names i {
  color: #b46e63 !important;
  text-shadow: 0 0 18px rgba(180, 110, 99, 0.22);
}

.invitation-cover .gate-date {
  border-top: 1px solid rgba(199, 161, 94, 0.25);
  border-bottom: 1px solid rgba(199, 161, 94, 0.25);
  color: #8a6b55 !important;
  background: rgba(255, 255, 255, 0.28);
}

.cover-rule {
  height: 34px;
  background: linear-gradient(var(--gold), rgba(199, 161, 94, 0));
}

.invitation-cover .seal-button {
  width: 76px !important;
  height: 76px !important;
  display: grid;
  place-items: center;
  overflow: visible;
  background:
    radial-gradient(circle at 35% 22%, #fff6dc 0 12%, #e4bd78 32%, #b78243 70%, #7b4d2c 100%) !important;
  box-shadow:
    0 16px 32px rgba(79, 45, 25, 0.26),
    0 0 0 8px rgba(231, 201, 143, 0.13),
    0 0 34px rgba(231, 201, 143, 0.34) !important;
  transform: translateZ(82px);
  animation: luxeSealFloat 2.9s ease-in-out infinite !important;
}

.invitation-cover .seal-button::before {
  inset: -12px !important;
  border: 1px solid rgba(231, 201, 143, 0.34) !important;
  border-radius: 50%;
  box-shadow: 0 0 30px rgba(231, 201, 143, 0.28) !important;
}

.invitation-cover .seal-button::after {
  content: "";
  position: absolute;
  inset: 9px;
  border: 1px dashed rgba(255, 249, 224, 0.72);
  border-radius: 50%;
  animation: sealSpin 14s linear infinite;
}

.wax-seal {
  display: none !important;
}

.seal-monogram {
  position: relative !important;
  inset: auto !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: #fff8df !important;
  font-family: var(--serif);
  font-size: 25px !important;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-shadow:
    0 1px 1px rgba(80, 43, 24, 0.45),
    0 0 16px rgba(255, 244, 208, 0.35);
}

.seal-monogram span {
  font-size: 0.7em !important;
}

.seal-halo {
  inset: -14px !important;
  border-color: rgba(231, 201, 143, 0.3) !important;
}

.invitation-cover .gate-hint {
  margin-top: 15px !important;
  font-weight: 600;
}

.gate-stars {
  z-index: 9;
}

.gate-stars i {
  background: #fff4cf !important;
  box-shadow:
    0 0 14px rgba(255, 235, 184, 0.9),
    0 0 32px rgba(231, 201, 143, 0.5);
}

.cover-afterglow {
  background: #fff7df !important;
  box-shadow:
    0 0 90px 42px rgba(255, 235, 184, 0.65),
    0 0 160px 80px rgba(244, 215, 206, 0.35) !important;
}

.invitation-gate.is-breaking-seal .invitation-cover .seal-button {
  animation: luxeSealBreak 0.56s cubic-bezier(0.34, 1.56, 0.64, 1) forwards !important;
}

.invitation-gate.is-open .cover-backdrop {
  opacity: 0;
  filter: blur(2px) saturate(1) brightness(1);
  transform: scale(1.02);
}

/* Hero and storytelling depth */
.hero::before {
  mix-blend-mode: screen;
}

.hero-photo-shell,
.person-card,
.origin-place,
.event-card,
.gallery-item,
.wish-form,
.wish-wall {
  transform-style: preserve-3d;
  will-change: transform;
}

.hero-photo-shell::after,
.person-card::after,
.origin-place::after,
.event-card::after,
.wish-form::after,
.wish-wall::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  opacity: 0;
  background: radial-gradient(
    260px circle at var(--shine-x, 50%) var(--shine-y, 50%),
    rgba(255, 255, 255, 0.32),
    transparent 62%
  );
  transition: opacity 0.25s ease;
}

.person-card:hover::after,
.origin-place:hover::after,
.event-card:hover::after,
.wish-form:hover::after,
.wish-wall:hover::after {
  opacity: 1;
}

.chapter {
  background:
    radial-gradient(circle at 8% 8%, rgba(244, 215, 206, 0.2), transparent 25rem),
    radial-gradient(circle at 92% 14%, rgba(231, 201, 143, 0.16), transparent 26rem),
    var(--ivory);
}

.section-heading h2,
.gallery-heading h2,
.gift-copy h2,
.origin-bridge__heading h2 {
  text-shadow: 0 12px 30px rgba(77, 52, 36, 0.08);
}

.reveal-enabled .reveal {
  filter: blur(10px);
  transform: translate3d(0, 42px, 0) scale(0.985);
}

/* "none", not translate3d(0, 0, 0)/blur(0): a revealed block then gives up
   its compositor layer instead of keeping one for the life of the page. */
.reveal-enabled .reveal.is-visible {
  filter: none;
  transform: none;
}

.story-camera::after {
  content: "";
  position: absolute;
  inset: -1px;
  pointer-events: none;
  border-radius: inherit;
  background:
    linear-gradient(120deg, transparent 0 36%, rgba(255, 255, 255, 0.18) 45%, transparent 55%),
    radial-gradient(circle at 72% 20%, rgba(231, 201, 143, 0.2), transparent 20rem);
  mix-blend-mode: screen;
}

.story-step__glass {
  border-color: rgba(199, 161, 94, 0.2);
  box-shadow:
    0 24px 60px rgba(55, 38, 27, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.62);
}

/* Better hometown, event, gift and wishes sections */
.origin-place {
  position: relative;
  overflow: hidden;
  min-height: 210px !important;
  border-radius: 22px !important;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.88), rgba(255, 250, 243, 0.74)) !important;
  box-shadow:
    0 24px 70px rgba(68, 45, 32, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.86) !important;
}

.origin-place strong {
  font-size: clamp(28px, 3.1vw, 42px) !important;
  line-height: 1;
}

.origin-path__draw {
  stroke: var(--gold) !important;
}

.origin-heart {
  color: #b46e63 !important;
  background: #fff9ef !important;
}

.quote-break blockquote {
  border: 1px solid rgba(255, 255, 255, 0.55) !important;
  box-shadow:
    0 34px 90px rgba(21, 14, 10, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.7) !important;
}

.event-card {
  position: relative;
  border-top: 0 !important;
}

.event-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
}

.event-index {
  background: #fff8ec;
  box-shadow: 0 10px 22px rgba(90, 56, 35, 0.08);
}

.wish-form,
.wish-wall {
  position: relative;
  overflow: hidden;
}

@keyframes gateAuroraSpin {
  to {
    transform: rotate(1turn);
  }
}

@keyframes gateLightSweep {
  0%,
  100% {
    opacity: 0.28;
    transform: translateX(-4%);
  }
  50% {
    opacity: 0.68;
    transform: translateX(4%);
  }
}

@keyframes luxeCoverGlow {
  from {
    opacity: 0.42;
    transform: scale(0.94);
  }
  to {
    opacity: 0.86;
    transform: scale(1.08);
  }
}

@keyframes luxeCardEnter {
  from {
    opacity: 0;
    transform: translate3d(0, 42px, -160px) rotateX(16deg) rotateY(-14deg) scale(0.94);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) rotateX(7deg) rotateY(-5deg) scale(1);
  }
}

@keyframes paperLightPass {
  0%,
  48% {
    transform: translateX(0) rotate(18deg);
  }
  68%,
  100% {
    transform: translateX(430%) rotate(18deg);
  }
}

@keyframes luxeSealFloat {
  0%,
  100% {
    transform: translateZ(82px) translateY(0) rotate(-1deg);
  }
  50% {
    transform: translateZ(82px) translateY(-6px) rotate(1deg);
  }
}

@keyframes luxeSealBreak {
  0% {
    opacity: 1;
    transform: translateZ(82px) scale(1) rotate(0);
  }
  48% {
    opacity: 1;
    transform: translateZ(110px) scale(1.16) rotate(8deg);
  }
  100% {
    opacity: 0;
    transform: translateZ(150px) scale(0.34) rotate(-18deg);
  }
}

@media (max-width: 820px) {
  .invitation-cover {
    width: min(420px, calc(100% - 28px)) !important;
    height: min(660px, calc(100svh - 28px)) !important;
  }

  .invitation-cover__paper {
    transform: rotateX(3deg) rotateY(0) translateZ(0);
  }

  .invitation-cover .gate-content {
    padding: 42px 24px 28px !important;
  }

  .invitation-cover .gate-chapter {
    display: block !important;
    font-size: 6px !important;
  }

  .gate-ornament {
    display: block !important;
  }

  .invitation-cover .seal-button {
    width: 70px !important;
    height: 70px !important;
  }
}

@media (max-height: 680px) {
  .invitation-cover {
    height: calc(100svh - 20px) !important;
  }

  .invitation-cover .gate-content {
    padding-top: 30px !important;
  }

  .invitation-cover .gate-chapter,
  .gate-ornament {
    display: none !important;
  }

  .invitation-cover .gate-names {
    margin: 12px 0 14px !important;
  }
}

@media (prefers-reduced-motion: reduce) {

  html[data-effects="off"] .invitation-cover__paper,
  html[data-effects="off"] .invitation-cover__glow,
  html[data-effects="off"] .seal-button,
  html[data-effects="off"] .invitation-cover__paper::after {
    animation: none !important;
  }
}

/* ──────────────────────────────────────────────────────────────
   OPENING SAFETY FIX — keep real page visible after gate is opened
   ────────────────────────────────────────────────────────────── */

body.hero-ready,
body.invitation-revealed {
  overflow-x: hidden !important;
  overflow-y: auto !important;
}

body.hero-ready .invitation-gate,
.invitation-gate[hidden] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

body.hero-ready .scroll-cue,
body.hero-ready .hero-content,
.scroll-cue.force-visible,
.hero-content.force-visible {
  display: grid !important;
  visibility: visible !important;
  opacity: 1 !important;
  filter: none !important;
}

body.hero-ready .hero-content,
.hero-content.force-visible {
  position: relative !important;
  z-index: 40 !important;
  display: block !important;
  color: #fff !important;
  text-shadow: 0 16px 38px rgba(0, 0, 0, 0.32);
}

body.hero-ready .hero-content > *,
.hero-content.force-visible > * {
  visibility: visible !important;
  opacity: 1 !important;
  filter: none !important;
}

body.hero-ready .hero-title,
body.hero-ready .hero-date,
body.hero-ready .hero-location,
body.hero-ready .button--glass {
  position: relative;
  z-index: 41;
}

body.hero-ready .hero-photo-shell {
  z-index: 4 !important;
  pointer-events: none !important;
}

body.hero-ready .hero::before,
body.invitation-revealed .hero::before {
  z-index: 5 !important;
  opacity: 0.18 !important;
  background:
    radial-gradient(circle at 70% 32%, rgba(255, 235, 190, 0.28), transparent 19rem),
    linear-gradient(115deg, transparent 0 43%, rgba(255, 255, 255, 0.09) 50%, transparent 61%) !important;
}

body.hero-ready .hero::after {
  z-index: 3 !important;
}

@media (max-width: 760px) {
  body.hero-ready .hero-photo-shell {
    inset: 70px 14px 118px !important;
    filter: saturate(0.82) brightness(0.82);
  }

  body.hero-ready .hero-content,
  .hero-content.force-visible {
    z-index: 45 !important;
    width: calc(100% - 34px) !important;
    margin-bottom: 54px !important;
  }

  body.hero-ready .hero-title {
    font-size: clamp(50px, 15vw, 68px) !important;
  }
}

/* ──────────────────────────────────────────────────────────────
   FAIL-SAFE VISIBILITY — never leave visitors with only background image
   ────────────────────────────────────────────────────────────── */

body.is-locked .hero-content,
body.is-locked .scroll-cue {
  visibility: visible !important;
  opacity: 1 !important;
}

.hero-content {
  position: relative !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  filter: none !important;
}

.hero-content > *,
.hero-title,
.hero-title span,
.hero-title em,
.hero-date,
.hero-location,
.hero-eyebrow,
.button--glass {
  visibility: visible !important;
  opacity: 1 !important;
  filter: none !important;
}

.scroll-cue {
  visibility: visible !important;
  opacity: 1 !important;
}

.invitation-gate.is-open {
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  transition:
    opacity 0.75s 0.55s ease,
    visibility 0s 1.3s linear !important;
}

.invitation-gate.is-open .cover-backdrop,
.invitation-gate.is-open .invitation-cover,
.invitation-gate.is-open .gate-stars {
  opacity: 0 !important;
}

.invitation-gate.is-breaking-seal:not(.is-open) {
  pointer-events: none;
}

/* Opening card sizing fix: avoid percentage-based grid shrink to 0px */
.invitation-gate .invitation-cover {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  right: auto !important;
  bottom: auto !important;
  min-width: 340px !important;
  max-width: 520px !important;
  min-height: 560px !important;
  max-height: 690px !important;
  margin: 0 !important;
  transform: translate3d(-50%, -50%, 0) !important;
}

.invitation-gate .invitation-cover__paper {
  width: 100% !important;
  height: 100% !important;
}

@media (max-width: 760px) {
  .invitation-gate .invitation-cover {
    min-width: 0 !important;
    min-height: 520px !important;
  }
}

@media (max-height: 620px) {
  .invitation-gate .invitation-cover {
    min-height: 0 !important;
  }
}

/* Restore cinematic Home motion even when OS reduced-motion is enabled */
body.hero-ready .hero-content {
  animation: homeContentReveal 1s 0.08s cubic-bezier(0.16, 1, 0.3, 1) both !important;
}

body.hero-ready .hero-eyebrow {
  animation: homeTextRise 0.85s 0.12s cubic-bezier(0.16, 1, 0.3, 1) both !important;
}

body.hero-ready .hero-title span:first-child {
  animation: homeTextRise 0.95s 0.2s cubic-bezier(0.16, 1, 0.3, 1) both !important;
}

body.hero-ready .hero-title em {
  animation: homeGlowPop 0.85s 0.36s cubic-bezier(0.16, 1, 0.3, 1) both !important;
}

body.hero-ready .hero-title span:last-child {
  animation: homeTextRise 0.95s 0.44s cubic-bezier(0.16, 1, 0.3, 1) both !important;
}

body.hero-ready .hero-date,
body.hero-ready .hero-location,
body.hero-ready .button--glass {
  animation: homeTextRise 0.8s 0.62s cubic-bezier(0.16, 1, 0.3, 1) both !important;
}

body.hero-ready .hero-photo-shell {
  animation: homePhotoPortal 1.25s 0.12s cubic-bezier(0.16, 1, 0.3, 1) both !important;
}

body.hero-ready .hero-photo-shell__image {
  animation: homePhotoBreath 10s 1.25s ease-in-out infinite alternate !important;
}

body.hero-ready .hero-aurora {
  animation: auroraFloat 10s ease-in-out infinite alternate !important;
}

body.hero-ready .hero-kinetic span {
  animation: homeKineticDrift 8s ease-in-out infinite alternate !important;
}

body.hero-ready .hero-kinetic span:nth-child(2) {
  animation-delay: -2s !important;
}

body.hero-ready .hero-kinetic span:nth-child(3) {
  animation-delay: -4s !important;
}

@keyframes homeContentReveal {
  from {
    opacity: 0;
    transform: translate3d(0, 28px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes homeTextRise {
  from {
    opacity: 0;
    transform: translate3d(0, 34px, 0);
    filter: blur(10px);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    filter: blur(0);
  }
}

@keyframes homeGlowPop {
  from {
    opacity: 0;
    transform: scale(0.72) rotate(-8deg);
    filter: blur(8px);
  }
  to {
    opacity: 1;
    transform: scale(1) rotate(0);
    filter: blur(0);
  }
}

@keyframes homePhotoPortal {
  from {
    opacity: 0;
    transform: translate3d(7vw, 4vh, -220px) rotateY(-14deg) scale(0.92);
    filter: blur(12px) saturate(0.72);
  }
  to {
    opacity: 0.78;
    transform: translate3d(0, 0, 0) rotateY(0) scale(1);
    filter: blur(0) saturate(1);
  }
}

@keyframes homePhotoBreath {
  from {
    transform: scale(1.035);
  }
  to {
    transform: scale(1.095);
  }
}

@keyframes homeKineticDrift {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-18px, -10px, 0);
  }
}

/* Full visual mode for this invitation: keep key decorative motion alive */
.invitation-gate::before,
.invitation-gate::after {
  display: block !important;
}

.invitation-gate .invitation-cover__glow {
  animation: luxeCoverGlow 3.8s ease-in-out infinite alternate !important;
}

.invitation-gate .invitation-cover__paper {
  animation: luxeCardEnter 1.25s cubic-bezier(0.16, 1, 0.3, 1) both !important;
}

.invitation-gate .invitation-cover__paper::after {
  animation: paperLightPass 5.5s 1.2s ease-in-out infinite !important;
}

.invitation-gate::before {
  animation: gateAuroraSpin 18s linear infinite !important;
}

.invitation-gate::after {
  animation: gateLightSweep 4.8s ease-in-out infinite !important;
}

.gate-stars i {
  animation: gateTwinkle var(--twinkle) var(--delay) ease-in-out infinite alternate !important;
}

.petals i {
  animation: petalFall var(--duration) var(--delay) linear infinite !important;
}

body.hero-ready .scroll-cue i::after {
  animation: scrollLine 1.9s ease-in-out infinite !important;
}

.reveal-enabled .reveal {
  transition:
    opacity 0.85s ease,
    filter 0.95s ease,
    transform 0.95s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.reveal-enabled .reveal.is-visible {
  transition:
    opacity 0.85s ease,
    filter 0.95s ease,
    transform 0.95s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.person-card,
.origin-place,
.event-card,
.gallery-item,
.wish-form,
.wish-wall {
  transition:
    transform 0.38s ease,
    opacity 0.85s ease,
    filter 0.95s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease !important;
}

.story-panel {
  transition:
    opacity 0.8s ease,
    transform 0.9s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.8s ease !important;
}

.story-step__glass {
  transition:
    transform 0.72s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.45s ease,
    box-shadow 0.45s ease,
    background 0.45s ease !important;
}

.origin-path__draw {
  transition: stroke-dashoffset 1.6s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* ──────────────────────────────────────────────────────────────
   PREMIUM REFINEMENT PASS — straight invite, smoother home, envelope QR
   ────────────────────────────────────────────────────────────── */

.invitation-gate:not(.is-open) .invitation-cover__paper {
  animation: straightCardEnter 0.95s cubic-bezier(0.16, 1, 0.3, 1) both !important;
}

@keyframes straightCardEnter {
  from {
    opacity: 0;
    transform: translate3d(0, 30px, -90px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

/* Home performance: keep cinematic look, reduce expensive repaint layers */

/* Wedding events */
.wedding-section {
  overflow: hidden;
  background:
    radial-gradient(circle at 14% 20%, rgba(244, 215, 206, 0.28), transparent 28rem),
    radial-gradient(circle at 86% 6%, rgba(231, 201, 143, 0.26), transparent 30rem),
    linear-gradient(180deg, #fffaf4 0%, #f3e8dc 100%) !important;
}

.wedding-section .section-heading {
  max-width: 780px;
  padding: 36px clamp(22px, 4vw, 52px);
  border: 1px solid rgba(199, 161, 94, 0.18);
  border-radius: 30px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(255, 249, 239, 0.58));
  box-shadow: 0 28px 80px rgba(78, 51, 34, 0.09);
}

.event-grid {
  max-width: 1080px !important;
  gap: 26px !important;
}

.event-card {
  padding: 46px 42px !important;
  border-radius: 32px !important;
  border: 1px solid rgba(199, 161, 94, 0.2) !important;
  background:
    radial-gradient(circle at 50% 0%, rgba(231, 201, 143, 0.2), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 248, 238, 0.76)) !important;
  box-shadow:
    0 30px 85px rgba(70, 45, 28, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.88) !important;
}

.event-card::after {
  opacity: 1;
  background:
    linear-gradient(135deg, transparent 0 42%, rgba(255, 255, 255, 0.28) 50%, transparent 60%),
    radial-gradient(circle at var(--shine-x, 50%) var(--shine-y, 30%), rgba(255, 255, 255, 0.18), transparent 35%);
}

.event-card .eyebrow {
  display: inline-flex;
  padding: 8px 14px;
  border: 1px solid rgba(185, 128, 118, 0.2);
  border-radius: 999px;
  color: #9d625b;
  background: rgba(255, 255, 255, 0.62);
}

.event-time {
  margin-top: 28px !important;
  color: #2b2521;
  text-shadow: 0 14px 34px rgba(93, 62, 40, 0.12);
}

.event-card h3 {
  font-size: clamp(36px, 4.8vw, 54px) !important;
  line-height: 0.96;
}

.event-address {
  max-width: 280px;
  min-height: 0 !important;
  margin-inline: auto !important;
  font-size: 14px !important;
}

/* Gallery */

.gallery-heading {
  padding: 38px clamp(18px, 4vw, 46px);
  border-radius: 34px;
}

.gallery-heading h2 {
  font-size: clamp(54px, 7.5vw, 96px);
}

.gallery-heading > p {
  color: rgba(255, 255, 255, 0.74) !important;
  font-size: 15px;
}

.gallery-grid {
  gap: 18px !important;
}

/* Gift / envelope QR */

.gift-copy {
  position: relative;
  z-index: 2;
}

/* Wishes */

.wishes-section .section-heading {
  padding: 34px clamp(22px, 4vw, 52px);
  border: 1px solid rgba(199, 161, 94, 0.16);
  box-shadow: 0 24px 70px rgba(72, 46, 29, 0.08);
}

@media (max-width: 980px) {
  .event-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ──────────────────────────────────────────────────────────
   PREMIUM ENHANCEMENTS — MUSIC, MOBILE MENU & 3D CORRECTIONS
   ────────────────────────────────────────────────────────── */

/* 1. Mobile Hamburger Menu Toggle Button */

/* Transform hamburger to Close (X) icon */

/* Mobile Nav Drawer styling */

/* 2. Floating Music Control Button */
.music-button {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 99;
  width: 50px;
  height: 50px;
  padding: 0;
  border: 1px solid rgba(199, 161, 94, 0.35);
  border-radius: 50%;
  background: rgba(255, 252, 247, 0.82);
  box-shadow: 0 10px 30px rgba(82, 52, 32, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.35s ease;
}

.music-button:hover {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 14px 34px rgba(82, 52, 32, 0.18);
}

.music-disc {
  font-style: normal;
  font-size: 20px;
  color: #8c6750;
  display: block;
  line-height: 1;
  transition: transform 0.35s ease;
}

/* Spin animation for music disc when playing */
.music-button.is-playing .music-disc {
  animation: spinBgm 6s linear infinite;
}

@keyframes spinBgm {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Rising music notes */
.music-note-bubble {
  position: absolute;
  color: #c7a15e;
  font-size: 11px;
  opacity: 0;
  pointer-events: none;
}

.music-button.is-playing .music-note-bubble--1 {
  animation: noteFloatUp 2.8s ease-in-out infinite;
}

.music-button.is-playing .music-note-bubble--2 {
  animation: noteFloatUp 2.8s 1.4s ease-in-out infinite;
}

@keyframes noteFloatUp {
  0% {
    transform: translate(0, 0) scale(0.6);
    opacity: 0;
  }
  30% {
    opacity: 0.8;
  }
  90% {
    opacity: 0;
  }
  100% {
    transform: translate(var(--drift-x, -14px), -42px) scale(1.1);
    opacity: 0;
  }
}

.music-note-bubble--1 {
  left: 10px;
  top: 10px;
  --drift-x: -16px;
}

.music-note-bubble--2 {
  right: 10px;
  top: 10px;
  --drift-x: 16px;
}

/* 3. 3D QR Envelopes Upgrade */

/* Smooth Tilt Reset */

/* Final visual pass: opening card depth, restored home motion, compact QR popup */
.invitation-gate:not(.is-open) .invitation-cover {
  --invite-rotate-x: 0deg;
  --invite-rotate-y: 0deg;
  --invite-shine-x: 50%;
  --invite-shine-y: 38%;
  transform:
    translate3d(-50%, -50%, 0)
    rotateX(var(--invite-rotate-x))
    rotateY(var(--invite-rotate-y)) !important;
  transform-style: preserve-3d;
  transition: transform 0.16s ease-out !important;
}

.invitation-gate:not(.is-open) .invitation-cover__paper {
  transform: translateZ(0) scale(1) !important;
  transform-style: preserve-3d;
  transition:
    transform 0.34s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.34s ease,
    filter 0.34s ease !important;
}

.invitation-gate:not(.is-open) .invitation-cover:hover .invitation-cover__paper {
  filter: saturate(1.05) contrast(1.02);
  box-shadow:
    0 62px 140px rgba(12, 8, 6, 0.5),
    0 18px 48px rgba(199, 161, 94, 0.26),
    inset 0 0 0 10px rgba(255, 255, 255, 0.36),
    inset 0 -38px 80px rgba(186, 136, 88, 0.1) !important;
}

.invitation-gate:not(.is-open) .invitation-cover__paper::after {
  background:
    radial-gradient(
      circle at var(--invite-shine-x) var(--invite-shine-y),
      rgba(255, 255, 255, 0.44),
      transparent 24%
    ),
    linear-gradient(110deg, transparent 18%, rgba(255, 255, 255, 0.34), transparent 52%) !important;
}

.invitation-gate:not(.is-open) .invitation-cover:hover .gate-content {
  transform: translateZ(74px) !important;
}

.invitation-gate:not(.is-open) .invitation-cover:hover .seal-button {
  transform: translateZ(112px) translateY(-6px) scale(1.05) !important;
}

.hero-media {
  opacity: 0.68 !important;
}

.hero-aurora {
  filter: blur(34px) !important;
  opacity: 0.28 !important;
  mix-blend-mode: screen;
}

.petals i {
  opacity: 0.5 !important;
}

body.hero-ready .hero-photo-shell {
  opacity: 0.88 !important;
  filter: saturate(1.03) contrast(1.03);
}

.hero-title,
.hero-date,
.hero-location {
  text-shadow: 0 18px 44px rgba(0, 0, 0, 0.26);
}

.gift-choice {
  position: relative;
  width: 100%;
  cursor: pointer;
}

.gift-choice::after {
  right: 18px;
  top: 18px;
  padding: 6px 10px;
  border: 1px solid rgba(151, 96, 84, 0.18);
  color: #9d625b;
  background: rgba(255, 255, 255, 0.62);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.gift-choice span {
  text-transform: uppercase;
}

.gift-choice small {
  line-height: 1.5;
}

/* Luminous polish pass: stable QR modal, richer wishes, softer card depth */

.gift-choice {
  isolation: isolate;
}

.gift-choice::before {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: -1;
  border-radius: inherit;
  background:
    linear-gradient(120deg, transparent 0 34%, rgba(255, 255, 255, 0.5) 46%, transparent 58%);
  transition:
    opacity 0.28s ease,
    transform 0.42s cubic-bezier(0.16, 1, 0.3, 1);
}

.gift-choice:hover::before {
  opacity: 1;
  transform: translateX(0);
}

.wishes-section {
  position: relative;
  overflow: hidden;
}

.wishes-section::before {
  content: "";
  position: absolute;
  inset: 38px max(22px, 4vw) auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(199, 161, 94, 0.42), transparent);
}

.wishes-section .section-heading {
  position: relative;
  z-index: 1;
  border-radius: 28px !important;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.84), rgba(255, 248, 238, 0.56)) !important;
}

.wishes-layout {
  position: relative;
  z-index: 1;
}

.wish-wall-head {
  gap: 16px;
  padding: 0 0 18px !important;
}

.wish-wall-head > span {
  line-height: 0.96;
}

.wish-wall-head small {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border: 1px solid rgba(157, 98, 91, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  white-space: nowrap;
}

.wish-list {
  padding: 2px 6px 2px 2px !important;
}

.wish-card {
  position: relative;
  grid-template-columns: 54px minmax(0, 1fr) !important;
  gap: 16px !important;
  padding: 18px 48px 18px 18px !important;
  overflow: hidden;
  border: 1px solid rgba(199, 161, 94, 0.16) !important;
  border-radius: 20px !important;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 248, 238, 0.72)) !important;
  box-shadow:
    0 18px 48px rgba(72, 46, 29, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.86) !important;
  transition:
    transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

.wish-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, #d8bca4, #b98076, #c7a15e);
  opacity: 0.72;
}

.wish-card:hover {
  transform: translateY(-4px);
  border-color: rgba(185, 128, 118, 0.28) !important;
  box-shadow:
    0 24px 64px rgba(72, 46, 29, 0.11),
    inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
}

.wish-card p {
  color: #67564b !important;
  font-size: 13px !important;
  line-height: 1.75 !important;
}

.wish-card > span {
  top: 17px !important;
  right: 18px !important;
  color: rgba(185, 128, 118, 0.34) !important;
  font-size: 24px !important;
}

.section-heading,
.countdown-card,
.event-card,
.gallery-heading {
  box-shadow:
    0 32px 90px rgba(70, 45, 28, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.38);
}

.person-card .portrait-frame,
.gallery-item,
.event-card,
.countdown-card {
  outline: 1px solid rgba(255, 255, 255, 0.16);
  outline-offset: -1px;
}

.gallery-item::after,
.event-card::after,
.person-card::after {
  background:
    radial-gradient(
      280px circle at var(--shine-x, 50%) var(--shine-y, 38%),
      rgba(255, 255, 255, 0.28),
      transparent 64%
    ),
    linear-gradient(135deg, transparent 0 42%, rgba(255, 255, 255, 0.16) 50%, transparent 60%) !important;
}

.button {
  box-shadow: 0 14px 34px rgba(56, 36, 23, 0.08);
}

.button:hover {
  box-shadow: 0 18px 42px rgba(56, 36, 23, 0.12);
}

@media (max-width: 560px) {

  .wish-wall-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .wish-card {
    grid-template-columns: 46px minmax(0, 1fr) !important;
    padding: 16px 40px 16px 16px !important;
  }
}

/* Final elegance pass: brighter rhythm, calmer motion, richer accents */
:root {
  --sage: #8da189;
  --sage-soft: rgba(141, 161, 137, 0.18);
  --wine: #8b4f57;
  --gold-soft: rgba(199, 161, 94, 0.24);
}

html {
  scroll-behavior: smooth;
}

.ambient-canvas {
  opacity: 0.36 !important;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  height: 24vh;
  pointer-events: none;
}

.hero-content {
  filter: drop-shadow(0 22px 42px rgba(0, 0, 0, 0.16));
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
}

.hero-date {
  width: min(500px, 100%);
  padding: 10px 0;
}

.chapter,
.gallery-section,
.wishes-section,
.wedding-section {
  position: relative;
  isolation: isolate;
}

.chapter::before,
.wedding-section::before,
.wishes-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 0%, rgba(141, 161, 137, 0.08) 50%, transparent 100%),
    repeating-linear-gradient(90deg, rgba(80, 58, 42, 0.024) 0 1px, transparent 1px 96px);
  mask-image: linear-gradient(180deg, transparent, #000 18%, #000 82%, transparent);
}

.section-heading {
  border: 1px solid rgba(199, 161, 94, 0.18) !important;
  border-radius: 26px !important;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(255, 248, 239, 0.62)) !important;
}

.section-number,
.eyebrow {
  color: var(--wine) !important;
}

.section-heading h2 em,
.gallery-heading h2 em,
.gift-copy h2 em {
  color: var(--sage) !important;
}

.couple-grid {
  align-items: start;
}

.person-card {
  border-radius: 28px;
}

.portrait-frame {
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 28px;
  box-shadow:
    0 34px 90px rgba(65, 42, 28, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.52);
}

.origin-place,
.event-card,
.wish-form,
.wish-wall,
.countdown-card {
  contain: layout paint;
}

.origin-place,
.event-card {
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.92), rgba(255, 248, 239, 0.72)) !important;
}

.event-card {
  min-height: 460px !important;
}

.event-card h3,
.event-time {
  color: #2b2521;
}

.text-link {
  border-radius: 999px;
}

.countdown-section {
  min-height: 82svh;
}

.countdown-card {
  border-color: rgba(255, 255, 255, 0.32);
}

.gallery-grid {
  grid-auto-flow: dense;
}

.gallery-item > span {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.56));
}

.gift-choice,
.wish-card {
  transition:
    transform 0.28s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.28s ease,
    border-color 0.28s ease,
    background 0.28s ease;
}

.wish-list {
  scrollbar-width: thin;
}

.footer-petal {
  color: rgba(199, 161, 94, 0.42) !important;
}

[data-tilt],
.hero-photo-shell,
.person-card,
.origin-place,
.event-card,
.gallery-item,
.wish-form,
.wish-wall {
  will-change: auto !important;
}

@media (max-width: 900px) {

  .hero-content {
    width: min(100% - 34px, 720px) !important;
  }

  .hero-eyebrow {
    background: rgba(31, 25, 20, 0.16);
  }
}

@media (max-width: 560px) {
  .section-heading {
    width: min(100% - 28px, 430px);
    padding: 28px 20px !important;
  }

  .section-heading h2,
  .gallery-heading h2,
  .gift-copy h2 {
    font-size: clamp(42px, 13vw, 62px) !important;
  }

  .event-card {
    min-height: 420px !important;
    padding: 34px 24px !important;
  }

  .gallery-item,
  .portrait-frame {
    border-radius: 20px !important;
  }
}

@media (min-width: 760px) {

  .gift-copy > p:not(.eyebrow) {
    margin-bottom: 26px !important;
  }
}

/* Compact navigation: desktop stays slim, mobile becomes one floating menu */

/* QR section redesign */

.gift-copy .eyebrow {
  margin-bottom: 14px;
  color: #9d625b !important;
}

.gift-copy h2 {
  line-height: 0.92 !important;
  letter-spacing: -0.03em !important;
}

.gift-copy h2 em {
  color: #8da189 !important;
}

.gift-copy > p:not(.eyebrow) {
  margin: 24px 0 0 !important;
  padding-left: 16px !important;
  border-left: 2px solid rgba(157, 98, 91, 0.24) !important;
  color: #6d6158 !important;
}

.gift-choice {
  position: relative;
  isolation: isolate;
  width: 100%;
}

.gift-choice::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  border-top: 1px solid rgba(199, 161, 94, 0.14);
  background:
    linear-gradient(146deg, transparent 49.3%, rgba(199, 161, 94, 0.16) 49.7% 50.3%, transparent 50.7%),
    linear-gradient(214deg, transparent 49.3%, rgba(199, 161, 94, 0.14) 49.7% 50.3%, transparent 50.7%),
    linear-gradient(180deg, rgba(244, 226, 210, 0.42), rgba(233, 207, 186, 0.22));
  opacity: 1 !important;
  transform: none !important;
}

.gift-choice::after {
  grid-area: action;
  position: static !important;
  display: inline-grid;
  margin: 0 !important;
  place-items: center;
  border: 1px solid rgba(157, 98, 91, 0.18);
  color: #9d625b;
  background: rgba(255, 255, 255, 0.58);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.gift-choice span {
  grid-area: side;
  color: #9d625b !important;
  font-weight: 800 !important;
  letter-spacing: 0.18em !important;
}

.gift-choice strong {
  grid-area: title;
}

.gift-choice small {
  grid-area: hint;
}

.gift-choice em {
  grid-area: bank;
  line-height: 1.4;
}

.gift-choice:hover {
  border-color: rgba(141, 161, 137, 0.28) !important;
}

.gift-choice:hover::after {
  color: #fff;
  background: #8f5e56;
}

/* Compact two-side wedding envelope */

.gift-copy h2 {
  font-size: clamp(38px, 4.4vw, 54px) !important;
}

.gift-copy > p:not(.eyebrow) {
  max-width: 320px !important;
  margin-top: 18px !important;
  font-size: 13px !important;
  line-height: 1.75 !important;
}

.gift-choice {
  align-content: start;
}

.gift-choice::before {
  height: 48% !important;
}

.gift-choice::after {
  width: auto !important;
  height: 34px !important;
  justify-self: start;
  margin-top: 10px !important;
  padding: 0 14px;
  border-radius: 999px !important;
  content: "Mở QR" !important;
}

.gift-choice span {
  font-size: 9px !important;
}

.gift-choice strong {
  max-width: 100% !important;
  margin-top: 8px;
}

.gift-choice em {
  max-width: 100% !important;
}

@media (max-width: 760px) {

  .gift-copy > p:not(.eyebrow) {
    max-width: 100% !important;
  }
}

@media (max-width: 520px) {

  .gift-choice {
    align-content: center;
  }

  .gift-choice::after {
    width: 46px !important;
    height: 46px !important;
    padding: 0;
    border-radius: 50% !important;
    content: "Mở" !important;
  }
}

/* Reference-style balanced QR card */

.gift-copy {
  display: none !important;
}

.gift-choice {
  position: relative;
  grid-template-columns: 1fr !important;
  grid-template-areas:
    "heart"
    "qr" !important;
  gap: 10px !important;
  cursor: pointer;
}

.gift-choice:hover {
  transform: translateY(-5px) !important;
  box-shadow: none !important;
}

.gift-choice small,
.gift-choice em,
.gift-choice > strong {
  display: none !important;
}

/* Performance and polish pass */
.ambient-canvas,
.cursor-orbit,
.chapter-rail,
.scroll-cue {
  display: none !important;
}

[data-tilt] {
  transform: none !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease !important;
}

.hero-media,
.invitation-cover,
.person-card,
.story-panel,
.event-card,
.gallery-item,
.wish-card {
  box-shadow: 0 14px 34px rgba(58, 39, 29, 0.08) !important;
}

.hero-aurora,
.quote-rings,
.origin-bridge__glow {
  filter: blur(30px) !important;
  opacity: 0.55 !important;
}

/* ==========================================================================
   FINAL UX PASS 2026-07-13
   Single-source visual direction for: opening card, hero, QR popup, lightweight effects.
   ========================================================================== */

:root {
  --final-cream: #fff8ef;
  --final-ivory: #fffdf8;
  --final-ink: #2f211c;
  --final-muted: #80685e;
  --final-gold: #c9a15b;
  --final-rose: #d9a49c;
  --final-shadow-soft: 0 18px 44px rgba(69, 43, 30, 0.12);
  --final-shadow-card: 0 26px 70px rgba(69, 43, 30, 0.16);
}

body {
  color: var(--final-ink) !important;
}

.ambient-canvas {
  display: none !important;
}

.cursor-orbit {
  display: block !important;
  position: fixed !important;
  left: 0 !important;
  top: 0 !important;
  z-index: 90 !important;
  width: 34px !important;
  height: 34px !important;
  margin: -17px 0 0 -17px !important;
  border: 1px solid rgba(201, 161, 91, 0.48) !important;
  border-radius: 999px !important;
  pointer-events: none !important;
  opacity: 0 !important;
  transition: opacity 0.2s ease, width 0.2s ease, height 0.2s ease, margin 0.2s ease !important;
  mix-blend-mode: multiply;
}

.cursor-orbit.is-visible {
  opacity: 0.72 !important;
}

.cursor-orbit.is-hovering {
  width: 54px !important;
  height: 54px !important;
  margin: -27px 0 0 -27px !important;
  background: rgba(255, 244, 226, 0.36) !important;
}

.chapter-rail {
  display: none !important;
}

/* Opening invitation: flat premium card + pointer edge 3D */
.invitation-gate {
  perspective: 1600px !important;
  background:
    linear-gradient(rgba(32, 22, 18, 0.54), rgba(32, 22, 18, 0.66)),
    var(--hero-image) center / cover fixed !important;
}

.invitation-gate::before {
  opacity: 0.42 !important;
  filter: blur(46px) !important;
}

.invitation-gate .invitation-cover {
  width: min(520px, calc(100vw - 32px)) !important;
  height: min(720px, calc(100vh - 72px)) !important;
  perspective: 1500px !important;
  transform-style: preserve-3d !important;
  box-shadow: none !important;
}

.invitation-cover__paper {
  border: 1px solid rgba(201, 161, 91, 0.26) !important;
  border-radius: 6px !important;
  background:
    radial-gradient(circle at var(--cover-shine-x, 50%) var(--cover-shine-y, 18%), rgba(255, 236, 197, 0.42), transparent 34%),
    linear-gradient(135deg, rgba(201, 161, 91, 0.18), transparent 18%, transparent 82%, rgba(201, 161, 91, 0.16)),
    linear-gradient(180deg, #fffdf8 0%, #fff8ed 100%) !important;
  box-shadow:
    0 34px 80px rgba(28, 18, 13, 0.34),
    inset 0 0 0 12px rgba(255, 255, 255, 0.48),
    inset 0 0 0 13px rgba(201, 161, 91, 0.12) !important;
  transform-origin: center center !important;
  transform-style: preserve-3d !important;
  transition: transform 0.18s ease-out, box-shadow 0.24s ease, filter 0.24s ease !important;
  will-change: transform !important;
}

.invitation-cover__paper::before {
  border-color: rgba(201, 161, 91, 0.18) !important;
}

.invitation-cover__paper::after {
  left: calc(var(--cover-shine-x, 50%) - 35%) !important;
}

.invitation-cover.is-edge-tilting .invitation-cover__paper {
  box-shadow:
    0 40px 96px rgba(28, 18, 13, 0.42),
    inset 0 0 0 12px rgba(255, 255, 255, 0.54),
    inset 0 0 0 13px rgba(201, 161, 91, 0.16) !important;
}

.invitation-cover .gate-content {
  gap: clamp(12px, 2vh, 20px) !important;
  color: var(--final-ink) !important;
}

.invitation-cover .gate-chapter,
.invitation-cover .gate-kicker,
.gate-date,
.gate-hint {
  color: rgba(92, 67, 57, 0.72) !important;
  letter-spacing: 0.26em !important;
}

.invitation-cover .gate-names {
  color: #2b211d !important;
  font-size: clamp(56px, 8.2vw, 92px) !important;
  line-height: 0.92 !important;
  text-shadow: 0 12px 30px rgba(80, 52, 37, 0.08) !important;
}

.invitation-cover .seal-button {
  border: 0 !important;
  transition: transform 0.18s ease-out, filter 0.22s ease !important;
  will-change: transform !important;
}

.invitation-cover .seal-button:hover {
  filter: drop-shadow(0 22px 30px rgba(92, 39, 35, 0.36)) !important;
}

.wax-seal {
  width: 92px !important;
  height: 92px !important;
}

@keyframes finalCardOpen {
  0% {
    opacity: 1;
    transform: translate3d(0, -8px, 54px) rotateX(0deg) rotateY(0deg) scale(1);
    filter: blur(0);
  }
  42% {
    opacity: 1;
    transform: translate3d(0, -34px, 120px) rotateX(8deg) rotateY(-7deg) scale(1.035);
    filter: blur(0);
  }
  100% {
    opacity: 0;
    transform: translate3d(0, -72px, 180px) rotateX(12deg) rotateY(-12deg) scale(1.1);
    filter: blur(10px);
  }
}

/* Hero: fewer layers, stronger entrance, no jank-heavy background attachment */
.hero {
  isolation: isolate !important;
  min-height: 100svh !important;
}

.hero-media {
  background-attachment: scroll !important;
  animation: none !important;
}

.hero::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: 1 !important;
  pointer-events: none !important;
}

.hero-content {
  z-index: 6 !important;
  max-width: 780px !important;
}

body.hero-ready .hero-eyebrow,
body.hero-ready .hero-title span,
body.hero-ready .hero-title em,
body.hero-ready .hero-date,
body.hero-ready .hero-location,
body.hero-ready .button--glass {
  animation: finalTextRise 0.9s cubic-bezier(0.16, 1, 0.3, 1) both !important;
}

body.hero-ready .hero-title span:first-child {
  animation-delay: 0.12s !important;
}

body.hero-ready .hero-title em {
  animation-delay: 0.24s !important;
}

body.hero-ready .hero-title span:last-child {
  animation-delay: 0.34s !important;
}

body.hero-ready .hero-date,
body.hero-ready .hero-location,
body.hero-ready .button--glass {
  animation-delay: 0.48s !important;
}

.hero-title {
  text-wrap: balance;
}

.hero-title span,
.hero-title em,
.hero-date,
.hero-location,
.hero-eyebrow {
  color: #fffaf3 !important;
}

.button--glass {
  border: 1px solid rgba(255, 240, 214, 0.42) !important;
  background: rgba(255, 250, 244, 0.14) !important;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18) !important;
}

.scroll-cue {
  display: flex !important;
}

.romance-sparkles {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  overflow: hidden;
}

.romance-sparkles i {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--size);
  height: var(--size);
  border-radius: 999px;
  opacity: 0;
  animation: finalSparkle var(--duration) ease-in-out var(--delay) infinite;
}

@keyframes finalTextRise {
  from {
    opacity: 0;
    transform: translate3d(0, 28px, 0);
    filter: blur(10px);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    filter: blur(0);
  }
}

@keyframes finalHeroBreath {
  from {
    transform: translate3d(0, 0, 0) scale(1.04);
  }
  to {
    transform: translate3d(0, -12px, 0) scale(1.08);
  }
}

@keyframes finalSparkle {
  0%,
  100% {
    opacity: 0;
    transform: translate3d(0, 12px, 0) scale(0.45);
  }
  35% {
    opacity: 0.92;
    transform: translate3d(0, 0, 0) scale(1);
  }
  70% {
    opacity: 0.24;
    transform: translate3d(8px, -16px, 0) scale(0.72);
  }
}

/* Section/card polish */
.chapter,
.origin-bridge,
.quote-break,
.countdown-section,
.gallery-section,
.wishes-section {
  position: relative !important;
  overflow: clip !important;
}

.section-heading,
.gallery-heading {
  text-wrap: balance;
}

.person-card,
.event-card,
.gallery-item,
.wish-form,
.wish-wall,
.countdown-card {
  border: 1px solid rgba(201, 161, 91, 0.16) !important;
  box-shadow: var(--final-shadow-soft) !important;
}

[data-tilt] {
  transform-style: preserve-3d !important;
  will-change: transform !important;
}

[data-tilt].is-tilting {
  box-shadow: var(--final-shadow-card) !important;
}

/* Gift section: popup-first, no large QR blocks on the page */

.gift-choice {
  min-height: 220px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  padding: 22px 18px !important;
  border: 1px solid rgba(201, 161, 91, 0.22) !important;
  border-radius: 28px !important;
  background:
    linear-gradient(160deg, rgba(255, 253, 248, 0.95), rgba(255, 238, 225, 0.9)),
    radial-gradient(circle at var(--tilt-glow-x, 50%) var(--tilt-glow-y, 20%), rgba(255, 219, 176, 0.34), transparent 36%) !important;
  box-shadow: 0 18px 46px rgba(92, 56, 34, 0.1) !important;
  color: var(--final-ink) !important;
  text-align: left !important;
  justify-items: stretch !important;
  overflow: hidden !important;
}

.gift-choice::before,
.gift-choice::after {
  content: "" !important;
  display: block !important;
  position: absolute !important;
  inset-inline: 18px !important;
  height: 1px !important;
  background: linear-gradient(90deg, transparent, rgba(201, 161, 91, 0.52), transparent) !important;
  opacity: 0.7 !important;
}

.gift-choice::before {
  top: 62px !important;
}

.gift-choice::after {
  bottom: 62px !important;
}

.gift-choice:hover {
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.98), rgba(255, 240, 229, 0.94)),
    radial-gradient(circle at var(--tilt-glow-x, 50%) var(--tilt-glow-y, 20%), rgba(255, 219, 176, 0.44), transparent 38%) !important;
}

.gift-choice strong {
  display: block !important;
  color: #34231e !important;
  font-family: var(--serif) !important;
  font-size: clamp(26px, 3vw, 36px) !important;
  font-weight: 500 !important;
  line-height: 1 !important;
  letter-spacing: -0.03em !important;
}

.gift-choice small {
  display: block !important;
  margin-top: 8px !important;
  color: var(--final-muted) !important;
  font-size: 13px !important;
}

.gift-choice em {
  display: inline-flex !important;
  width: max-content !important;
  margin-top: 22px !important;
  padding: 10px 14px !important;
  border-radius: 999px !important;
  color: #fffaf4 !important;
  background: #3b2922 !important;
  font-size: 11px !important;
  font-style: normal !important;
  font-weight: 700 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
}

@media (max-width: 820px) {
  .cursor-orbit {
    display: none !important;
  }

  .invitation-gate .invitation-cover {
    width: min(390px, calc(100vw - 26px)) !important;
    height: min(620px, calc(100svh - 42px)) !important;
  }

  .invitation-cover .gate-names {
    font-size: clamp(46px, 15vw, 68px) !important;
  }

  .wax-seal {
    width: 78px !important;
    height: 78px !important;
  }

  .hero-content {
    padding-inline: 18px !important;
  }

  .gift-copy {
    text-align: center !important;
  }

  .gift-choice {
    min-height: 240px !important;
    padding: 18px 16px !important;
  }

  .gift-choice strong {
    font-size: 28px !important;
  }

  .gift-choice em {
    margin-top: 16px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html[data-effects="off"] .cursor-orbit,
  html[data-effects="off"] .romance-sparkles {
    display: none !important;
  }

  html[data-effects="off"] body.hero-ready .hero-media,
  html[data-effects="off"] body.hero-ready .hero-eyebrow,
  html[data-effects="off"] body.hero-ready .hero-title span,
  html[data-effects="off"] body.hero-ready .hero-title em,
  html[data-effects="off"] body.hero-ready .hero-date,
  html[data-effects="off"] body.hero-ready .hero-location,
  html[data-effects="off"] body.hero-ready .button--glass,
  html[data-effects="off"] .invitation-gate.is-open .invitation-cover__paper {
    animation: none !important;
  }
}

/* User-facing cinematic mode: this invitation intentionally keeps premium motion active. */
@media (prefers-reduced-motion: reduce) {
  html[data-effects="off"].cinematic-motion .cursor-orbit {
    display: block !important;
  }

  html[data-effects="off"].cinematic-motion .romance-sparkles {
    display: block !important;
  }

  html[data-effects="off"].cinematic-motion body.hero-ready .hero-media {
    animation: finalHeroBreath 14s ease-in-out infinite alternate !important;
  }

  html[data-effects="off"].cinematic-motion body.hero-ready .hero-eyebrow,
  html[data-effects="off"].cinematic-motion body.hero-ready .hero-title span,
  html[data-effects="off"].cinematic-motion body.hero-ready .hero-title em,
  html[data-effects="off"].cinematic-motion body.hero-ready .hero-date,
  html[data-effects="off"].cinematic-motion body.hero-ready .hero-location,
  html[data-effects="off"].cinematic-motion body.hero-ready .button--glass {
    animation: finalTextRise 0.9s cubic-bezier(0.16, 1, 0.3, 1) both !important;
  }

  html[data-effects="off"].cinematic-motion body.hero-ready .hero-title span:first-child {
    animation-delay: 0.12s !important;
  }

  html[data-effects="off"].cinematic-motion body.hero-ready .hero-title em {
    animation-delay: 0.24s !important;
  }

  html[data-effects="off"].cinematic-motion body.hero-ready .hero-title span:last-child {
    animation-delay: 0.34s !important;
  }

  html[data-effects="off"].cinematic-motion body.hero-ready .hero-date,
  html[data-effects="off"].cinematic-motion body.hero-ready .hero-location,
  html[data-effects="off"].cinematic-motion body.hero-ready .button--glass {
    animation-delay: 0.48s !important;
  }

  html[data-effects="off"].cinematic-motion .invitation-gate.is-open .invitation-cover__paper {
    animation: finalCardOpen 1.35s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
  }
}

/* Mobile hero correction after browser review */
@media (max-width: 820px) {

  .hero-photo-shell {
    width: min(330px, calc(100vw - 42px)) !important;
    height: min(520px, calc(100svh - 155px)) !important;
    opacity: 0.68 !important;
  }

  .hero-content {
    width: min(340px, calc(100vw - 38px)) !important;
    margin-inline: auto !important;
    padding: 0 !important;
    transform: translateY(18px) !important;
  }

  body.hero-ready .hero-content {
    transform: translateY(0) !important;
  }

  .hero-eyebrow {
    max-width: 245px !important;
    padding: 10px 14px !important;
    border-radius: 999px !important;
    font-size: 9px !important;
    line-height: 1.35 !important;
    letter-spacing: 0.18em !important;
    background: rgba(55, 42, 34, 0.58) !important;
  }

  .hero-title {
    margin-top: 14px !important;
    font-size: clamp(52px, 17vw, 78px) !important;
    line-height: 0.88 !important;
    letter-spacing: -0.055em !important;
  }

  .hero-date {
    margin-top: 18px !important;
    gap: 12px !important;
  }

  .hero-location {
    margin-top: 10px !important;
    color: rgba(255, 247, 235, 0.9) !important;
    font-size: 13px !important;
    font-style: normal !important;
    letter-spacing: 0.08em !important;
  }

  .hero .button--glass {
    width: min(292px, 100%) !important;
    min-height: 52px !important;
    margin-top: 24px !important;
    padding: 0 18px !important;
    border-radius: 999px !important;
    justify-content: center !important;
    gap: 10px !important;
    font-size: 10px !important;
    line-height: 1.3 !important;
    letter-spacing: 0.13em !important;
    text-align: center !important;
    white-space: normal !important;
    background: rgba(255, 250, 244, 0.18) !important;
  }

  .music-button {
    width: 48px !important;
    height: 48px !important;
    left: 18px !important;
    bottom: 18px !important;
  }
}

/* Header bugfix: keep mobile header usable without the previous full-width white bar. */

/* Serious desktop/performance correction after browser audit. */

/* Performance: stop hidden/opening layers and reduce expensive decorative motion. */
html body.hero-ready .invitation-gate,
html body.hero-ready .invitation-gate *,
.invitation-gate[hidden],
.invitation-gate[hidden] * {
  animation: none !important;
  transition: none !important;
}

html body.hero-ready .invitation-gate,
.invitation-gate[hidden] {
  display: none !important;
  pointer-events: none !important;
}

.hero-aurora,
.hero-kinetic,
.quote-rings,
.origin-bridge__glow,
.ambient-canvas,
.cursor-orbit {
  display: none !important;
}

.petals i:nth-child(n + 7),
.romance-sparkles i:nth-child(n + 11) {
  display: none !important;
}

.hero-media {
  box-shadow: none !important;
}

body.hero-ready .hero-media {
  animation: none !important;
  transform: translate3d(0, 0, 0) scale(1.045) !important;
}

.hero-photo-shell,
.hero-photo-shell__image {
  animation: none !important;
}

.person-card,
.event-card,
.gallery-item,
.wish-form,
.wish-wall,
.countdown-card {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* Calm luxury mode: remove looping particles that caused visible jank. */
.petals,
.romance-sparkles {
  display: none !important;
}

body.hero-ready .hero-eyebrow,
body.hero-ready .hero-title span,
body.hero-ready .hero-title em,
body.hero-ready .hero-date,
body.hero-ready .hero-location,
body.hero-ready .button--glass {
  animation-duration: 0.72s !important;
}

/* Absolute last performance lock: no infinite hero loops. */
html.cinematic-motion body.hero-ready .hero-media,
html body.hero-ready .hero-media {
  animation: none !important;
  transform: translate3d(0, 0, 0) scale(1.045) !important;
}

html.cinematic-motion body.hero-ready .hero-photo-shell,
html.cinematic-motion body.hero-ready .hero-photo-shell__image,
html body.hero-ready .hero-photo-shell,
html body.hero-ready .hero-photo-shell__image {
  animation: none !important;
}

html.cinematic-motion .romance-sparkles,
html.cinematic-motion .petals,
html body .romance-sparkles,
html body .petals {
  display: none !important;
}

/* User decision: remove heavy floating header entirely. */

/* QR + wishes redesign: remove stacked envelopes/layers, keep one clean card system. */

.gift-copy p {
  color: rgba(65, 45, 37, 0.72) !important;
}

.wish-form,
.wish-wall {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.wish-form input,
.wish-form textarea {
  font-size: 15px !important;
}

/* Invitation cover refinement: no hover zoom, richer border, short luminous opening. */
.invitation-gate:not(.is-open) .invitation-cover__paper,
.invitation-gate:not(.is-open) .invitation-cover:hover .invitation-cover__paper,
.invitation-cover.is-edge-tilting .invitation-cover__paper {
  border: 1px solid rgba(199, 161, 94, 0.42) !important;
  border-radius: 10px !important;
  background:
    radial-gradient(circle at var(--cover-shine-x, 50%) var(--cover-shine-y, 18%), rgba(255, 238, 196, 0.38), transparent 32%),
    linear-gradient(135deg, rgba(199, 161, 94, 0.2), transparent 15%, transparent 85%, rgba(199, 161, 94, 0.18)),
    linear-gradient(180deg, #fffdf8 0%, #fff8ef 54%, #f8ecdd 100%) !important;
  box-shadow:
    0 32px 78px rgba(24, 15, 10, 0.34),
    0 0 0 1px rgba(255, 255, 255, 0.48),
    0 0 0 10px rgba(255, 250, 242, 0.2),
    inset 0 0 0 1px rgba(255, 255, 255, 0.88),
    inset 0 0 0 13px rgba(199, 161, 94, 0.1),
    inset 0 0 0 14px rgba(255, 255, 255, 0.58) !important;
}

.invitation-gate:not(.is-open) .invitation-cover:hover .invitation-cover__paper {
  transform: translate3d(0, -8px, 54px) rotateX(3.5deg) rotateY(-4.5deg) !important;
}

.invitation-gate:not(.is-open) .invitation-cover:hover .seal-button,
.invitation-cover.is-edge-tilting .seal-button {
  transform: translateZ(76px) translateY(-3px) !important;
}

.invitation-cover__paper::before {
  border: 1px solid rgba(199, 161, 94, 0.22) !important;
  border-radius: 8px !important;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.55),
    inset 0 0 28px rgba(199, 161, 94, 0.08) !important;
}

.invitation-cover__paper::after {
  opacity: 0.34 !important;
  background:
    linear-gradient(105deg, transparent 0%, rgba(255, 255, 255, 0.06) 24%, rgba(255, 224, 166, 0.5) 50%, rgba(255, 255, 255, 0.06) 74%, transparent 100%) !important;
}

.cover-corner {
  opacity: 0.9 !important;
  border-color: rgba(199, 161, 94, 0.34) !important;
}

.invitation-cover .seal-button {
  filter: drop-shadow(0 16px 22px rgba(92, 54, 30, 0.24)) !important;
}

.wax-seal__body {
  stroke: rgba(255, 232, 182, 0.42) !important;
  stroke-width: 1.6 !important;
}

.invitation-gate.is-breaking-seal::before {
  animation: gateLuminousBloom 1.15s cubic-bezier(0.16, 1, 0.3, 1) both !important;
}

.invitation-gate.is-breaking-seal .cover-afterglow {
  display: block !important;
  animation: gateSoftSparkleOpen 1.25s cubic-bezier(0.16, 1, 0.3, 1) both !important;
}

.invitation-gate.is-breaking-seal .gate-stars i {
  animation: gateParticleBurst 1s var(--delay) cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
}

.invitation-gate.is-open .invitation-cover__paper {
  animation: finalCardOpenNoZoom 1.28s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
}

html.cinematic-motion .invitation-gate.is-open .invitation-cover__paper,
html body .invitation-gate.is-open .invitation-cover__paper {
  animation: finalCardOpenNoZoom 1.28s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
}

@keyframes finalCardOpenNoZoom {
  0% {
    opacity: 1;
    transform: translate3d(0, -8px, 54px) rotateX(0deg) rotateY(0deg);
    filter: blur(0);
  }
  46% {
    opacity: 1;
    transform: translate3d(0, -34px, 132px) rotateX(7deg) rotateY(-6deg);
    filter: blur(0);
  }
  100% {
    opacity: 0;
    transform: translate3d(0, -72px, 210px) rotateX(12deg) rotateY(-10deg);
    filter: blur(9px);
  }
}

@keyframes gateLuminousBloom {
  0% {
    opacity: 0.32;
    filter: blur(46px);
  }
  45% {
    opacity: 0.82;
    filter: blur(36px);
  }
  100% {
    opacity: 0.24;
    filter: blur(54px);
  }
}

@keyframes gateSoftSparkleOpen {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.18);
    background: radial-gradient(circle, rgba(255, 239, 194, 0.85), transparent 58%);
  }
  38% {
    opacity: 0.92;
    transform: translate(-50%, -50%) scale(1.5);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(3.4);
  }
}

/* Invitation content fit/polish: keep bottom hint visible and reduce oversized desktop card. */
.invitation-cover .gate-content {
  position: relative !important;
  padding-bottom: clamp(78px, 9vh, 102px) !important;
}

.invitation-cover .gate-hint {
  position: absolute !important;
  left: 50% !important;
  bottom: clamp(22px, 3.2vh, 34px) !important;
  z-index: 12 !important;
  width: max-content !important;
  max-width: calc(100% - 48px) !important;
  margin: 0 !important;
  padding: 6px 12px !important;
  border: 1px solid rgba(199, 161, 94, 0.2) !important;
  border-radius: 999px !important;
  color: rgba(88, 63, 52, 0.72) !important;
  background: rgba(255, 252, 246, 0.66) !important;
  box-shadow: 0 8px 20px rgba(91, 61, 40, 0.06) !important;
  font-size: clamp(8px, 1.15vw, 11px) !important;
  line-height: 1 !important;
  letter-spacing: 0.24em !important;
  text-align: center !important;
  text-transform: uppercase !important;
  transform: translateX(-50%) !important;
}

.invitation-cover .seal-button {
  margin-bottom: clamp(18px, 3vh, 34px) !important;
}

@media (min-width: 821px) {
  .invitation-gate .invitation-cover {
    width: min(620px, calc(100vw - 96px)) !important;
    height: min(760px, calc(100svh - 96px)) !important;
  }

  .invitation-cover .gate-content {
    padding: clamp(26px, 3.2vh, 36px) clamp(44px, 5vw, 64px) clamp(82px, 9vh, 106px) !important;
    gap: clamp(8px, 1.15vh, 14px) !important;
  }

  .invitation-cover .gate-names {
    margin: clamp(8px, 1.2vh, 12px) 0 clamp(10px, 1.4vh, 16px) !important;
    font-size: clamp(58px, 6.2vw, 82px) !important;
    line-height: 0.92 !important;
    letter-spacing: -0.055em !important;
  }

  .invitation-cover .gate-note {
    margin-top: clamp(8px, 1.3vh, 14px) !important;
    font-size: clamp(15px, 1.6vw, 18px) !important;
  }

  .invitation-cover .gate-date {
    padding: 8px 20px !important;
    font-size: 11px !important;
  }

  .invitation-cover .seal-button {
    width: 86px !important;
    height: 86px !important;
    margin-top: clamp(10px, 1.8vh, 18px) !important;
    margin-bottom: clamp(22px, 3.8vh, 36px) !important;
  }

  .wax-seal {
    width: 86px !important;
    height: 86px !important;
  }
}

/* Final clean pass for Gift QR + Wishes: one-layer UI, popup QR, lighter paint cost. */
.wishes-section {
  isolation: isolate !important;
  background:
    radial-gradient(circle at 12% 10%, rgba(255, 229, 218, 0.34), transparent 28rem),
    radial-gradient(circle at 92% 88%, rgba(231, 201, 143, 0.2), transparent 24rem),
    linear-gradient(180deg, #fffaf5 0%, #fffdf9 48%, #f8efe6 100%) !important;
}

.wishes-section::before,
.wishes-section::after,
.wish-form::before,
.wish-form::after,
.wish-wall::before,
.wish-wall::after {
  display: none !important;
  content: none !important;
}

.gift-copy {
  max-width: 460px !important;
}

.gift-copy h2,
.wishes-section .section-heading h2 {
  color: #33241f !important;
  letter-spacing: -0.05em !important;
}

.gift-copy p,
.wishes-section .section-lead {
  color: rgba(65, 45, 37, 0.72) !important;
}

.wishes-section .section-heading {
  max-width: 720px !important;
  margin-inline: auto !important;
  text-align: center !important;
}

.wishes-layout {
  width: min(1080px, calc(100% - 32px)) !important;
  display: grid !important;
  grid-template-columns: minmax(300px, 0.9fr) minmax(0, 1.1fr) !important;
  gap: clamp(18px, 3vw, 36px) !important;
  align-items: start !important;
}

.wish-form,
.wish-wall {
  border: 1px solid rgba(199, 161, 94, 0.16) !important;
  border-radius: 28px !important;
  box-shadow: 0 20px 58px rgba(69, 43, 30, 0.08) !important;
  transform: none !important;
  will-change: auto !important;
  contain: layout paint !important;
}

.wish-form {
  display: grid !important;
  gap: 16px !important;
  padding: clamp(20px, 4vw, 30px) !important;
}

.wish-form label {
  display: grid !important;
  gap: 8px !important;
  margin: 0 !important;
}

.wish-form label span {
  color: rgba(65, 45, 37, 0.68) !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  letter-spacing: 0.08em !important;
}

.wish-form input,
.wish-form textarea {
  width: 100% !important;
  padding: 14px 16px !important;
  border: 1px solid rgba(199, 161, 94, 0.18) !important;
  border-radius: 18px !important;
  background: rgba(255, 255, 255, 0.76) !important;
  box-shadow: none !important;
  color: #33241f !important;
  font: 500 15px/1.55 var(--sans) !important;
}

.wish-form input {
  min-height: 52px !important;
}

.wish-form textarea {
  min-height: 138px !important;
  resize: vertical !important;
}

.wish-form input:focus,
.wish-form textarea:focus {
  border-color: rgba(184, 139, 69, 0.48) !important;
  background: #fff !important;
  box-shadow: 0 0 0 4px rgba(199, 161, 94, 0.1) !important;
}

.wish-form .button {
  min-height: 52px !important;
  border-radius: 999px !important;
  background: linear-gradient(135deg, #382720, #704c3d) !important;
  box-shadow: 0 14px 32px rgba(69, 43, 30, 0.14) !important;
}

.form-status {
  min-height: 20px !important;
  margin: 0 !important;
  color: rgba(65, 45, 37, 0.68) !important;
  font-size: 13px !important;
}

.wish-wall {
  padding: clamp(18px, 3vw, 26px) !important;
}

.wish-wall-head {
  margin-bottom: 16px !important;
  padding-bottom: 12px !important;
  border-bottom: 1px solid rgba(199, 161, 94, 0.14) !important;
}

.wish-wall-head > span {
  color: #33241f !important;
  font-family: var(--serif) !important;
  font-size: clamp(28px, 3.2vw, 38px) !important;
  font-weight: 500 !important;
}

.wish-wall-head small {
  color: rgba(65, 45, 37, 0.56) !important;
}

.wish-list {
  display: grid !important;
  gap: 10px !important;
  max-height: 520px !important;
  overflow: auto !important;
  padding-right: 4px !important;
}

.wish-note-card {
  display: grid !important;
  grid-template-columns: 42px minmax(0, 1fr) auto !important;
  gap: 12px !important;
  align-items: start !important;
  padding: 14px !important;
  border: 1px solid rgba(199, 161, 94, 0.13) !important;
  border-radius: 18px !important;
  box-shadow: none !important;
  transform: none !important;
}

.wish-note-card__avatar {
  display: grid !important;
  width: 42px !important;
  height: 42px !important;
  place-items: center !important;
  border-radius: 999px !important;
  color: #fffaf4 !important;
  background: linear-gradient(135deg, #b88b45, #d8b775) !important;
  font-family: var(--serif) !important;
  font-size: 19px !important;
}

.wish-note-card__meta {
  display: flex !important;
  gap: 8px !important;
  align-items: baseline !important;
  justify-content: space-between !important;
}

.wish-note-card h3 {
  margin: 0 !important;
  color: #33241f !important;
  font-size: 14px !important;
}

.wish-note-card time {
  flex: none !important;
  color: rgba(65, 45, 37, 0.48) !important;
  font-size: 11px !important;
}

.wish-note-card p {
  margin: 5px 0 0 !important;
  color: rgba(65, 45, 37, 0.72) !important;
  font-size: 14px !important;
  line-height: 1.65 !important;
}

.wish-note-card__mark {
  color: rgba(184, 139, 69, 0.48) !important;
}

@media (max-width: 820px) {
  .wishes-layout {
    width: min(560px, calc(100% - 24px)) !important;
    grid-template-columns: 1fr !important;
    padding: 18px !important;
    border-radius: 26px !important;
  }

  .wish-note-card {
    grid-template-columns: 38px minmax(0, 1fr) !important;
  }

  .wish-note-card__mark {
    display: none !important;
  }

  .wish-list {
    max-height: none !important;
    overflow: visible !important;
    padding-right: 0 !important;
  }
}

@media (max-width: 420px) {

  .wish-form,
  .wish-wall {
    border-radius: 22px !important;
    box-shadow: 0 14px 34px rgba(69, 43, 30, 0.07) !important;
  }

  .wish-form {
    padding: 18px !important;
  }

  .wish-note-card {
    gap: 10px !important;
    padding: 12px !important;
    border-radius: 16px !important;
  }

  .wish-note-card__avatar {
    width: 36px !important;
    height: 36px !important;
    font-size: 17px !important;
  }

  .wish-note-card__meta {
    display: grid !important;
    gap: 3px !important;
  }

  .wish-note-card p {
    font-size: 13px !important;
    line-height: 1.55 !important;
  }
}

/* Premium cinematic polish v18: more luminous, more special, still lightweight. */
:root {
  --premium-ink: #2f241f;
  --premium-brown: #5d3e31;
  --premium-gold: #c99a4a;
  --premium-gold-soft: rgba(222, 187, 113, 0.38);
  --premium-rose: #b77a72;
  --premium-veil: rgba(255, 252, 246, 0.76);
  --premium-border: rgba(201, 154, 74, 0.2);
  --premium-shadow: 0 30px 90px rgba(65, 41, 27, 0.12);
}

body {
  background:
    radial-gradient(circle at 10% 0%, rgba(255, 221, 210, 0.34), transparent 32rem),
    radial-gradient(circle at 92% 18%, rgba(222, 187, 113, 0.24), transparent 34rem),
    linear-gradient(180deg, #fffaf4 0%, #fbf3eb 42%, #fffdf9 100%) !important;
}

main {
  position: relative;
  z-index: 1;
}

main::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.5;
  background:
    linear-gradient(115deg, transparent 0 31%, rgba(255, 255, 255, 0.28) 36%, transparent 42% 100%),
    radial-gradient(circle at 50% 30%, rgba(255, 245, 222, 0.28), transparent 28rem);
  mix-blend-mode: screen;
}

.luxury-fireflies {
  position: fixed;
  inset: 0;
  z-index: 18;
  overflow: hidden;
  pointer-events: none;
  contain: layout paint;
}

.luxury-fireflies i {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--size);
  height: var(--size);
  border-radius: 999px;
  background: #ffe9af;
  box-shadow:
    0 0 10px rgba(255, 230, 172, 0.72),
    0 0 24px rgba(255, 214, 126, 0.34);
  opacity: 0;
  transform: translate3d(0, 0, 0);
  animation: luxuryFirefly var(--duration) var(--delay) ease-in-out infinite;
}

.hero {
  background: #17100d !important;
}

.hero::before {
  opacity: 0.96 !important;
  background:
    radial-gradient(circle at 50% 48%, rgba(255, 221, 168, 0.18), transparent 31%),
    linear-gradient(90deg, rgba(24, 16, 12, 0.72), rgba(24, 16, 12, 0.28) 48%, rgba(24, 16, 12, 0.62)) !important;
}

.hero::after {
  opacity: 0.42 !important;
  background:
    linear-gradient(118deg, transparent 0 36%, rgba(255, 255, 255, 0.24) 40%, transparent 45%),
    radial-gradient(circle at 18% 20%, rgba(255, 220, 207, 0.28), transparent 22rem),
    radial-gradient(circle at 76% 72%, rgba(222, 187, 113, 0.22), transparent 21rem) !important;
  animation: premiumHeroGlow 9s ease-in-out infinite alternate !important;
}

.hero-media {
  filter: saturate(0.88) contrast(1.04) brightness(0.74) sepia(0.12) !important;
  transform: translate3d(0, 0, 0) scale(1.02) !important;
}

.hero-photo-shell {
  border: 1px solid rgba(255, 230, 191, 0.2) !important;
  box-shadow:
    0 34px 90px rgba(0, 0, 0, 0.34),
    0 0 0 1px rgba(255, 255, 255, 0.08),
    inset 0 0 0 1px rgba(255, 255, 255, 0.12) !important;
}

.hero-title {
  text-shadow:
    0 8px 28px rgba(0, 0, 0, 0.24),
    0 0 42px rgba(255, 226, 183, 0.18) !important;
}

.hero-title em {
  color: #e5bf7a !important;
  text-shadow: 0 0 26px rgba(229, 191, 122, 0.36) !important;
}

.hero-date time,
.hero-location {
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.32) !important;
}

.button {
  position: relative !important;
  overflow: hidden !important;
}

.button::after {
  content: "" !important;
  position: absolute !important;
  inset: -40% auto -40% -62% !important;
  width: 42% !important;
  transform: skewX(-18deg) translateX(0) !important;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.42), transparent) !important;
  animation: premiumButtonGleam 4.8s ease-in-out infinite !important;
  pointer-events: none !important;
}

.section-heading,
.gallery-heading,
.origin-bridge__heading {
  position: relative !important;
}

.section-heading::after,
.gallery-heading::after,
.origin-bridge__heading::after {
  content: "" !important;
  display: block !important;
  width: 118px !important;
  height: 1px !important;
  margin: 24px auto 0 !important;
  background: linear-gradient(90deg, transparent, rgba(201, 154, 74, 0.62), transparent) !important;
  box-shadow: 0 0 18px rgba(201, 154, 74, 0.24) !important;
}

.chapter {
  position: relative !important;
}

.chapter::before {
  content: "" !important;
  position: absolute !important;
  inset: 4% auto auto -11rem !important;
  width: 26rem !important;
  height: 26rem !important;
  border-radius: 50% !important;
  background: radial-gradient(circle, rgba(255, 221, 209, 0.2), transparent 67%) !important;
  pointer-events: none !important;
}

.chapter::after {
  content: "" !important;
  position: absolute !important;
  right: -13rem !important;
  bottom: 6% !important;
  width: 28rem !important;
  height: 28rem !important;
  border-radius: 50% !important;
  background: radial-gradient(circle, rgba(222, 187, 113, 0.18), transparent 68%) !important;
  pointer-events: none !important;
}

.person-card,
.origin-place,
.event-card,
.gallery-item,
.countdown-card,
.story-step__glass,
.wish-form,
.wish-wall {
  border-color: var(--premium-border) !important;
  box-shadow: var(--premium-shadow) !important;
}

.person-card,
.origin-place,
.event-card,
.story-step__glass,
.wish-form,
.wish-wall {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 248, 239, 0.74)) !important;
}

.person-card::after,
.origin-place::after,
.event-card::after,
.gallery-item::after {
  opacity: 0.42 !important;
  background:
    linear-gradient(120deg, transparent 0 35%, rgba(255, 255, 255, 0.34) 43%, transparent 52% 100%) !important;
}

.portrait-frame,
.gallery-item,
.story-panel {
  box-shadow:
    0 22px 60px rgba(66, 42, 28, 0.13),
    0 0 0 1px rgba(255, 255, 255, 0.42) !important;
}

.portrait-frame::after {
  content: "" !important;
  position: absolute !important;
  inset: 12px !important;
  border: 1px solid rgba(255, 241, 218, 0.42) !important;
  border-radius: inherit !important;
  pointer-events: none !important;
}

.couple-connector {
  filter: drop-shadow(0 14px 30px rgba(201, 154, 74, 0.18)) !important;
}

.origin-path__draw {
  filter: drop-shadow(0 0 12px rgba(201, 154, 74, 0.34)) !important;
}

.origin-heart {
  box-shadow:
    0 16px 38px rgba(100, 57, 42, 0.18),
    0 0 0 10px rgba(255, 244, 224, 0.42) !important;
}

.quote-break {
  min-height: clamp(430px, 60vw, 680px) !important;
  border-block: 1px solid rgba(255, 232, 198, 0.18) !important;
}

.quote-break::after {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  background:
    radial-gradient(circle at 50% 45%, rgba(255, 230, 191, 0.22), transparent 22rem),
    linear-gradient(180deg, rgba(25, 16, 12, 0.1), rgba(25, 16, 12, 0.34)) !important;
  pointer-events: none !important;
}

.quote-break blockquote {
  position: relative !important;
  z-index: 2 !important;
  text-shadow:
    0 16px 36px rgba(0, 0, 0, 0.34),
    0 0 34px rgba(255, 231, 194, 0.12) !important;
}

.story-camera {
  border-color: rgba(255, 230, 191, 0.22) !important;
  box-shadow:
    0 34px 90px rgba(45, 29, 20, 0.24),
    inset 0 0 0 1px rgba(255, 255, 255, 0.11) !important;
}

.story-camera__glow {
  opacity: 0.88 !important;
  filter: blur(18px) !important;
}

.story-hud {
  background: rgba(22, 15, 12, 0.36) !important;
  border-color: rgba(255, 229, 193, 0.22) !important;
  backdrop-filter: blur(10px) !important;
}

.countdown-section {
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 226, 190, 0.28), transparent 31rem),
    linear-gradient(180deg, #2b1e18 0%, #463023 56%, #fff8ef 100%) !important;
}

.countdown-card {
  border: 1px solid rgba(255, 231, 196, 0.26) !important;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 237, 205, 0.28), transparent 34%),
    linear-gradient(180deg, rgba(255, 250, 243, 0.93), rgba(255, 244, 231, 0.88)) !important;
  box-shadow:
    0 34px 90px rgba(28, 18, 13, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.46) !important;
}

.countdown div {
  border: 1px solid rgba(201, 154, 74, 0.18) !important;
  border-radius: 22px !important;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 231, 187, 0.32), transparent 62%),
    rgba(255, 255, 255, 0.64) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.76) !important;
}

.countdown strong {
  color: #35231d !important;
  text-shadow: 0 0 24px rgba(201, 154, 74, 0.18) !important;
}

.wedding-section,
.gallery-section,
.wishes-section {
  background:
    radial-gradient(circle at 14% 10%, rgba(255, 225, 214, 0.28), transparent 28rem),
    radial-gradient(circle at 88% 90%, rgba(222, 187, 113, 0.2), transparent 26rem),
    linear-gradient(180deg, #fffbf6 0%, #fbf1e8 100%) !important;
}

.event-card {
  overflow: hidden !important;
}

.event-card::before {
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 235, 204, 0.42), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.22), transparent) !important;
}

.event-index {
  color: rgba(201, 154, 74, 0.34) !important;
}

.gallery-grid {
  perspective: 1200px !important;
}

.gallery-item {
  border: 1px solid rgba(255, 232, 198, 0.24) !important;
  border-radius: 28px !important;
  overflow: hidden !important;
  background: #251915 !important;
  box-shadow:
    0 24px 64px rgba(57, 34, 22, 0.17),
    0 0 0 1px rgba(255, 255, 255, 0.1) !important;
}

.gallery-item img {
  transform: scale(1.02) !important;
  filter: saturate(0.96) contrast(1.03) brightness(0.94) !important;
  transition:
    transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.6s ease !important;
}

.gallery-item:hover img {
  transform: scale(1.08) !important;
  filter: saturate(1.08) contrast(1.06) brightness(1.02) !important;
}

.gallery-item span {
  background: linear-gradient(180deg, transparent, rgba(25, 16, 12, 0.78)) !important;
  text-shadow: 0 8px 18px rgba(0, 0, 0, 0.38) !important;
}

.wish-form,
.wish-wall {
  background:
    radial-gradient(circle at 16% 8%, rgba(255, 229, 218, 0.34), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 247, 237, 0.92)) !important;
}

.wish-note-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 250, 244, 0.62)) !important;
  border-color: rgba(201, 154, 74, 0.18) !important;
}

.wish-note-card:hover {
  border-color: rgba(201, 154, 74, 0.34) !important;
  box-shadow: 0 14px 34px rgba(69, 43, 30, 0.09) !important;
}

.wish-note-card__avatar {
  box-shadow:
    0 10px 24px rgba(201, 154, 74, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.46) !important;
}

.site-footer {
  position: relative !important;
  overflow: hidden !important;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 226, 190, 0.22), transparent 24rem),
    linear-gradient(180deg, #fff7ee 0%, #2f211b 100%) !important;
}

.site-footer::before {
  content: "" !important;
  position: absolute !important;
  inset: 18px !important;
  border: 1px solid rgba(255, 232, 198, 0.18) !important;
  border-radius: 34px !important;
  pointer-events: none !important;
}

.site-footer h2,
.site-footer time,
.site-footer p,
.site-footer small,
.site-footer .eyebrow {
  position: relative !important;
  z-index: 1 !important;
}

.romance-sparkles i {
  background: #ffe7ab !important;
  box-shadow:
    0 0 12px rgba(255, 231, 171, 0.7),
    0 0 28px rgba(255, 214, 126, 0.32) !important;
}

@keyframes luxuryFirefly {
  0%,
  100% {
    opacity: 0;
    transform: translate3d(0, 0, 0) scale(0.65);
  }
  18% {
    opacity: 0.72;
  }
  48% {
    opacity: 0.35;
    transform: translate3d(var(--drift-x), var(--drift-y), 0) scale(1);
  }
  72% {
    opacity: 0.82;
  }
}

@keyframes premiumHeroGlow {
  from {
    transform: translate3d(-1.6%, -1%, 0) scale(1);
  }
  to {
    transform: translate3d(1.6%, 1%, 0) scale(1.03);
  }
}

@keyframes premiumButtonGleam {
  0%,
  38% {
    transform: skewX(-18deg) translateX(0);
    opacity: 0;
  }
  48% {
    opacity: 0.9;
  }
  64%,
  100% {
    transform: skewX(-18deg) translateX(390%);
    opacity: 0;
  }
}

@media (max-width: 820px) {
  .luxury-fireflies {
    opacity: 0.72 !important;
  }

  .chapter::before,
  .chapter::after {
    width: 18rem !important;
    height: 18rem !important;
    opacity: 0.72 !important;
  }

  .hero::after {
    opacity: 0.32 !important;
    animation-duration: 11s !important;
  }

  .person-card,
  .origin-place,
  .event-card,
  .countdown-card,
  .wish-form,
  .wish-wall {
    box-shadow: 0 18px 48px rgba(65, 41, 27, 0.1) !important;
  }

  .section-heading::after,
  .gallery-heading::after,
  .origin-bridge__heading::after {
    margin-top: 18px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html[data-effects="off"] .luxury-fireflies,
  html[data-effects="off"] .button::after {
    display: none !important;
  }

  html[data-effects="off"] .hero::after {
    animation: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html[data-effects="off"].cinematic-motion .luxury-fireflies {
    display: block !important;
  }

  html[data-effects="off"].cinematic-motion .luxury-fireflies i {
    animation: luxuryFirefly var(--duration) var(--delay) ease-in-out infinite !important;
  }

  html[data-effects="off"].cinematic-motion .hero::after {
    animation: premiumHeroGlow 9s ease-in-out infinite alternate !important;
  }

  html[data-effects="off"].cinematic-motion .button::after {
    display: block !important;
    animation: premiumButtonGleam 4.8s ease-in-out infinite !important;
  }
}

/* Premium color correction: keep contrast high after the cinematic polish layer. */
.countdown-card {
  color: #35231d !important;
}

.countdown-card h2,
.countdown-card .countdown-date {
  color: #35231d !important;
}

.countdown-card > p:not(.eyebrow) {
  color: rgba(65, 45, 37, 0.72) !important;
}

.countdown-card .eyebrow {
  color: #b88b45 !important;
}

.gallery-section {
  color: #fffaf4 !important;
  background:
    radial-gradient(circle at 18% 14%, rgba(255, 220, 205, 0.16), transparent 28rem),
    radial-gradient(circle at 82% 72%, rgba(222, 187, 113, 0.18), transparent 26rem),
    linear-gradient(180deg, #251a16 0%, #3d2921 58%, #211512 100%) !important;
}

.gallery-section .section-number,
.gallery-section .eyebrow {
  color: rgba(232, 196, 129, 0.88) !important;
}

.gallery-heading {
  border: 1px solid rgba(255, 232, 198, 0.16) !important;
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 232, 198, 0.1), transparent 36%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.035)) !important;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.18) !important;
}

.gallery-heading h2 {
  color: #fffaf4 !important;
  text-shadow: 0 16px 34px rgba(0, 0, 0, 0.28) !important;
}

.gallery-heading p:last-child {
  color: rgba(255, 250, 244, 0.76) !important;
}

/* ──────────────────────────────────────────────────────────
   HERO LAYOUT — FINAL
   Earlier layers positioned the copy and the arch photo independently, so
   they overlapped at most widths. The hero is now one grid, scoped to #home so it outranks
   the older `html.cinematic-motion body.hero-ready …` chains. Copy and arch sit
   in their own columns on wide screens and stack on narrow ones.
   ────────────────────────────────────────────────────────── */

#home {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr) !important;
  align-items: center !important;
  gap: clamp(32px, 4.5vw, 80px) !important;
  min-height: 100svh !important;
  height: auto !important;
  padding: clamp(72px, 9vh, 110px) clamp(28px, 6vw, 110px) !important;
}

/* The glow layer was left at top: 76% by an older rule, which drew a hard
   horizontal seam across the photo. Bleed it past the edges for its drift. */
#home::after {
  inset: -4% !important;
  height: auto !important;
}

/* The background repeats the arch photo; blurred, it reads as ambient light
   instead of a second, offset copy of the couple. */
#home .hero-media {
  filter: blur(14px) saturate(0.85) brightness(0.62) sepia(0.12) !important;
  transform: scale(1.08) !important;
}

#home .hero-content {
  grid-column: 1 !important;
  grid-row: 1 !important;
  justify-self: end !important;
  width: 100% !important;
  max-width: 600px !important;
  margin: 0 !important;
  padding: 0 !important;
  inset: auto !important;
  left: auto !important;
  top: auto !important;
  text-align: left !important;
}

#home .hero-photo-shell {
  position: relative !important;
  grid-column: 2 !important;
  grid-row: 1 !important;
  justify-self: start !important;
  inset: auto !important;
  left: auto !important;
  top: auto !important;
  width: auto !important;
  height: min(calc(100svh - 2 * clamp(72px, 9vh, 110px)), 760px) !important;
  aspect-ratio: 0.8 !important;
  max-width: 100% !important;
  margin: 0 !important;
}

#home .hero-title {
  font-size: clamp(3.4rem, 6.4vw, 6.6rem) !important;
}

/* An older rule boxed the location into a 390px centred column, so it floated
   mid-block while every other line hugged the left edge. */
#home .hero-location {
  width: auto !important;
  max-width: none !important;
  text-align: left !important;
}

@media (max-width: 1023px) {
  #home {
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: auto auto !important;
    justify-items: center !important;
    align-content: center !important;
    gap: clamp(28px, 4vh, 44px) !important;
    padding: clamp(56px, 8vh, 90px) 20px clamp(64px, 9vh, 96px) !important;
  }

  #home .hero-photo-shell {
    grid-column: 1 !important;
    grid-row: 1 !important;
    justify-self: center !important;
    height: min(46svh, 460px) !important;
  }

  #home .hero-content {
    grid-column: 1 !important;
    grid-row: 2 !important;
    justify-self: center !important;
    max-width: 560px !important;
    text-align: center !important;
  }

  #home .hero-eyebrow,
  #home .hero-content .button {
    margin-inline: auto !important;
  }

  #home .hero-date {
    justify-content: center !important;
  }

  #home .hero-location {
    text-align: center !important;
  }

  #home .hero-title {
    font-size: clamp(2.9rem, 11vw, 4.6rem) !important;
  }

  /* The staggered editorial indents only make sense left-aligned; centred,
     they pushed the ampersand and second name off the axis. */
  #home .hero-title span,
  #home .hero-title em {
    margin-left: auto !important;
    margin-right: auto !important;
  }

  /* The vertical "Khám phá" cue collided with the copy once it stacked. */
  #home .scroll-cue {
    display: none !important;
  }
}

@media (max-width: 1023px) and (max-height: 700px) {
  #home .hero-photo-shell {
    height: 38svh !important;
  }
}

/* ──────────────────────────────────────────────────────────
   WEDDING GIFT — REBUILT
   Uses its own wgift-* names so none of the earlier gift/qr-card layers
   (which stacked into a cramped half-width card) can reach it.
   ────────────────────────────────────────────────────────── */

.wgift {
  position: relative;
  background:
    radial-gradient(circle at 18% 12%, rgba(244, 215, 206, 0.45), transparent 32rem),
    radial-gradient(circle at 86% 78%, rgba(231, 201, 143, 0.22), transparent 30rem),
    var(--final-cream, #fff8ef);
}

.wgift-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
  max-width: 940px;
  margin: clamp(36px, 5vw, 56px) auto 0;
}

.wgift-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(34px, 4vw, 48px) clamp(22px, 3.4vw, 44px) clamp(28px, 3.4vw, 40px);
  border: 1px solid rgba(201, 161, 91, 0.32);
  border-radius: 30px;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.95), transparent 60%),
    linear-gradient(180deg, #fffdf8, #fbf2e6);
  box-shadow:
    0 30px 70px rgba(59, 40, 30, 0.1),
    0 2px 0 rgba(255, 255, 255, 0.9) inset;
  text-align: center;
  transform-style: preserve-3d;
}

/* Fine inner frame, like the border of a printed card. */
.wgift-card::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(201, 161, 91, 0.2);
  border-radius: 22px;
  pointer-events: none;
}

.wgift-card__side {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--final-gold, #c9a15b);
}

.wgift-card__monogram {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  margin: 18px 0 14px;
  border-radius: 50%;
  border: 1px solid rgba(201, 161, 91, 0.55);
  background:
    radial-gradient(circle at 35% 28%, #fffaf0, #f3e3c8 70%);
  box-shadow:
    0 0 0 6px rgba(201, 161, 91, 0.08),
    0 12px 26px rgba(120, 84, 48, 0.14);
  font-family: var(--serif);
  font-size: 2rem;
  font-style: italic;
  font-weight: 500;
  color: var(--rose-deep, #8f5e56);
}

.wgift-card__name {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2rem, 3.4vw, 2.6rem);
  font-weight: 500;
  line-height: 1.1;
  color: var(--final-ink, #2f211c);
}

.wgift-card__title {
  margin: 6px 0 0;
  font-family: var(--serif);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--final-muted, #80685e);
}

.wgift-card__bank {
  width: 100%;
  margin: 24px 0 26px;
  padding: 0;
}

.wgift-card__bank div,
.wgift-dialog__details div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 11px 2px;
  border-top: 1px dashed rgba(128, 104, 94, 0.25);
}

.wgift-card__bank div:last-child,
.wgift-dialog__details div:last-child {
  border-bottom: 1px dashed rgba(128, 104, 94, 0.25);
}

.wgift-card__bank dt,
.wgift-dialog__details dt {
  font-family: var(--sans);
  font-size: 0.78rem;
  color: var(--final-muted, #80685e);
}

.wgift-card__bank dd,
.wgift-dialog__details dd {
  margin: 0;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  color: var(--final-ink, #2f211c);
  text-align: right;
}

.wgift-card__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  width: 100%;
}

.wgift-btn {
  flex: 1 1 140px;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background-color 0.25s ease,
    color 0.25s ease;
}

.wgift-btn--solid {
  border: 1px solid #3a2a24;
  background: #3a2a24;
  color: #fff8ef;
  box-shadow: 0 12px 24px rgba(58, 42, 36, 0.22);
}

.wgift-btn--solid:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(58, 42, 36, 0.28);
}

.wgift-btn--ghost {
  border: 1px solid rgba(201, 161, 91, 0.6);
  background: transparent;
  color: #6b4f37;
}

.wgift-btn--ghost:hover {
  background: rgba(201, 161, 91, 0.12);
}

.wgift-btn:focus-visible,
.wgift-dialog__close:focus-visible {
  outline: 2px solid var(--final-gold, #c9a15b);
  outline-offset: 3px;
}

.wgift-status {
  min-height: 1.3em;
  margin: 12px 0 0;
  font-family: var(--sans);
  font-size: 0.82rem;
  color: var(--rose-deep, #8f5e56);
}

.wgift-note {
  margin: clamp(28px, 4vw, 44px) auto 0;
  font-family: var(--serif);
  font-size: 1.2rem;
  font-style: italic;
  text-align: center;
  color: var(--final-muted, #80685e);
}

.wgift-note span {
  color: var(--rose, #b98076);
}

/* QR popup */
.wgift-dialog {
  width: min(420px, calc(100vw - 32px));
  max-height: calc(100svh - 32px);
  padding: 40px clamp(22px, 5vw, 36px) 30px;
  overflow-y: auto;
  border: 1px solid rgba(201, 161, 91, 0.35);
  border-radius: 30px;
  background: linear-gradient(180deg, #fffdf8, #fbf2e6);
  box-shadow: 0 40px 120px rgba(30, 20, 15, 0.4);
  text-align: center;
  color: var(--final-ink, #2f211c);
}

.wgift-dialog[open] {
  animation: wgiftIn 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.wgift-dialog::backdrop {
  background: rgba(32, 22, 18, 0.62);
  backdrop-filter: blur(4px);
}

@keyframes wgiftIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.96);
  }
}

.wgift-dialog__close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(128, 104, 94, 0.2);
  border-radius: 50%;
  background: #fffdf8;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--final-muted, #80685e);
  cursor: pointer;
}

.wgift-dialog__eyebrow {
  margin: 0;
  /* Keep the label clear of the round close button. */
  padding: 0 40px;
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--final-gold, #c9a15b);
}

.wgift-dialog h3 {
  margin: 8px 0 20px;
  font-family: var(--serif);
  font-size: 2.2rem;
  font-weight: 500;
}

.wgift-dialog__qr {
  width: min(280px, 100%);
  margin: 0 auto 22px;
  padding: 14px;
  border: 1px solid rgba(201, 161, 91, 0.35);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 16px 36px rgba(59, 40, 30, 0.1);
}

.wgift-dialog__qr img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 10px;
}

.wgift-dialog__placeholder {
  margin: 0;
  padding: 40px 10px;
  font-family: var(--sans);
  font-size: 0.85rem;
  color: var(--final-muted, #80685e);
}

.wgift-dialog__details {
  margin: 0 0 22px;
  padding: 0;
  text-align: left;
}

.wgift-dialog__copy {
  width: 100%;
}

@media (max-width: 720px) {
  .wgift-grid {
    grid-template-columns: minmax(0, 1fr);
    max-width: 440px;
  }

  .wgift-btn {
    flex-basis: 120px;
    padding: 0 14px;
    letter-spacing: 0.08em;
  }

  .wgift-dialog__eyebrow {
    letter-spacing: 0.14em;
  }
}

@media (prefers-reduced-motion: reduce) {
  html[data-effects="off"] .wgift-dialog[open] {
    animation: none;
  }
}

/* ──────────────────────────────────────────────────────────
   COMPACT RHYTHM — FINAL
   Earlier layers padded every chapter by ~164px top and bottom and pushed
   content 105px below each heading, so the invitation ran ~20 screens long.
   This tightens the vertical rhythm and trims oversized blocks so each
   screen shows more of the story. Scoped by section id to outrank the older
   class chains.
   ────────────────────────────────────────────────────────── */

:is(#couple, #hometowns, #story, #wedding, #gallery, #gift, #wishes) {
  padding-top: clamp(56px, 7vw, 96px) !important;
  padding-bottom: clamp(56px, 7vw, 96px) !important;
}

#story {
  padding-bottom: clamp(32px, 4vw, 56px) !important;
}

:is(#couple, #story, #wedding, #gift, #wishes) > .section-heading {
  margin-bottom: clamp(28px, 3.6vw, 52px) !important;
}

:is(#couple, #story, #wedding, #gift, #wishes) .section-heading h2 {
  font-size: clamp(2.5rem, 5vw, 4.25rem) !important;
}

#gallery > .gallery-heading {
  margin-bottom: clamp(24px, 3vw, 44px) !important;
  padding: clamp(24px, 3vw, 34px) clamp(22px, 3.4vw, 44px) !important;
}

#gallery .gallery-heading h2 {
  font-size: clamp(2.6rem, 5.2vw, 4.6rem) !important;
}

#hometowns .origin-bridge__heading {
  margin-bottom: clamp(20px, 3vw, 40px) !important;
}

/* Portraits: 4:5 instead of a tall 3:4-ish crop, faces kept in frame. */
#couple .portrait-frame {
  aspect-ratio: 4 / 5 !important;
}

#couple .portrait-frame img {
  object-fit: cover !important;
  object-position: center 22% !important;
}

/* Story chapters advanced one per ~88% of a screen; 62% keeps the camera
   glide but reaches the next memory sooner. */
@media (min-width: 821px) {
  #story .story-step {
    min-height: 62vh !important;
  }
}

/* Event cards were forced to 460px tall regardless of their content. */
#wedding .event-card {
  min-height: 0 !important;
  padding: clamp(28px, 3vw, 38px) clamp(22px, 3vw, 36px) !important;
}

#save-date {
  padding-top: clamp(40px, 5vw, 64px) !important;
  padding-bottom: clamp(40px, 5vw, 64px) !important;
}

#save-date .countdown-card {
  padding: clamp(32px, 4.5vw, 56px) clamp(16px, 5vw, 64px) !important;
}

#gift .wgift-grid {
  margin-top: 0;
}

#gift .wgift-card {
  padding: clamp(28px, 3vw, 38px) clamp(20px, 3vw, 36px) clamp(22px, 2.6vw, 30px);
}

#gift .wgift-card__monogram {
  width: 58px;
  height: 58px;
  margin: 14px 0 10px;
  font-size: 1.7rem;
}

#gift .wgift-card__bank {
  margin: 18px 0 20px;
}

#gift .wgift-note {
  margin-top: clamp(20px, 3vw, 32px);
}

#thanks h2 {
  font-size: clamp(2.6rem, 5.6vw, 4.6rem) !important;
}

/* Chapter headings: drop the floating card (border, fill, shadow) and the
   duplicate bottom rule so the heading reads as type on the page and the
   chapter's content starts within the first screen. */
:is(#couple, #story, #wedding, #gift, #wishes) > .section-heading {
  max-width: 880px !important;
  padding: 0 !important;
  border: 0 !important;
  background: none !important;
  box-shadow: none !important;
}

:is(#couple, #story, #wedding, #gift, #wishes) > .section-heading::after,
#gallery > .gallery-heading::after {
  display: none !important;
}

:is(#couple, #story, #wedding, #gift, #wishes, #gallery) .section-number {
  margin-bottom: 14px !important;
}

:is(#couple, #story, #wedding, #gift, #wishes, #gallery) .eyebrow {
  margin-bottom: 10px !important;
}

:is(#couple, #story, #wedding, #gift, #wishes) .section-heading h2::after {
  margin: 18px auto !important;
}

:is(#couple, #story, #wedding, #gift, #wishes) .section-lead {
  max-width: 640px !important;
  margin-inline: auto !important;
}

#gallery > .gallery-heading {
  align-items: end !important;
}

:is(#couple, #story, #wedding, #gift, #wishes) .section-heading h2 {
  text-wrap: balance;
}

:is(#couple, #story, #wedding, #gift, #wishes) .section-lead {
  width: auto !important;
  text-wrap: pretty;
}

/* Let headings use the wider block and break into even lines rather than
   stranding a name ("Chuyện Thu / Huyền & Xuân Lựu"). */
:is(#couple, #story, #wedding, #gift, #wishes) .section-heading h2 {
  max-width: none !important;
  text-wrap: balance;
}

/* ──────────────────────────────────────────────────────────
   CINEMATIC POLISH — FINAL
   Review pass: fixes for broken details plus a darker, filmic treatment of
   the full-bleed photo moments (quote, countdown, closing credits).
   ────────────────────────────────────────────────────────── */

/* The music toggle is rendered hidden when music is disabled, but an older
   display:flex rule kept a dead button floating over every screen. */
.music-button[hidden] {
  display: none !important;
}

/* Long lines end on more than one word. */
.section-lead,
.story-step p,
.origin-bridge__note,
.wgift-card__title {
  text-wrap: pretty;
}

.story-step h3,
.countdown-card h2,
.origin-bridge__heading h2 {
  text-wrap: balance;
}

/* Bride and groom cards share one height even when the bios differ. */
#couple .couple-grid {
  align-items: stretch !important;
}

/* ── Two hometowns ─────────────────────────────────────── */

#hometowns .origin-route {
  grid-template-columns: minmax(0, 1fr) minmax(140px, 0.62fr) minmax(0, 1fr) !important;
  max-width: 1120px !important;
}

#hometowns .origin-place strong {
  font-size: clamp(1.7rem, 2.6vw, 2.35rem) !important;
  text-wrap: balance;
}

/* The heart rode an offset-path measured in unscaled SVG units, so it ended
   up inside the groom's card. It now rests at the top of the arc. */
#hometowns .origin-heart {
  offset-path: none !important;
  left: 50% !important;
  top: 6% !important;
  display: grid !important;
  place-items: center !important;
  width: 46px !important;
  height: 46px !important;
  padding: 0 !important;
  border: 1px solid rgba(201, 161, 91, 0.45) !important;
  border-radius: 50% !important;
  background: #fffaf2 !important;
  box-shadow: 0 10px 24px rgba(120, 84, 48, 0.16) !important;
  transform: translate(-50%, -50%) !important;
}

/* Centre the "HOME" watermark instead of letting it run off the right edge. */
#hometowns::before {
  left: 50% !important;
  right: auto !important;
  transform: translateX(-50%) !important;
  white-space: nowrap !important;
  font-size: clamp(7rem, 22vw, 19rem) !important;
  opacity: 0.55;
}

@media (max-width: 820px) {
  #hometowns .origin-route {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  /* The arc is rotated 90deg to run vertically; turn the heart back upright. */
  #hometowns .origin-heart {
    top: 50% !important;
    transform: translate(-50%, -50%) rotate(-90deg) !important;
  }
}

/* ── Quote: a full-bleed film still instead of a card over the photo ── */

#quote {
  min-height: min(84svh, 760px) !important;
  height: auto !important;
  display: grid !important;
  place-items: center !important;
  padding: clamp(64px, 10vh, 120px) 20px !important;
}

#quote .quote-image {
  box-shadow:
    inset 0 0 0 100vmax rgba(16, 10, 8, 0.36),
    inset 0 0 220px 90px rgba(10, 6, 4, 0.72) !important;
  animation: filmDrift 26s ease-in-out infinite alternate;
}

#quote .quote-rings {
  opacity: 0.35 !important;
}

#quote blockquote {
  max-width: 920px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: none !important;
  box-shadow: none !important;
  color: #fff8ef !important;
  font-size: clamp(1.9rem, 3.8vw, 3.4rem) !important;
  line-height: 1.3 !important;
  text-align: center !important;
  text-shadow: 0 6px 34px rgba(0, 0, 0, 0.5);
  text-wrap: balance;
  /* Left over from the card style; on a clear quote it blurred a rectangle of the photo. */
  backdrop-filter: none !important;
}

#quote blockquote span {
  display: block;
  color: var(--final-gold, #c9a15b) !important;
  font-size: 1.6em !important;
  line-height: 0.6 !important;
  text-shadow: none;
}

/* Slow push-in on the full-bleed photos. Uses the standalone `scale`
   property so it composes with the parallax transform written by JS. */
@keyframes filmDrift {
  from {
    scale: 1;
  }
  to {
    scale: 1.08;
  }
}

/* ── Countdown: light type on the darkened photo ───────── */

#save-date .countdown-backdrop {
  background-image:
    radial-gradient(ellipse at 50% 50%, rgba(18, 12, 9, 0.38), rgba(12, 8, 6, 0.82)),
    var(--hero-image) !important;
  background-size: cover !important;
  background-position: center 35% !important;
  animation: filmDrift 30s ease-in-out infinite alternate;
}

#save-date .countdown-card {
  background: none !important;
  box-shadow: none !important;
  color: #fff8ef !important;
}

#save-date .countdown-card h2 {
  color: #fff8ef !important;
  text-shadow: 0 6px 30px rgba(0, 0, 0, 0.45);
}

#save-date .countdown-card > p:not(.eyebrow),
#save-date .countdown-date {
  color: rgba(255, 244, 228, 0.82) !important;
}

#save-date .countdown > div {
  border: 1px solid rgba(255, 228, 184, 0.3) !important;
  background: rgba(255, 248, 236, 0.07) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
}

#save-date .countdown strong {
  color: #fff8ef !important;
}

#save-date .countdown span {
  color: rgba(255, 236, 205, 0.78) !important;
}

#save-date .countdown > i {
  background: rgba(255, 228, 184, 0.35) !important;
}

/* ── Story ─────────────────────────────────────────────── */

/* Light chapter counter; the dark box covered the corner of each photo. */
#story .story-hud {
  background: rgba(255, 250, 242, 0.9) !important;
  box-shadow: 0 10px 26px rgba(40, 26, 18, 0.16) !important;
}

/* With the backdrop blur gone the 74–82% panels let photos and the previous
   chapter show through on phones. Give them a solid paper face. */
#story .story-step__glass {
  background: linear-gradient(180deg, #fffdf8, #fbf3e8) !important;
}

/* ── Closing credits ───────────────────────────────────── */

#thanks {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(201, 161, 91, 0.2), transparent 55%),
    radial-gradient(ellipse at 50% 120%, rgba(143, 94, 86, 0.35), transparent 60%),
    linear-gradient(180deg, #2a1e19 0%, #140d0b 100%) !important;
}

#thanks .eyebrow {
  color: var(--final-gold, #c9a15b) !important;
}

#thanks p,
#thanks small {
  color: rgba(255, 240, 222, 0.72) !important;
}

@media (prefers-reduced-motion: reduce) {
  html[data-effects="off"] #quote .quote-image,
  html[data-effects="off"] #save-date .countdown-backdrop {
    animation: none;
  }
}

/* Story on phones: the sticky photo + sliding cards of the desktop camera
   overlapped on narrow screens. Below 820px each memory becomes its own
   card with its photo on top, read as a vertical timeline. */
.story-step__photo {
  display: none;
}

@media (max-width: 820px) {
  #story .story-stage {
    display: none !important;
  }

  #story .story-experience {
    display: block !important;
  }

  #story .story-step {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    min-height: 0 !important;
    margin: 0 0 22px !important;
    padding: 0 !important;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }

  #story .story-step__photo {
    display: block;
    margin: 0;
    overflow: hidden;
    border-radius: 22px 22px 0 0;
    aspect-ratio: 1;
    box-shadow: 0 24px 50px rgba(59, 40, 30, 0.14);
  }

  #story .story-step__photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
  }

  #story .story-step__glass {
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    border-radius: 0 0 22px 22px !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ──────────────────────────────────────────────────────────
   SIGNATURE — FINAL
   The arch of the hero photo becomes the invitation's motif: each full-bleed
   scene (quote, gallery, closing credits) opens under an arch that overlaps
   the chapter before it. Plus rose-gold foil accents, a ticking countdown
   and fixes from the review pass.
   ────────────────────────────────────────────────────────── */

:root {
  --arch-rise: clamp(44px, 7vw, 104px);
}

:is(#quote, #gallery, #thanks) {
  position: relative;
  z-index: 2;
  margin-top: calc(-1 * var(--arch-rise)) !important;
  border-top-left-radius: 50% var(--arch-rise) !important;
  border-top-right-radius: 50% var(--arch-rise) !important;
  overflow: clip !important;
}

/* A fine gold line traces each arch. */
:is(#quote, #gallery, #thanks)::after {
  content: "" !important;
  position: absolute !important;
  inset: 0 0 auto !important;
  width: auto !important;
  max-width: none !important;
  height: calc(var(--arch-rise) * 1.6) !important;
  border: 0 !important;
  border-top: 1px solid rgba(232, 199, 140, 0.55) !important;
  border-radius: 50% 50% 0 0 / var(--arch-rise) var(--arch-rise) 0 0 !important;
  background: none !important;
  box-shadow: none !important;
  pointer-events: none !important;
  z-index: 5 !important;
  opacity: 1 !important;
  animation: none !important;
  transform: none !important;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 22%, #000 78%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 22%, #000 78%, transparent);
}

#gallery {
  padding-top: calc(var(--arch-rise) + clamp(40px, 5vw, 72px)) !important;
}

#thanks {
  padding-top: calc(var(--arch-rise) + clamp(28px, 4vw, 56px)) !important;
}

/* The rectangular inner frame fought the arch. */
#thanks::before {
  display: none !important;
}

#quote {
  padding-top: calc(var(--arch-rise) + clamp(48px, 8vh, 96px)) !important;
}

/* The couple → hometowns edge was a hard line between two creams. */
#hometowns {
  background:
    linear-gradient(180deg, rgb(251, 248, 243) 0, rgba(251, 248, 243, 0) 240px),
    radial-gradient(circle at 50% 48%, rgba(214, 185, 140, 0.12), transparent 28%),
    rgb(242, 235, 226) !important;
  padding-bottom: calc(var(--arch-rise) + clamp(56px, 7vw, 96px)) !important;
}

:is(#wedding, #wishes) {
  padding-bottom: calc(var(--arch-rise) + clamp(40px, 5vw, 72px)) !important;
}

/* ── Rose-gold foil accents ─────────────────────────────── */

/* One accent for every italic phrase in a heading (some were sage green,
   some rose). Applied per word because headings are split for the reveal. */
:is(.section-heading, .gallery-heading, .origin-bridge__heading, .wgift) h2 em,
:is(.section-heading, .gallery-heading, .origin-bridge__heading, .wgift) h2 em .word {
  background: linear-gradient(100deg, #b9786c 0%, #cf9a70 34%, #f0d29a 50%, #cf9a70 66%, #b9786c 100%);
  background-size: 220% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
  -webkit-text-fill-color: transparent;
}

:is(.section-heading, .gallery-heading, .origin-bridge__heading, .wgift) h2 em .word {
  padding: 0.12em 0.05em 0.24em;
  margin: -0.12em -0.05em -0.24em;
}

/* A single sweep of light when the chapter arrives. */
.scene-in :is(.section-heading, .gallery-heading, .origin-bridge__heading) h2 em .word,
.scene-in.wgift h2 em .word {
  animation: foilOnce 2.4s ease-out 1.1s both;
}

#gallery .gallery-heading h2 em,
#gallery .gallery-heading h2 em .word {
  background-image: linear-gradient(100deg, #d9a98f 0%, #e8c48e 34%, #fff0cc 50%, #e8c48e 66%, #d9a98f 100%);
}

@keyframes foilOnce {
  from { background-position: 100% 0; }
  to { background-position: 0% 0; }
}

/* ── Details ────────────────────────────────────────────── */

.section-lead {
  text-wrap: balance !important;
}

/* Cropped ❦ blob at the right edge of the couple chapter. */
#couple .ornament--one {
  display: none !important;
}

/* The tiny "01/02" in a circle was unreadable; make it an editorial numeral. */
#wedding .event-index {
  top: 18px !important;
  right: 26px !important;
  width: auto !important;
  height: auto !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: none !important;
  box-shadow: none !important;
  font-family: var(--serif) !important;
  font-size: clamp(2.2rem, 3.2vw, 3rem) !important;
  font-style: italic !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  color: rgba(201, 161, 91, 0.42) !important;
}

/* Form and wish wall end on the same line. */
#wishes .wishes-layout {
  align-items: stretch !important;
}

/* Countdown digits roll over each second (see enchant.js). */
#save-date .countdown strong {
  display: inline-block;
}

@media (prefers-reduced-motion: reduce) {
  html[data-effects="off"] .scene-in :is(.section-heading, .gallery-heading, .origin-bridge__heading) h2 em .word, html[data-effects="off"] .scene-in.wgift h2 em .word {
    animation: none;
  }
}

/* Phones: the desktop vignette swallowed most of the narrow photo, and the
   quote at 30px left a single word on its last line. */
@media (max-width: 720px) {
  #quote .quote-image {
    box-shadow:
      inset 0 0 0 100vmax rgba(16, 10, 8, 0.3),
      inset 0 0 90px 24px rgba(10, 6, 4, 0.6) !important;
  }

  #quote blockquote {
    font-size: clamp(1.45rem, 6.4vw, 1.75rem) !important;
  }
}
