:root {
  --stone: #bcb6ae;
  --mist: #cfcbc6;
  --ivory: #f7f3ec;
  --warm: #e7ded2;
  --paper: rgba(247, 243, 236, 0.82);
  --paper-strong: rgba(247, 243, 236, 0.94);
  --ink: #23201d;
  --soft-ink: #514b45;
  --white: #fffaf2;
  --line: rgba(255, 250, 242, 0.38);
  --dark-line: rgba(35, 32, 29, 0.14);
  --shadow: 0 22px 60px rgba(17, 14, 11, 0.18);
  --serif: "Noto Serif Armenian", "Cormorant Garamond", Georgia, serif;
  --sans: "Noto Sans Armenian", "Manrope", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: #14110e;
  color: var(--white);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.6;
}

body.intro-active {
  overflow: hidden;
}

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

button {
  cursor: pointer;
}

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

.background-stage,
.page-overlay {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}

.bg-frame {
  position: absolute;
  inset: -7vh -3vw;
  background-position: center;
  background-size: cover;
  opacity: 0;
  transform: translate3d(0, 0, 0) scale(1.04);
  transition: opacity 1400ms ease, transform 700ms ease-out;
  will-change: opacity, transform;
}

.bg-frame.is-active {
  opacity: 1;
}

.page-overlay {
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(16, 13, 10, 0.56), rgba(16, 13, 10, 0.36) 32%, rgba(16, 13, 10, 0.64)),
    radial-gradient(circle at center, rgba(207, 203, 198, 0.08), rgba(16, 13, 10, 0.36));
  pointer-events: none;
}

.opening {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 2rem;
  background:
    linear-gradient(180deg, rgba(15, 13, 11, 0.36), rgba(15, 13, 11, 0.62)),
    rgba(20, 17, 14, 0.32);
  text-align: center;
  opacity: 1;
  transition: opacity 900ms ease, visibility 900ms ease;
}

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

.opening__content {
  width: min(680px, 100%);
  transform: translateY(0);
  transition: transform 900ms ease;
}

body.is-open .opening__content {
  transform: translateY(-18px);
}

.opening__mark {
  display: grid;
  place-items: center;
  width: 7.4rem;
  height: 7.4rem;
  margin: 0 auto 2.2rem;
  border: 1px solid rgba(255, 250, 242, 0.58);
  border-radius: 50%;
  color: var(--ivory);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 2rem;
  font-weight: 300;
}

.opening h1,
.section h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 300;
  line-height: 1.05;
}

.opening h1 {
  margin-top: 0.8rem;
  font-size: 4.8rem;
}

.opening__copy {
  width: min(560px, 100%);
  margin: 1.4rem auto 2.2rem;
  color: rgba(255, 250, 242, 0.84);
  font-size: 1rem;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: rgba(255, 250, 242, 0.78);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: uppercase;
}

.luxury-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.1rem;
  padding: 0.8rem 1.55rem;
  border: 1px solid rgba(35, 32, 29, 0.22);
  border-radius: 999px;
  background: var(--paper-strong);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: uppercase;
  transition: transform 220ms ease, background 220ms ease, border-color 220ms ease, color 220ms ease;
}

.luxury-button:hover {
  transform: translateY(-2px);
  background: var(--white);
}

.luxury-button--light {
  border-color: rgba(255, 250, 242, 0.44);
  background: rgba(255, 250, 242, 0.16);
  color: var(--white);
  box-shadow: 0 18px 46px rgba(12, 10, 8, 0.18), inset 0 1px 0 rgba(255, 250, 242, 0.18);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.luxury-button--light:hover {
  border-color: rgba(255, 250, 242, 0.66);
  background: rgba(255, 250, 242, 0.24);
  color: var(--white);
  transform: translateY(-3px) scale(1.015);
}

.luxury-button--ghost {
  border-color: rgba(255, 250, 242, 0.34);
  background: transparent;
  color: var(--white);
}

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

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem min(5vw, 4rem);
  opacity: 1;
  transition: opacity 500ms ease;
}

body.intro-active .topbar,
body.intro-active .site-main,
body.intro-active .music-toggle {
  opacity: 0;
  pointer-events: none;
}

.brand {
  color: var(--ivory);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 300;
}

.brand span {
  color: var(--mist);
  padding: 0 0.18rem;
}

