:root {
  --ink: #1c2e2a;
  --ink-soft: #4a5f58;
  --mist: #eef3f1;
  --paper: #f7faf8;
  --emerald: #1f5c4b;
  --emerald-deep: #143d33;
  --gold: #b8956c;
  --gold-soft: #d4b896;
  --line: rgba(31, 92, 75, 0.15);
  --white: #ffffff;
  --shadow: 0 18px 40px rgba(20, 61, 51, 0.12);
  --radius: 4px;
  --font-display: "Great Vibes", cursive;
  --font-heading: "Cormorant Garamond", Georgia, serif;
  --font-body: "Outfit", system-ui, sans-serif;
  --nav-h: 72px;
  --bottom-nav-h: 68px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
  overflow-x: hidden;
}

body.is-locked {
  overflow: hidden;
  height: 100vh;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.container {
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.container--narrow {
  width: min(640px, calc(100% - 2.5rem));
}

.gift .container--narrow {
  width: min(860px, calc(100% - 2.5rem));
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.75rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.78rem;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease,
    transform 0.25s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--gold);
  color: var(--emerald-deep);
}

.btn--primary:hover {
  background: var(--gold-soft);
}

.btn--outline {
  background: transparent;
  border-color: var(--gold);
  color: var(--gold);
}

.btn--outline:hover {
  background: var(--gold);
  color: var(--emerald-deep);
}

.btn--full {
  width: 100%;
}

/* Cover */
.cover {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--white);
  transition: opacity 0.7s ease, visibility 0.7s ease;
}

.cover.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.cover__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(160deg, rgba(20, 61, 51, 0.88), rgba(28, 46, 42, 0.72)),
    url("https://images.unsplash.com/photo-1519741497674-611481863552?w=1600&q=80")
      center / cover no-repeat;
}

.cover__content {
  position: relative;
  padding: 2rem;
  max-width: 36rem;
  animation: riseIn 1s ease both;
}

.cover__eyebrow,
.hero__label,
.section__eyebrow,
.person__role,
.event-card__label {
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.72rem;
  font-weight: 500;
}

.cover__eyebrow {
  margin: 0 0 1rem;
  color: var(--gold-soft);
}

.cover__names {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 10vw, 5.5rem);
  font-weight: 400;
  line-height: 1.1;
  color: var(--white);
}

.cover__name {
  display: block;
}

.cover__weds {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.32em;
  font-style: italic;
  color: var(--gold-soft);
  letter-spacing: 0.28em;
  text-transform: lowercase;
  line-height: 1;
  margin: 0.2rem 0;
}

.cover__to {
  margin: 1.5rem 0 0.4rem;
  font-family: var(--font-heading);
  font-size: 1.35rem;
}

.cover__to[hidden] {
  display: none !important;
}

.cover__invite {
  margin: 0 0 2rem;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 300;
}

/* Top nav */
.topnav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  padding: 0 1.75rem;
  background: rgba(247, 250, 248, 0.72);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transform: translateY(-100%);
  transition: transform 0.4s ease, border-color 0.3s ease, background 0.3s ease;
}

.topnav.is-visible {
  transform: translateY(0);
}

.topnav.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(247, 250, 248, 0.92);
}

.topnav__brand {
  font-family: var(--font-display);
  font-size: 1.85rem;
  color: var(--emerald);
}

.topnav__links {
  display: none;
  gap: 1.5rem;
}

.topnav__links a {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  transition: color 0.2s ease;
}

.topnav__links a:hover {
  color: var(--emerald);
}

@media (min-width: 900px) {
  .topnav__links {
    display: flex;
  }
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  color: var(--white);
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  background:
    url("https://images.unsplash.com/photo-1522673607200-164d1b6ce486?w=1800&q=80")
      center / cover no-repeat;
  transform: scale(1.05);
  animation: slowZoom 18s ease-in-out infinite alternate;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, rgba(20, 61, 51, 0.35), rgba(20, 61, 51, 0.78)),
    linear-gradient(to top, rgba(20, 61, 51, 0.9), transparent 55%);
}

