@font-face {
  font-family: "IvyPresto";
  src: url("assets/IvyPrestoHeadline-Light.otf") format("opentype");
  font-weight: 300;
}

@font-face {
  font-family: "IvyPrestoThin";
  src: url("assets/IvyPrestoHeadline-Thin.otf") format("opentype");
  font-weight: 200;
}

@font-face {
  font-family: "Druzhok";
  src: url("assets/DRUZHOK.otf") format("opentype");
}

@font-face {
  font-family: "Disruptors";
  src: url("assets/DisruptorsScript-Regular.otf") format("opentype");
}

@font-face {
  font-family: "GWBantley";
  src: url("assets/GWBantley-Regular-Trial.ttf") format("truetype");
}

:root {
  --black: #080202;
  --cream: #ede6dc;
  --paper: #f7f0e6;
  --muted: #bfb3aa;
  --red: #c12323;
  --line: rgba(237, 230, 220, 0.26);
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
}

html {
  scroll-behavior: smooth;
  background: #050101;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  background:
    radial-gradient(circle at 50% 0%, rgba(104, 7, 7, 0.28), transparent 28rem),
    linear-gradient(90deg, #050101 0%, #150505 45%, #050101 100%);
  color: var(--cream);
  font-family: "IvyPresto", Georgia, serif;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

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

button,
input,
textarea {
  font: inherit;
}

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

.preloader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  overflow: hidden;
  background: #070101;
  pointer-events: auto;
}

.preloader__frame {
  position: absolute;
  top: 0;
  bottom: 0;
  width: min(100vw, 430px);
  overflow: hidden;
  background: #070101;
  box-shadow: 0 0 80px rgba(0, 0, 0, 0.7);
}

.preloader__frame::before {
  content: "";
  position: absolute;
  inset: -14px;
  background: url("assets/preloader-base.png") center center / cover no-repeat;
  filter: blur(12px) brightness(0.72);
  transform: scale(1.04);
}

.preloader__art {
  position: relative;
  z-index: 1;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transform: scale(1.01);
  transition: opacity 0.65s ease 0.58s, transform 1.45s cubic-bezier(0.76, 0, 0.24, 1);
}

.preloader__date,
.preloader__invite {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  margin: 0;
  text-align: center;
  color: var(--paper);
  pointer-events: none;
  transition: opacity 0.65s ease 0.58s, transform 1.45s cubic-bezier(0.76, 0, 0.24, 1);
}

.preloader__date {
  top: 10.5%;
  font-family: "Druzhok", "IvyPresto", serif;
  font-size: 2.78rem;
  line-height: 0.78;
}

.preloader__invite {
  bottom: 9.2%;
}

.preloader__invite p {
  margin: 0 0 5px;
  font-size: 1.28rem;
  line-height: 1;
}

.preloader__invite strong {
  display: block;
  font-family: "Druzhok", "IvyPresto", serif;
  font-size: 3.6rem;
  font-weight: 300;
  line-height: 0.82;
}

.preloader__panel {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 3;
  width: 50.2%;
  background:
    linear-gradient(90deg, rgba(5, 0, 0, 0.2), rgba(90, 6, 6, 0.07)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 38px);
  backdrop-filter: blur(0.3px);
  transition: transform 1.45s cubic-bezier(0.76, 0, 0.24, 1), filter 1.45s ease;
  will-change: transform;
}

.preloader__panel--left {
  left: 0;
}

.preloader__panel--right {
  right: 0;
  transform-origin: right center;
}

.preloader__shine {
  position: absolute;
  inset: 0;
  z-index: 4;
  background:
    radial-gradient(circle at 50% 47%, rgba(255, 214, 196, 0.14), transparent 15rem),
    linear-gradient(105deg, transparent 31%, rgba(255, 230, 210, 0.15) 46%, transparent 61%);
  mix-blend-mode: screen;
  animation: preloaderShine 1.9s ease-in-out infinite alternate;
}

.preloader__line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  z-index: 5;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(255, 236, 220, 0.42), transparent);
  transform: translateX(-50%);
  opacity: 0.8;
}

.preloader.is-opening {
  pointer-events: none;
}

.preloader.is-opening .preloader__panel--left {
  transform: translateX(-102%) scaleX(1.04);
  filter: brightness(0.75);
}

.preloader.is-opening .preloader__panel--right {
  transform: translateX(102%) scaleX(1.04);
  filter: brightness(0.75);
}

