html { scroll-behavior: smooth; }

/* The entrance stays one viewport tall as the invitation gains sections. */
.entry { bottom: auto; height: 100svh; height: 100dvh; }
/* While the window is closed nothing else exists: no scrolling and no content below. */
html:has(.entry:not([hidden])) { overflow: hidden; }
.experience:has(.entry:not([hidden])) .welcome { display: none; }

/* A clear center gives the words room; glass and stars stay near the edges. */
.welcome {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  padding: clamp(150px, 17vw, 215px) clamp(22px, 5vw, 72px) 90px;
  overflow: hidden;
  background: radial-gradient(ellipse 53% 45% at 52% 44%, rgba(65, 101, 142, .36), transparent 78%),
    linear-gradient(180deg, #091529 0%, #142647 16%, #20385d 50%, #101c38 100%);
}
.welcome::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(5, 15, 35, .39), transparent 23% 77%, rgba(5, 15, 35, .39)),
    radial-gradient(ellipse 55% 35% at 50% 0%, rgba(211, 229, 243, .09), transparent);
}
.welcome-glow {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse 37% 34% at 58% 47%, rgba(183, 213, 238, .11), transparent 95%);
}
.stars--welcome { z-index: -1; }
.stars--welcome i { box-shadow: 0 0 8px 1px rgba(220, 234, 245, .27); }

