:root {
  --ink: #092042;
  --blue: #0b4fb3;
  --royal: #082d82;
  --sky: #dff4ff;
  --gold: #d8a83f;
  --white: #fffaf0;
  --soft: rgba(255, 255, 255, 0.82);
  --shadow: 0 24px 70px rgba(8, 45, 130, 0.24);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Manrope, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 15% 5%, rgba(216, 168, 63, 0.24), transparent 22rem),
    linear-gradient(180deg, #eefaff 0%, #ffffff 52%, #edf7ff 100%);
}

a {
  color: inherit;
}

.door-scene {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  pointer-events: none;
  animation: sceneFade 0.9s ease 2.4s forwards;
}

.door {
  position: absolute;
  top: 0;
  width: 50.5%;
  height: 100%;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.08), transparent 18%, rgba(255, 255, 255, 0.12)),
    linear-gradient(135deg, #041b58, #0e55ba 55%, #083078);
  box-shadow: inset 0 0 80px rgba(255, 255, 255, 0.14);
}

.door-left {
  left: 0;
  transform-origin: left center;
  animation: openLeft 2s cubic-bezier(0.75, 0, 0.17, 1) 0.6s forwards;
}

.door-right {
  right: 0;
  transform-origin: right center;
  animation: openRight 2s cubic-bezier(0.75, 0, 0.17, 1) 0.6s forwards;
}

.door-pattern {
  position: absolute;
  inset: 7%;
  border: 2px solid rgba(216, 168, 63, 0.7);
  background:
    repeating-linear-gradient(45deg, transparent 0 22px, rgba(216, 168, 63, 0.18) 23px 24px),
    radial-gradient(circle, rgba(255, 255, 255, 0.18), transparent 34%);
}

.door-title {
  z-index: 2;
  display: grid;
  gap: 0.35rem;
  color: var(--white);
  text-align: center;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  animation: titleFloat 1.6s ease forwards;
}

.door-title span {
  font-family: "Great Vibes", cursive;
  font-size: clamp(3.6rem, 12vw, 8rem);
}

.door-title strong {
  font-size: clamp(0.95rem, 3vw, 1.35rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero {
  position: relative;
  min-height: 94vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 32rem);
  align-items: end;
  gap: clamp(1.5rem, 4vw, 4rem);
  padding: clamp(5rem, 9vw, 8rem) clamp(1.2rem, 5vw, 5rem) clamp(2.5rem, 5vw, 4.5rem);
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(4, 17, 54, 0.45), rgba(4, 17, 54, 0.05)),
    url("assets/syneti-background.png") center / cover no-repeat;
  color: var(--white);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 9rem;
  background: linear-gradient(180deg, transparent, #eefaff);
}

.sparkles {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.95) 0 1px, transparent 2px),
    radial-gradient(circle, rgba(216, 168, 63, 0.9) 0 1.5px, transparent 2.5px);
  background-position: 0 0, 2rem 3rem;
  background-size: 6rem 6rem, 9rem 9rem;
  opacity: 0.45;
  animation: drift 18s linear infinite;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 46rem;
  padding-bottom: 4rem;
  animation: riseIn 1s ease 2.55s both;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 1rem;
  font-family: "Great Vibes", cursive;
  font-size: clamp(4.8rem, 13vw, 10rem);
  line-height: 0.86;
  font-weight: 400;
  text-shadow: 0 18px 45px rgba(0, 0, 0, 0.36);
}

h2 {
  margin-bottom: 0.8rem;
  font-size: clamp(2rem, 5vw, 4.2rem);
  line-height: 1;
}

h3 {
  margin-bottom: 0.35rem;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
}

.hero-copy {
  max-width: 34rem;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.2rem;
  padding: 0.9rem 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-3px);
}

.button.primary {
  background: linear-gradient(135deg, #ffe8a1, var(--gold));
  color: #14224a;
  box-shadow: 0 14px 35px rgba(216, 168, 63, 0.35);
}

.button.ghost {
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
}

.alban-portrait {
  position: relative;
  z-index: 1;
  width: min(100%, 31rem);
  justify-self: center;
  filter: drop-shadow(0 34px 36px rgba(5, 23, 75, 0.34));
  animation: boyFloat 5s ease-in-out 2.7s infinite, riseIn 1.2s ease 2.45s both;
}

.countdown-section,
.timeline-section,
.location-section,
.rsvp-section {
  padding: clamp(4rem, 8vw, 7rem) clamp(1.2rem, 5vw, 5rem);
}

.section-heading {
  max-width: 52rem;
  margin: 0 auto clamp(2rem, 4vw, 3.5rem);
  text-align: center;
}

.countdown {
  width: min(68rem, calc(100% - 1rem));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(0.75rem, 2vw, 1.25rem);
}

.countdown div,
.detail,
.timeline li,
.map-card {
  border: 1px solid rgba(11, 79, 179, 0.12);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.countdown div {
  min-height: 9rem;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 0.35rem;
  border-radius: 8px;
}

.countdown strong {
  font-size: clamp(2.5rem, 7vw, 5rem);
  line-height: 1;
  color: var(--royal);
}

.countdown span {
  color: #4d6282;
  font-weight: 800;
  text-transform: uppercase;
}

.details-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  padding: 0 clamp(1.2rem, 5vw, 5rem) clamp(3rem, 7vw, 5rem);
}

.detail {
  min-height: 8rem;
  display: grid;
  align-content: center;
  gap: 0.35rem;
  padding: 1.4rem;
  border-radius: 8px;
}

.detail span {
  color: var(--blue);
  font-weight: 800;
  text-transform: uppercase;
}

.detail strong {
  font-size: clamp(1.1rem, 2vw, 1.55rem);
}

.timeline-section {
  background:
    radial-gradient(circle at 85% 10%, rgba(216, 168, 63, 0.2), transparent 24rem),
    linear-gradient(180deg, #f7fcff, #eaf6ff);
}

.timeline {
  position: relative;
  width: min(56rem, 100%);
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 1.2rem;
  bottom: 1.2rem;
  left: 8.6rem;
  width: 2px;
  background: linear-gradient(var(--gold), var(--blue));
}

.timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 7rem minmax(0, 1fr);
  gap: 2rem;
  margin-bottom: 1rem;
  padding: 1.3rem;
  border-radius: 8px;
  transform: translateY(22px);
  opacity: 0;
}

.timeline li.revealed {
  animation: revealItem 0.7s ease forwards;
}

.timeline li::before {
  content: "";
  position: absolute;
  top: 2rem;
  left: 8.18rem;
  width: 0.86rem;
  height: 0.86rem;
  border: 4px solid var(--gold);
  border-radius: 50%;
  background: var(--royal);
}

.timeline time {
  color: var(--royal);
  font-size: 1.05rem;
  font-weight: 900;
}

.timeline p,
.location-copy p {
  color: #425779;
  line-height: 1.7;
}

.location-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 30rem);
  align-items: center;
  gap: clamp(1.5rem, 5vw, 5rem);
}