.hero__content {
  position: relative;
  z-index: 1;
  width: min(820px, calc(100% - 2rem));
  text-align: center;
  padding: 6rem 0 5rem;
  animation: riseIn 1.1s 0.15s ease both;
}

.hero__label {
  margin: 0 0 1rem;
  color: var(--gold-soft);
}

.hero__title {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  line-height: 1.1;
}

.hero__groom,
.hero__bride {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 8vw, 4.8rem);
  font-weight: 400;
}

.hero__amp {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.4rem;
  color: var(--gold-soft);
  letter-spacing: 0.2em;
}

.hero__date {
  margin: 1.25rem 0 0;
  font-family: var(--font-heading);
  font-size: 1.35rem;
  letter-spacing: 0.08em;
}

.hero__verse {
  margin: 1.5rem auto 0;
  max-width: 38rem;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 300;
}

.hero__verse cite {
  display: block;
  margin-top: 0.75rem;
  font-style: normal;
  color: var(--gold-soft);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
  margin: 2.25rem auto 0;
  max-width: 28rem;
}

.countdown__item {
  padding: 0.9rem 0.4rem;
  border: 1px solid rgba(212, 184, 150, 0.35);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(6px);
}

.countdown__num {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 600;
  line-height: 1.1;
}

.countdown__label {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-soft);
}

.hero__scroll {
  position: absolute;
  bottom: 1.75rem;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 20px;
  z-index: 2;
}

.hero__scroll span {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 4px;
  height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background: var(--gold-soft);
  animation: scrollDot 1.6s ease-in-out infinite;
}

/* Sections */
.section {
  padding: 6.5rem 0;
}

.section__eyebrow {
  margin: 0 0 0.75rem;
  text-align: center;
  color: var(--gold);
}

.section__title {
  margin: 0;
  text-align: center;
  font-family: var(--font-heading);
  font-size: clamp(2.6rem, 6vw, 4rem);
  font-weight: 600;
  color: var(--emerald-deep);
  line-height: 1.15;
}

.section__lead {
  margin: 1rem auto 3rem;
  max-width: 36rem;
  text-align: center;
  color: var(--ink-soft);
}

/* Couple */
.couple {
  background:
    radial-gradient(circle at top right, rgba(184, 149, 108, 0.12), transparent 40%),
    var(--paper);
}