.welcome-decor { position: absolute; inset: 0 0 auto; height: 345px; pointer-events: none; }
.hanging { position: absolute; top: 0; display: block; transform-origin: top center; animation: sway 9s ease-in-out infinite alternate; }
.hanging-ribbon, .date-ribbon {
  position: absolute;
  left: 50%;
  top: 0;
  width: 2px;
  height: var(--drop);
  transform: translateX(-50%);
  background: linear-gradient(90deg, #617a96 0%, #edf5fa 52%, #8198ae 100%);
  box-shadow: 1px 0 4px rgba(242, 248, 253, .32);
}
.hanging--star { width: var(--size); height: calc(var(--drop) + var(--size)); }
.metal-star {
  display: block;
  padding-top: var(--drop);
  color: #dce8f1;
  font: 400 var(--size)/1 var(--serif);
  text-align: center;
  text-shadow: 0 1px 0 #fff, 0 4px 9px rgba(2, 12, 29, .7), 0 0 19px rgba(226, 239, 249, .35);
  filter: drop-shadow(1px 2px 1px #667f9a);
}
.hanging--glass { width: var(--size); height: calc(var(--drop) + var(--size)); }
.hanging-cap {
  position: absolute;
  z-index: 2;
  top: calc(var(--drop) - 6px);
  left: 50%;
  width: 30%;
  height: 11px;
  transform: translateX(-50%);
  border: 1px solid #ecf4fa;
  border-radius: 3px;
  background: linear-gradient(90deg, #6b839d, #eaf2f8 45%, #8399ae);
  box-shadow: 0 2px 5px rgba(5, 16, 34, .45);
}
.hanging-sphere {
  position: absolute;
  top: var(--drop);
  left: 0;
  width: var(--size);
  aspect-ratio: 1;
  border: 1.5px solid rgba(239, 247, 253, .83);
  border-radius: 50%;
  background: radial-gradient(circle at 25% 18%, rgba(255, 255, 255, .62), transparent 13%),
    radial-gradient(circle at 78% 80%, rgba(223, 238, 249, .42), transparent 36%),
    radial-gradient(circle at 45% 43%, rgba(176, 207, 234, .08) 34%, rgba(215, 234, 247, .27) 81%, rgba(246, 250, 255, .65) 100%);
  box-shadow: inset 7px 8px 12px rgba(255, 255, 255, .18), inset -8px -10px 14px rgba(200, 222, 242, .24), 0 13px 22px rgba(1, 10, 27, .28);
}
.hanging-sphere::before {
  content: "";
  position: absolute;
  top: 12%; left: 15%;
  width: 36%; height: 25%;
  border-top: 2px solid rgba(255, 255, 255, .88);
  border-left: 2px solid rgba(255, 255, 255, .58);
  border-radius: 50%;
  transform: rotate(-31deg);
}
.hanging-sphere::after {
  content: "";
  position: absolute;
  right: 11%; bottom: 14%;
  width: 15%; height: 8%;
  border-radius: 50%;
  background: rgba(255, 255, 255, .7);
  filter: blur(3px);
}
.hanging--star-left { --drop: 104px; --size: 35px; left: 7%; animation-delay: -2s; }
.hanging--glass-left { --drop: 165px; --size: 72px; left: 2%; animation-delay: -4s; }
.hanging--star-right { --drop: 84px; --size: 52px; right: 16%; animation-delay: -1s; }
.hanging--glass-right { --drop: 147px; --size: 92px; right: 4%; animation-delay: -5s; }
.hanging--glass-small { --drop: 68px; --size: 34px; right: 36%; animation-delay: -3s; }

.welcome-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, .95fr);
  align-items: center;
  gap: clamp(45px, 6vw, 105px);
  width: min(100%, 1170px);
  margin: 0 auto;
}
.welcome-copy { max-width: 530px; justify-self: center; text-align: center; text-shadow: 0 3px 18px rgba(3, 12, 30, .48); }
.welcome-eyebrow { margin: 0 0 25px; color: var(--silver); font-size: .73rem; font-weight: 600; letter-spacing: .29em; line-height: 1.6; text-transform: uppercase; }
.welcome h2 { margin: 0; color: var(--white); font: 400 clamp(2.75rem, 4.9vw, 5.2rem)/1.05 var(--serif); letter-spacing: -.026em; text-wrap: balance; }
.welcome-rule { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 29px auto 20px; color: var(--silver); font-size: .85rem; }
.welcome-rule span { width: 42px; height: 1px; background: linear-gradient(90deg, transparent, var(--silver)); }
.welcome-rule span:last-child { transform: rotate(180deg); }
.welcome-message { max-width: 490px; margin: 0 auto; color: var(--ice); font-size: clamp(.98rem, 1.3vw, 1.1rem); line-height: 1.85; text-wrap: pretty; }

.date-display { position: relative; justify-self: center; width: clamp(350px, 33vw, 440px); aspect-ratio: 1; margin-top: 24px; filter: drop-shadow(0 27px 28px rgba(1, 10, 29, .27)); }
.date-ribbon { top: -205px; height: 230px; z-index: -1; }
.date-cap {
  position: absolute;
  top: -12px; left: 50%; z-index: 2;
  width: 25%; height: 22px;
  transform: translateX(-50%);
  border: 1px solid #eff7fc;
  border-radius: 7px 7px 3px 3px;
  background: linear-gradient(90deg, #718aa5 0%, #dce9f4 22%, #f9fcff 45%, #94aac0 77%, #647e9a 100%);
  box-shadow: inset 0 -4px 5px rgba(45, 76, 112, .5), 0 5px 11px rgba(2, 13, 31, .36);
}
.date-cap::before { content: ""; position: absolute; bottom: 100%; left: 50%; width: 16px; height: 11px; transform: translateX(-50%); border: 2px solid var(--silver); border-bottom: 0; border-radius: 10px 10px 0 0; }
.date-glass {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 2px solid rgba(235, 246, 254, .84);
  border-radius: 50%;
  background: radial-gradient(circle at 46% 48%, rgba(33, 57, 93, .72) 0 47%, rgba(95, 136, 174, .42) 70%, rgba(230, 242, 251, .54) 100%);
  box-shadow: inset 0 0 0 5px rgba(246, 251, 255, .07), inset 20px 16px 32px rgba(236, 247, 255, .13), inset -21px -25px 34px rgba(226, 240, 252, .26), 0 0 38px rgba(191, 220, 244, .14);
}
.date-glass::before { content: ""; position: absolute; inset: 6%; border: 1px solid rgba(244, 250, 255, .22); border-radius: 50%; box-shadow: inset 0 0 17px rgba(255, 255, 255, .08); }
.date-glass::after { content: ""; position: absolute; top: 6%; left: 10%; width: 43%; height: 25%; border-top: 8px solid rgba(255, 255, 255, .52); border-left: 5px solid rgba(255, 255, 255, .25); border-radius: 50%; transform: rotate(-28deg); filter: blur(2px); }
.date-content { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center; text-shadow: 0 2px 12px rgba(3, 14, 33, .65); }
.date-weekday { color: var(--ice); font-size: clamp(.85rem, 1.2vw, 1rem); font-weight: 600; letter-spacing: .29em; text-transform: uppercase; }
.date-day { margin: -.04em 0 -.09em; color: var(--white); font: 400 clamp(8rem, 13vw, 11.5rem)/1 var(--serif); letter-spacing: -.065em; }
.date-month { color: var(--white); font: 400 clamp(1.35rem, 2vw, 1.8rem)/1.2 var(--serif); }
.date-divider { width: 34px; height: 1px; margin: 19px 0 17px; background: var(--silver); }
.date-time { color: var(--ice); font-size: clamp(.85rem, 1.2vw, 1rem); font-weight: 600; letter-spacing: .2em; }

.countdown { position: relative; z-index: 1; width: min(100%, 780px); margin: clamp(74px, 9vw, 120px) auto 0; text-align: center; }
.countdown h3 { margin: 0 0 26px; color: var(--ice); font: 400 clamp(1.75rem, 2.8vw, 2.5rem)/1.2 var(--serif); }
.countdown-units { display: flex; align-items: flex-start; justify-content: center; gap: clamp(11px, 2.5vw, 29px); }
.countdown-unit { display: flex; flex: 0 1 128px; flex-direction: column; align-items: center; min-width: 0; }
.countdown-unit strong { font: 400 clamp(2.8rem, 5.8vw, 5.3rem)/1 var(--serif); font-variant-numeric: tabular-nums; color: var(--white); }
.countdown-unit span { margin-top: 10px; color: var(--silver); font-size: .68rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; }
.countdown-separator { flex: none; margin-top: clamp(16px, 2.5vw, 35px); color: var(--silver); font-size: .9rem; }
.countdown-message { margin: 14px auto 0; color: var(--white); font: 400 clamp(1.65rem, 3vw, 2.7rem)/1.25 var(--serif); text-wrap: balance; }

.reveal-on-view { opacity: 0; transform: translateY(24px); transition: opacity 1s ease, transform 1s cubic-bezier(.2, .7, .2, 1); }
.reveal-on-view.is-in-view, .no-js .reveal-on-view { opacity: 1; transform: none; }
.date-display.reveal-on-view { transition-delay: .15s; }
.countdown.reveal-on-view { transition-delay: .25s; }

@media (max-width: 850px) {
  .welcome { padding: 170px 24px 78px; }
  .welcome-layout { grid-template-columns: 1fr; gap: 0; }
  .welcome-copy { max-width: 570px; }
  .welcome h2 { font-size: clamp(2.8rem, 7vw, 4.6rem); }
  .date-display { width: min(72vw, 410px); margin-top: 100px; }
  .date-ribbon { top: -88px; height: 110px; }
  .date-day { font-size: clamp(7rem, 18vw, 10.5rem); }
  .countdown { margin-top: 86px; }
  .hanging--glass-left { left: -12px; }
  .hanging--star-right { right: 9%; }
}
@media (max-width: 550px) {
  .welcome { padding: 147px 22px 72px; }
  .welcome-eyebrow { font-size: .65rem; letter-spacing: .21em; margin-bottom: 21px; }
  .welcome h2 { font-size: clamp(2.5rem, 10vw, 3.8rem); }
  .welcome-message { font-size: .94rem; line-height: 1.8; }
  .hanging--star-left { left: 6%; --drop: 57px; --size: 26px; }
  .hanging--glass-left { left: -19px; --drop: 119px; --size: 51px; }
  .hanging--star-right { right: 4%; --drop: 47px; --size: 31px; }
  .hanging--glass-right { right: -24px; --drop: 124px; --size: 58px; }
  .hanging--glass-small { right: 25%; --drop: 40px; --size: 23px; }
  .date-display { width: min(82vw, 370px); margin-top: 94px; }
  .date-day { font-size: clamp(6.8rem, 26vw, 9.5rem); }
  .date-month { font-size: clamp(1.2rem, 5vw, 1.55rem); }
  .date-weekday, .date-time { font-size: .75rem; }
  .date-divider { margin: 13px 0; }
  .countdown { margin-top: 74px; }
  .countdown h3 { font-size: 1.85rem; margin-bottom: 28px; }
  .countdown-units { gap: 7px; }
  .countdown-unit { flex-basis: 65px; }
  .countdown-unit strong { font-size: clamp(2.2rem, 9vw, 3.3rem); }
  .countdown-unit span { font-size: .53rem; letter-spacing: .11em; }
  .countdown-separator { font-size: .62rem; margin-top: 16px; }
}
@media (max-width: 360px) {
  .countdown-units { gap: 4px; }
  .countdown-unit strong { font-size: 1.95rem; }
  .countdown-separator { font-size: .52rem; margin-top: 12px; }
}
/* ───────── Polish: the scene settles in piece by piece and stays alive ───────── */
.snow--welcome { z-index: -1; }

/* Ornaments drop in on their ribbons once the section is reached. */
.hanging { translate: 0 -110%; transition: translate 1.6s cubic-bezier(.3, 1.3, .45, 1) var(--fall, 0s); }
.welcome:has(.is-in-view) .hanging, .no-js .hanging { translate: none; }
.hanging--glass-left { --fall: .1s; } .hanging--star-left { --fall: .3s; } .hanging--glass-small { --fall: .45s; }
.hanging--star-right { --fall: .2s; } .hanging--glass-right { --fall: .35s; }
.metal-star { animation: star-glint 5s ease-in-out infinite; animation-delay: inherit; }
@keyframes star-glint { 0%, 80%, 100% { text-shadow: 0 1px 0 #fff, 0 4px 9px rgba(2, 12, 29, .7), 0 0 19px rgba(226, 239, 249, .35); } 88% { text-shadow: 0 1px 0 #fff, 0 4px 9px rgba(2, 12, 29, .7), 0 0 28px rgba(255, 255, 255, .95), 0 0 6px #fff; } }

/* The copy arrives line by line out of a soft blur, and the rule draws outward. */
.welcome-copy.reveal-on-view { opacity: 1; transform: none; }
.welcome-copy > * { opacity: 0; transform: translateY(18px); filter: blur(6px); transition: opacity 1s ease, transform 1.1s cubic-bezier(.2, .7, .2, 1), filter 1s ease; }
.welcome-copy > :nth-child(2) { transition-delay: .14s; } .welcome-copy > :nth-child(3) { transition-delay: .3s; } .welcome-copy > :nth-child(4) { transition-delay: .42s; }
.welcome-copy.is-in-view > *, .no-js .welcome-copy > * { opacity: 1; transform: none; filter: none; }
.welcome-rule span { transform: scaleX(0); transform-origin: right center; transition: transform 1.1s cubic-bezier(.2, .7, .2, 1) .55s; }
.welcome-rule span:last-child { transform: scaleX(0); transform-origin: left center; background: linear-gradient(270deg, transparent, var(--silver)); }
.welcome-copy.is-in-view .welcome-rule span { transform: scaleX(1); }
.welcome-rule { text-shadow: 0 0 10px rgba(250, 252, 255, .8); }

/* The date bauble lowers on its ribbon, then swings gently with light sliding over the glass. */
.date-display.reveal-on-view { transform: translateY(-70px); transition: opacity 1.2s ease .15s, transform 1.9s cubic-bezier(.3, 1.3, .45, 1) .15s; }
.date-display.reveal-on-view.is-in-view { transform: none; }
.date-display { transform-origin: 50% -205px; animation: pendulum 7s ease-in-out infinite alternate; }
@keyframes pendulum { from { rotate: -1.3deg; } to { rotate: 1.3deg; } }
.date-display::after { content: ""; position: absolute; inset: 0; z-index: 3; border-radius: 50%; pointer-events: none; background: linear-gradient(115deg, transparent 38%, rgba(255, 255, 255, .16) 48%, rgba(255, 255, 255, .04) 54%, transparent 62%) no-repeat; background-size: 260% 100%; background-position: 130% 0; animation: glass-sweep 8s ease-in-out 2.5s infinite; }
@keyframes glass-sweep { 0% { background-position: 130% 0; } 30%, 100% { background-position: -30% 0; } }
.date-glass { background-image: radial-gradient(circle at 46% 48%, rgba(33, 57, 93, .72) 0 47%, rgba(95, 136, 174, .42) 70%, rgba(230, 242, 251, .54) 100%), radial-gradient(1.5px 1.5px at 22% 64%, #fff, transparent), radial-gradient(1.5px 1.5px at 74% 30%, #fff, transparent), radial-gradient(1px 1px at 63% 78%, #fff, transparent), radial-gradient(1px 1px at 33% 26%, #fff, transparent); }
.date-day { text-shadow: 0 2px 12px rgba(3, 14, 33, .65), 0 0 46px rgba(206, 228, 247, .3); animation: day-glow 5s ease-in-out infinite; }
@keyframes day-glow { 50% { text-shadow: 0 2px 12px rgba(3, 14, 33, .65), 0 0 64px rgba(226, 239, 250, .5); } }
.date-divider { background: linear-gradient(90deg, transparent, var(--silver), transparent); width: 56px; }

/* Countdown digits sit in frosted glass tiles and tick softly. */
.countdown h3 { text-shadow: 0 3px 18px rgba(3, 12, 30, .5); }
.countdown-unit { padding: clamp(14px, 2vw, 22px) 6px clamp(12px, 1.6vw, 18px); border: 1px solid rgba(220, 234, 245, .2); border-radius: 20px; background: linear-gradient(180deg, rgba(236, 246, 255, .09), rgba(236, 246, 255, .02)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), inset 0 -12px 22px rgba(4, 16, 38, .25), 0 18px 32px rgba(1, 10, 27, .26); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.countdown-unit strong { display: block; text-shadow: 0 0 26px rgba(220, 234, 245, .25); }
.countdown-unit strong.tick { animation: tick .55s cubic-bezier(.2, .7, .2, 1); }
@keyframes tick { from { opacity: .15; transform: translateY(-28%); filter: blur(3px); } }
.countdown-separator { margin-top: clamp(30px, 4vw, 52px); animation: hint-glow 3s ease-in-out infinite; }
.countdown-separator:nth-of-type(2) { animation-delay: -1s; } .countdown-separator:nth-of-type(3) { animation-delay: -2s; }
.countdown .countdown-unit { opacity: 0; transform: translateY(20px); transition: opacity .9s ease, transform 1s cubic-bezier(.2, .7, .2, 1); }
.countdown.is-in-view .countdown-unit, .no-js .countdown-unit { opacity: 1; transform: none; }
.countdown.is-in-view .countdown-unit:nth-child(3) { transition-delay: .4s; } .countdown.is-in-view .countdown-unit:nth-child(5) { transition-delay: .55s; } .countdown.is-in-view .countdown-unit:nth-child(7) { transition-delay: .7s; }
.countdown.is-in-view .countdown-unit:nth-child(1) { transition-delay: .25s; }
@media (max-width: 550px) {
  .countdown-unit { flex-basis: 74px; padding: 12px 2px 10px; border-radius: 14px; }
  .countdown-units { gap: 5px; }
  .countdown-separator { margin-top: 26px; }
}
@media (max-width: 360px) { .countdown-separator { display: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .snow--welcome { display: none; }
  .hanging { translate: none; }
  .metal-star, .date-display, .date-display::after, .date-day, .countdown-separator, .countdown-unit strong.tick { animation: none !important; }
  .welcome-copy > *, .countdown .countdown-unit, .welcome-rule span { opacity: 1; transform: none; filter: none; }
  .hanging { animation: none !important; }
  .reveal-on-view { opacity: 1; transform: none; }
}

/* Watercolour night sky shared by the window view, the cover and the welcome section. */
.cover { background: linear-gradient(180deg, transparent 52%, rgba(11, 26, 54, .55) 74%, rgba(11, 26, 54, .92) 92%, #0b1a36 100%), #0b2244 url("assets/images/cielo-acuarela.jpg") center bottom / cover no-repeat; }
.window-sky { background: #0b2244 url("assets/images/cielo-acuarela.jpg") center / cover no-repeat; }
.welcome { background: radial-gradient(ellipse 53% 45% at 52% 44%, rgba(65, 101, 142, .18), transparent 78%), linear-gradient(180deg, #0b1a36 0%, rgba(11, 26, 54, .85) 9%, rgba(11, 26, 54, .35) 24%, transparent 40%), linear-gradient(0deg, #0b1a36 0%, rgba(11, 26, 54, .92) 7%, rgba(11, 26, 54, .72) 16%, rgba(11, 26, 54, .4) 28%, rgba(11, 26, 54, .14) 40%, transparent 50%), #0b2244 url("assets/images/cielo-acuarela.jpg") center / cover no-repeat; }
/* No glow along the cover's bottom edge, and the welcome ribbons fade in from the sky instead of starting at a line. */
.sky-haze { background: radial-gradient(ellipse 28% 20% at 25% 28%, rgba(113, 156, 199, .09), transparent 100%); }
.welcome-decor { -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 110px); mask-image: linear-gradient(180deg, transparent 0, #000 110px); }
.welcome::before { background: linear-gradient(90deg, rgba(5, 15, 35, .3), transparent 23% 77%, rgba(5, 15, 35, .3)); -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 260px, #000 calc(100% - 320px), transparent); mask-image: linear-gradient(180deg, transparent 0, #000 260px, #000 calc(100% - 320px), transparent); }
