/* ── Design Tokens ─────────────────────────────────── */
:root {
  --c-gold: #c9a96e;
  --c-gold-light: #d4b97f;
  --c-gold-soft: rgba(201, 169, 110, 0.15);
  --c-cream: #faf8f5;
  --c-cream-dark: #f2efe9;
  --c-dark: #0a0a0a;
  --c-dark-soft: #1a1a1a;
  --c-text: #2c2c2c;
  --c-text-light: #6b6b6b;
  --c-text-muted: #999999;
  --c-white: #ffffff;
  --c-white-90: rgba(255, 255, 255, 0.9);
  --c-white-80: rgba(255, 255, 255, 0.8);
  --c-white-60: rgba(255, 255, 255, 0.6);
  --c-white-50: rgba(255, 255, 255, 0.5);
  --c-white-30: rgba(255, 255, 255, 0.3);
  --c-white-15: rgba(255, 255, 255, 0.15);
  --c-border: rgba(0, 0, 0, 0.06);
  --c-border-light: rgba(0, 0, 0, 0.04);

  --ff-script: "Great Vibes", cursive;
  --ff-serif: "Cormorant Garamond", "Georgia", serif;
  --ff-sans: "Montserrat", "Helvetica Neue", Arial, sans-serif;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);

  --section-py: clamp(4rem, 10vw, 7rem);
  --section-px: clamp(1.5rem, 5vw, 3rem);

  --vh: 1vh;
}

/* ── Reset ──────────────────────────────────────────── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}
body {
  font-family: var(--ff-sans);
  background: var(--c-dark);
  color: var(--c-text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-y: hidden;
}
body.scrollable {
  overflow-y: auto;
}
img,
video {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
}
input,
textarea {
  font: inherit;
  border: none;
  outline: none;
}

/* ── Fullscreen Video ──────────────────────────────── */
.video-fullscreen {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

/* ── Intro Screen ──────────────────────────────────── */
.intro {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--c-dark);
  will-change: opacity;
  transition:
    opacity 1.4s var(--ease),
    visibility 0s linear 0s;
}
.intro.is-leaving {
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 1.4s var(--ease),
    visibility 0s linear 1.4s;
  pointer-events: none;
}
.intro__skip {
  position: absolute;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 2.2rem);
  left: 50%;
  z-index: 10;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: rgba(10, 10, 10, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(212, 185, 127, 0.9);
  border-radius: 100px;
  padding: 0.8rem 2.2rem;
  font-family: var(--ff-sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-white);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
  box-shadow:
    0 8px 30px rgba(0, 0, 0, 0.45),
    0 0 18px rgba(201, 169, 110, 0.16);
  cursor: pointer;
  opacity: 0;
  animation: introSkipIn 1.2s var(--ease) 2s forwards;
  transition:
    background 0.3s,
    border-color 0.3s,
    color 0.3s,
    transform 0.2s;
}
.intro__skip:active {
  transform: translateX(-50%) scale(0.95);
}
.intro__skip svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  opacity: 1;
}
@media (hover: hover) {
  .intro__skip:hover {
    background: var(--c-gold);
    border-color: var(--c-gold-light);
    color: var(--c-dark);
  }
}

/* ── Sound Toggle ──────────────────────────────────── */
.sound-toggle {
  position: fixed;
  top: calc(env(safe-area-inset-top, 0px) + 1.2rem);
  right: 1.2rem;
  z-index: 200;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--c-white-15);
  border-radius: 50%;
  opacity: 0;
  animation: fadeIn 0.8s var(--ease) 2.5s forwards;
  transition:
    background 0.3s,
    border-color 0.3s;
}
/* When on light background */
.sound-toggle.on-light {
  background: rgba(255, 255, 255, 0.7);
  border-color: var(--c-border);
}
.sound-toggle.on-light .sound-toggle__bar {
  background: var(--c-text);
}
@media (hover: hover) {
  .sound-toggle:hover {
    background: rgba(0, 0, 0, 0.5);
    border-color: var(--c-white-30);
  }
}
@media (hover: hover) {
  .sound-toggle.on-light:hover {
    background: rgba(255, 255, 255, 0.9);
  }
}