.preloader.is-opening .preloader__art {
  opacity: 0;
  transform: scale(1.08);
}

.preloader.is-opening .preloader__date,
.preloader.is-opening .preloader__invite {
  opacity: 0;
  transform: scale(1.06);
}

.preloader.is-opening .preloader__shine,
.preloader.is-opening .preloader__line {
  opacity: 0;
  transition: opacity 0.42s ease;
}

.preloader.is-gone {
  display: none;
}

.site {
  position: relative;
  width: min(100vw, 430px);
  min-height: 100vh;
  background: var(--black);
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04), 0 30px 110px rgba(0, 0, 0, 0.72);
}

.preloading .site {
  opacity: 0;
}

.topbar {
  position: fixed;
  top: 10px;
  left: 50%;
  z-index: 30;
  width: min(calc(100vw - 54px), 376px);
  height: 50px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px 0 14px;
  color: var(--paper);
  background: rgba(8, 2, 2, 0.55);
  border: 1px solid rgba(237, 230, 220, 0.18);
  border-radius: 8px;
  backdrop-filter: blur(18px);
}

.monogram {
  font-family: "GWBantley", "IvyPresto", serif;
  font-size: 1.45rem;
  line-height: 1;
}

.topbar__actions {
  display: flex;
  gap: 8px;
}

.icon-button {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(237, 230, 220, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--paper);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.menu-toggle {
  gap: 5px;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 1px;
  background: currentColor;
  transition: transform 0.35s ease;
}

.menu-open .menu-toggle span:first-child {
  transform: translateY(3px) rotate(42deg);
}

.menu-open .menu-toggle span:last-child {
  transform: translateY(-3px) rotate(-42deg);
}

.sound-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
}

.sound-toggle__bar {
  width: 3px;
  height: 10px;
  border-radius: 999px;
  background: currentColor;
  transform-origin: bottom;
  animation: soundWave 0.78s ease-in-out infinite;
}

.sound-toggle__bar:nth-child(2) {
  height: 16px;
  animation-delay: 0.16s;
}

.sound-toggle__bar:nth-child(3) {
  height: 12px;
  animation-delay: 0.32s;
}

.sound-toggle.is-muted .sound-toggle__bar {
  animation: none;
  transform: scaleY(0.32);
  opacity: 0.55;
}


.music-start-button {
  position: fixed;
  left: 50%;
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 45;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 214px;
  padding: 13px 22px 14px;
  border: 1px solid rgba(237, 230, 220, 0.36);
  border-radius: 999px;
  background: rgba(8, 2, 2, 0.86);
  color: var(--paper);
  font-family: "GWBantley", "IvyPresto", serif;
  font-size: 1.04rem;
  letter-spacing: 0.03em;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
  cursor: pointer;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease, opacity 0.25s ease;
}

.music-start-button:hover,
.music-start-button:focus-visible {
  border-color: rgba(237, 230, 220, 0.62);
  background: rgba(8, 2, 2, 0.94);
  transform: translateX(-50%) translateY(-2px);
}

.music-start-button__icon {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(237, 230, 220, 0.16);
  font-size: 1rem;
  line-height: 1;
}

.music-start-button.is-playing .music-start-button__icon {
  animation: musicPulse 1.18s ease-in-out infinite;
}

.music-start-button.is-playing {
  opacity: 0.88;
}

.menu-panel {
  position: fixed;
  top: 70px;
  left: 50%;
  z-index: 25;
  width: min(calc(100vw - 54px), 376px);
  transform: translateX(-50%) translateY(-14px);
  padding: 18px;
  display: grid;
  gap: 7px;
  background: rgba(8, 2, 2, 0.93);
  border: 1px solid rgba(237, 230, 220, 0.16);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  backdrop-filter: blur(20px);
}

.menu-open .menu-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.menu-panel a {
  padding: 12px 10px;
  border-bottom: 1px solid rgba(237, 230, 220, 0.12);
  color: var(--paper);
  font-size: 1.35rem;
}

