:root {
  --ink: #223841;
  --deep: #173746;
  --blue: #b9d6de;
  --mist: #e5f0f1;
  --cream: #f7f1e7;
  --paper: #fffdf9;
  --gold: #b48c4e;
  --rose: #c99589;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: "Montserrat", sans-serif; font-weight: 300; overflow-x: hidden; }
body.locked { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
img { max-width: 100%; }
.section { position: relative; padding: 130px max(24px, 7vw); }
.kicker { margin: 0 0 17px; color: var(--gold); font-size: 9px; font-weight: 600; letter-spacing: .25em; text-transform: uppercase; }
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .85s ease, transform .85s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

.intro { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; color: white; background: #112f3d; transition: opacity 1s ease, visibility 1s ease; }
.intro.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.intro__image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: center; }
.intro__veil { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,24,31,.36), rgba(8,25,32,.18) 40%, rgba(8,24,31,.78)); }
.intro::after { content: ""; position: absolute; inset: 18px; border: 1px solid rgba(255,255,255,.52); pointer-events: none; }
.intro__content { position: relative; z-index: 2; width: min(540px, calc(100% - 48px)); text-align: center; padding: 28px 38px 32px; margin-top: 9vh; background: rgba(13,43,55,.72); border: 1px solid rgba(255,255,255,.3); box-shadow: 0 18px 55px rgba(0,0,0,.2); backdrop-filter: blur(5px); text-shadow: 0 3px 26px rgba(0,0,0,.35); }
.intro__eyebrow { margin: 0 0 18px; font-size: 8px; letter-spacing: .3em; text-transform: uppercase; }
.intro__mark { color: #ecd29b; font-size: 22px; }
.intro__script { margin: 12px 0 5px; color: #fff2d8; font-family: "Allura", cursive; font-size: clamp(43px, 5vw, 58px); line-height: .9; }
.intro h1 { margin: 0; font-family: "Bodoni Moda", serif; font-size: clamp(35px, 4vw, 49px); line-height: .92; font-weight: 400; }
.intro__date { display: inline-block; margin: 30px 0 27px; padding: 10px 18px; border-top: 1px solid rgba(255,255,255,.6); border-bottom: 1px solid rgba(255,255,255,.6); font-size: 9px; letter-spacing: .18em; text-transform: uppercase; }
.intro__button { margin: auto; display: flex; align-items: center; gap: 28px; padding: 15px 20px; border: 1px solid rgba(255,255,255,.78); background: rgba(0,0,0,.08); color: white; cursor: pointer; font-size: 9px; letter-spacing: .17em; text-transform: uppercase; backdrop-filter: blur(8px); transition: .25s ease; }
.intro__button:hover { background: white; color: var(--deep); }

.hero { min-height: 100svh; position: relative; display: grid; place-items: center; color: white; overflow: hidden; background: #112f3d; }
.hero__image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: center; }
.hero__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,25,34,.35), rgba(7,25,34,.04) 42%, rgba(7,25,34,.72)); }
.hero::after { content: ""; position: absolute; inset: 24px; border: 1px solid rgba(255,255,255,.42); }
.hero__top { position: absolute; z-index: 2; top: 52px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 18px; font-size: 8px; letter-spacing: .22em; text-transform: uppercase; white-space: nowrap; }
.hero__line { width: 42px; height: 1px; background: rgba(255,255,255,.65); }
.hero__title { position: relative; z-index: 2; width: min(540px, calc(100% - 48px)); text-align: center; margin-top: 10vh; padding: 24px 30px 28px; background: rgba(13,43,55,.67); border: 1px solid rgba(255,255,255,.26); backdrop-filter: blur(5px); text-shadow: 0 4px 25px rgba(0,0,0,.34); }
.hero__title p { margin: 0 0 4px; color: #fff1d2; font-family: "Allura", cursive; font-size: clamp(43px, 5vw, 58px); line-height: .9; }
.hero__title h2 { margin: 0; font-family: "Bodoni Moda", serif; font-size: clamp(35px, 4vw, 49px); line-height: .92; font-weight: 400; }
.hero__scroll { position: absolute; z-index: 3; bottom: 40px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 9px; font-size: 7px; letter-spacing: .22em; text-transform: uppercase; white-space: nowrap; }

.message { display: grid; grid-template-columns: .92fr 1.08fr; gap: 8vw; align-items: center; background: var(--paper); }
.message__copy h2, .section-heading h2 { margin: 0 0 25px; max-width: 670px; font-family: "Bodoni Moda", serif; font-size: clamp(34px, 3.5vw, 47px); line-height: 1.08; font-weight: 400; text-wrap: balance; }
.body-copy { max-width: 600px; font-family: "Bodoni Moda", serif; font-size: 20px; line-height: 1.7; color: #60737a; }
blockquote { margin: 42px 0 0; padding-left: 24px; border-left: 1px solid var(--gold); font-family: "Bodoni Moda", serif; font-size: 17px; line-height: 1.65; font-style: italic; color: #6d7b80; }
blockquote cite { display: block; margin-top: 8px; font-family: "Montserrat", sans-serif; font-size: 8px; font-style: normal; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.message__photo { margin: 0; position: relative; padding: 12px; background: white; box-shadow: 0 25px 70px rgba(23,55,70,.15); transform: rotate(1deg); }
.message__photo::before { content: ""; position: absolute; inset: -18px 23px 22px -24px; border: 1px solid #d4bb8b; z-index: -1; }
.message__photo img { display: block; width: 100%; height: auto; object-fit: contain; }
.message__photo figcaption { padding: 18px 10px 10px; text-align: center; font-family: "Bodoni Moda", serif; font-size: 20px; }

.parents { text-align: center; background: var(--mist); overflow: hidden; }
.parents::before, .parents::after { content: ""; position: absolute; width: 390px; height: 390px; border-radius: 50%; border: 1px solid rgba(180,140,78,.24); }
.parents::before { left: -240px; top: -190px; }
.parents::after { right: -220px; bottom: -230px; }
.parents h2 { margin: 3px 0; font-family: "Bodoni Moda", serif; font-size: clamp(34px, 4.6vw, 57px); line-height: 1.05; font-weight: 400; }
.parents__amp { display: block; margin: 7px 0; color: var(--gold); font-family: "Allura", cursive; font-size: 48px; line-height: 1; }

.protagonists { background: var(--paper); overflow: hidden; }
.protagonists::before { content: ""; position: absolute; top: 0; left: 50%; width: 1px; height: 75px; background: #d8cbb5; }
.protagonists__heading { margin-bottom: 75px; }
.profiles-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; max-width: 1200px; margin: 0 auto 42px; align-items: start; }
.profile-card { position: relative; background: var(--cream); border: 1px solid #ded2bf; box-shadow: 0 20px 55px rgba(23,55,70,.08); }
.profile-card:nth-child(2) { margin-top: 46px; }
.profile-card__photo { position: relative; aspect-ratio: 4 / 5; margin: 0; overflow: hidden; background: var(--deep); }
.profile-card__photo img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.profile-card:hover .profile-card__photo img { transform: scale(1.035); }
.profile-card__photo--sebastian img { object-position: 50% 44%; }
.profile-card__photo--valentina img { object-position: 50% 18%; transform: scale(1.14); }
.profile-card:hover .profile-card__photo--valentina img { transform: scale(1.18); }
.profile-card__photo--rodrigo img { object-position: 50% 48%; }
.profile-card__photo > span { position: absolute; right: 18px; bottom: 16px; color: white; font-family: "Bodoni Moda", serif; font-size: 13px; letter-spacing: .18em; text-shadow: 0 2px 15px rgba(0,0,0,.6); }
.profile-card__copy { min-height: 250px; padding: 30px 29px 34px; text-align: center; }
.profile-card__copy > p { margin: 0 0 7px; color: var(--gold); font-size: 7px; font-weight: 600; letter-spacing: .23em; text-transform: uppercase; }
.profile-card__copy h3 { margin: 0; color: var(--deep); font-family: "Bodoni Moda", serif; font-size: clamp(34px, 3.2vw, 47px); line-height: 1; font-weight: 400; }
.profile-card__line { display: block; width: 36px; height: 1px; margin: 20px auto 17px; background: var(--gold); }
.profile-card__copy blockquote { margin: 0; padding: 0; border: 0; color: #67777d; font-size: 15px; line-height: 1.6; }

.countdown { min-height: 720px; display: grid; place-items: center; text-align: center; color: white; background: linear-gradient(145deg, #173746, #2e6475); overflow: hidden; }
.countdown::before { content: ""; position: absolute; width: 720px; height: 720px; border-radius: 50%; border: 1px solid rgba(255,255,255,.12); box-shadow: 0 0 0 70px rgba(255,255,255,.025), 0 0 0 140px rgba(255,255,255,.018); }
.countdown__inner { position: relative; width: min(920px, 100%); }
.kicker--light { color: #e5c98f; }
.countdown__script { margin: 0 0 -4px; font-family: "Allura", cursive; font-size: clamp(58px, 8vw, 92px); line-height: .9; }
.countdown h2 { margin: 0; font-family: "Bodoni Moda", serif; font-size: clamp(27px, 4.3vw, 47px); font-weight: 400; }
.countdown__time { color: #edd59f; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; }
.clock { display: grid; grid-template-columns: repeat(4, 1fr); margin: 58px auto 48px; }
.clock > div { border-right: 1px solid rgba(255,255,255,.25); }
.clock > div:last-child { border-right: 0; }
.clock strong { display: block; font-family: "Bodoni Moda", serif; font-size: clamp(50px, 7vw, 82px); line-height: 1; font-weight: 400; }
.clock span { display: block; margin-top: 8px; color: #d6e6ea; font-size: 7px; letter-spacing: .25em; text-transform: uppercase; }
.outline-button { display: inline-flex; align-items: center; gap: 28px; padding: 16px 19px; border: 1px solid; font-size: 8px; letter-spacing: .16em; text-transform: uppercase; transition: .25s; }
.outline-button--light { border-color: rgba(255,255,255,.7); }
.outline-button:hover { background: white; color: var(--deep); }

.godparents { background: var(--cream); }
.section-heading { text-align: center; max-width: 750px; margin: 0 auto 65px; }
.section-heading > p:last-child { color: #687a81; font-family: "Bodoni Moda", serif; font-size: 18px; }
.godparents__grid { display: grid; grid-template-columns: repeat(3, 1fr); max-width: 1200px; margin: auto; border-top: 1px solid #d8cbb5; border-bottom: 1px solid #d8cbb5; }
.godparents article { min-height: 330px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 45px 28px; text-align: center; border-right: 1px solid #d8cbb5; }
.godparents article:last-child { border-right: 0; }
.godparents article > p { margin: 0; color: var(--gold); font-size: 8px; letter-spacing: .23em; text-transform: uppercase; }
.godparents h3 { margin: 6px 0 4px; color: var(--deep); font-family: "Allura", cursive; font-size: clamp(50px, 5.6vw, 75px); line-height: 1; font-weight: 400; }
.godparents article > span { width: 40px; height: 1px; margin: 16px 0; background: var(--gold); }
.godparents strong { display: block; font-family: "Bodoni Moda", serif; font-size: 19px; line-height: 1.55; font-weight: 400; }

.places { background: #dfecef; }
.events-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; max-width: 1240px; margin: 0 auto; }
.event-card { overflow: hidden; display: grid; grid-template-rows: auto 280px 1fr; background: var(--paper); box-shadow: 0 22px 60px rgba(23,55,70,.11); }
.event-card__head { min-height: 116px; display: flex; align-items: center; gap: 19px; padding: 24px 30px; color: white; }
.event-card--church .event-card__head { background: var(--deep); }
.event-card--reception .event-card__head { background: #9f766b; }
.event-symbol { width: 54px; height: 54px; flex: 0 0 54px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(255,255,255,.55); color: #f0d39b; font-size: 22px; }
.event-card__head p { margin: 0 0 3px; font-size: 7px; letter-spacing: .2em; text-transform: uppercase; opacity: .78; }
.event-card__head h3 { margin: 0; font-family: "Bodoni Moda", serif; font-size: 33px; font-weight: 400; }
.event-card__map { height: 280px; }
.event-card__map iframe { width: 100%; height: 100%; border: 0; filter: saturate(.82) contrast(.95); }
.event-card__body { display: flex; flex-direction: column; padding: 33px 30px 36px; }
.event-time { margin: 0 0 10px; color: var(--gold); font-size: 8px; font-weight: 600; letter-spacing: .17em; text-transform: uppercase; }
.event-card__body h4 { margin: 0 0 13px; font-family: "Bodoni Moda", serif; font-size: clamp(29px, 2.8vw, 39px); line-height: 1.05; font-weight: 400; }
.event-card__body address { min-height: 55px; color: #667981; font-family: "Bodoni Moda", serif; font-size: 16px; line-height: 1.5; font-style: normal; }
.event-card__body .route-buttons { margin-top: auto; padding-top: 27px; }
.route-buttons { display: grid; gap: 10px; margin-top: 27px; }
.route-buttons a { display: grid; grid-template-columns: 35px 1fr auto; align-items: center; min-height: 56px; padding: 8px 16px; border: 1px solid #bbcbcf; font-size: 8px; letter-spacing: .13em; text-transform: uppercase; transition: .25s; }
.route-buttons a:hover { background: var(--deep); color: white; transform: translateX(4px); }
.brand-icon { width: 25px; height: 25px; object-fit: contain; }

.closing { min-height: 760px; display: grid; place-items: center; color: white; text-align: center; overflow: hidden; background: var(--deep) url("assets/retrato.jpg") center 42% / cover no-repeat; }
.closing__image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: center; }
.closing__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(9,26,33,.12), rgba(9,27,35,.78)); }
.closing__content { position: relative; z-index: 2; margin-top: 25vh; }
.closing__content > p { margin: 0; color: #f0d7a5; font-family: "Allura", cursive; font-size: 42px; }
.closing h2 { margin: 0 0 22px; font-family: "Bodoni Moda", serif; font-size: clamp(38px, 5vw, 62px); line-height: 1.02; font-weight: 400; text-wrap: balance; }
.closing__content > span { font-size: 9px; letter-spacing: .2em; text-transform: uppercase; }
.closing button { margin: 34px auto 0; display: flex; align-items: center; gap: 28px; padding: 15px 20px; border: 1px solid rgba(255,255,255,.72); background: rgba(0,0,0,.12); color: white; cursor: pointer; font-size: 8px; letter-spacing: .16em; text-transform: uppercase; }

.nav-pill { position: fixed; z-index: 30; left: 50%; bottom: 18px; transform: translateX(-50%); display: flex; padding: 5px; border: 1px solid rgba(180,140,78,.22); border-radius: 40px; background: rgba(255,253,249,.9); box-shadow: 0 8px 28px rgba(23,55,70,.14); backdrop-filter: blur(14px); }
.nav-pill a { padding: 10px 13px; border-radius: 30px; font-size: 7px; letter-spacing: .12em; text-transform: uppercase; }
.nav-pill a:hover { background: var(--deep); color: white; }
.music-control { position: fixed; z-index: 31; right: 18px; bottom: 18px; display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 16px; border-radius: 45px; color: white; background: rgba(23,55,70,.94); box-shadow: 0 9px 28px rgba(23,55,70,.22); }
.music-control__text { display: flex; flex-direction: column; min-width: 150px; }
.music-control__text span { color: #e5c98f; font-size: 6px; letter-spacing: .2em; text-transform: uppercase; }
.music-control__text strong { margin-top: 3px; font-family: "Bodoni Moda", serif; font-size: 12px; font-weight: 400; }
.music-control > button { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 0; background: white; color: var(--deep); cursor: pointer; }
.music-control audio { display: none; }
.toast { position: fixed; z-index: 120; left: 50%; bottom: 100px; transform: translate(-50%, 20px); padding: 11px 17px; border-radius: 30px; background: var(--deep); color: white; font-size: 9px; letter-spacing: .12em; text-transform: uppercase; opacity: 0; visibility: hidden; transition: .3s; }
.toast.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

@media (max-width: 800px) {
  .section { padding: 95px 25px; }
  .intro::after, .hero::after { inset: 11px; }
  .intro__content { margin-top: 15vh; }
  .intro, .hero { background-image: none; }
  .intro__image, .hero__image { object-fit: cover; object-position: center 48%; }
  .intro h1, .hero__title h2 { font-size: clamp(42px, 12vw, 60px); line-height: .84; }
  .intro__script, .hero__title p { font-size: 55px; }
  .hero__top { top: 33px; font-size: 6px; gap: 9px; }
  .hero__line { width: 20px; }
  .message { grid-template-columns: 1fr; gap: 70px; }
  .message__copy h2, .section-heading h2 { font-size: clamp(34px, 9vw, 46px); line-height: 1.08; }
  .message__photo { width: 87%; margin: auto; }
  .profiles-grid { grid-template-columns: 1fr; max-width: 520px; gap: 28px; margin-bottom: 0; }
  .profile-card:nth-child(2) { margin-top: 0; }
  .profile-card__copy { min-height: 0; }
  .clock { grid-template-columns: 1fr 1fr; gap: 28px 0; }
  .clock > div:nth-child(2) { border-right: 0; }
  .clock strong { font-size: 58px; }
  .godparents__grid { grid-template-columns: 1fr; max-width: 520px; }
  .godparents article { min-height: 260px; border-right: 0; border-bottom: 1px solid #d8cbb5; }
  .godparents article:last-child { border-bottom: 0; }
  .events-grid { grid-template-columns: 1fr; }
  .event-card { grid-template-rows: auto 350px auto; }
  .event-card__map { height: 350px; }
  .closing { min-height: 700px; background-image: none; }
  .closing__image { object-fit: cover; object-position: center 42%; }
  .nav-pill a { padding-inline: 10px; font-size: 6px; }
  .music-control { right: 12px; bottom: 72px; padding-left: 8px; }
  .music-control__text { display: none; }
}

@media (min-width: 801px) and (max-width: 1150px) {
  .section { padding-left: 5vw; padding-right: 5vw; }
  .message { gap: 5vw; }
  .message__copy h2, .section-heading h2 { font-size: clamp(36px, 4.6vw, 52px); }
}

@media (max-width: 430px) {
  .section { padding-left: 20px; padding-right: 20px; }
  .intro__content { width: 100%; padding-inline: 18px; }
  .intro h1, .hero__title h2 { font-size: clamp(38px, 11.5vw, 49px); }
  .intro__script, .hero__title p { font-size: 48px; }
  .intro__date { font-size: 7px; letter-spacing: .12em; }
  .message__copy h2, .section-heading h2 { font-size: 34px; }
  .body-copy { font-size: 18px; }
  .clock strong { font-size: 48px; }
  .nav-pill { width: calc(100% - 22px); justify-content: center; }
  .nav-pill a { flex: 1; padding-inline: 5px; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