.sound-toggle__bars {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 14px;
}
.sound-toggle__bar {
  width: 2.5px;
  background: var(--c-white-80);
  border-radius: 1px;
  height: 30%;
  transition: height 0.3s var(--ease);
}
.sound-toggle.is-playing .sound-toggle__bar {
  animation: soundBar 0.8s var(--ease) infinite alternate;
}
.sound-toggle.is-playing .sound-toggle__bar:nth-child(1) {
  animation-delay: 0s;
}
.sound-toggle.is-playing .sound-toggle__bar:nth-child(2) {
  animation-delay: 0.15s;
}
.sound-toggle.is-playing .sound-toggle__bar:nth-child(3) {
  animation-delay: 0.3s;
}
.sound-toggle.is-playing .sound-toggle__bar:nth-child(4) {
  animation-delay: 0.1s;
}
.sound-toggle:not(.is-playing) .sound-toggle__bar {
  animation: none;
}

/* ── Main Content ──────────────────────────────────── */
.main {
  opacity: 0;
  will-change: opacity;
  transition: opacity 1s var(--ease) 0.6s;
}
.main.is-visible {
  opacity: 1;
}

/* ── Hero ───────────────────────────────────────────── */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  height: calc(var(--vh, 1vh) * 100);
  overflow: hidden;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.05) 0%,
    rgba(0, 0, 0, 0.22) 40%,
    rgba(0, 0, 0, 0.4) 100%
  );
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  padding-top: calc(env(safe-area-inset-top, 0px) + 2rem);
  padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 2rem);
}
.hero__names-group {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero__name {
  font-family: var(--ff-script);
  font-weight: 400;
  font-size: clamp(3.5rem, 14vw, 7rem);
  color: var(--c-white);
  line-height: 0.9;
  letter-spacing: 0.01em;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transform: translateY(30px);
}
.hero__name:nth-child(2) {
  margin-top: -0.1em;
}
.hero__subtitle {
  font-family: var(--ff-sans);
  font-weight: 500;
  font-size: clamp(0.8rem, 3vw, 1.1rem);
  color: var(--c-white);
  letter-spacing: 0.5em;
  text-transform: uppercase;
  margin-top: 1.4rem;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transform: translateY(20px);
}
.hero__date-block {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  opacity: 0;
  transform: translateY(20px);
}
.hero__date-row {
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero__date-month,
.hero__date-year {
  font-family: var(--ff-sans);
  font-weight: 500;
  font-size: clamp(0.8rem, 2.5vw, 1rem);
  color: var(--c-white);
  letter-spacing: 0.4em;
  text-transform: uppercase;
}
.hero__date-day {
  font-family: var(--ff-serif);
  font-weight: 500;
  font-size: clamp(3.5rem, 12vw, 5.5rem);
  color: var(--c-white);
  line-height: 1;
  margin: 0 0.35em;
}
.hero__date-weekday {
  font-family: var(--ff-sans);
  font-weight: 400;
  font-size: clamp(0.7rem, 2.5vw, 0.95rem);
  color: var(--c-white-90);
  letter-spacing: 0.45em;
  text-transform: uppercase;
  margin-top: 0.2rem;
}
.hero__line {
  width: 0;
  height: 1px;
  background: var(--c-white-30);
  margin: 0 0.6em;
  display: inline-block;
  vertical-align: middle;
}
.hero__date-row .hero__line {
  width: 30px;
}

/* Hero animations */
.main.is-visible .hero__name:nth-child(1) {
  animation: heroTextIn 1.6s var(--ease-out) 0.2s forwards;
}
.main.is-visible .hero__name:nth-child(2) {
  animation: heroTextIn 1.6s var(--ease-out) 0.5s forwards;
}
.main.is-visible .hero__subtitle {
  animation: heroTextIn 1.4s var(--ease-out) 0.9s forwards;
}
.main.is-visible .hero__date-block {
  animation: heroTextIn 1.4s var(--ease-out) 1.2s forwards;
}
.main.is-visible .hero__date-row .hero__line {
  animation: lineExpand 1.2s var(--ease-out) 1.5s forwards;
}

/* ── Shared Section Styles ─────────────────────────── */
.section {
  padding: var(--section-py) var(--section-px);
  text-align: center;
}
.section--cream {
  background: var(--c-cream);
}
.section--white {
  background: var(--c-white);
}
.section--dark {
  background: var(--c-dark);
  color: var(--c-white);
}

.section__label {
  display: block;
  font-family: var(--ff-sans);
  font-weight: 500;
  font-size: clamp(0.6rem, 1.8vw, 0.75rem);
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--c-text-muted);
  margin-bottom: 0.6rem;
}
.section--dark .section__label {
  color: var(--c-white-50);
}

.section__title {
  font-family: var(--ff-script);
  font-weight: 400;
  font-size: clamp(2.2rem, 8vw, 3.5rem);
  color: var(--c-text);
  line-height: 1.2;
  margin-bottom: 1rem;
}
.section--dark .section__title {
  color: var(--c-white);
}

.section__desc {
  font-family: var(--ff-sans);
  font-weight: 300;
  font-size: clamp(0.85rem, 2.5vw, 1rem);
  color: var(--c-text-light);
  line-height: 1.8;
  max-width: 560px;
  margin: 0 auto;
}
.section--dark .section__desc {
  color: var(--c-white-60);
}

.section__divider {
  width: 50px;
  height: 1px;
  background: var(--c-gold);
  margin: 1.5rem auto;
}

/* ── Scroll Reveal ─────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(35px);
  transition:
    opacity 0.9s var(--ease-out),
    transform 0.9s var(--ease-out);
}
.reveal.is-revealed {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 {
  transition-delay: 0.15s;
}
.reveal-delay-2 {
  transition-delay: 0.3s;
}
.reveal-delay-3 {
  transition-delay: 0.45s;
}
.reveal-delay-4 {
  transition-delay: 0.6s;
}

/* ── Welcome Section ───────────────────────────────── */
.welcome__text {
  font-family: var(--ff-serif);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(0.95rem, 2.8vw, 1.15rem);
  color: var(--c-text-light);
  line-height: 2;
  max-width: 600px;
  margin: 1.5rem auto 0;
}

/* ── Countdown ─────────────────────────────────────── */
.countdown {
  display: flex;
  justify-content: center;
  gap: clamp(1.5rem, 5vw, 3rem);
  margin-top: 2.5rem;
}
.countdown__item {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.countdown__number {
  font-family: var(--ff-serif);
  font-weight: 400;
  font-size: clamp(2.5rem, 8vw, 4rem);
  color: var(--c-white);
  line-height: 1;
}
.countdown__label {
  font-family: var(--ff-sans);
  font-weight: 400;
  font-size: clamp(0.6rem, 1.8vw, 0.75rem);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--c-white-50);
  margin-top: 0.5rem;
}
.countdown__separator {
  font-family: var(--ff-serif);
  font-weight: 300;
  font-size: clamp(2rem, 6vw, 3rem);
  color: var(--c-gold);
  align-self: flex-start;
  margin-top: 0.3rem;
}

/* ── Families Section ──────────────────────────────── */
.families__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1rem, 3vw, 1.5rem);
  max-width: 600px;
  margin: 2.5rem auto 0;
}
.family-card {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: 16px;
  padding: clamp(1.5rem, 4vw, 2.5rem) clamp(1rem, 3vw, 1.5rem);
  text-align: center;
  transition:
    transform 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}