.couple__grid {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

.couple__grid--names {
  gap: 2rem;
}

@media (min-width: 800px) {
  .couple__grid {
    grid-template-columns: 1fr auto 1fr;
    gap: 1.5rem;
    align-items: center;
  }
}

.person {
  text-align: center;
  padding: 1.5rem 1rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
}

.person__role {
  margin: 0 0 0.4rem;
  color: var(--gold);
}

.person__name {
  margin: 0 0 0.75rem;
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  color: var(--emerald);
  font-weight: 600;
}

.person__parents {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.couple__heart {
  width: 56px;
  height: 56px;
  margin: 0 auto;
  display: grid;
  place-items: center;
  color: var(--gold);
  background: var(--white);
  border-radius: 50%;
  box-shadow: var(--shadow);
  animation: heartbeat 2.2s ease-in-out infinite;
}

@media (max-width: 799px) {
  .couple__heart {
    order: -1;
  }
}

/* Events */
.events {
  background: var(--emerald-deep);
  color: var(--white);
}

.events .section__eyebrow {
  color: var(--gold-soft);
}

.events .section__title {
  color: var(--white);
}

.events .section__lead {
  color: rgba(255, 255, 255, 0.72);
}

.events__grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 760px) {
  .events__grid {
    grid-template-columns: 1fr 1fr;
  }

  .events__grid--three {
    grid-template-columns: repeat(3, 1fr);
  }
}

.events__grid--single {
  max-width: 520px;
  margin-inline: auto;
  grid-template-columns: 1fr;
}

@media (max-width: 999px) {
  .events__grid--three {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 1000px) {
  .events__grid--three {
    grid-template-columns: repeat(3, 1fr);
  }
}

.event-card {
  padding: 2rem 1.75rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(212, 184, 150, 0.28);
  display: flex;
  flex-direction: column;
}

.event-card__label {
  margin: 0 0 0.5rem;
  color: var(--gold-soft);
}

.event-card__title {
  margin: 0 0 1.5rem;
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 600;
}

.event-card__meta {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.event-card__meta li {
  display: grid;
  gap: 0.15rem;
}

.event-card__meta span {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.event-card__meta strong {
  font-weight: 500;
}

.event-card__map {
  margin-top: auto;
  border: 1px solid rgba(212, 184, 150, 0.28);
  overflow: hidden;
  aspect-ratio: 16 / 11;
  background: rgba(0, 0, 0, 0.2);
}

.event-card__map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  filter: grayscale(0.15) contrast(1.05);
}

.events .btn--outline {
  border-color: var(--gold-soft);
  color: var(--gold-soft);
}

.events .btn--outline:hover {
  background: var(--gold-soft);
  color: var(--emerald-deep);
}

/* Story / Timeline */
.story {
  background: var(--mist);
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
  max-width: 720px;
  margin-inline: auto;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 18px;
  width: 1px;
  background: linear-gradient(to bottom, var(--gold), var(--emerald));
}

@media (min-width: 700px) {
  .timeline::before {
    left: 50%;
    transform: translateX(-50%);
  }
}

.timeline__item {
  position: relative;
  padding-left: 3.25rem;
  margin-bottom: 2.25rem;
}

@media (min-width: 700px) {
  .timeline__item {
    width: 50%;
    padding-left: 0;
    padding-right: 2.5rem;
    text-align: right;
  }

  .timeline__item:nth-child(even) {
    margin-left: 50%;
    padding-right: 0;
    padding-left: 2.5rem;
    text-align: left;
  }
}

.timeline__marker {
  position: absolute;
  top: 0.35rem;
  left: 11px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--paper);
  border: 3px solid var(--gold);
  box-shadow: 0 0 0 4px rgba(184, 149, 108, 0.2);
}

@media (min-width: 700px) {
  .timeline__item .timeline__marker {
    left: auto;
    right: -8px;
  }

  .timeline__item:nth-child(even) .timeline__marker {
    right: auto;
    left: -7px;
  }
}

.timeline__body time {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

.timeline__body h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-heading);
  font-size: 1.7rem;
  color: var(--emerald-deep);
}

.timeline__body p {
  margin: 0;
  color: var(--ink-soft);
}

/* Gallery */
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

@media (min-width: 760px) {
  .gallery__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }

  .gallery__item--wide {
    grid-column: span 2;
  }
}

.gallery__item {
  padding: 0;
  border: 0;
  cursor: pointer;
  overflow: hidden;
  background: var(--mist);
  aspect-ratio: 4 / 3;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.gallery__item:hover img {
  transform: scale(1.06);
}

/* Wishes */
.wishes {
  background:
    linear-gradient(180deg, rgba(31, 92, 75, 0.04), transparent),
    var(--paper);
}

.wish-form {
  display: grid;
  gap: 1rem;
  padding: 1.75rem;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.form-row {
  display: grid;
  gap: 0.4rem;
}

.form-row--split {
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 560px) {
  .form-row--split {
    grid-template-columns: 1fr 1fr;
  }
}

.form-row label {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(184, 149, 108, 0.2);
}

.form-note {
  margin: 0;
  text-align: center;
  color: var(--emerald);
  font-size: 0.95rem;
}

.wishes-list {
  margin-top: 2.5rem;
  display: grid;
  gap: 1rem;
}

.wish-card {
  padding: 1.25rem 1.35rem;
  background: var(--white);
  border-left: 3px solid var(--gold);
  box-shadow: 0 8px 24px rgba(20, 61, 51, 0.06);
}

.wish-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-bottom: 0.5rem;
  font-size: 0.8rem;
  color: var(--ink-soft);
}

.wish-card__name {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--emerald);
}

.wish-card p {
  margin: 0;
  color: var(--ink-soft);
}

.wish-card__reply {
  margin-top: 0.85rem !important;
  padding: 0.85rem 1rem;
  background: var(--mist);
  border-left: 3px solid var(--gold);
  text-align: left;
}