.location-copy {
  max-width: 42rem;
}

.location-copy .button {
  margin-top: 1rem;
}

.map-card {
  position: relative;
  overflow: hidden;
  min-height: 25rem;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 0.6rem;
  border-radius: 8px;
  text-align: center;
  text-decoration: none;
  background: linear-gradient(rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.84));
  transition: transform 180ms ease;
}

.map-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(6, 32, 90, 0.24), rgba(6, 32, 90, 0.34)),
    url("assets/syneti-background.png") center / cover no-repeat;
  z-index: -1;
}

.map-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(0deg, transparent 0 2.4rem, rgba(11, 79, 179, 0.12) 2.45rem 2.5rem),
    repeating-linear-gradient(90deg, transparent 0 2.4rem, rgba(11, 79, 179, 0.12) 2.45rem 2.5rem);
  z-index: -1;
}

.map-card:hover {
  transform: translateY(-4px);
}

.pin {
  width: 4rem;
  height: 4rem;
  border-radius: 50% 50% 50% 0;
  background: linear-gradient(135deg, var(--blue), var(--royal));
  transform: rotate(-45deg);
  box-shadow: 0 14px 30px rgba(11, 79, 179, 0.3);
}

.pin::after {
  content: "";
  position: absolute;
  inset: 1.25rem;
  border-radius: 50%;
  background: var(--gold);
}

.map-card strong {
  font-size: 1.45rem;
}

.map-card small {
  color: #4d6282;
  font-weight: 800;
}

.rsvp-section {
  background:
    radial-gradient(circle at 15% 15%, rgba(216, 168, 63, 0.2), transparent 20rem),
    linear-gradient(180deg, #eef8ff, #ffffff);
}

.rsvp-form {
  width: min(44rem, 100%);
  margin: 0 auto;
  display: grid;
  gap: 1rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  border-radius: 10px;
  border: 1px solid rgba(11, 79, 179, 0.12);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.rsvp-options {
  margin: 0;
  padding: 0;
  border: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.rsvp-options legend,
.rsvp-form label {
  font-weight: 700;
}

.rsvp-options label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
}

.rsvp-form textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(11, 79, 179, 0.25);
  border-radius: 8px;
  resize: vertical;
  font: inherit;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
}

.contact-line {
  margin: 0;
  color: #425779;
}

.contact-line a {
  color: var(--blue);
  font-weight: 800;
  text-decoration: none;
}

.rsvp-feedback {
  min-height: 1.4rem;
  margin: 0;
  color: var(--royal);
  font-weight: 700;
}

@keyframes openLeft {
  to {
    transform: perspective(1000px) rotateY(-84deg);
  }
}

@keyframes openRight {
  to {
    transform: perspective(1000px) rotateY(84deg);
  }
}

@keyframes sceneFade {
  to {
    opacity: 0;
    visibility: hidden;
  }
}

@keyframes titleFloat {
  70% {
    opacity: 1;
  }
  to {
    opacity: 0;
    transform: translateY(-24px) scale(1.04);
  }
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes boyFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-14px);
  }
}

@keyframes drift {
  to {
    background-position: 6rem 8rem, -4rem 10rem;
  }
}

@keyframes revealItem {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .door-scene {
    display: none;
  }
}

@media (max-width: 820px) {
  .hero {
    min-height: 100vh;
    grid-template-columns: 1fr;
    align-items: end;
    padding-top: 6rem;
  }

  .hero-content {
    padding-bottom: 0;
  }

  .alban-portrait {
    width: min(78vw, 22rem);
    margin-bottom: 2rem;
  }

  .countdown,
  .details-band,
  .location-section {
    grid-template-columns: 1fr;
  }

  .countdown {
    width: min(26rem, 100%);
  }

  .timeline::before {
    left: 1.75rem;
  }

  .timeline li {
    grid-template-columns: 1fr;
    gap: 0.6rem;
    padding-left: 3.35rem;
  }

  .timeline li::before {
    left: 1.29rem;
  }
}

@media (max-width: 520px) {
  .hero-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

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

  .countdown div {
    min-height: 7.5rem;
  }
}
