/* ==========================================================================
   CasamentPollitos — estils compartits i landing
   Paleta i tipografia inspirades en el PDF "Ens casem"
   ========================================================================== */

:root {
  --cream: #f2efe2;
  --cream-deep: #e9e3d0;
  --cream-light: #faf8ef;
  --red: #af100d;
  --red-dark: #8c0c0a;
  --ink: #3c3333;
  --ink-soft: #6e6763;
  --ink-faint: rgba(60, 51, 51, 0.16);
  --cream-faint: rgba(242, 239, 226, 0.18);
  --sans: "Jost", "Segoe UI", sans-serif;
  --script: "Caveat", "Segoe Script", cursive;
  --shadow: 0 24px 60px rgba(60, 51, 51, 0.12);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1000;
  pointer-events: none;
  opacity: 0.045;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 240 240' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

h1,
h2,
h3,
h4,
p,
figure {
  margin: 0;
}

h1,
h2,
h3,
h4 {
  font-weight: 300;
  line-height: 1.04;
  letter-spacing: -0.035em;
}

::selection {
  background: var(--red);
  color: var(--cream);
}

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 4px;
}

section[id] {
  scroll-margin-top: 5.5rem;
}

/* --------------------------------------------------------------------------
   Introducció en vídeo
   -------------------------------------------------------------------------- */

html.intro-on,
html.intro-on body {
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
}

.intro {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: none;
  overflow: hidden;
  background: #0b0909;
  color: var(--cream);
  isolation: isolate;
  opacity: 1;
}

.intro-on .intro {
  display: block;
}

.intro-skip .intro {
  display: none !important;
}

.intro.is-gone {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.55s ease;
}

.intro__backdrop {
  position: absolute;
  inset: -10%;
  background: url("../video/intro-cover.jpg") center / cover no-repeat;
  filter: blur(42px) brightness(0.32) saturate(1.08);
  transform: scale(1.08);
}

.intro__stage {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
}

.intro__video {
  display: block;
  width: min(100vw, calc(100svh * 16 / 9));
  height: min(100svh, calc(100vw * 9 / 16));
  object-fit: cover;
  background: #000;
  border: 1px solid rgba(242, 239, 226, 0.16);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.55);
  pointer-events: none;
  outline: none;
  transition: transform 1.1s var(--ease), opacity 1.1s ease;
}

.intro.is-leaving .intro__video {
  transform: scale(1.035);
  opacity: 0.55;
}

.intro__cover {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: clamp(1.5rem, 5vw, 4rem);
  padding-bottom: clamp(2.6rem, 8vh, 5.5rem);
  background:
    linear-gradient(
      180deg,
      rgba(10, 8, 8, 0.55) 0%,
      rgba(10, 8, 8, 0.06) 24%,
      rgba(10, 8, 8, 0) 44%,
      rgba(10, 8, 8, 0.5) 72%,
      rgba(10, 8, 8, 0.92) 100%
    ),
    url("../video/intro-cover.jpg") center / cover no-repeat,
    #0b0909;
  text-align: center;
  transition: opacity 0.9s var(--ease), visibility 0.9s;
}

.intro__cover::before {
  content: "";
  position: absolute;
  inset: clamp(12px, 2vw, 22px);
  border: 1px solid rgba(242, 239, 226, 0.32);
  pointer-events: none;
}

.intro__cover > * {
  position: relative;
  z-index: 1;
}

.intro.is-playing .intro__cover {
  opacity: 0;
  visibility: hidden;
}

.intro__kicker {
  position: absolute;
  top: clamp(2rem, 6vh, 4rem);
  left: 50%;
  max-width: 100%;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.34em;
  color: rgba(242, 239, 226, 0.8);
  text-transform: uppercase;
  transform: translateX(-50%);
  white-space: nowrap;
}

.intro__script {
  max-width: 100%;
  margin-top: 0.9rem;
  font-family: var(--script);
  font-size: clamp(3.4rem, 9vw, 6.8rem);
  font-weight: 600;
  line-height: 0.9;
  color: var(--cream);
  text-shadow: 0 12px 44px rgba(0, 0, 0, 0.45);
}

.intro__script em {
  color: #dd5144;
  font-style: normal;
}

.intro__date {
  max-width: 100%;
  margin-top: 1.15rem;
  font-size: 0.66rem;
  font-weight: 400;
  letter-spacing: 0.26em;
  color: rgba(242, 239, 226, 0.82);
  text-transform: uppercase;
}

