:root {
  --paper: #f7f6f3;
  --white: #ffffff;
  --ink: #2e3738;
  --muted: #718486;
  --sage: #bdc9ca;
  --sage-light: #e8edeb;
  --deep: #405b62;
  --gold: #a18c4c;
  --mist: #d7d5d7;
  --shadow: 0 22px 60px rgba(52, 66, 68, .12);
  --serif: "Noto Serif Armenian", Georgia, serif;
  --sans: "Noto Sans Armenian", Arial, sans-serif;
  --script: "Great Vibes", cursive;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 20px; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.75;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

.section-shell { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }
.section-title {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.9rem, 4vw, 3.2rem);
  line-height: 1.35;
  font-weight: 300;
  letter-spacing: -.025em;
}
.section-copy { max-width: 620px; margin: 18px auto 0; color: #647477; font-size: clamp(.96rem, 1.5vw, 1.08rem); }
.script-label { margin: 0 0 7px; color: var(--muted); font: 2.25rem/1.1 var(--script); }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.65,.25,1); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* HERO */
.hero {
  min-height: 100svh;
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #fff;
  background: #87999b url("assets/couple-hero.jpg") center 48% / cover no-repeat;
}
.hero__veil {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(39, 54, 57, .24) 0%, rgba(38, 52, 55, .06) 38%, rgba(31, 45, 48, .42) 100%),
              linear-gradient(90deg, rgba(32, 45, 48, .18), transparent 65%);
}
.hero__frame { position: absolute; inset: 22px; border: 1px solid rgba(255,255,255,.38); pointer-events: none; }
.hero__content { width: min(780px, calc(100% - 42px)); text-align: center; padding: 70px 0 100px; animation: hero-arrive 1.2s ease both; }
.hero__quote { margin: 0 auto 28px; max-width: 580px; font-size: clamp(.88rem, 1.7vw, 1.08rem); letter-spacing: .04em; line-height: 1.7; color: rgba(255,255,255,.9); }
.hero__eyebrow { margin: 0 0 20px; font-size: .68rem; font-weight: 500; letter-spacing: .38em; text-transform: uppercase; }
.hero__names { margin: 0; display: flex; flex-direction: column; align-items: center; font-family: var(--serif); font-size: clamp(3.5rem, 10vw, 7.7rem); font-weight: 300; line-height: .9; letter-spacing: -.055em; text-shadow: 0 4px 22px rgba(0,0,0,.12); }
.hero__names span:not(.hero__amp) { display: block; }
.hero__amp { margin: 9px 0 5px; font: 3.1rem/1 var(--script); letter-spacing: 0; }
.hero__date-line { display: flex; align-items: center; justify-content: center; gap: 18px; margin: 32px auto 0; }
.hero__date-line span { width: clamp(34px, 7vw, 72px); height: 1px; background: rgba(255,255,255,.72); }
.hero__date-line p { margin: 0; font-size: .78rem; letter-spacing: .25em; font-weight: 400; }
.hero__scroll { display: inline-flex; align-items: center; gap: 14px; margin-top: 50px; padding: 10px 20px; border: 1px solid rgba(255,255,255,.5); border-radius: 999px; color: white; text-decoration: none; font-size: .76rem; letter-spacing: .13em; transition: background .3s ease, transform .3s ease; }
.hero__scroll span { font-size: 1.2rem; line-height: 1; }
.hero__scroll:hover { background: rgba(255,255,255,.15); transform: translateY(-2px); }
.hero__bottom-note { position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%); font-size: .58rem; letter-spacing: .34em; white-space: nowrap; color: rgba(255,255,255,.7); }
@keyframes hero-arrive { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }

