.section {
  position: relative;
  padding: 7rem 0;
  overflow: hidden;
}

.section__inner {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.section__heading {
  text-align: center;
  margin-bottom: 2.6rem;
}

.band {
  background:
    linear-gradient(rgba(248, 244, 236, 0.82), rgba(248, 244, 236, 0.88)),
    url("../assets/brand/estampa-fk.jpg") center / 760px auto;
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-height);
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  align-items: center;
  padding: 0 2rem;
  background: rgba(248, 244, 236, 0.76);
  border-bottom: 1px solid rgba(78, 90, 66, 0.12);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
}

.brand span {
  white-space: nowrap;
}

.brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  filter:
    drop-shadow(0 0 0 rgba(78, 90, 66, 1))
    drop-shadow(0 4px 10px rgba(53, 44, 31, 0.16));
}

.site-nav {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-nav a {
  text-decoration: none;
  color: rgba(40, 36, 31, 0.74);
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--color-olive);
}

.nav-toggle {
  display: none;
}

.hero {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: calc(var(--header-height) + 4rem) 0 4rem;
  color: var(--color-paper);
}

.hero__media,
.hero__image,
.hero__video,
.hero__shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__media {
  overflow: hidden;
}

.hero__image {
  object-fit: cover;
  object-position: center 38%;
  opacity: 1;
  transition: opacity 800ms ease;
}

.hero__video {
  z-index: 1;
  object-fit: cover;
  object-position: center 28%;
  opacity: 0;
  transition: opacity 900ms ease;
}

.hero.has-video .hero__video {
  opacity: 1;
}

.hero.has-video .hero__image {
  opacity: 0;
}

.hero__shade {
  z-index: 2;
  background:
    linear-gradient(90deg, rgba(18, 17, 14, 0.56), rgba(18, 17, 14, 0.22) 54%, rgba(18, 17, 14, 0.08)),
    linear-gradient(0deg, rgba(16, 15, 13, 0.5), transparent 56%);
}

.hero__content {
  position: relative;
  z-index: 3;
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  display: grid;
  justify-items: center;
  text-align: center;
}

.hero__content p {
  color: rgba(255, 250, 242, 0.82);
}

.hero__content h1 {
  white-space: nowrap;
}

.hero__monogram {
  width: 96px;
  margin-bottom: 1rem;
  filter: brightness(0) invert(1);
}

.hero__lead {
  max-width: 540px;
  font-size: 1.08rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.8rem;
}

.opening-note {
  position: relative;
  padding: clamp(2.5rem, 6vw, 4.5rem) 1rem;
  background:
    linear-gradient(rgba(255, 250, 242, 0.9), rgba(255, 250, 242, 0.94)),
    url("../assets/brand/estampa-fk.jpg") center / 820px auto;
  text-align: center;
}

.opening-note__inner {
  width: min(820px, 100%);
  margin: 0 auto;
  display: grid;
  justify-items: center;
  gap: 1rem;
}

.opening-note__inner span {
  width: 54px;
  height: 1px;
  background: var(--color-gold);
}

.opening-note__inner p {
  margin: 0;
  color: var(--color-ink);
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 3rem);
  line-height: 1.18;
}

.story__grid,
.wedding__grid,
.rsvp__grid,
.gifts__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.86fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
}

.story__panel {
  padding: 1rem;
  border: 1px solid rgba(78, 90, 66, 0.18);
  background: rgba(255, 250, 242, 0.74);
  box-shadow: var(--shadow-soft);
}

.story__panel img,
.wedding__media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.symbols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 4rem;
}

.wedding {
  background: var(--color-paper);
}

.wedding__media img {
  aspect-ratio: 1 / 1;
  box-shadow: var(--shadow-soft);
}

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.7rem;
}

.rsvp {
  background:
    linear-gradient(90deg, rgba(255, 250, 242, 0.9), rgba(255, 250, 242, 0.66)),
    url("../assets/images/gallery/_BQH1929-Editar.jpg.jpg") center / cover;
}