.intro__play {
  display: flex;
  max-width: 100%;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  margin-top: clamp(2.2rem, 6vh, 3.8rem);
  padding: 0;
  border: 0;
  background: none;
  color: var(--cream);
}

.intro__play:focus-visible {
  outline-color: var(--cream);
}

.intro__play-circle {
  position: relative;
  display: grid;
  width: clamp(76px, 10vw, 100px);
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(242, 239, 226, 0.55);
  border-radius: 50%;
  background: rgba(10, 8, 8, 0.28);
  transition: transform 0.3s var(--ease), background 0.3s ease,
    border-color 0.3s ease;
}

.intro__play-circle::after {
  content: "";
  position: absolute;
  inset: -9px;
  border: 1px solid rgba(242, 239, 226, 0.18);
  border-radius: 50%;
  animation: introPulse 2.8s ease-out infinite;
}

@keyframes introPulse {
  0% {
    opacity: 0.85;
    transform: scale(1);
  }
  70%,
  100% {
    opacity: 0;
    transform: scale(1.35);
  }
}

.intro__play:hover .intro__play-circle,
.intro__play:focus-visible .intro__play-circle {
  border-color: var(--red);
  background: var(--red);
  transform: scale(1.07);
}

.intro__play-circle svg {
  width: 30px;
  height: 30px;
  margin-left: 4px;
  fill: currentColor;
}