.wish-card__reply span {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}

.wish-empty {
  text-align: center;
  color: var(--ink-soft);
  font-style: italic;
}

/* Gift */
.gift {
  background: var(--mist);
}

.gift-card {
  text-align: center;
  padding: 2.25rem 1.5rem;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.gift-card__bank {
  margin: 0 0 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.72rem;
  color: var(--gold);
}

.gift-card__name {
  margin: 0 0 1.5rem;
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--emerald-deep);
}

.gift-card__body {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  text-align: left;
}

.gift-card__qr {
  flex: 0 0 auto;
  margin: 0;
  width: 180px;
}

.gift-card__qr img {
  width: 100%;
  height: auto;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--line);
  padding: 0.5rem;
}

.gift-card__qr-label {
  margin: 0.5rem 0 0;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-align: center;
}

.gift-card__details {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0.75rem;
}

.gift-card__details li {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.45rem;
  flex: 1 1 calc(50% - 0.75rem);
  min-width: 220px;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  background: var(--mist);
}

.gift-card__details li:last-child {
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.7rem;
}

.gift-card__details span {
  flex: 0 0 auto;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  white-space: nowrap;
}

.gift-card__details strong {
  flex: 1 1 auto;
  min-width: 0;
  font-weight: 500;
  font-size: 0.88rem;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-copy {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  background: var(--mist);
  color: var(--emerald);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-copy:hover,
.btn-copy.is-copied {
  background: var(--emerald);
  border-color: var(--emerald);
  color: var(--white);
}

@media (max-width: 700px) {
  .gift-card__body {
    flex-direction: column;
    align-items: stretch;
  }

  .gift-card__qr {
    width: min(200px, 70%);
    margin-inline: auto;
  }
}

/* Footer */
.footer {
  padding: 4rem 1.5rem calc(4rem + var(--bottom-nav-h));
  text-align: center;
  background: var(--emerald-deep);
  color: rgba(255, 255, 255, 0.78);
}

.footer__names {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: 2.8rem;
  color: var(--white);
}

.footer__thanks {
  margin: 0 auto 1.25rem;
  max-width: 28rem;
}

.footer__copy {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

/* Bottom nav */
.bottomnav {
  position: fixed;
  left: 50%;
  bottom: 0.85rem;
  transform: translateX(-50%);
  z-index: 95;
  width: min(420px, calc(100% - 1.25rem));
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.15rem;
  padding: 0.55rem 0.4rem;
  background: rgba(247, 250, 248, 0.94);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.bottomnav__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding: 0.35rem 0.2rem;
  color: var(--ink-soft);
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 8px;
  transition: color 0.2s ease, background 0.2s ease;
}

.bottomnav__link.is-active,
.bottomnav__link:hover {
  color: var(--emerald);
  background: rgba(31, 92, 75, 0.08);
}

@media (min-width: 900px) {
  .bottomnav {
    display: none;
  }

  .footer {
    padding-bottom: 4rem;
  }
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background: rgba(20, 61, 51, 0.92);
}

.lightbox[hidden] {
  display: none;
}

.lightbox img {
  max-height: min(85vh, 900px);
  max-width: min(92vw, 1100px);
  object-fit: contain;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.lightbox__close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  border: 0;
  background: transparent;
  color: var(--white);
  font-size: 2.4rem;
  line-height: 1;
  cursor: pointer;
}

/* To top */
.to-top {
  position: fixed;
  right: 1.25rem;
  bottom: calc(var(--bottom-nav-h) + 1.4rem);
  z-index: 94;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: var(--emerald);
  color: var(--white);
  cursor: pointer;
  box-shadow: var(--shadow);
}

.to-top[hidden] {
  display: none;
}

@media (min-width: 900px) {
  .to-top {
    bottom: 1.5rem;
  }
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes slowZoom {
  from {
    transform: scale(1.05);
  }
  to {
    transform: scale(1.12);
  }
}

@keyframes scrollDot {
  0% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(16px);
  }
}

@keyframes heartbeat {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.08);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero__media,
  .couple__heart,
  .hero__scroll span,
  .reveal {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
