:root {
  --sun: #e79a32;
  --burnt: #b84a24;
  --dust: #a95968;
  --twilight: #56315f;
  --night: #0a1a38;
  --space: #030916;
  --paper: #fffdf7;
  --ink: #2b170c;
  --wood: #55301a;
  --leather: #71391f;
  --red: #b91c1c;
  --yellow: #ffd54a;
  --lime: #b7f34a;
  --purple: #6d3fc0;
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 32px;
  --shadow: 0 24px 70px rgb(24 10 4 / .24);
  --display: ui-rounded, "Arial Rounded MT Bold", "Trebuchet MS", sans-serif;
  --body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body { margin: 0; min-width: 320px; overflow-x: clip; color: var(--ink); background: var(--space); font-family: var(--body); font-size: clamp(1rem, 1.2vw, 1.125rem); line-height: 1.6; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; }
svg { display: block; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.skip-link { position: fixed; z-index: 1000; top: 12px; left: -9999px; padding: 12px 18px; border-radius: 8px; color: var(--ink); background: var(--yellow); font-weight: 800; }
.skip-link:focus { left: 12px; }
.container { width: min(100% - 40px, 1120px); margin-inline: auto; }
.section { position: relative; padding: 80px 0; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--display); line-height: .98; letter-spacing: -.035em; }
h2 { margin-bottom: 32px; font-size: clamp(2.2rem, 5vw, 4.6rem); }
.kicker, .eyebrow { margin-bottom: 12px; font-size: .78rem; font-weight: 900; letter-spacing: .17em; line-height: 1.3; text-transform: uppercase; }
.kicker--space { color: var(--lime); }

.button { display: inline-flex; min-height: 52px; align-items: center; justify-content: center; gap: 10px; padding: 13px 20px; border: 0; border-radius: 999px; text-decoration: none; font-weight: 900; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, filter .18s ease; }
.button:hover { transform: translateY(-2px); filter: brightness(1.04); }
.button:active { transform: scale(.97); }
.button svg { width: 22px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2.4; }
.button--primary { color: var(--paper); background: var(--red); box-shadow: 0 10px 0 #701010, 0 18px 35px rgb(43 23 12 / .32); }

.hero { position: relative; min-height: 100svh; overflow: hidden; display: grid; align-items: end; color: var(--paper); background: var(--burnt); isolation: isolate; }
.hero__media, .hero__media img, .hero__shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__media { z-index: -3; }
.hero__media img { object-fit: cover; object-position: 50% 24%; }
.hero__shade { z-index: -2; background: linear-gradient(180deg, rgb(43 23 12 / .32) 0%, rgb(43 23 12 / .05) 30%, rgb(43 23 12 / .2) 54%, rgb(43 23 12 / .88) 100%); }
.hero__content { position: relative; z-index: 2; width: min(100% - 40px, 1120px); margin: 0 auto; padding: max(88px, env(safe-area-inset-top)) 0 122px; }
.hero .eyebrow { width: fit-content; padding: 8px 12px; border-radius: 999px; color: var(--ink); background: var(--yellow); }
.hero h1 { max-width: 8ch; margin-bottom: 12px; color: var(--paper); font-size: clamp(3.25rem, 15vw, 8.5rem); text-shadow: 0 4px 0 var(--ink), 0 12px 34px rgb(0 0 0 / .35); }
.hero h1 span { display: block; }
.hero__age { display: flex; align-items: center; gap: 10px; margin: -8px 0 22px; }
.hero__age strong { color: var(--yellow); font-family: var(--display); font-size: clamp(6.5rem, 26vw, 13rem); line-height: .8; -webkit-text-stroke: 4px var(--ink); paint-order: stroke fill; filter: drop-shadow(0 8px 0 rgb(43 23 12 / .5)); }
.hero__age span { max-width: 2ch; font-family: var(--display); font-size: 1.65rem; font-weight: 900; line-height: .85; text-transform: uppercase; }
.hero__horizon { position: absolute; z-index: 1; right: 0; bottom: -1px; left: 0; width: 100%; height: 95px; }

.journey { background: linear-gradient(180deg, var(--burnt) 0%, var(--sun) 18%, var(--dust) 38%, var(--twilight) 56%, var(--night) 73%, var(--space) 100%); }
.countdown { padding-top: 48px; text-align: center; }
.countdown h2, .details h2, .western-gallery h2 { color: var(--ink); }
.countdown__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.wood-card { position: relative; overflow: hidden; min-width: 0; padding: 22px 6px 20px; border: 2px solid rgb(255 213 74 / .55); border-radius: var(--radius); color: var(--paper); background: repeating-linear-gradient(8deg, #55301a 0 11px, #633a21 12px 24px); box-shadow: inset 0 0 0 4px rgb(43 23 12 / .25), 0 12px 30px rgb(43 23 12 / .28); }
.wood-card::before { content: ""; position: absolute; inset: 7px; border: 1px solid rgb(255 253 247 / .22); border-radius: 13px; pointer-events: none; }
.wood-card strong, .wood-card span { position: relative; display: block; }
.wood-card strong { font-family: var(--display); font-size: clamp(2.35rem, 11vw, 5rem); line-height: 1; }
.wood-card span { margin-top: 7px; font-size: .68rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }

.details { padding-top: 60px; }
.details__grid { display: grid; gap: 14px; }
.detail-card { position: relative; padding: 26px; overflow: hidden; border: 1px solid rgb(85 48 26 / .26); border-radius: var(--radius); color: var(--ink); background: rgb(255 253 247 / .82); box-shadow: var(--shadow); backdrop-filter: blur(6px); }
.detail-card::after { content: ""; position: absolute; right: -28px; bottom: -40px; width: 100px; height: 100px; border: 2px dashed rgb(113 57 31 / .17); border-radius: 50%; }
.detail-card__icon { width: 50px; height: 50px; margin-bottom: 18px; fill: none; stroke: var(--red); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.detail-card h3 { margin-bottom: 8px; color: var(--leather); font-size: 1.35rem; }
.detail-card p { margin-bottom: 0; font-weight: 800; }

.western-gallery { padding-bottom: 130px; }
.gallery { display: grid; gap: 16px; }
.photo { position: relative; overflow: hidden; width: 100%; min-height: 44px; padding: 0; border: 0; cursor: zoom-in; background: var(--wood); box-shadow: var(--shadow); }
.photo::after { content: "+"; position: absolute; right: 14px; bottom: 14px; display: grid; width: 44px; height: 44px; place-items: center; border: 1px solid rgb(255 255 255 / .65); border-radius: 50%; color: var(--paper); background: rgb(3 9 22 / .65); font-size: 1.7rem; font-weight: 500; backdrop-filter: blur(8px); transition: transform .2s ease; }
.photo:hover::after { transform: rotate(90deg); }
.photo picture, .photo img { width: 100%; height: 100%; }
.photo img { object-fit: cover; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.photo:hover img { transform: scale(1.025); }
.gallery--western .photo { aspect-ratio: 4 / 5; border: 7px solid var(--wood); border-radius: 10px 24px 10px 24px; }
.photo--west-1 img { object-position: 50% 27%; }
.photo--west-2 img { object-position: 50% 33%; }
.photo--west-3 img { object-position: 45% 24%; }

.twilight { min-height: 540px; display: grid; align-items: center; padding: 120px 0 150px; overflow: hidden; color: var(--paper); }
.cloud { position: absolute; width: 250px; height: 65px; border: 3px solid rgb(43 23 12 / .28); border-radius: 999px; background: rgb(255 253 247 / .2); filter: blur(.2px); }
.cloud::before, .cloud::after { content: ""; position: absolute; bottom: 16px; border-radius: 50%; background: inherit; border-top: inherit; }
.cloud::before { left: 38px; width: 80px; height: 80px; }.cloud::after { left: 112px; width: 105px; height: 105px; }
.cloud--one { top: 54px; left: -85px; }.cloud--two { top: 165px; right: -105px; transform: scale(.75); }
.stars { position: absolute; inset: 0; opacity: .55; background-image: radial-gradient(circle at 10% 20%, #fff 0 1px, transparent 2px), radial-gradient(circle at 72% 30%, #fff 0 1px, transparent 2px), radial-gradient(circle at 38% 70%, #fff 0 1.5px, transparent 2.5px), radial-gradient(circle at 88% 75%, #fff 0 1px, transparent 2px); background-size: 210px 170px; }
.pool-alert { position: relative; z-index: 2; display: grid; justify-items: center; gap: 18px; padding: 34px 24px; border: 2px solid var(--yellow); border-radius: var(--radius-lg); color: var(--ink); text-align: center; background: var(--yellow); box-shadow: 0 0 0 8px rgb(255 213 74 / .16), 0 30px 80px rgb(3 9 22 / .32); transform: rotate(-1deg); }
.pool-alert__icon { width: 74px; fill: none; stroke: var(--ink); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.pool-alert__lead { margin: 0 0 4px; font-size: clamp(1.25rem, 5vw, 2.4rem); font-weight: 1000; letter-spacing: .05em; line-height: 1.05; }
.pool-alert h2 { margin: 0; font-size: clamp(1.6rem, 6vw, 3.2rem); }
.pool-alert__restriction { width: fit-content; margin: 14px auto 0; padding: 8px 13px; border: 2px solid var(--ink); border-radius: 999px; font-size: clamp(.92rem, 3.8vw, 1.16rem); font-weight: 1000; line-height: 1.25; }
.twilight__ridge { position: absolute; right: 0; bottom: -1px; left: 0; width: 100%; height: 115px; }

.space-gallery { min-height: 860px; padding-top: 90px; overflow: hidden; color: var(--paper); background: var(--night); }
.space-gallery::before, .rsvp::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(circle at 20% 30%, #fff 0 1px, transparent 1.8px), radial-gradient(circle at 80% 65%, #b7f34a 0 1px, transparent 2px), radial-gradient(circle at 45% 10%, #fff 0 1.5px, transparent 2.5px), radial-gradient(circle at 65% 42%, #fff 0 1px, transparent 1.8px); background-size: 180px 220px, 260px 190px, 310px 260px, 230px 290px; opacity: .42; }
.space-gallery .container { position: relative; z-index: 2; }
.space-gallery h2 { max-width: 12ch; }
.planet { position: absolute; border-radius: 50%; opacity: .65; box-shadow: inset -30px -20px 55px rgb(3 9 22 / .85), 0 0 60px rgb(109 63 192 / .3); }
.planet--one { top: 60px; right: -85px; width: 190px; height: 190px; background: repeating-linear-gradient(18deg, #6d3fc0 0 13px, #a95968 14px 25px); }
.planet--two { bottom: 35px; left: -42px; width: 90px; height: 90px; background: #e79a32; }
.gallery--space { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; max-width: 1040px; }
.gallery--space .photo { aspect-ratio: 2 / 3; border: 2px solid rgb(183 243 74 / .48); border-radius: var(--radius); box-shadow: 0 24px 70px rgb(0 0 0 / .45), inset 0 0 0 5px rgb(255 255 255 / .05); }
.gallery--space .photo::before { content: ""; position: absolute; z-index: 1; inset: 0; border-radius: inherit; box-shadow: inset 0 0 25px rgb(183 243 74 / .12); pointer-events: none; }
.photo--space-1 img { object-position: 48% 28%; }.photo--space-3 img { object-position: 55% 27%; }

.rsvp { overflow: hidden; padding: 90px 0 120px; color: var(--paper); background: var(--space); }
.rocket-trail { position: absolute; top: 15px; left: 0; width: min(70vw, 600px); opacity: .5; }
.rocket-trail svg { width: 100%; fill: var(--lime); stroke: var(--lime); stroke-width: 3; stroke-dasharray: 5 10; }
.rsvp__container { position: relative; z-index: 2; display: grid; gap: 0; max-width: 960px; }
.rsvp__portrait { position: relative; z-index: 2; min-height: 430px; overflow: hidden; border: 2px solid rgb(183 243 74 / .6); border-radius: var(--radius-lg) var(--radius-lg) 0 0; box-shadow: 0 28px 90px rgb(0 0 0 / .48); }
.rsvp__portrait picture, .rsvp__portrait img { width: 100%; height: 100%; }
.rsvp__portrait img { object-fit: cover; object-position: 45% 28%; }
.rsvp__portrait::after { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(transparent, rgb(3 9 22 / .86)); }
.rsvp__portrait-copy { position: absolute; z-index: 2; right: 18px; bottom: 18px; left: 18px; display: flex; align-items: end; justify-content: space-between; font-family: var(--display); font-weight: 900; }
.rsvp__portrait-copy span { max-width: 5ch; font-size: 2.2rem; line-height: .9; }.rsvp__portrait-copy strong { color: var(--lime); font-size: 5rem; line-height: .75; -webkit-text-stroke: 2px var(--space); paint-order: stroke fill; }
.rsvp__panel { position: relative; padding: 30px 20px; border: 1px solid rgb(255 255 255 / .16); border-top: 0; border-radius: 0 0 var(--radius-lg) var(--radius-lg); background: rgb(10 26 56 / .86); box-shadow: 0 30px 90px rgb(0 0 0 / .4); backdrop-filter: blur(12px); }
.rsvp__intro h2 { margin-bottom: 28px; font-size: clamp(2.35rem, 7vw, 4.5rem); }
.field { margin-bottom: 20px; }
.field label, .choice legend, .stepper > span { display: block; margin-bottom: 8px; color: var(--paper); font-weight: 800; }
.field input, .field textarea { width: 100%; min-height: 52px; padding: 13px 14px; border: 1px solid rgb(255 255 255 / .3); border-radius: var(--radius-sm); color: var(--paper); background: rgb(3 9 22 / .7); box-shadow: inset 0 2px 4px rgb(0 0 0 / .18); }
.field textarea { resize: vertical; }
.field input::placeholder { color: rgb(255 253 247 / .55); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border: 2px solid #ff9a9a; }
.field__error { min-height: 1.25em; margin: 5px 0 0; color: #ffc0c0; font-size: .86rem; font-weight: 700; line-height: 1.35; }
.field__help { margin: 5px 0 0; color: rgb(255 253 247 / .66); font-size: .84rem; }
.field__label-row { display: flex; justify-content: space-between; gap: 14px; }.field__label-row span { font-size: .82rem; }
.choice { min-width: 0; padding: 0; border: 0; }
.choice__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice label { margin: 0; cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span { display: grid; min-height: 52px; place-items: center; border: 1px solid rgb(255 255 255 / .3); border-radius: var(--radius-sm); color: var(--paper); background: rgb(3 9 22 / .7); transition: .18s ease; }
.choice input:checked + span { border-color: var(--lime); color: var(--ink); background: var(--lime); box-shadow: 0 0 0 3px rgb(183 243 74 / .16); }
.choice input:focus-visible + span { outline: 3px solid var(--yellow); outline-offset: 3px; }
.quantities { display: grid; gap: 14px; margin-bottom: 22px; }
.stepper { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border: 1px solid rgb(255 255 255 / .18); border-radius: var(--radius-sm); background: rgb(3 9 22 / .5); }
.stepper > span { margin: 0; font-size: .92rem; }
.stepper > div { display: grid; grid-template-columns: 44px 38px 44px; align-items: center; text-align: center; }
.stepper button { width: 44px; height: 44px; border: 1px solid var(--lime); border-radius: 50%; color: var(--ink); background: var(--lime); font-size: 1.45rem; font-weight: 900; cursor: pointer; }
.stepper output { font-weight: 900; }
.honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; opacity: 0 !important; }
.form-status { min-height: 24px; margin: 2px 0 12px; color: #ffc0c0; font-weight: 800; }
.button--submit, .button--update { width: 100%; color: var(--ink); background: var(--lime); box-shadow: 0 8px 0 #608c18; }
.button--update { margin-top: 12px; color: var(--ink); background: var(--yellow); box-shadow: 0 8px 0 #977715; }
.button[disabled] { cursor: wait; filter: grayscale(.25); opacity: .8; transform: none; }
.button__loader { display: none; width: 20px; height: 20px; border: 3px solid rgb(43 23 12 / .28); border-top-color: var(--ink); border-radius: 50%; animation: spin .7s linear infinite; }
.is-loading .button__loader { display: block; }.is-loading .button__loader + * { display: none; }
@keyframes spin { to { transform: rotate(1turn); } }
.success { padding: 18px 0 8px; text-align: center; }
.success__orbit { width: 110px; margin: 0 auto 24px; fill: none; stroke: var(--lime); stroke-width: 4; animation: float 2.4s ease-in-out infinite; }
.success h2 { margin-bottom: 16px; }.success > p { font-size: 1.15rem; }
.success__reminder { display: grid; gap: 2px; margin-top: 28px; padding: 20px; border-radius: var(--radius); color: var(--ink); background: var(--yellow); transform: rotate(-1deg); }
.success__reminder b { margin-top: 10px; padding-top: 10px; border-top: 2px solid rgb(43 23 12 / .35); font-size: .92rem; line-height: 1.3; }
@keyframes float { 50% { transform: translateY(-8px) rotate(2deg); } }

.footer { padding: 48px 0 calc(48px + env(safe-area-inset-bottom)); color: var(--paper); background: #01040a; text-align: center; }
.footer p { font-family: var(--display); font-size: 1.4rem; font-weight: 900; }
.button--whatsapp { color: var(--ink); background: var(--lime); }.button--whatsapp svg { width: 24px; }

.lightbox { width: min(92vw, 760px); max-width: none; height: min(92svh, 920px); max-height: none; padding: 0; overflow: visible; border: 0; border-radius: var(--radius); background: #01040a; box-shadow: 0 35px 120px rgb(0 0 0 / .7); }
.lightbox::backdrop { background: rgb(1 4 10 / .9); backdrop-filter: blur(8px); }
.lightbox picture, .lightbox img { width: 100%; height: 100%; }.lightbox img { border-radius: inherit; object-fit: contain; }
.lightbox__close { position: absolute; z-index: 3; top: 10px; right: 10px; display: grid; width: 48px; height: 48px; place-items: center; border: 1px solid rgb(255 255 255 / .5); border-radius: 50%; color: var(--paper); background: rgb(3 9 22 / .76); font-size: 2rem; cursor: pointer; }

.reveal { opacity: 0; transform: translateY(20px); transition: opacity .5s ease, transform .5s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (min-width: 768px) {
  .container { width: min(100% - 64px, 1120px); }
  .section { padding-block: 110px; }
  .hero__media img { object-position: 50% 16%; }
  .hero__content { width: min(100% - 64px, 1120px); padding-bottom: 150px; }
  .hero h1 { max-width: 7ch; font-size: clamp(5rem, 12vw, 8.5rem); }
  .hero__age { position: absolute; right: 4%; bottom: 156px; flex-direction: column; gap: 0; }
  .hero__horizon { height: 130px; }
  .countdown__grid { gap: 20px; }.wood-card { padding: 32px 12px 28px; }.wood-card span { font-size: .8rem; }
  .details__grid { grid-template-columns: repeat(3, 1fr); }
  .gallery--western { grid-template-columns: repeat(3, 1fr); }.gallery--western .photo:nth-child(2) { transform: translateY(35px); }
  .photo--west-1 img { object-position: 50% 23%; }.photo--west-2 img { object-position: 50% 31%; }.photo--west-3 img { object-position: 45% 19%; }
  .pool-alert { grid-template-columns: auto 1fr; align-items: center; padding: 38px 52px; text-align: left; }.pool-alert__icon { width: 96px; }.pool-alert__restriction { margin-inline: 0; }
  .gallery--space { gap: 24px; }.photo--space-1 img { object-position: 48% 23%; }.photo--space-3 img { object-position: 55% 21%; }
  .rsvp__container { grid-template-columns: .88fr 1.12fr; align-items: stretch; }
  .rsvp__portrait { min-height: 760px; border-radius: var(--radius-lg) 0 0 var(--radius-lg); }
  .rsvp__portrait img { object-position: 45% 12%; }
  .rsvp__panel { display: grid; align-content: center; padding: 48px; border: 1px solid rgb(255 255 255 / .16); border-left: 0; border-radius: 0 var(--radius-lg) var(--radius-lg) 0; }
  .quantities { grid-template-columns: 1fr; }
}

@media (min-width: 1200px) {
  .container { width: min(100% - 96px, 1120px); }
  .hero__media img { object-position: 50% 4%; }
  .hero__content { width: min(100% - 96px, 1120px); }
  .hero h1 { font-size: 7.6rem; }
  .hero__age { right: 12%; }
  .photo--west-1 img { object-position: 50% 18%; }.photo--west-2 img { object-position: 50% 27%; }.photo--west-3 img { object-position: 45% 13%; }
  .photo--space-1 img { object-position: 48% 18%; }.photo--space-3 img { object-position: 55% 15%; }
  .rsvp__portrait img { object-position: 45% 4%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