/* PAPER / INTRO */
.welcome { position: relative; padding: 104px 0 112px; background: var(--white); text-align: center; }
.welcome__shell { max-width: 760px; }
.welcome__ornament { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 23px auto 26px; color: var(--gold); }
.welcome__ornament span { width: 56px; height: 1px; background: #c5c9c7; }
.welcome__ornament i { font-style: normal; font-size: 1.3rem; }
.welcome__text { max-width: 670px; margin: 0 auto; font-size: clamp(1rem, 1.8vw, 1.13rem); line-height: 2; }
.welcome__closing { margin: 24px 0 0; color: var(--deep); font-family: var(--serif); font-size: 1.18rem; font-style: italic; }
.paper-tear { position: absolute; left: 0; right: 0; height: 34px; pointer-events: none; z-index: 2; }
.paper-tear--bottom { bottom: -1px; background: var(--paper); clip-path: polygon(0 45%, 3% 20%, 6% 62%, 9% 28%, 13% 55%, 17% 12%, 21% 58%, 25% 30%, 29% 66%, 33% 21%, 37% 56%, 42% 12%, 46% 55%, 50% 25%, 54% 64%, 58% 16%, 62% 52%, 66% 30%, 70% 68%, 74% 18%, 78% 58%, 82% 22%, 86% 61%, 90% 26%, 94% 58%, 97% 17%, 100% 44%, 100% 100%, 0 100%); }
.paper-tear--top { top: -1px; background: var(--white); clip-path: polygon(0 0, 100% 0, 100% 42%, 97% 70%, 93% 28%, 89% 62%, 85% 20%, 81% 55%, 77% 32%, 73% 72%, 69% 26%, 65% 62%, 61% 18%, 57% 60%, 53% 32%, 49% 72%, 45% 20%, 41% 55%, 37% 30%, 33% 68%, 29% 24%, 25% 62%, 21% 18%, 17% 54%, 13% 30%, 9% 70%, 5% 22%, 0 50%); }
.paper-tear--muted { background: var(--sage); }

/* PHOTO STORY */
.story { padding: 104px 0 118px; text-align: center; }
.story__intro { max-width: 760px; margin: 0 auto; }
.photo-stack { position: relative; width: min(690px, 100%); height: 590px; margin: 54px auto 0; }
.photo-stack__back { position: absolute; width: 48%; height: 76%; background: #d2dcdd; box-shadow: 0 16px 38px rgba(52,66,68,.08); }
.photo-stack__back--left { left: 8%; top: 8%; transform: rotate(-8deg); }
.polaroid { position: absolute; margin: 0; width: 47%; padding: 12px 12px 42px; background: #fff; box-shadow: 0 20px 55px rgba(44,57,59,.16); }
.polaroid img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.polaroid figcaption { position: absolute; bottom: 11px; left: 10px; right: 10px; color: #758184; font: 1.45rem/1 var(--script); }
.polaroid--one { left: 10%; top: 20px; transform: rotate(-5deg); z-index: 1; }
.polaroid--two { right: 9%; top: 115px; transform: rotate(6deg); z-index: 2; }
.photo-stack__heart { position: absolute; z-index: 3; right: 7%; bottom: 11%; color: var(--gold); font-size: 2.2rem; transform: rotate(12deg); }

/* VENUE */
.venue-section { position: relative; padding: 115px 0 120px; background: var(--sage-light); }
.venue-section__shell { display: grid; grid-template-columns: .8fr 1.2fr; align-items: center; gap: clamp(36px, 7vw, 90px); }
.venue__copy { text-align: left; }
.venue__name { margin: 26px 0 5px; color: var(--deep); font-family: var(--serif); font-size: 1.5rem; }
.venue__address { margin: 0; color: #697a7d; font-size: .96rem; }
.pill-link { display: inline-flex; align-items: center; gap: 12px; margin-top: 28px; padding: 11px 20px; border: 1px solid rgba(64,91,98,.35); border-radius: 999px; color: var(--deep); text-decoration: none; font-size: .82rem; transition: background .25s ease, color .25s ease, transform .25s ease; }
.pill-link:hover:not(.is-disabled) { background: var(--deep); color: white; transform: translateY(-2px); }
.pill-link.is-disabled { opacity: .58; cursor: default; }
.venue__image { margin: 0; padding: 12px; background: #fff; box-shadow: var(--shadow); transform: rotate(1.5deg); }
.venue__image img { width: 100%; height: clamp(250px, 35vw, 420px); object-fit: cover; }
.venue__image figcaption { padding: 11px 8px 3px; color: #778487; text-align: center; font: 1.35rem/1.3 var(--script); }

/* DRESS CODE */
.dress-code { position: relative; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 50px; padding: 105px 0 112px; }
.dress-code__content { max-width: 720px; text-align: center; margin-inline: auto; }
.color-diamonds { display: flex; align-items: center; justify-content: center; gap: clamp(20px, 4vw, 38px); margin-top: 46px; }
.color-diamond { width: 44px; height: 44px; transform: rotate(45deg); display: block; box-shadow: 0 4px 14px rgba(44,57,59,.06); }
.color-diamond--mist { background: var(--mist); }
.color-diamond--sage { background: #7c9092; }
.color-diamond--gold { background: var(--gold); }
.color-diamond--deep { background: var(--deep); }
.dress-code__side-note { writing-mode: vertical-rl; color: #9aa8a8; font-size: .6rem; letter-spacing: .35em; }

/* SCHEDULE */
.schedule-section { padding: 108px 0 120px; background: #fff; }
.schedule__heading { text-align: center; max-width: 760px; margin: 0 auto 55px; }
.timeline { position: relative; max-width: 900px; margin: 0 auto; padding: 5px 0; }
.timeline__line { position: absolute; top: 0; bottom: 0; left: 50%; width: 1px; background: linear-gradient(180deg, transparent, #b9c5c5 8%, #b9c5c5 92%, transparent); transform: translateX(-50%); }
.timeline__heart { position: absolute; bottom: 0; left: 50%; transform: translate(-50%, 50%); color: var(--gold); background: white; font-size: 1.5rem; line-height: 1; padding: 4px; }
.timeline-item { position: relative; width: 50%; min-height: 145px; display: flex; align-items: center; gap: 20px; padding: 25px 58px 25px 20px; }
.timeline-item::after { content: ""; position: absolute; top: 50%; right: -5px; width: 9px; height: 9px; border-radius: 50%; background: var(--gold); border: 3px solid #fff; box-shadow: 0 0 0 1px #b8c4c4; transform: translateY(-50%); }
.timeline-item:nth-of-type(even) { margin-left: 50%; padding: 25px 20px 25px 58px; }
.timeline-item:nth-of-type(even)::after { right: auto; left: -5px; }
.timeline-item:nth-of-type(odd) { flex-direction: row-reverse; text-align: right; }
.timeline-item__icon { flex: 0 0 66px; width: 66px; height: 66px; display: grid; place-items: center; color: #9aa8a8; }
.timeline-item__icon svg { width: 58px; height: 58px; stroke: currentColor; stroke-width: 1.35; stroke-linecap: round; stroke-linejoin: round; }
.timeline-item__text { flex: 1; }
.timeline-item time { color: var(--deep); font: italic 2rem/1.15 var(--serif); }
.timeline-item h3 { margin: 4px 0 2px; font-family: var(--serif); font-size: 1.18rem; font-weight: 400; }
.timeline-item p { margin: 0; color: #829092; font-size: .84rem; }

/* RSVP */
.rsvp-section { position: relative; padding: 115px 0 125px; background: var(--sage); color: var(--deep); }
.rsvp-section__shell { display: grid; grid-template-columns: .85fr 1fr; gap: clamp(35px, 7vw, 90px); align-items: start; }
.rsvp__intro { text-align: left; position: sticky; top: 28px; }
.rsvp__intro .section-copy { margin-left: 0; }
.rsvp__intro .section-copy strong { font-weight: 500; }
.rsvp-form { padding: clamp(25px, 4vw, 42px); background: rgba(255,255,255,.76); box-shadow: 0 18px 50px rgba(54,73,76,.09); border: 1px solid rgba(255,255,255,.75); }
.field-label { display: block; margin: 0 0 9px; color: #4c6266; font-size: .83rem; font-weight: 500; }
.field-label span { color: #879496; font-weight: 300; }
.form-control { width: 100%; min-height: 48px; margin: 0 0 22px; padding: 12px 14px; border: 1px solid rgba(64,91,98,.24); border-radius: 8px; background: rgba(255,255,255,.72); color: var(--ink); outline-offset: 2px; font-size: .9rem; }
.form-control::placeholder { color: #a2acad; }
.form-control--textarea { min-height: 100px; resize: vertical; }
.attendance-field { margin: 0 0 22px; padding: 0; border: 0; }
.attendance-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.attendance-option { min-height: 45px; padding: 8px 12px; border: 1px solid rgba(64,91,98,.25); border-radius: 999px; background: transparent; color: var(--deep); font-size: .83rem; transition: background .2s ease, color .2s ease, border-color .2s ease; }
.attendance-option.is-selected { border-color: var(--deep); background: var(--deep); color: white; }
.guest-count-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.guest-count-row .field-label { margin: 0; }
.stepper { display: inline-flex; align-items: center; gap: 14px; padding: 4px 8px; border: 1px solid rgba(64,91,98,.24); border-radius: 999px; background: white; }
.stepper__button { width: 30px; height: 30px; border: 0; border-radius: 50%; background: transparent; color: var(--deep); font-size: 1.2rem; line-height: 1; }
.stepper__button:hover:not(:disabled) { background: var(--sage-light); }
.stepper__button:disabled { opacity: .35; cursor: not-allowed; }
#guest-count { min-width: 12px; color: var(--deep); text-align: center; font-weight: 500; }
.submit-button { display: flex; width: 100%; align-items: center; justify-content: center; gap: 14px; min-height: 52px; padding: 12px 20px; border: 0; border-radius: 999px; background: var(--deep); color: white; font-size: .9rem; font-weight: 500; transition: transform .25s ease, background .25s ease; }
.submit-button:hover { background: #304950; transform: translateY(-2px); }
.form-status { display: none; margin: 16px 0 0; padding: 12px 14px; border-radius: 8px; background: rgba(64,91,98,.08); color: var(--deep); font-size: .82rem; line-height: 1.6; }
.form-status.is-shown { display: block; }

/* FOOTER */
.footer { padding: 72px 24px 60px; background: #f7f6f3; text-align: center; }
.footer__content { max-width: 700px; margin: 0 auto; }
.footer__names { margin: 10px 0 0; color: var(--deep); font: italic 2.8rem/1.25 var(--serif); letter-spacing: -.04em; }
.footer__names span:nth-child(2) { margin: 0 8px; color: var(--gold); font: 2rem var(--script); }
.footer__ornament { margin: 16px 0 8px; color: var(--gold); font-size: 1.55rem; }
.footer__thanks { margin: 0; color: #7b898b; font-family: var(--serif); font-style: italic; }
.footer__small { margin: 28px 0 0; color: #9aa5a5; font-size: .58rem; letter-spacing: .3em; }

@media (max-width: 820px) {
  .section-shell { width: min(calc(100% - 36px), 680px); }
  .hero__frame { inset: 14px; }
  .hero__content { padding: 64px 0 95px; }
  .hero__names { font-size: clamp(3.5rem, 14vw, 6rem); }
  .welcome { padding: 82px 0 94px; }
  .story { padding: 80px 0 85px; }
  .photo-stack { height: 520px; margin-top: 40px; }
  .polaroid { width: 52%; padding: 9px 9px 34px; }
  .polaroid--one { left: 2%; top: 15px; }
  .polaroid--two { right: 1%; top: 95px; }
  .polaroid figcaption { font-size: 1.15rem; bottom: 8px; }
  .photo-stack__back { width: 52%; height: 75%; }
  .venue-section { padding: 92px 0 100px; }
  .venue-section__shell { grid-template-columns: 1fr; gap: 35px; }
  .venue__copy { text-align: center; }
  .venue__image img { height: clamp(240px, 60vw, 380px); }
  .dress-code { padding: 85px 0 90px; grid-template-columns: 1fr; }
  .dress-code__side-note { display: none; }
  .schedule-section { padding: 85px 0 95px; }
  .rsvp-section { padding: 90px 0 100px; }
  .rsvp-section__shell { grid-template-columns: 1fr; gap: 35px; }
  .rsvp__intro { text-align: center; position: static; }
  .rsvp__intro .section-copy { margin-inline: auto; }
  .timeline { max-width: 650px; }
}

@media (max-width: 560px) {
  body { line-height: 1.7; }
  .section-shell { width: calc(100% - 32px); }
  .section-title { font-size: clamp(1.65rem, 7vw, 2.3rem); }
  .script-label { font-size: 2rem; }
  .hero { min-height: 100svh; background-position: 53% center; }
  .hero__content { width: calc(100% - 38px); padding: 50px 0 85px; }
  .hero__quote { max-width: 310px; margin-bottom: 24px; font-size: .83rem; }
  .hero__eyebrow { font-size: .56rem; letter-spacing: .28em; margin-bottom: 19px; }
  .hero__names { font-size: clamp(3.2rem, 15vw, 4.6rem); line-height: .98; }
  .hero__amp { font-size: 2.35rem; margin: 2px 0; }
  .hero__date-line { gap: 10px; margin-top: 25px; }
  .hero__date-line p { font-size: .62rem; letter-spacing: .16em; }
  .hero__date-line span { width: 25px; }
  .hero__scroll { margin-top: 36px; padding: 8px 15px; font-size: .68rem; }
  .hero__bottom-note { bottom: 25px; font-size: .48rem; letter-spacing: .22em; }
  .welcome { padding: 72px 0 83px; }
  .welcome__text { font-size: .94rem; line-height: 1.9; }
  .welcome__closing { font-size: 1rem; }
  .paper-tear { height: 22px; }
  .story { padding: 72px 0 76px; }
  .story__intro .section-copy { font-size: .9rem; }
  .photo-stack { height: 410px; margin-top: 32px; }
  .polaroid { width: 56%; padding: 7px 7px 29px; }
  .polaroid img { aspect-ratio: 4 / 5; }
  .polaroid--one { left: 0; top: 12px; transform: rotate(-6deg); }
  .polaroid--two { right: -1%; top: 82px; transform: rotate(6deg); }
  .polaroid figcaption { font-size: .98rem; }
  .photo-stack__back { width: 56%; height: 74%; left: 3%; top: 7%; }
  .photo-stack__heart { right: 1%; bottom: 7%; font-size: 1.7rem; }
  .venue-section { padding: 76px 0 82px; }
  .venue__name { margin-top: 18px; font-size: 1.25rem; }
  .venue__address { font-size: .86rem; }
  .venue__image { padding: 8px; }
  .venue__image img { height: 230px; }
  .venue__image figcaption { font-size: 1.1rem; }
  .dress-code { padding: 72px 0 76px; }
  .section-copy { font-size: .9rem; }
  .color-diamonds { gap: 23px; margin-top: 35px; }
  .color-diamond { width: 31px; height: 31px; }
  .schedule-section { padding: 74px 0 82px; }
  .schedule__heading { margin-bottom: 35px; }
  .timeline { padding-left: 0; }
  .timeline__line { left: 22px; }
  .timeline__heart { left: 22px; }
  .timeline-item,
  .timeline-item:nth-of-type(even),
  .timeline-item:nth-of-type(odd) {
    width: 100%; margin-left: 0; padding: 22px 0 22px 58px;
    flex-direction: row; text-align: left; gap: 12px; min-height: 120px;
  }
  .timeline-item::after,
  .timeline-item:nth-of-type(even)::after { left: 17px; right: auto; }
  .timeline-item__icon { flex-basis: 48px; width: 48px; height: 48px; }
  .timeline-item__icon svg { width: 46px; height: 46px; }
  .timeline-item time { font-size: 1.6rem; }
  .timeline-item h3 { font-size: 1.02rem; }
  .timeline-item p { font-size: .76rem; }
  .rsvp-section { padding: 75px 0 83px; }
  .rsvp-form { padding: 22px 18px; }
  .attendance-options { grid-template-columns: 1fr; }
  .attendance-option { min-height: 43px; }
  .guest-count-row { gap: 10px; }
  .footer { padding: 58px 18px 45px; }
  .footer__names { font-size: 2.25rem; }
  .footer__small { font-size: .5rem; letter-spacing: .2em; }
}

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

/* =========================================================
   v2 — improvements taken from the reference video
   ========================================================= */
:root { --paper: #ffffff; }
html, body { overflow-x: clip; }
.welcome { background: var(--white); }

/* HERO: photo layer with slow zoom, text on the sky, torn edge at the bottom */
.hero {
  background: #a9b6b8;
  place-items: start center;
  align-content: start;
}
.hero__bg {
  position: absolute; inset: -2%; z-index: -2;
  background: url("assets/couple-hero.jpg") center 70% / cover no-repeat;
  animation: hero-zoom 18s ease-out both;
  will-change: transform;
}
@keyframes hero-zoom { from { transform: scale(1.12); } to { transform: scale(1); } }
.hero__veil {
  background: linear-gradient(180deg, rgba(58, 74, 78, .38) 0%, rgba(70, 86, 90, .16) 42%, rgba(30, 42, 45, 0) 62%, rgba(30, 42, 45, .10) 100%);
}
.hero__frame { bottom: 60px; }
.hero__content { padding: clamp(56px, 10vh, 110px) 0 0; }
.hero__content > * { opacity: 0; animation: rise-in 1.1s cubic-bezier(.2,.65,.25,1) forwards; }
.hero__content > :nth-child(1) { animation-delay: .25s; }
.hero__content > :nth-child(2) { animation-delay: .5s; }
.hero__content > :nth-child(3) { animation-delay: .75s; }
.hero__content > :nth-child(4) { animation-delay: 1.15s; }
.hero__content > :nth-child(5) { animation-delay: 1.4s; }
@keyframes rise-in { from { opacity: 0; transform: translateY(22px); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
.hero__names { position: relative; font-style: italic; letter-spacing: -.035em; }
.hero__name { position: relative; z-index: 1; }
.hero__name--bride { transform: translateX(-.35em); }
.hero__name--groom { transform: translateX(.35em); }
.hero__ghost-amp {
  position: absolute; z-index: 0; left: 50%; top: 50%;
  transform: translate(-50%, -52%);
  font: clamp(9rem, 26vw, 17rem)/1 var(--script);
  color: rgba(255,255,255,.22);
  letter-spacing: 0; pointer-events: none;
}
.hero__amp { position: relative; z-index: 1; opacity: .9; }
.hero__scroll {
  position: absolute; left: 50%; bottom: 74px; transform: translateX(-50%);
  margin: 0; padding: 0; width: 26px; height: 42px; border: 1.5px solid rgba(255,255,255,.75);
  border-radius: 14px; z-index: 3;
}
.hero__scroll:hover { background: rgba(255,255,255,.12); transform: translateX(-50%) translateY(-2px); }
.hero__scroll-mouse { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: #fff; animation: scroll-dot 1.8s ease-in-out infinite; }
@keyframes scroll-dot { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }
.paper-tear--hero {
  bottom: -1px; height: 64px; background: var(--white);
  clip-path: polygon(0.0% 34.7%, 1.66% 41.6%, 3.82% 39.3%, 6.01% 22.0%, 9.09% 25.5%, 11.41% 43.4%, 13.61% 20.0%, 14.96% 21.3%, 17.77% 26.0%, 19.73% 34.4%, 21.21% 23.5%, 23.83% 31.8%, 26.03% 31.2%, 28.5% 28.7%, 30.47% 56.5%, 32.35% 59.8%, 35.09% 24.7%, 36.4% 47.4%, 39.22% 56.5%, 41.54% 44.2%, 43.43% 55.0%, 45.62% 50.4%, 48.0% 61.7%, 49.74% 35.0%, 51.6% 32.2%, 53.82% 47.8%, 56.39% 55.5%, 58.75% 56.9%, 61.31% 30.3%, 62.87% 56.9%, 64.8% 21.5%, 67.37% 36.0%, 69.47% 34.2%, 72.28% 48.4%, 74.05% 54.1%, 76.42% 56.5%, 78.13% 37.7%, 79.91% 15.6%, 82.42% 14.7%, 84.3% 40.0%, 87.09% 22.1%, 88.97% 23.4%, 91.9% 38.5%, 92.98% 22.5%, 95.37% 46.8%, 98.37% 41.9%, 100.0% 19.2%, 100% 100%, 0 100%);
  filter: drop-shadow(0 -2px 3px rgba(0,0,0,.06));
}

/* Countdown (filled from config.weddingDate) */
.countdown { display: flex; justify-content: center; gap: clamp(18px, 4vw, 34px); margin-top: 26px; }
.countdown[hidden] { display: none; }
.countdown div { display: grid; justify-items: center; min-width: 54px; }
.countdown b { font: 300 clamp(1.5rem, 3.4vw, 2.1rem)/1.1 var(--serif); }
.countdown small { margin-top: 3px; font-size: .58rem; letter-spacing: .24em; text-transform: uppercase; opacity: .85; }

/* WELCOME: highlighted line like "НАШУ СВАДЬБУ!" */
.welcome { padding-top: 70px; }
.welcome__highlight {
  margin: 12px 0; color: var(--deep);
  font: 400 clamp(1.25rem, 3vw, 1.7rem)/1.3 var(--serif); letter-spacing: .14em;
}

/* STORY: photos fall in with a rotation (video motion) */
.story { padding-top: 60px; }
.photo-stack .polaroid { transition: transform 1.1s cubic-bezier(.2,.7,.2,1), opacity 1s ease; opacity: 0; }
.photo-stack .polaroid--one { transform: rotate(-16deg) translateY(60px); }
.photo-stack .polaroid--two { transform: rotate(18deg) translateY(80px); transition-delay: .2s; }
.photo-stack.is-visible .polaroid { opacity: 1; }
.photo-stack.is-visible .polaroid--one { transform: rotate(-5deg); }
.photo-stack.is-visible .polaroid--two { transform: rotate(6deg); }
.photo-stack__back { transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.photo-stack:not(.is-visible) .photo-stack__back { transform: rotate(0deg); }
.photo-stack.reveal { transform: none; }

/* VENUE: full-bleed banner with torn edges and glass map button */
.venue-section { padding: 100px 0 0; background: var(--white); text-align: center; }
.venue__copy { text-align: center; }
.venue__banner { position: relative; margin: 44px 0 0; overflow: hidden; }
.venue__banner img { width: 100%; height: clamp(300px, 46vw, 560px); object-fit: cover; transform: scale(1.08); transition: transform 1.6s cubic-bezier(.2,.7,.2,1); }
.venue__banner.is-visible img { transform: scale(1); }
.venue__banner.reveal { transform: none; }
.paper-tear--white { background: var(--white); height: 40px; }
.venue__banner .paper-tear--top { clip-path: polygon(0 0, 100% 0, 100.0% 72.4%, 98.03% 41.7%, 95.53% 61.5%, 92.44% 54.0%, 90.01% 53.0%, 87.99% 49.9%, 85.01% 55.3%, 82.2% 42.5%, 80.07% 66.3%, 77.57% 44.7%, 74.61% 51.3%, 72.12% 30.2%, 70.04% 52.6%, 67.4% 71.3%, 64.95% 56.3%, 62.06% 71.0%, 60.1% 41.7%, 57.15% 37.2%, 54.92% 69.2%, 52.68% 53.7%, 50.06% 43.4%, 48.08% 59.6%, 45.49% 71.5%, 42.77% 32.1%, 39.88% 48.1%, 37.3% 66.0%, 34.97% 38.0%, 32.99% 65.2%, 30.18% 68.6%, 27.98% 67.8%, 24.64% 39.2%, 23.05% 42.0%, 19.94% 72.2%, 17.21% 61.2%, 14.83% 27.8%, 12.88% 63.6%, 10.58% 68.4%, 7.83% 49.8%, 4.6% 64.7%, 2.74% 41.8%, 0.0% 74.0%); }
.venue__banner .paper-tear--bottom { clip-path: polygon(0.0% 30.2%, 1.99% 38.5%, 5.34% 68.8%, 7.69% 31.4%, 10.56% 34.9%, 12.38% 46.9%, 15.4% 32.3%, 17.52% 37.4%, 20.27% 25.9%, 22.43% 25.8%, 25.15% 55.8%, 27.85% 65.0%, 29.45% 54.1%, 32.41% 66.0%, 34.71% 31.7%, 37.58% 49.4%, 40.23% 51.2%, 42.66% 66.8%, 44.48% 63.8%, 47.31% 49.9%, 49.72% 30.8%, 52.19% 22.7%, 54.64% 39.0%, 57.81% 38.0%, 59.61% 36.6%, 61.92% 58.0%, 64.63% 46.4%, 67.03% 61.9%, 69.99% 62.6%, 72.51% 55.9%, 74.81% 62.5%, 77.66% 43.2%, 79.47% 34.7%, 82.21% 37.8%, 85.44% 51.0%, 87.25% 44.8%, 89.72% 68.3%, 92.56% 36.0%, 94.77% 39.2%, 97.47% 47.7%, 100.0% 18.7%, 100% 100%, 0 100%); }
.glass-button {
  position: absolute; left: 50%; bottom: 16%; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 10px; padding: 11px 24px;
  border: 1px solid rgba(255,255,255,.55); border-radius: 999px;
  background: rgba(255,255,255,.22); color: #fff; text-decoration: none;
  font-size: .8rem; letter-spacing: .06em; white-space: nowrap;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  transition: background .25s ease, transform .25s ease;
}
.glass-button:hover:not(.is-disabled) { background: rgba(255,255,255,.36); transform: translateX(-50%) translateY(-2px); }
.glass-button.is-disabled { opacity: .7; cursor: default; }

/* DRESS CODE: diamonds pop in one after another */
.color-diamond { opacity: 0; transform: rotate(45deg) scale(.3); transition: opacity .5s ease, transform .7s cubic-bezier(.3,1.5,.5,1); }
.dress-code__content.is-visible .color-diamond { opacity: 1; transform: rotate(45deg) scale(1); }
.dress-code__content.is-visible .color-diamond:nth-child(2) { transition-delay: .12s; }
.dress-code__content.is-visible .color-diamond:nth-child(3) { transition-delay: .24s; }
.dress-code__content.is-visible .color-diamond:nth-child(4) { transition-delay: .36s; }
.color-diamond:hover { transform: rotate(45deg) scale(1.15) !important; }

/* SECOND PHOTO: tilted photo on an offset sage card */
.photo-break { padding: 10px 0 40px; display: grid; place-items: center; }
.tilted-photo { position: relative; margin: 0; width: min(440px, 78%); }
.tilted-photo img { position: relative; z-index: 1; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; box-shadow: 0 20px 50px rgba(44,57,59,.16); }
.tilted-photo__back { position: absolute; inset: -4% -8% 6% 10%; background: #d2dcdd; transform: rotate(4deg); }
.reveal--tilt { transform: rotate(-14deg) translateY(60px); transition: opacity 1s ease, transform 1.2s cubic-bezier(.2,.7,.2,1); }
.reveal--tilt.is-visible { transform: rotate(-6deg); }

/* SCHEDULE: icons gently swing when they appear */
.schedule-section { padding-top: 70px; }
.timeline-item.is-visible .timeline-item__icon svg { animation: icon-swing 1.4s ease .3s both; transform-origin: 50% 20%; }
@keyframes icon-swing { 0% { transform: rotate(0); } 25% { transform: rotate(-12deg); } 50% { transform: rotate(9deg); } 75% { transform: rotate(-4deg); } 100% { transform: rotate(0); } }
.timeline-item:nth-of-type(2).reveal { transition-delay: .12s; }
.timeline-item:nth-of-type(3).reveal { transition-delay: .24s; }

/* FOOTER continues the sage RSVP block: "Ждём вас!" */
.rsvp-section > .paper-tear--bottom { display: none; }
.rsvp-section { padding-bottom: 40px; }
.footer { background: var(--sage); color: var(--deep); padding-top: 30px; }
.footer .script-label { color: var(--deep); }
.footer__wait { margin: 18px 0 4px; font: 400 1.2rem/1.4 var(--serif); letter-spacing: .12em; text-transform: uppercase; }
.footer__thanks { color: #4f666b; }
.footer__small { color: #6f8588; }
.timeline__heart { background: #fff; }

/* MUSIC BUTTON */
.music-toggle {
  position: fixed; right: 18px; bottom: 18px; z-index: 50;
  width: 48px; height: 48px; display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.6); border-radius: 50%;
  background: rgba(64,91,98,.78); color: #fff;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: 0 10px 26px rgba(30,45,48,.25);
}
.music-toggle[hidden] { display: none; }
.music-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.music-toggle.is-playing { animation: pulse-ring 2s ease-out infinite; }
.music-toggle.is-playing svg { animation: spin 6s linear infinite; }
@keyframes pulse-ring { 0% { box-shadow: 0 0 0 0 rgba(64,91,98,.45); } 100% { box-shadow: 0 0 0 16px rgba(64,91,98,0); } }
@keyframes spin { to { transform: rotate(360deg); } }

/* Wide screens: the portrait photo is shown whole in the centre, a soft blurred copy fills the sides */
@media (min-width: 900px) {
  .hero__bg { background-size: auto 100%; background-position: center bottom; }
  .hero__content { padding-top: 5vh; }
  .hero__quote { margin-bottom: 16px; }
  .hero__eyebrow { margin-bottom: 12px; }
  .hero__names { font-size: clamp(3.6rem, 5.6vw, 5.4rem); }
  .hero__amp { font-size: 2.4rem; margin: 2px 0; }
  .hero__ghost-amp { font-size: 12rem; }
  .hero__date-line { margin-top: 20px; }
  .countdown { margin-top: 14px; }
  .hero::before {
    content: ""; position: absolute; inset: -40px; z-index: -3;
    background: url("assets/couple-hero.jpg") center 30% / cover no-repeat;
    filter: blur(28px) saturate(.9); opacity: .9;
  }
  .hero__bg { -webkit-mask-image: linear-gradient(90deg, transparent calc(50% - 22vh), #000 calc(50% - 12vh), #000 calc(50% + 12vh), transparent calc(50% + 22vh)); mask-image: linear-gradient(90deg, transparent calc(50% - 22vh), #000 calc(50% - 12vh), #000 calc(50% + 12vh), transparent calc(50% + 22vh)); }
}
@media (max-width: 820px) {
  .venue-section { padding-top: 80px; }
  .venue__banner img { height: clamp(260px, 62vw, 420px); }
}
@media (max-width: 560px) {
  .hero__bg { background-position: center 78%; }
  .hero__frame { bottom: 48px; }
  .hero__content { padding-top: 48px; }
  .hero__ghost-amp { font-size: 9.5rem; }
  .hero__scroll { bottom: 58px; }
  .paper-tear--hero { height: 40px; }
  .countdown { margin-top: 20px; gap: 16px; }
  .welcome { padding-top: 46px; }
  .venue-section { padding-top: 70px; }
  .venue__banner { margin-top: 30px; }
  .venue__banner img { height: 260px; }
  .paper-tear--white { height: 24px; }
  .glass-button { font-size: .72rem; padding: 9px 18px; }
  .tilted-photo { width: 80%; }
  .photo-break { padding-bottom: 20px; }
  .music-toggle { right: 14px; bottom: 14px; width: 44px; height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero__content > * { opacity: 1; }
  .photo-stack .polaroid, .color-diamond { opacity: 1; }
  .photo-stack .polaroid--one { transform: rotate(-5deg); }
  .photo-stack .polaroid--two { transform: rotate(6deg); }
  .color-diamond { transform: rotate(45deg); }
  .reveal--tilt { transform: rotate(-6deg); }
}

/* GALLERY — three polaroids, swipeable row on phones */
.gallery { padding: 30px 0 110px; text-align: center; }
.gallery__intro { margin-bottom: 44px; }
.gallery__row { display: flex; justify-content: center; gap: clamp(18px, 3vw, 34px); }
.gallery__item { flex: 0 1 300px; margin: 0; padding: 10px 10px 40px; background: #fff; box-shadow: 0 18px 46px rgba(44,57,59,.15); position: relative; }
.gallery__item img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.gallery__item figcaption { position: absolute; left: 0; right: 0; bottom: 9px; color: #758184; font: 1.35rem/1 var(--script); }
.gallery__item.reveal { transform: translateY(40px) rotate(0); }
.gallery__item:nth-child(1).is-visible { transform: rotate(-4deg); }
.gallery__item:nth-child(2).is-visible { transform: translateY(26px) rotate(2deg); transition-delay: .12s; }
.gallery__item:nth-child(3).is-visible { transform: rotate(-2deg); transition-delay: .24s; }
@media (max-width: 720px) {
  .gallery { padding: 10px 0 80px; }
  .gallery__row { justify-content: flex-start; overflow-x: auto; scroll-snap-type: x mandatory; padding: 14px 16px 40px; margin: 0 -16px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .gallery__row::-webkit-scrollbar { display: none; }
  .gallery__item { flex: 0 0 72%; scroll-snap-align: center; }
  .gallery__item:nth-child(2).is-visible { transform: rotate(2deg); }
}
@media (prefers-reduced-motion: reduce) { .gallery__item.reveal { transform: none; } }

/* ===== LANGUAGES (HY / RU / EN) ===== */
:root {
  --serif: "Noto Serif Armenian", "Noto Serif", Georgia, serif;
  --sans: "Noto Sans Armenian", "Noto Sans", Arial, sans-serif;
}
.lang-switch {
  position: fixed; top: 16px; right: 16px; z-index: 60;
  display: flex; gap: 2px; padding: 4px;
  border: 1px solid rgba(255,255,255,.55); border-radius: 999px;
  background: rgba(64,91,98,.42);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 8px 22px rgba(30,45,48,.18);
}
.lang-switch button {
  min-width: 46px; height: 32px; padding: 0 10px; border: 0; border-radius: 999px;
  background: transparent; color: #fff; font: 500 .7rem/1 var(--sans); letter-spacing: .12em;
  transition: background .25s ease, color .25s ease;
}
.lang-switch button:hover { background: rgba(255,255,255,.16); }
.lang-switch button[aria-pressed="true"] { background: #fff; color: var(--deep); }
main { transition: opacity .18s ease; }
body.is-switching main { opacity: 0; }

/* Russian & English: calligraphic names like the reference video (Great Vibes supports Latin & Cyrillic) */
html:not([lang="hy"]) .hero__name {
  font-family: var(--script); font-style: normal; letter-spacing: 0; line-height: 1.02;
  font-size: 1.12em;
}
html:not([lang="hy"]) .footer__names { font-family: var(--script); font-style: normal; letter-spacing: 0; font-size: 3.2rem; }
html[lang="en"] .welcome__highlight, html[lang="ru"] .welcome__highlight { letter-spacing: .1em; }

@media (max-width: 560px) {
  .lang-switch { top: 12px; right: 50%; transform: translateX(50%); }
  .lang-switch button { min-width: 42px; height: 28px; font-size: .64rem; }
  .hero__content { padding-top: 64px; }
  html:not([lang="hy"]) .footer__names { font-size: 2.6rem; }
}

/* ===== TWO VENUES: church + reception ===== */
.venue-section { padding-bottom: 10px; }
.venue-card { margin-top: 56px; }
.venue-card + .venue-card { margin-top: 70px; }
.venue-card__copy { text-align: center; }
.venue-card__kicker {
  display: inline-flex; align-items: center; gap: 8px; margin: 0;
  padding: 6px 16px; border-radius: 999px; background: var(--sage-light);
  color: var(--deep); font-size: .76rem; letter-spacing: .14em; text-transform: uppercase;
}
.venue-card__kicker time { font: italic 500 1rem/1 var(--serif); letter-spacing: 0; color: var(--gold); }
.venue-card .venue__name { margin-top: 16px; font-size: clamp(1.4rem, 3vw, 1.9rem); }
.venue-card__note { margin: 8px 0 0; color: #8a9698; font: italic .9rem/1.5 var(--serif); }
.venue-card .venue__banner { margin-top: 30px; }
.glass-button { padding: 12px 24px 12px 18px; font-size: .84rem; }
.glass-button__pin { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.glass-button::after { content: "↗"; margin-left: 2px; opacity: .85; }
.footer__fullnames { margin: 14px 0 0; color: #4f666b; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; }
.footer__credits { margin: 18px auto 0; max-width: 520px; color: #7d9093; font-size: .6rem; line-height: 1.6; }
.footer__credits a { color: inherit; }
@media (max-width: 560px) {
  .venue-card { margin-top: 40px; }
  .venue-card + .venue-card { margin-top: 50px; }
  .venue-card__kicker { font-size: .66rem; padding: 5px 13px; }
  .glass-button { font-size: .74rem; padding: 10px 18px 10px 14px; }
}


/* No RSVP block: the footer stands on its own with a torn-paper top */
.footer { position: relative; padding-top: 90px; }
.footer > .paper-tear--top { top: -1px; }
@media (max-width: 560px) { .footer { padding-top: 70px; } }


/* Music hint bubble next to the button */
.music-hint {
  position: fixed; right: 76px; bottom: 28px; z-index: 50;
  padding: 7px 14px; border-radius: 999px;
  background: rgba(255,255,255,.92); color: var(--deep);
  font-size: .74rem; letter-spacing: .04em; white-space: nowrap;
  box-shadow: 0 8px 22px rgba(30,45,48,.16);
  animation: hint-in .6s ease 1.6s both;
}
.music-hint[hidden] { display: none; }
@keyframes hint-in { from { opacity: 0; transform: translateX(10px); } to { opacity: 1; transform: none; } }
@media (max-width: 560px) { .music-hint { right: 66px; bottom: 23px; font-size: .68rem; } }