.family-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
}
.family-card__role {
  font-family: var(--ff-script);
  font-weight: 400;
  font-size: clamp(1.8rem, 5vw, 2.2rem);
  color: var(--c-text);
  margin-bottom: 0.2rem;
}
.family-card__side {
  font-family: var(--ff-sans);
  font-weight: 500;
  font-size: clamp(0.8rem, 2.2vw, 0.95rem);
  color: var(--c-text);
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}
.family-card__names {
  font-family: var(--ff-sans);
  font-weight: 300;
  font-size: clamp(0.75rem, 2vw, 0.85rem);
  color: var(--c-text-light);
  line-height: 1.8;
}
.family-card__icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 1rem;
  fill: none;
  stroke: var(--c-gold);
  stroke-width: 1.5;
}

/* ── Event Cards ───────────────────────────────────── */
.events__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(1rem, 3vw, 1.5rem);
  max-width: 700px;
  margin: 2.5rem auto 0;
}
.event-card {
  background: var(--c-cream);
  border-radius: 16px;
  padding: clamp(2rem, 5vw, 2.5rem);
  text-align: center;
  border: 1px solid var(--c-border-light);
  transition:
    transform 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}
.event-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.05);
}
.event-card__icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 1.2rem;
  stroke: var(--c-gold);
  stroke-width: 1.5;
  fill: none;
}
.event-card__title {
  font-family: var(--ff-script);
  font-weight: 400;
  font-size: clamp(1.6rem, 4vw, 2rem);
  color: var(--c-text);
  margin-bottom: 0.8rem;
}
.event-card__detail {
  font-family: var(--ff-sans);
  font-weight: 300;
  font-size: clamp(0.8rem, 2.2vw, 0.9rem);
  color: var(--c-text-light);
  line-height: 1.8;
}
.event-card__detail strong {
  font-weight: 500;
  color: var(--c-text);
}
.event-card__badge {
  display: inline-block;
  background: var(--c-gold-soft);
  color: var(--c-gold);
  font-family: var(--ff-sans);
  font-weight: 500;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.3rem 0.8rem;
  border-radius: 100px;
  margin-bottom: 1rem;
}