.hero h1 {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.hero {
  padding: 0 0 10px;
  background: #0b0202;
}

.hero__image {
  width: 100%;
  animation: imageBreath 14s ease-in-out infinite alternate;
}

.invite-section {
  position: relative;
  padding: 12px 18px 28px;
  background:
    linear-gradient(180deg, rgba(8, 2, 2, 0) 0%, rgba(8, 2, 2, 0.68) 82%),
    url("assets/red-silk.png") center -58px / 100% auto no-repeat,
    #0b0202;
}

.lace-card {
  filter: drop-shadow(0 18px 36px rgba(0, 0, 0, 0.36));
}

.place-section {
  padding: 44px 0 48px;
  background: #080202;
  text-align: center;
}

.stage-card {
  position: relative;
  width: 76%;
  margin: 0 auto;
  aspect-ratio: 524 / 706;
  display: grid;
  place-items: center;
  background: #080202;
  overflow: hidden;
}

.stage-card__curtain {
  height: 100%;
  object-fit: cover;
}

.stage-card__text {
    position: absolute;
    inset: 0;
    width: 100%;
    margin: auto;
    object-fit: cover;
    filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.65));
    margin-bottom: 2px;
}

.dress-section {
  padding: 0 0 56px;
  background: #080202;
}

.dress-title {
  padding: 0 18px 20px;
  text-align: center;
}

.dress-title h2 {
  margin: 0;
  color: var(--paper);
  font-family: "GWBantley", "IvyPresto", serif;
  font-size: 6rem;
  font-weight: 300;
  line-height: 0.82;
}

.dress-title p,
.dress-copy {
  margin: 12px auto 0;
  color: rgba(237, 230, 220, 0.82);
  font-size: 1.03rem;
  line-height: 1.16;
  text-align: center;
}

.dress-title span {
  color: var(--red);
  font-family: "Disruptors", cursive;
  font-size: 1.35rem;
}

.dress-image {
  width: calc(100% - 34px);
  margin: 0 auto;
  filter: drop-shadow(0 16px 34px rgba(0, 0, 0, 0.36));
}

.dress-copy {
  width: calc(100% - 34px);
  margin-top: 31px;
}

.gentlemen-image {
    width: 100%;
    margin: 58px auto 0;
    filter: drop-shadow(0 18px 36px rgba(0, 0, 0, 0.34));
    padding-left: 10px;
    padding-right: 10px;
}

.program-section {
  position: relative;
  isolation: isolate;
  min-height: 760px;
  padding: 0;
  overflow: hidden;
  background: #650404;
}

.silk-bg {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.program-content {
  position: relative;
  z-index: 1;
  min-height: inherit;
  padding: 86px 20px 78px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.program-title {
  margin: 0;
  color: var(--paper);
  font-family: "Druzhok", "IvyPresto", serif;
  font-size: 2.62rem;
  font-weight: 300;
  line-height: 0.88;
  text-transform: uppercase;
}

.timeline {
  list-style: none;
  margin: 64px 0 0;
  padding: 0;
  display: grid;
  gap: 55px;
}

.timeline time {
  display: block;
  color: var(--paper);
  font-family: "IvyPrestoThin", Georgia, serif;
  font-size: 2.45rem;
  line-height: 0.82;
}

.timeline span {
  display: block;
  color: rgba(237, 230, 220, 0.8);
  font-size: 1.22rem;
  line-height: 1;
}

.wishes-section {
  padding: 64px 0 58px;
  background: linear-gradient(180deg, #050101 0%, #080202 100%);
}

.envelope {
  width: calc(100% - 110px);
  margin: 0 auto;
  filter: drop-shadow(0 22px 46px rgba(0, 0, 0, 0.42));
}

.rsvp-section {
  padding: 58px 20px 62px;
  background: #080202;
  border-top: 1px solid rgba(237, 230, 220, 0.08);
}

.rsvp-title {
  text-align: center;
}

.rsvp-title p {
  margin: 0 0 3px;
  color: var(--paper);
  font-family: "Disruptors", cursive;
  font-size: 2.22rem;
  line-height: 1;
}

.rsvp-title h2 {
  margin: 0;
  color: var(--paper);
  font-family: "Druzhok", "IvyPresto", serif;
  font-size: 3.45rem;
  font-weight: 300;
  line-height: 0.78;
  text-transform: uppercase;
}

.rsvp-title img {
    width: 100%;
    margin: 0 auto;
    filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.34));
    margin-bottom: -55px;
}

.rsvp-lead {
  width: calc(100% - 16px);
  margin: 22px auto 26px;
  color: rgba(237, 230, 220, 0.78);
  font-size: 1.02rem;
  line-height: 1.16;
  text-align: center;
}

.rsvp-form {
  width: 100%;
  margin: 0 auto;
  padding: 18px 14px 20px;
  border: 1px solid rgba(237, 230, 220, 0.24);
  color: var(--paper);
  background: rgba(255, 255, 255, 0.012);
  box-shadow: inset 0 0 0 1px rgba(237, 230, 220, 0.08);
}

.field,
fieldset {
  display: grid;
  gap: 10px;
  margin: 0 0 20px;
}

fieldset {
  padding: 0;
  border: 0;
}

.field span,
legend {
  color: rgba(237, 230, 220, 0.9);
  font-size: 1.05rem;
  line-height: 1.14;
  text-align: center;
}

input[type="text"],
textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 13px;
  color: var(--paper);
  background: rgba(255, 255, 255, 0.018);
  border: 1px solid rgba(237, 230, 220, 0.34);
  border-radius: 0;
  outline: none;
}