.language-switcher {
  display: flex;
  gap: 0.25rem;
  padding: 0.25rem;
  border: 1px solid rgba(255, 250, 242, 0.26);
  border-radius: 999px;
  background: rgba(20, 17, 14, 0.24);
  backdrop-filter: blur(18px);
}

.language-switcher button {
  min-width: 2.9rem;
  min-height: 2.25rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 250, 242, 0.78);
  font-size: 0.76rem;
  font-weight: 500;
  transition: background 220ms ease, color 220ms ease;
}

.language-switcher button.is-active {
  background: rgba(255, 250, 242, 0.9);
  color: var(--ink);
}

.music-toggle {
  position: fixed;
  right: min(5vw, 4rem);
  bottom: 1.25rem;
  z-index: 19;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 2.8rem;
  padding: 0.62rem 1rem;
  border: 1px solid rgba(255, 250, 242, 0.3);
  border-radius: 999px;
  background: rgba(20, 17, 14, 0.32);
  color: var(--ivory);
  backdrop-filter: blur(18px);
  font-size: 0.78rem;
  transition: opacity 500ms ease, transform 220ms ease;
}

.music-toggle:hover {
  transform: translateY(-2px);
}

.music-toggle__icon {
  position: relative;
  width: 0.72rem;
  height: 0.72rem;
  border: 1px solid var(--ivory);
  border-radius: 50%;
}

.music-toggle__icon::after {
  content: "";
  position: absolute;
  inset: 0.18rem;
  border-radius: 50%;
  background: var(--ivory);
  opacity: 0.88;
}

.music-toggle.is-paused .music-toggle__icon::after {
  opacity: 0.28;
}

.site-main {
  opacity: 1;
  transition: opacity 700ms ease 160ms;
}

.section {
  position: relative;
  display: grid;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: 8rem min(6vw, 5.5rem);
}

.section-inner {
  width: min(1080px, 100%);
  margin: 0 auto;
}

.section-inner--narrow {
  width: min(760px, 100%);
}

.section-inner--form {
  width: min(980px, 100%);
}

.hero-section {
  justify-items: center;
  text-align: center;
}

.hero-content {
  width: min(980px, 100%);
}

.hero-names {
  margin: 0;
  color: var(--white);
  font-family: var(--serif);
  font-size: 7rem;
  font-weight: 300;
  line-height: 0.96;
  text-wrap: balance;
}

.hero-names span {
  display: inline-block;
  color: var(--mist);
  padding: 0 0.55rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 0.72em;
}

.hero-phrase {
  width: min(680px, 100%);
  margin: 1.35rem auto 1rem;
  color: rgba(255, 250, 242, 0.86);
  font-size: 1.08rem;
}

.hero-date {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  padding: 0 1.35rem;
  border-top: 1px solid rgba(255, 250, 242, 0.44);
  border-bottom: 1px solid rgba(255, 250, 242, 0.44);
  color: var(--white);
  font-size: 0.88rem;
  font-weight: 500;
  text-transform: uppercase;
}

.scroll-indicator {
  position: absolute;
  bottom: 2.1rem;
  left: 50%;
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 3.6rem;
  border: 1px solid rgba(255, 250, 242, 0.4);
  border-radius: 999px;
  transform: translateX(-50%);
}

.scroll-indicator span {
  width: 0.28rem;
  height: 0.28rem;
  border-radius: 50%;
  background: var(--ivory);
  animation: scrollDot 1.8s ease-in-out infinite;
}

@keyframes scrollDot {
  0%,
  100% {
    transform: translateY(-0.5rem);
    opacity: 0.35;
  }
  50% {
    transform: translateY(0.58rem);
    opacity: 1;
  }
}

.text-section {
  text-align: center;
}

.text-section h2,
.countdown-section h2,
.closing-section h2,
.section-heading h2 {
  color: var(--white);
  font-size: 4rem;
}

.lead {
  margin: 1.4rem auto 0;
  color: rgba(255, 250, 242, 0.85);
  font-size: 1.08rem;
}

.script-line {
  margin: 2rem 0 0;
  color: var(--mist);
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 300;
}

.schedule-list {
  display: grid;
  gap: 0.75rem;
  margin-top: 2rem;
}