/* ── Location Section ──────────────────────────────── */
.location__wrapper {
  max-width: 700px;
  margin: 2.5rem auto 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
.location__map {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  height: clamp(260px, 64vw, 450px);
  border: 1px solid var(--c-border);
  background: var(--c-cream-dark);
}
.location__map iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  filter: saturate(0.8) brightness(1.02);
}
.location__info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}
.location__row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--ff-sans);
  font-weight: 300;
  font-size: clamp(0.8rem, 2.2vw, 0.9rem);
  color: var(--c-text-light);
}
.location__row svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  stroke: var(--c-gold);
  fill: none;
  stroke-width: 1.5;
}
.location__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--c-text);
  color: var(--c-white);
  font-family: var(--ff-sans);
  font-weight: 400;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  padding: 0.8rem 2rem;
  border-radius: 100px;
  transition:
    background 0.3s,
    transform 0.2s;
  margin-top: 0.5rem;
}
.location__btn:hover {
  background: var(--c-dark-soft);
  transform: translateY(-2px);
}
.location__btn svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

/* ── Message Section ───────────────────────────────── */
.message__form {
  max-width: 500px;
  margin: 2.5rem auto 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.form-group {
  position: relative;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: 12px;
  padding: 1rem 1.2rem;
  font-family: var(--ff-sans);
  font-weight: 300;
  font-size: 0.9rem;
  color: var(--c-text);
  transition:
    border-color 0.3s,
    box-shadow 0.3s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--c-gold);
  box-shadow: 0 0 0 3px var(--c-gold-soft);
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--c-text-muted);
  font-weight: 300;
}
.form-group textarea {
  resize: vertical;
  min-height: 130px;
}
.form-group select {
  appearance: none;
  cursor: pointer;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--c-text-muted) 50%),
    linear-gradient(135deg, var(--c-text-muted) 50%, transparent 50%);
  background-position:
    calc(100% - 20px) 50%,
    calc(100% - 15px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}