textarea {
  resize: vertical;
  min-height: 74px;
}

input::placeholder,
textarea::placeholder {
  color: rgba(237, 230, 220, 0.28);
}

fieldset label {
  min-height: 30px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 3px 8px;
  color: rgba(237, 230, 220, 0.82);
}

input[type="radio"],
input[type="checkbox"] {
  width: 15px;
  height: 15px;
  accent-color: var(--red);
}

.button {
  min-height: 42px;
  padding: 12px 18px 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 1.02rem;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease;
}

.button:active {
  transform: translateY(1px) scale(0.99);
}

.button--light {
  color: #130707;
  background: var(--paper);
}

.button--wide {
  width: 100%;
}

.form-status {
  min-height: 22px;
  margin: 12px 0 0;
  color: rgba(237, 230, 220, 0.8);
  font-size: 0.92rem;
  line-height: 1.25;
  text-align: center;
}

.contacts-section {
  padding: 48px 16px 30px;
  color: #130707;
  background: var(--paper);
}

.lace-contact {
  position: relative;
  min-height: 292px;
  display: grid;
  place-items: center;
  text-align: center;
  overflow: hidden;
}

.lace-contact img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 112%;
  height: auto;
  transform: translate(-50%, -50%);
  filter: contrast(1.18);
}

.lace-contact div {
  position: relative;
  z-index: 1;
  width: 72%;
  padding: 18px 12px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.74);
  color: var(--paper);
}

.lace-contact p {
  margin: 0 0 14px;
  font-size: 0.82rem;
  line-height: 1.22;
}

.lace-contact a {
  display: block;
  margin-top: 4px;
  font-size: 1.02rem;
  color: var(--paper);
}

.final-section {
  padding: 0;
  background: var(--paper);
  overflow: hidden;
}

.see-you {
  width: calc(100% - 42px);
  margin: 0 auto -18px;
  position: relative;
  z-index: 2;
  transform: rotate(-3deg);
}

.couple-strip {
  height: 150px;
  object-fit: cover;
  object-position: center;
  filter: grayscale(1) contrast(1.08);
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.72s ease, transform 0.72s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}


@keyframes musicPulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.12);
  }
}

@keyframes soundWave {
  0%,
  100% {
    transform: scaleY(0.42);
  }
  50% {
    transform: scaleY(1);
  }
}

@keyframes imageBreath {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.012);
  }
}

@keyframes preloaderShine {
  from {
    transform: translateX(-12%);
    opacity: 0.55;
  }
  to {
    transform: translateX(12%);
    opacity: 0.95;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
section#dress {
    margin-bottom: -35px;
    z-index: 1;
    position: relative;
}section.wishes-section {
    margin-top: -170px;
}

section#place {
    margin-top: -150px;
}
.invite-section {
    position: relative;
    padding: 12px 18px 28px;
    background: linear-gradient(180deg, rgba(8, 2, 2, 0) 0%, rgba(8, 2, 2, 0.68) 82%), url(assets/red-silk.png) center -58px / 100% auto no-repeat, #0b0202;
    background-size: cover;
}.lace-contact img {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: auto;
    transform: translate(-50%, -50%);
    filter: contrast(1.18);
}section#contacts {
    padding-left: 0px;
    padding-right: 0px;
}.lace-contact div {
    position: relative;
    z-index: 1;
    width: 81%;
    padding: 40px 35px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.74);
    color: var(--paper);
}img.see-you.reveal.is-visible {
    margin-bottom: -55px;
    margin-top: -17px;
    z-index: 9999;
    position: relative;
}.dress-title span {
    color: var(--red);
    font-family: "Disruptors", cursive;
    font-size: 2.35rem;
    position: absolute;
    margin-top: -13px;
    margin-left: 5px;
}