.footer {
  display: grid;
  place-items: center;
  gap: 0.3rem;
  padding: 3.5rem 1rem;
  text-align: center;
  background: var(--color-olive);
  color: var(--color-paper);
}

.footer img {
  width: 76px;
  filter: brightness(0) invert(1);
}

.footer p,
.footer small {
  margin: 0;
  color: rgba(255, 250, 242, 0.76);
}

@media (max-width: 1100px) {
  .site-header {
    padding: 0 1.25rem;
  }

  .brand {
    gap: 0.6rem;
    font-size: 1.18rem;
  }

  .brand img {
    width: 42px;
    height: 42px;
  }

  .site-nav {
    gap: 0.85rem;
    font-size: 0.72rem;
    letter-spacing: 0.1em;
  }

  .hero__content h1 {
    font-size: clamp(4.2rem, 8vw, 7rem);
  }
}

@media (max-width: 860px) {
  .site-header {
    grid-template-columns: 1fr 44px;
    padding: 0 1rem;
  }

  .brand {
    min-width: 0;
  }

  .brand span {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .nav-toggle {
    justify-self: end;
    width: 44px;
    height: 44px;
    display: grid;
    place-content: center;
    gap: 5px;
    border: 0;
    background: transparent;
  }

  .nav-toggle span:not(.sr-only) {
    width: 24px;
    height: 2px;
    background: var(--color-ink);
  }

  .site-nav {
    position: fixed;
    inset: var(--header-height) 0 auto 0;
    display: grid;
    gap: 0;
    max-height: calc(100svh - var(--header-height));
    padding: 0.8rem 1rem 1.1rem;
    background: rgba(248, 244, 236, 0.96);
    border-bottom: 1px solid rgba(78, 90, 66, 0.12);
    box-shadow: 0 18px 40px rgba(53, 44, 31, 0.12);
    overflow-y: auto;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transform: translateY(calc(-100% - var(--header-height) - 1rem));
    transition: transform 220ms ease, opacity 180ms ease, visibility 0s linear 220ms;
  }

  .site-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
    transform: translateY(0);
    transition: transform 220ms ease, opacity 180ms ease, visibility 0s;
  }

  .site-nav a {
    padding: 0.8rem 0;
  }

  .hero {
    min-height: 100svh;
    padding: calc(var(--header-height) + 2.5rem) 0 2rem;
    place-items: center;
  }

  .hero__shade {
    background:
      linear-gradient(0deg, rgba(18, 18, 15, 0.68), rgba(18, 18, 15, 0.14) 72%),
      linear-gradient(90deg, rgba(18, 17, 14, 0.36), rgba(18, 17, 14, 0.08));
  }

  .hero__media img,
  .hero__video {
    object-position: 50% 24%;
  }

  .hero__content {
    width: min(100% - 1.5rem, 620px);
  }

  .hero__content h1 {
    font-size: clamp(3.8rem, 12vw, 6rem);
  }

  .hero__monogram {
    width: 76px;
  }

  .hero__lead {
    max-width: 23rem;
  }

  .story__grid,
  .wedding__grid,
  .rsvp__grid,
  .gifts__grid,
  .symbols {
    grid-template-columns: 1fr;
  }

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

  .section {
    padding: 5rem 0;
  }
}

@media (max-width: 560px) {
  :root {
    --header-height: 66px;
  }

  .site-header {
    height: 66px;
  }

  .brand {
    gap: 0.55rem;
    font-size: 1rem;
  }

  .brand img {
    width: 38px;
    height: 38px;
  }

  .hero {
    padding: 5.5rem 0 1.5rem;
  }

  .hero__content {
    width: calc(100% - 1.25rem);
  }

  .hero__content h1 {
    max-width: 100%;
    font-size: clamp(2.9rem, 9.8vw, 4.2rem);
    margin-bottom: 0.75rem;
  }

  .hero__lead {
    font-size: 0.98rem;
    line-height: 1.55;
  }

  .hero__actions {
    gap: 0.55rem;
  }

  .hero__actions .button {
    flex: 1 1 100%;
  }

  .section__inner {
    width: min(100% - 1.25rem, 1120px);
  }
}