.form-error {
  color: #a33;
  font-size: 0.85rem;
  text-align: center;
}
.form-submit:disabled {
  cursor: wait;
  opacity: 0.7;
}
.form-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--c-gold);
  color: var(--c-white);
  font-family: var(--ff-sans);
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 1rem 2rem;
  border-radius: 100px;
  transition:
    background 0.3s,
    transform 0.2s,
    box-shadow 0.3s;
  margin-top: 0.5rem;
}
.form-submit:hover {
  background: var(--c-gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(201, 169, 110, 0.3);
}
.form-submit:active {
  transform: translateY(0) scale(0.98);
}
.form-submit svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.form-success {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 2rem;
  text-align: center;
}
.form-success.is-visible {
  display: flex;
}
.form-success__icon {
  width: 56px;
  height: 56px;
  stroke: var(--c-gold);
  fill: none;
  stroke-width: 1.5;
}
.form-success__text {
  font-family: var(--ff-sans);
  font-weight: 300;
  font-size: 1rem;
  color: var(--c-text-light);
}

/* ── Photo Section ─────────────────────────────────── */
.photos__upload-area {
  max-width: 500px;
  margin: 2.5rem auto 0;
  border: 2px dashed var(--c-border);
  border-radius: 20px;
  padding: clamp(2.5rem, 6vw, 3.5rem) 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  transition:
    border-color 0.3s,
    background 0.3s;
}
.photos__upload-area:hover,
.photos__upload-area.is-dragover {
  border-color: var(--c-gold);
  background: var(--c-gold-soft);
}
.photos__upload-icon {
  width: 52px;
  height: 52px;
  stroke: var(--c-gold);
  fill: none;
  stroke-width: 1.5;
}
.photos__upload-text {
  font-family: var(--ff-sans);
  font-weight: 300;
  font-size: clamp(0.8rem, 2.2vw, 0.9rem);
  color: var(--c-text-light);
  line-height: 1.6;
}
.photos__upload-text strong {
  font-weight: 500;
  color: var(--c-gold);
}
.photos__upload-hint {
  font-size: 0.7rem;
  color: var(--c-text-muted);
}

.photos__preview {
  max-width: 500px;
  margin: 1.5rem auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}
.photos__preview-item {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--c-cream-dark);
  animation: fadeIn 0.4s var(--ease) forwards;
}
.photos__preview-item img,
.photos__preview-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.photos__preview-item__remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s;
}
.photos__preview-item:hover .photos__preview-item__remove {
  opacity: 1;
}

.photos__share-btn {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--c-gold);
  color: var(--c-white);
  font-family: var(--ff-sans);
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  padding: 0.9rem 2rem;
  border-radius: 100px;
  margin: 1.5rem auto 0;
  transition:
    background 0.3s,
    transform 0.2s;
}
.photos__share-btn.is-visible {
  display: inline-flex;
}
.photos__share-btn:hover {
  background: var(--c-gold-light);
  transform: translateY(-2px);
}
.photos__share-btn:disabled {
  cursor: wait;
  opacity: 0.7;
}
.photos__share-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}
.photos__upload-success {
  color: #4a7d53;
  font-size: 0.9rem;
  margin: 1.5rem auto 0;
  text-align: center;
}

/* ── Footer ────────────────────────────────────────── */
.footer {
  background: var(--c-dark);
  padding: clamp(3rem, 8vw, 5rem) var(--section-px);
  text-align: center;
  color: var(--c-white);
}
.footer__names {
  font-family: var(--ff-script);
  font-weight: 400;
  font-size: clamp(2rem, 6vw, 3rem);
  color: var(--c-white);
  margin-bottom: 0.5rem;
}
.footer__date {
  font-family: var(--ff-sans);
  font-weight: 300;
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--c-white-50);
  margin-bottom: 2rem;
}
.footer__hearts {
  font-size: 0.9rem;
  color: var(--c-gold);
  letter-spacing: 0.3em;
}
.footer__copy {
  font-family: var(--ff-sans);
  font-weight: 300;
  font-size: 0.65rem;
  color: var(--c-white-30);
  margin-top: 2rem;
  letter-spacing: 0.1em;
}

/* ── Animations ────────────────────────────────────── */
@keyframes introSkipIn {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes heroTextIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes lineExpand {
  from {
    width: 0;
  }
  to {
    width: 30px;
  }
}
@keyframes soundBar {
  0% {
    height: 25%;
  }
  100% {
    height: 100%;
  }
}

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

/* ── Mobile Fine-tuning ────────────────────────────── */
@media (max-width: 480px) {
  .intro__skip {
    bottom: calc(env(safe-area-inset-bottom, 0px) + 1.6rem);
    padding: 0.72rem 1.8rem;
    font-size: 0.74rem;
  }
  .hero__overlay {
    padding: 1.5rem;
  }
  .sound-toggle {
    top: calc(env(safe-area-inset-top, 0px) + 0.8rem);
    right: 0.8rem;
    width: 38px;
    height: 38px;
  }
  .families__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
  }
  .events__grid {
    grid-template-columns: 1fr;
  }
}

/* Presentation formerly expressed as inline HTML styles. */
.welcome__text--spaced {
  margin-top: 0.5rem;
}

#photoInput {
  display: none;
}