.intro__play-label {
  max-width: 100%;
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.intro__note {
  max-width: 100%;
  margin-top: 1.1rem;
  font-size: 0.56rem;
  letter-spacing: 0.18em;
  color: rgba(242, 239, 226, 0.55);
  text-transform: uppercase;
}

.intro__loading {
  position: absolute;
  bottom: clamp(4rem, 10vh, 6rem);
  left: 50%;
  z-index: 5;
  width: min(90%, 520px);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  color: rgba(242, 239, 226, 0.82);
  text-align: center;
  text-transform: uppercase;
  transform: translateX(-50%);
}

.intro__sound {
  position: absolute;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  z-index: 6;
  padding: 0.55rem 0.9rem;
  border: 1px solid rgba(242, 239, 226, 0.45);
  border-radius: 999px;
  background: rgba(10, 8, 8, 0.5);
  color: var(--cream);
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.intro__sound:hover {
  border-color: var(--cream);
}

.intro__rotate {
  display: none;
  position: absolute;
  bottom: 4.6rem;
  left: 50%;
  z-index: 7;
  color: rgba(242, 239, 226, 0.58);
  font-size: 0.54rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
  transform: translateX(-50%);
}

@media (orientation: portrait) and (max-width: 900px) {
  .intro.is-playing .intro__rotate {
    display: block;
  }
}

.intro__progress {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 6;
  height: 2px;
  overflow: hidden;
  background: rgba(242, 239, 226, 0.16);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.intro.is-playing .intro__progress {
  opacity: 1;
}

.intro__progress-fill {
  display: block;
  width: 0;
  height: 100%;
  background: var(--cream);
  box-shadow: 0 0 12px rgba(242, 239, 226, 0.45);
  transition: width 0.2s linear;
}

.intro__veil {
  position: absolute;
  inset: 0;
  z-index: 9;
  background: var(--cream);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.9s ease;
}

.intro.is-leaving .intro__veil {
  opacity: 1;
}

@media (max-width: 620px) {
  .intro__cover {
    padding: 1.6rem 1.25rem;
  }

  .intro__script {
    font-size: clamp(2rem, 10.5vw, 3.2rem);
    white-space: nowrap;
  }

  .intro__date {
    font-size: 0.58rem;
    letter-spacing: 0.18em;
  }

  .intro__play {
    margin-top: 2rem;
  }

  .intro__play-circle {
    width: 74px;
  }

  .intro__play-label {
    font-size: 0.58rem;
    letter-spacing: 0.16em;
  }
}

@media (orientation: portrait) and (max-width: 900px) {
  .intro__cover {
    justify-content: flex-start;
    padding-top: clamp(3.2rem, 9vh, 6rem);
    padding-bottom: clamp(2rem, 6vh, 4rem);
    background:
      linear-gradient(
        180deg,
        rgba(10, 8, 8, 0.88) 0%,
        rgba(10, 8, 8, 0.55) 24%,
        rgba(10, 8, 8, 0.08) 48%,
        rgba(10, 8, 8, 0.12) 66%,
        rgba(10, 8, 8, 0.82) 100%
      ),
      url("../video/intro-cover-portrait.jpg") 68% 42% / cover no-repeat,
      #0b0909;
  }

  .intro__kicker {
    position: static;
    margin-bottom: 0.6rem;
    white-space: normal;
    transform: none;
  }

  .intro__script {
    margin-top: 0;
  }

  .intro__play {
    margin-top: auto;
  }
}

@media (max-height: 560px) and (orientation: landscape) {
  .intro__script {
    font-size: clamp(2.6rem, 7vw, 4rem);
  }

  .intro__play {
    margin-top: 1.2rem;
  }

  .intro__note {
    display: none;
  }
}

@media (max-width: 380px) {
  .intro__cover {
    padding: 1rem 0.8rem;
  }

  .intro__kicker {
    font-size: 0.5rem;
    letter-spacing: 0.2em;
    white-space: normal;
  }

  .intro__script {
    font-size: clamp(1.7rem, 9vw, 2.6rem);
  }

  .intro__date {
    font-size: 0.5rem;
    letter-spacing: 0.1em;
    line-height: 1.6;
  }

  .intro__play-circle {
    width: 64px;
  }

  .intro__play-label {
    font-size: 0.5rem;
    letter-spacing: 0.08em;
    white-space: normal;
  }

  .intro__note {
    font-size: 0.48rem;
    letter-spacing: 0.1em;
    white-space: normal;
  }
}

/* --------------------------------------------------------------------------
   Utilitats
   -------------------------------------------------------------------------- */

.container {
  width: min(1180px, 100% - 3rem);
  margin-inline: auto;
}

.container--narrow {
  width: min(820px, 100% - 3rem);
}

.script {
  font-family: var(--script);
  font-weight: 600;
  letter-spacing: 0;
}

.eyebrow {
  margin: 0 0 1.1rem;
  color: var(--red);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

.eyebrow--light {
  color: var(--cream);
  opacity: 0.72;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 3000;
  padding: 0.7rem 1rem;
  background: var(--red);
  color: var(--cream);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  transform: translateY(-180%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.toast {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 2500;
  max-width: min(360px, calc(100vw - 2.5rem));
  padding: 0.9rem 1.2rem;
  border-left: 4px solid var(--red);
  background: var(--ink);
  color: var(--cream);
  font-size: 0.82rem;
  line-height: 1.4;
  box-shadow: 0 18px 45px rgba(60, 51, 51, 0.28);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: none;
}

/* --------------------------------------------------------------------------
   Botons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 3.25rem;
  padding: 0.9rem 1.75rem;
  border: 1px solid transparent;
  border-radius: 2px;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  line-height: 1.2;
  text-transform: uppercase;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease,
    transform 0.25s ease, box-shadow 0.25s ease;
}

.btn--primary {
  background: var(--red);
  color: var(--cream);
}

.btn--primary:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(175, 16, 13, 0.22);
}

.btn--ghost {
  border-color: rgba(60, 51, 51, 0.28);
  background: transparent;
  color: var(--ink);
}

.btn--ghost:hover {
  border-color: var(--red);
  color: var(--red);
  transform: translateY(-2px);
}

.btn--text {
  min-height: auto;
  padding: 0.35rem 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  border-radius: 0;
  background: none;
  color: var(--ink);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
}

.btn--text:hover {
  color: var(--red);
}

.btn--small {
  min-height: 2.75rem;
  padding: 0.65rem 1.15rem;
  font-size: 0.65rem;
}

.btn--large {
  min-height: 3.8rem;
  padding: 1.05rem 2.4rem;
}

/* --------------------------------------------------------------------------
   Capçalera
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 0.9rem clamp(1rem, 4vw, 3rem);
  border-bottom: 1px solid rgba(60, 51, 51, 0.09);
  background: rgba(242, 239, 226, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
  flex-shrink: 0;
}

.brand__names {
  font-family: var(--script);
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0;
}

.brand__names em {
  color: var(--red);
  font-style: normal;
}

.brand__date {
  color: var(--ink-soft);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.9rem;
}

.site-nav a {
  position: relative;
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.site-nav a:not(.site-nav__cta)::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -0.35rem;
  left: 0;
  height: 1px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s var(--ease);
}

.site-nav a:not(.site-nav__cta):hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.site-nav__cta {
  padding: 0.7rem 1.1rem;
  background: var(--red);
  color: var(--cream);
  transition: background 0.25s ease;
}

.site-nav__cta:hover {
  background: var(--red-dark);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(60, 51, 51, 0.2);
  background: transparent;
}

.nav-toggle__lines,
.nav-toggle__lines::before,
.nav-toggle__lines::after {
  display: block;
  width: 20px;
  height: 1px;
  margin-inline: auto;
  background: var(--ink);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle__lines {
  position: relative;
}

.nav-toggle__lines::before,
.nav-toggle__lines::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle__lines::before {
  top: -6px;
}

.nav-toggle__lines::after {
  top: 6px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__lines {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__lines::before {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__lines::after {
  transform: translateY(-6px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  padding: clamp(0.65rem, 2vw, 1.4rem);
}

.hero__frame {
  position: relative;
  display: flex;
  min-height: calc(100svh - 5.4rem);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: clamp(3rem, 7vw, 6rem) clamp(1.25rem, 5vw, 4rem)
    clamp(2.5rem, 6vw, 4.5rem);
  border: clamp(8px, 1.1vw, 14px) solid var(--red);
  background: var(--cream);
  text-align: center;
}

.hero__frame::after {
  content: "";
  position: absolute;
  inset: 14px;
  z-index: 0;
  border: 1px solid rgba(175, 16, 13, 0.2);
  pointer-events: none;
}

.hero__eyebrow {
  position: relative;
  z-index: 1;
  margin-bottom: 1.8rem;
}

.hero__title {
  position: relative;
  z-index: 1;
  margin-bottom: 0.7rem;
  font-size: clamp(3.4rem, 8.8vw, 8.2rem);
  font-weight: 300;
  letter-spacing: -0.055em;
  line-height: 0.88;
}

.hero__title em {
  font-weight: 600;
  font-style: italic;
}

.couple {
  position: relative;
  display: grid;
  width: min(840px, 100%);
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  margin: -0.2rem 0 1.2rem;
}

.couple__name {
  color: var(--red);
  font-family: var(--script);
  font-size: clamp(2.2rem, 4.6vw, 4.2rem);
  font-weight: 600;
  line-height: 1;
}

.couple__name--left {
  justify-self: end;
  transform: rotate(-6deg) translateX(-0.35rem);
}

.couple__name--right {
  justify-self: start;
  transform: rotate(5deg) translateX(0.35rem);
}

.couple__birds {
  position: relative;
  width: clamp(280px, 34vw, 460px);
}

.birds-video {
  position: relative;
  aspect-ratio: 16 / 9;
}

.birds-video__animation,
.birds-video__final {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.birds-video__final {
  position: absolute;
  inset: 0;
}

.birds-video [hidden],
.birds-video__final[hidden] {
  display: none;
}

.hero__date {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.25rem;
  font-size: clamp(1rem, 1.8vw, 1.3rem);
  font-weight: 400;
  letter-spacing: 0.34em;
}

.hero__date i {
  color: var(--red);
  font-style: normal;
}

.hero__place {
  position: relative;
  z-index: 1;
  margin-bottom: 2rem;
  color: var(--ink-soft);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.hero__actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2.2rem;
}

.countdown {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 0;
}

.countdown__item {
  min-width: clamp(62px, 10vw, 92px);
  padding: 0 clamp(0.55rem, 1.6vw, 1.3rem);
  border-left: 1px solid var(--ink-faint);
}

.countdown__item:first-child {
  border-left: 0;
}

.countdown__number {
  display: block;
  font-size: clamp(1.35rem, 2.8vw, 2.1rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.countdown__label {
  color: var(--ink-soft);
  font-size: 0.58rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.hero__deadline {
  position: relative;
  z-index: 1;
  margin-top: 1.35rem;
  color: var(--ink-soft);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero__scroll {
  position: absolute;
  bottom: 1.05rem;
  left: 50%;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  color: var(--ink-soft);
  font-size: 0.56rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transform: translateX(-50%);
}

.hero__scroll svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.4;
  animation: bob 2.2s ease-in-out infinite;
}

@keyframes bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(4px);
  }
}

/* --------------------------------------------------------------------------
   Història
   -------------------------------------------------------------------------- */

.story {
  overflow: hidden;
  padding: clamp(4.5rem, 9vw, 8rem) 0;
  background: var(--red);
  color: var(--cream);
}

.story__inner {
  width: min(1180px, 100% - 3rem);
  margin-inline: auto;
}

.story__title {
  max-width: 920px;
  margin: 0 auto clamp(3rem, 6vw, 5.2rem);
  font-size: clamp(2.6rem, 6vw, 5.4rem);
  text-align: center;
}

.story__title em {
  font-family: var(--script);
  font-style: normal;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
}

.story__collage {
  display: grid;
  grid-template-columns: 0.95fr 1.1fr 0.95fr;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 4rem);
}

.story__child img {
  width: 100%;
  max-width: 340px;
  margin-inline: auto;
  transform: rotate(-2.5deg);
}

.story__child figcaption {
  max-width: 300px;
  margin: 0.8rem auto 0;
  color: rgba(242, 239, 226, 0.58);
  font-family: var(--script);
  font-size: 1.25rem;
  text-align: center;
}

.story__copy {
  text-align: center;
}

.story__script {
  margin-bottom: 1.8rem;
  font-size: clamp(2rem, 3.5vw, 3.1rem);
  line-height: 1.08;
}

.story__copy p {
  max-width: 430px;
  margin: 0 auto 1rem;
  color: rgba(242, 239, 226, 0.8);
  font-size: 1rem;
}

.story__couple img {
  width: 100%;
  max-width: 430px;
  margin-inline: auto;
  transform: rotate(3.2deg);
}

/* --------------------------------------------------------------------------
   Ens casem
   -------------------------------------------------------------------------- */

.yes {
  padding: clamp(5rem, 10vw, 9rem) 0;
  text-align: center;
}

.yes__title {
  margin-bottom: 2.2rem;
  font-size: clamp(3rem, 7vw, 6.5rem);
}

.yes__title .script {
  color: var(--red);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.14em;
}

.yes__lead {
  max-width: 730px;
  margin: 0 auto 1.1rem;
  font-size: clamp(1.1rem, 1.9vw, 1.45rem);
  line-height: 1.5;
}

.yes__lead strong {
  font-weight: 500;
}

.yes__text {
  max-width: 660px;
  margin: 2.2rem auto 0;
  color: var(--ink-soft);
}

.yes__text em {
  color: var(--ink);
  font-style: italic;
}

.yes__flourish {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 3rem;
}

.yes__flourish span:not(.yes__heart) {
  width: 78px;
  height: 1px;
  background: var(--ink-faint);
}

.yes__heart {
  color: var(--red);
  font-size: 1.05rem;
}

/* --------------------------------------------------------------------------
   Quan i on
   -------------------------------------------------------------------------- */

.when {
  padding: clamp(4rem, 8vw, 7rem) 0;
  border-top: 1px solid var(--ink-faint);
}

.when__header {
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
  text-align: center;
}

.when__header h2 {
  font-size: clamp(3rem, 7vw, 6.4rem);
}

.when__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(2rem, 6vw, 6rem);
}

.when__art img {
  width: 100%;
  mix-blend-mode: multiply;
}

.when__date {
  margin-bottom: 0.2rem;
  font-size: clamp(1.35rem, 2.4vw, 1.9rem);
  font-weight: 500;
  letter-spacing: -0.02em;
}

.when__place {
  margin-bottom: 2rem;
  color: var(--red);
  font-family: var(--script);
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  line-height: 1;
}

.when__place span {
  display: block;
  margin-top: 0.55rem;
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: 0.64rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.timeline {
  padding: 0;
  margin: 0 0 2rem;
  list-style: none;
}

.timeline li {
  display: grid;
  grid-template-columns: 148px 1fr;
  gap: 1rem;
  align-items: baseline;
  padding: 0.85rem 0;
  border-top: 1px solid var(--ink-faint);
}

.timeline li:last-child {
  border-bottom: 1px solid var(--ink-faint);
}

.timeline__time {
  color: var(--red);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.timeline__label {
  font-size: 1.05rem;
}

.when__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
}

/* --------------------------------------------------------------------------
   El dia
   -------------------------------------------------------------------------- */

.day {
  padding: clamp(4rem, 8vw, 7rem) 0;
  background: var(--cream-deep);
}

.day__header {
  max-width: 710px;
  margin: 0 auto clamp(2.5rem, 5vw, 4rem);
  text-align: center;
}

.day__header h2 {
  margin-bottom: 1.2rem;
  font-size: clamp(2.9rem, 6vw, 5.4rem);
}

.day__header p:last-child {
  color: var(--ink-soft);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}

.info-card {
  position: relative;
  display: flex;
  min-height: 290px;
  flex-direction: column;
  padding: 2.6rem 2rem 2rem;
  border: 1px solid rgba(60, 51, 51, 0.13);
  background: var(--cream);
}

.info-card__tag {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.25rem 0.55rem;
  border: 1px solid rgba(175, 16, 13, 0.3);
  color: var(--red);
  font-size: 0.56rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.info-card__icon {
  width: 38px;
  height: 38px;
  margin-bottom: 1.4rem;
  color: var(--red);
}

.info-card__icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.15;
}

.info-card h3 {
  margin-bottom: 0.8rem;
  font-size: 1.45rem;
}

.info-card p {
  color: var(--ink-soft);
  font-size: 0.94rem;
}

/* --------------------------------------------------------------------------
   CTA formulari
   -------------------------------------------------------------------------- */

.rsvp-cta {
  padding: clamp(3rem, 7vw, 6rem) 1.5rem;
  background: var(--red);
  color: var(--cream);
}

.rsvp-cta__frame {
  position: relative;
  width: min(920px, 100%);
  margin-inline: auto;
  overflow: hidden;
  padding: clamp(3rem, 7vw, 6rem) clamp(1.5rem, 5vw, 4rem);
  border: 1px solid rgba(242, 239, 226, 0.34);
  text-align: center;
}

.rsvp-cta__frame::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(242, 239, 226, 0.14);
  pointer-events: none;
}

.rsvp-cta__badge {
  position: relative;
  z-index: 1;
  display: grid;
  width: clamp(110px, 17vw, 160px);
  height: clamp(110px, 17vw, 160px);
  place-items: center;
  margin: 0 auto 1.2rem;
  overflow: hidden;
  border-radius: 50%;
  background: var(--cream);
}

.rsvp-cta__badge img {
  width: 72%;
  height: 72%;
  object-fit: contain;
}

.rsvp-cta .eyebrow {
  position: relative;
  z-index: 1;
  color: var(--cream);
  opacity: 0.7;
}

.rsvp-cta h2 {
  position: relative;
  z-index: 1;
  margin-bottom: 1.2rem;
  font-size: clamp(3rem, 7vw, 6rem);
}

.rsvp-cta p {
  position: relative;
  z-index: 1;
  max-width: 630px;
  margin: 0 auto 1.7rem;
  color: rgba(242, 239, 226, 0.8);
}

.rsvp-cta__small {
  margin-top: 1.25rem !important;
  margin-bottom: 0 !important;
  font-size: 0.64rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(242, 239, 226, 0.55) !important;
}

/* --------------------------------------------------------------------------
   Peu
   -------------------------------------------------------------------------- */

.site-footer {
  padding: 3.5rem 1.5rem 2.5rem;
  background: var(--ink);
  color: var(--cream);
  text-align: center;
}

.site-footer__inner {
  width: min(900px, 100%);
  margin-inline: auto;
}

.site-footer__script {
  margin-bottom: 0.3rem;
  font-family: var(--script);
  font-size: 2.8rem;
  font-weight: 500;
  line-height: 1;
}

.site-footer__meta {
  margin-bottom: 1.5rem;
  color: rgba(242, 239, 226, 0.58);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.site-footer__nav a {
  color: rgba(242, 239, 226, 0.74);
  font-size: 0.64rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.site-footer__nav a:hover {
  color: var(--cream);
}

.site-footer__note {
  color: rgba(242, 239, 226, 0.42);
  font-size: 0.68rem;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1020px) {
  .story__collage {
    grid-template-columns: 1fr 1fr;
  }

  .story__copy {
    grid-column: 1 / -1;
    grid-row: 2;
    padding: 1rem 0;
  }

  .story__couple {
    grid-column: 2;
    grid-row: 1;
  }

  .story__child {
    grid-column: 1;
    grid-row: 1;
  }

  .when__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .when__art {
    max-width: 620px;
    margin-inline: auto;
  }

  .when__details {
    max-width: 620px;
    margin-inline: auto;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }

  .info-card {
    min-height: 0;
  }
}

@media (max-width: 840px) {
  .site-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 1.5rem 1.5rem;
    border-bottom: 1px solid rgba(60, 51, 51, 0.12);
    background: var(--cream);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  }

  .site-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .site-nav a {
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--ink-faint);
  }

  .site-nav__cta {
    margin-top: 0.8rem;
    padding: 0.85rem 1rem;
    border-bottom: 0;
    text-align: center;
  }

  .nav-toggle {
    display: block;
  }

  .brand__date {
    display: none;
  }

  .hero__frame {
    min-height: calc(100svh - 4.8rem);
  }
}

@media (max-width: 620px) {
  .container,
  .container--narrow,
  .story__inner {
    width: min(100% - 2rem, 1180px);
  }

  .hero {
    padding: 0.5rem;
  }

  .hero__frame {
    padding: 2.8rem 1.1rem 3.8rem;
    border-width: 7px;
  }

  .hero__frame::after {
    inset: 8px;
  }

  .hero__title {
    font-size: clamp(3rem, 15vw, 4.2rem);
    line-height: 0.92;
  }

  .couple {
    grid-template-columns: 1fr;
    gap: 0.25rem;
    margin-bottom: 1.1rem;
  }

  .couple__name--left,
  .couple__name--right {
    justify-self: center;
    transform: none;
    font-size: 2.35rem;
  }

  .couple__birds {
    width: 300px;
    order: 1;
  }

  .couple__name--left {
    order: 0;
  }

  .couple__name--right {
    order: 2;
  }

  .hero__date {
    font-size: 0.9rem;
    letter-spacing: 0.24em;
  }

  .hero__actions {
    width: 100%;
    flex-direction: column;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .countdown__item {
    min-width: 64px;
    padding: 0 0.55rem;
  }

  .hero__scroll {
    display: none;
  }

  .story__collage {
    grid-template-columns: 1fr;
  }

  .story__child,
  .story__couple,
  .story__copy {
    grid-column: 1;
    grid-row: auto;
  }

  .story__child img {
    max-width: 280px;
  }

  .story__couple img {
    max-width: 340px;
  }

  .timeline li {
    grid-template-columns: 112px 1fr;
  }

  .info-card {
    padding: 2.4rem 1.4rem 1.6rem;
  }

  .rsvp-cta {
    padding: 2rem 0.75rem;
  }

  .site-footer__nav {
    gap: 0.9rem 1.2rem;
  }
}

@media (max-width: 380px) {
  .countdown__label {
    font-size: 0.5rem;
  }

  .countdown__item {
    min-width: 56px;
    padding: 0 0.4rem;
  }

  .brand__names {
    font-size: 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   Accés de convidat: landing bloquejada, perfil i Fantasy
   -------------------------------------------------------------------------- */

html.site-locked,
html.site-locked body {
  height: 100%;
  overflow: hidden;
}

html:not(.is-registered) [data-member-only] {
  display: none !important;
}

html.is-registered [data-guest-only],
html.is-registered [data-confirmed-hide] {
  display: none !important;
}

html.site-locked .hero {
  padding: 0.65rem;
}

html.site-locked .hero__frame {
  height: calc(100svh - 4.8rem - 1.3rem);
  min-height: 0;
  padding-top: clamp(1.5rem, 3vh, 2.5rem);
  padding-bottom: clamp(1.2rem, 3vh, 2.2rem);
}

html.site-locked .hero__title {
  font-size: clamp(2.9rem, 6.8vw, 6.2rem);
}

html.site-locked .hero__eyebrow {
  margin-bottom: 0.9rem;
}

html.site-locked .couple {
  margin-bottom: 0.5rem;
}

html.site-locked .couple__birds {
  width: clamp(260px, 31vw, 430px);
}

html.site-locked .hero__place {
  margin-bottom: 1rem;
}

html.site-locked .hero__actions {
  margin-bottom: 1rem;
}

html.site-locked .hero__deadline {
  margin-top: 0.7rem;
}

html.site-locked .hero__tiny {
  margin-top: 0.5rem;
}

.hero__place {
  font-size: 0.78rem;
}

.hero__tiny {
  margin-top: 0.8rem;
  color: var(--ink-soft);
  font-size: 0.56rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero__tiny a {
  padding-bottom: 0.1rem;
  border-bottom: 1px solid rgba(60, 51, 51, 0.28);
}

.hero__tiny a:hover {
  border-color: var(--red);
  color: var(--red);
}

.when__place span {
  font-size: 0.7rem;
}

/* Perfil del convidat */

.site-nav {
  margin-left: auto;
}

.site-user {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-left: 1.2rem;
}

.site-user[hidden] {
  display: none;
}

.site-user__avatar {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: var(--red);
  color: var(--cream);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.site-user__text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.site-user__hello {
  color: var(--ink-soft);
  font-size: 0.5rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.site-user__name {
  font-family: var(--script);
  font-size: 1.45rem;
  font-weight: 600;
}

.site-user__fantasy {
  padding: 0.5rem 0.8rem;
  border: 1px solid rgba(175, 16, 13, 0.35);
  border-radius: 999px;
  background: transparent;
  color: var(--red);
  font-size: 0.55rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background 0.2s ease, color 0.2s ease;
}

.site-user__fantasy:hover {
  background: var(--red);
  color: var(--cream);
}

.site-user__logout {
  padding: 0.2rem 0;
  border: 0;
  background: none;
  color: var(--ink-soft);
  font-size: 0.55rem;
  letter-spacing: 0.08em;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.site-user__logout:hover {
  color: var(--red);
}

/* Fantasy */

.fantasy {
  padding: clamp(4rem, 8vw, 7rem) 0;
  background: var(--cream-deep);
  text-align: center;
}

.fantasy h2 {
  margin-bottom: 1.2rem;
  font-size: clamp(3rem, 7vw, 6rem);
}

.fantasy p {
  max-width: 640px;
  margin: 0 auto 1.8rem;
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   To modern: cantonades rodones i superfícies més suaus
   -------------------------------------------------------------------------- */

.btn {
  border-radius: 999px;
}

.btn--small {
  border-radius: 999px;
}

.site-nav__cta {
  border-radius: 999px;
}

.hero__frame {
  border-radius: 28px;
}

.hero__frame::after {
  border-radius: 18px;
}

.hero__actions .btn {
  min-width: 220px;
}

.info-card {
  border-color: transparent;
  border-radius: 24px;
  box-shadow: 0 18px 50px rgba(60, 51, 51, 0.08);
}

.rsvp-cta__frame {
  border-radius: 28px;
}

.site-footer {
  border-radius: 28px 28px 0 0;
}

@media (max-width: 840px) {
  .site-user {
    order: 2;
    margin-left: auto;
  }

  .site-user__text,
  .site-user__logout {
    display: none;
  }

  .site-user__avatar {
    width: 32px;
    height: 32px;
    font-size: 0.6rem;
  }

  .site-user__fantasy {
    padding: 0.4rem 0.6rem;
    font-size: 0.48rem;
  }

  .nav-toggle {
    order: 3;
  }

  .site-nav {
    order: 4;
  }

  .site-header {
    gap: 0.8rem;
  }
}

@media (max-width: 620px) {
  html.site-locked .hero__frame {
    height: calc(100svh - 4.4rem - 1rem);
    padding: 2rem 1.1rem 1.6rem;
  }

  html.site-locked .hero__title {
    font-size: clamp(2.7rem, 13.5vw, 4rem);
  }

  html.site-locked .couple__birds {
    width: 270px;
  }

  html.site-locked .hero__tiny {
    display: none;
  }
}

@media (max-height: 820px) and (min-width: 621px) {
  html.site-locked .hero__frame {
    padding-top: 1.5rem;
    padding-bottom: 1rem;
  }

  html.site-locked .hero__title {
    font-size: clamp(2.4rem, 6vw, 5rem);
  }

  html.site-locked .couple__birds {
    width: clamp(260px, 28vw, 380px);
  }

  html.site-locked .hero__eyebrow {
    margin-bottom: 0.6rem;
  }

  html.site-locked .couple {
    margin-bottom: 0.3rem;
  }

  html.site-locked .hero__place {
    margin-bottom: 0.7rem;
  }

  html.site-locked .hero__actions {
    margin-bottom: 0.7rem;
  }

  html.site-locked .hero__deadline {
    margin-top: 0.5rem;
  }

  html.site-locked .hero__tiny {
    display: none;
  }

  html.site-locked .countdown__number {
    font-size: 1.7rem;
  }

  html.site-locked .countdown__item {
    min-width: 58px;
    padding: 0 0.5rem;
  }
}

@media (max-height: 700px) and (max-width: 620px) {
  html.site-locked .hero__title {
    font-size: clamp(2.2rem, 11vw, 3rem);
  }

  html.site-locked .couple__birds {
    width: 220px;
  }

  html.site-locked .hero__eyebrow {
    margin-bottom: 0.7rem;
  }

  html.site-locked .hero__place {
    margin-bottom: 0.8rem;
  }

  html.site-locked .hero__actions {
    margin-bottom: 0.8rem;
  }

  html.site-locked .countdown__number {
    font-size: 1.2rem;
  }

  html.site-locked .hero__deadline {
    margin-top: 0.5rem;
    font-size: 0.55rem;
  }
}