.schedule-item {
  display: grid;
  grid-template-columns: 6.4rem 1fr;
  align-items: center;
  gap: 1rem;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(255, 250, 242, 0.3);
  border-radius: 8px;
  background: rgba(247, 243, 236, 0.14);
  box-shadow: 0 14px 38px rgba(17, 14, 11, 0.12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.schedule-item time {
  color: var(--mist);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.5rem;
  font-weight: 500;
}

.schedule-item p {
  margin: 0;
  color: rgba(255, 250, 242, 0.9);
  font-size: 0.98rem;
}

.section-heading {
  max-width: 620px;
  margin-bottom: 2rem;
}

.section-note {
  margin: 1rem 0 0;
  color: rgba(255, 250, 242, 0.76);
}

.event-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  width: min(620px, 100%);
  padding: 1.55rem;
  border: 1px solid rgba(255, 250, 242, 0.34);
  border-radius: 8px;
  background: rgba(247, 243, 236, 0.18);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.event-card--right {
  margin-left: auto;
}

.line-icon {
  display: grid;
  place-items: center;
  width: 4.8rem;
  height: 4.8rem;
  border: 1px solid rgba(255, 250, 242, 0.32);
  border-radius: 50%;
  color: var(--ivory);
}

.line-icon svg {
  width: 2.9rem;
  height: 2.9rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.event-card h3 {
  margin: 0 0 1rem;
  color: var(--white);
  font-family: var(--serif);
  font-size: 2.1rem;
  font-weight: 300;
  line-height: 1.12;
}

.event-card dl {
  display: grid;
  gap: 0.85rem;
  margin: 0 0 1.35rem;
}

.event-card dl div {
  display: grid;
  gap: 0.12rem;
}

.event-card dt {
  color: rgba(255, 250, 242, 0.58);
  font-size: 0.68rem;
  font-weight: 500;
  text-transform: uppercase;
}

.event-card dd {
  margin: 0;
  color: rgba(255, 250, 242, 0.9);
}

.countdown-section {
  text-align: center;
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
  width: min(800px, 100%);
  margin: 2.4rem auto 0;
}

.time-tile {
  display: grid;
  place-items: center;
  min-height: 9rem;
  padding: 1rem;
  border: 1px solid rgba(255, 250, 242, 0.34);
  border-radius: 8px;
  background: rgba(247, 243, 236, 0.16);
  backdrop-filter: blur(18px);
}

.time-tile strong {
  color: var(--white);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 4rem;
  font-weight: 300;
  line-height: 1;
}

.time-tile span {
  color: rgba(255, 250, 242, 0.72);
  font-size: 0.76rem;
  font-weight: 500;
  text-transform: uppercase;
}

.rsvp-form {
  padding: 1.45rem;
  border: 1px solid rgba(255, 250, 242, 0.34);
  border-radius: 8px;
  background: rgba(247, 243, 236, 0.2);
  color: var(--white);
  box-shadow: 0 24px 70px rgba(12, 10, 8, 0.24), inset 0 1px 0 rgba(255, 250, 242, 0.12);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.rsvp-form label,
.rsvp-form fieldset {
  display: grid;
  gap: 0.45rem;
  margin: 0 0 1rem;
}

.rsvp-form label span,
.rsvp-form legend {
  color: rgba(255, 250, 242, 0.86);
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: uppercase;
}

.rsvp-form fieldset {
  padding: 0;
  border: 0;
}

.rsvp-form legend {
  margin-bottom: 0.45rem;
}

.rsvp-form input,
.rsvp-form select,
.rsvp-form textarea {
  width: 100%;
  min-height: 3rem;
  border: 1px solid rgba(255, 250, 242, 0.28);
  border-radius: 8px;
  background: rgba(255, 250, 242, 0.78);
  color: var(--ink);
  padding: 0.75rem 0.85rem;
  outline: none;
  transition: border-color 180ms ease, background 180ms ease;
}

.rsvp-form textarea {
  resize: vertical;
}

.rsvp-form input:focus,
.rsvp-form select:focus,
.rsvp-form textarea:focus {
  border-color: rgba(35, 32, 29, 0.46);
  background: var(--white);
}

.choice-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.choice {
  display: inline-flex !important;
  grid-template-columns: auto 1fr;
  align-items: center;
  min-height: 3rem;
  padding: 0.45rem 0.8rem;
  border: 1px solid rgba(255, 250, 242, 0.26);
  border-radius: 999px;
  background: rgba(255, 250, 242, 0.18);
  color: var(--white);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.choice input {
  width: auto;
  min-height: auto;
  margin: 0;
  accent-color: var(--stone);
}

.form-error {
  min-height: 1.5rem;
  margin: 0 0 0.8rem;
  color: #7b2d26;
  font-size: 0.86rem;
}

.closing-section {
  text-align: center;
}

.closing-names {
  margin: 2rem 0 0;
  color: var(--mist);
  font-family: var(--serif);
  font-size: 3.1rem;
  font-weight: 300;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 1.2rem;
}

.modal[hidden] {
  display: none;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 13, 11, 0.62);
  backdrop-filter: blur(10px);
}

.modal__panel {
  position: relative;
  width: min(520px, 100%);
  padding: 1.6rem;
  border: 1px solid rgba(255, 250, 242, 0.36);
  border-radius: 8px;
  background: rgba(35, 32, 29, 0.88);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
}

.modal__panel h2 {
  margin: 0 0 0.8rem;
  color: var(--white);
  font-family: var(--serif);
  font-size: 2.4rem;
  font-weight: 300;
}

.modal__panel p {
  color: rgba(255, 250, 242, 0.78);
}

.modal__close {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  display: grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  border: 1px solid rgba(255, 250, 242, 0.28);
  border-radius: 50%;
  background: transparent;
  color: var(--white);
  font-size: 1.35rem;
  line-height: 1;
}

.modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.3rem;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 1.25rem;
  z-index: 50;
  max-width: min(92vw, 480px);
  padding: 0.85rem 1rem;
  border: 1px solid rgba(255, 250, 242, 0.32);
  border-radius: 999px;
  background: rgba(35, 32, 29, 0.88);
  color: var(--white);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translate(-50%, 1rem);
  transition: opacity 260ms ease, transform 260ms ease;
  pointer-events: none;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 900ms ease, transform 900ms ease;
}

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

@media (max-width: 900px) {
  .section {
    padding: 7rem 1.4rem;
  }

  .opening h1 {
    font-size: 3.6rem;
  }

  .hero-names {
    font-size: 5rem;
  }

  .text-section h2,
  .countdown-section h2,
  .closing-section h2,
  .section-heading h2 {
    font-size: 3.1rem;
  }

  .countdown-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .topbar {
    padding: 0.9rem 1rem;
  }

  .brand {
    font-size: 1.18rem;
  }

  .language-switcher button {
    min-width: 2.45rem;
    min-height: 2rem;
    font-size: 0.7rem;
  }

  .music-toggle {
    right: 1rem;
    bottom: 0.9rem;
    max-width: calc(100vw - 2rem);
  }

  .opening {
    padding: 1.2rem;
  }

  .opening__mark {
    width: 6rem;
    height: 6rem;
    margin-bottom: 1.6rem;
    font-size: 1.6rem;
  }

  .opening h1 {
    font-size: 2.8rem;
  }

  .opening__copy,
  .hero-phrase,
  .lead {
    font-size: 0.96rem;
  }

  .hero-names {
    font-size: 3.35rem;
  }

  .hero-names span {
    display: block;
    padding: 0.18rem 0;
  }

  .text-section h2,
  .countdown-section h2,
  .closing-section h2,
  .section-heading h2 {
    font-size: 2.45rem;
  }

  .event-card {
    grid-template-columns: 1fr;
    padding: 1.2rem;
  }

  .line-icon {
    width: 4rem;
    height: 4rem;
  }

  .event-card h3 {
    font-size: 1.78rem;
  }

  .form-grid,
  .countdown-grid {
    grid-template-columns: 1fr;
  }

  .schedule-item {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .time-tile {
    min-height: 7.2rem;
  }

  .time-tile strong {
    font-size: 3.2rem;
  }

  .modal__actions,
  .modal__actions .luxury-button {
    width: 100%;
  }

  .toast {
    border-radius: 8px;
  }
}

@media (max-width: 390px) {
  .section {
    padding-inline: 1rem;
  }

  .hero-names {
    font-size: 2.82rem;
  }

  .opening h1,
  .text-section h2,
  .countdown-section h2,
  .closing-section h2,
  .section-heading h2 {
    font-size: 2.15rem;
  }

  .luxury-button,
  .music-toggle {
    font-size: 0.72rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
