:root {
  --ink: #180829;
  --ink-soft: #30124b;
  --cream: #fff8e9;
  --paper: #fffdf8;
  --gold: #ffc83d;
  --pink: #ff4f8b;
  --coral: #ff7457;
  --violet: #8e5cff;
  --cyan: #61e3f4;
  --line: rgba(24, 8, 41, 0.16);
  --shadow: 0 24px 70px rgba(41, 9, 70, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: "Be Vietnam Pro", system-ui, sans-serif;
  overflow-x: hidden;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

.noise {
  position: fixed;
  inset: 0;
  z-index: 20;
  opacity: 0.035;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.95' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
}

.topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px clamp(20px, 5vw, 78px);
  color: white;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  font-family: "Fraunces", serif;
  font-size: 17px;
  color: var(--gold);
  transform: rotate(-8deg);
}

.nav-pill {
  padding: 11px 18px;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 999px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  backdrop-filter: blur(12px);
  transition: 180ms ease;
}

.nav-pill:hover {
  color: var(--ink);
  background: white;
  transform: translateY(-2px);
}

.hero {
  position: relative;
  min-height: min(920px, 100svh);
  display: grid;
  place-items: center;
  padding: 140px 24px 100px;
  color: white;
  isolation: isolate;
  overflow: hidden;
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-image {
  z-index: -3;
  background: url("assets/birthday-party-collage.png") center/cover no-repeat;
  transform: scale(1.025);
  animation: heroBreath 12s ease-in-out infinite alternate;
}

.hero-shade {
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(18, 5, 31, 0.5), rgba(18, 5, 31, 0.08) 42%, rgba(18, 5, 31, 0.58)),
    radial-gradient(circle at 50% 38%, rgba(23, 4, 46, 0.12), rgba(16, 2, 31, 0.52) 72%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  box-shadow: inset 0 -90px 90px -70px rgba(24, 8, 41, 0.9);
}

.hero-content {
  max-width: 810px;
  text-align: center;
  margin-top: -50px;
}

.eyebrow,
.kicker {
  margin: 0 0 18px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 9px 16px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  background: rgba(29, 4, 49, 0.3);
  backdrop-filter: blur(12px);
}

.eyebrow span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 18px var(--gold);
}

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

h1,
h2 {
  font-family: "Fraunces", serif;
  text-wrap: balance;
}

h1 {
  margin-bottom: 22px;
  font-size: clamp(64px, 9vw, 136px);
  font-weight: 900;
  line-height: 0.82;
  letter-spacing: -0.065em;
  text-shadow: 0 8px 40px rgba(14, 0, 25, 0.58);
}

h1 em {
  display: block;
  color: var(--gold);
  font-weight: inherit;
  font-style: italic;
  transform: rotate(-2deg);
}

.hero-copy {
  max-width: 570px;
  margin: 0 auto 30px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.7;
  text-shadow: 0 2px 20px rgba(18, 4, 30, 0.75);
}

.hero-copy strong {
  color: white;
}

.hero-actions,
.final-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
  transition: 180ms ease;
}

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

.button-primary {
  color: var(--ink);
  background: var(--gold);
  box-shadow: 0 12px 35px rgba(255, 200, 61, 0.3);
}

.button-ghost {
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(12px);
}

.hero-stamp {
  position: absolute;
  right: clamp(20px, 5vw, 78px);
  bottom: 58px;
  width: 120px;
  height: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 18px 45px rgba(22, 4, 36, 0.35);
  transform: rotate(7deg);
}

.hero-stamp::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px dashed rgba(24, 8, 41, 0.6);
  border-radius: inherit;
}

.hero-stamp small,
.hero-stamp span {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.hero-stamp strong {
  font-family: "Fraunces", serif;
  font-size: 48px;
  line-height: 0.95;
}

.scroll-cue {
  position: absolute;
  bottom: 42px;
  left: clamp(20px, 5vw, 78px);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.scroll-cue span {
  display: block;
  width: 34px;
  height: 1px;
  background: rgba(255, 255, 255, 0.6);
}

.floaty {
  position: absolute;
  z-index: 1;
  filter: drop-shadow(0 12px 18px rgba(10, 0, 20, 0.3));
  animation: float 4s ease-in-out infinite;
}

.floaty-one {
  top: 20%;
  left: 7%;
  font-size: 54px;
}

.floaty-two {
  top: 22%;
  right: 10%;
  font-size: 38px;
  animation-delay: -1.2s;
}

.floaty-three {
  right: 18%;
  bottom: 22%;
  font-size: 42px;
  animation-delay: -2.4s;
}

.ticker {
  position: relative;
  z-index: 2;
  overflow: hidden;
  color: var(--ink);
  background: var(--gold);
  border-top: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
  transform: rotate(-1deg) scale(1.02);
}

.ticker-track {
  width: max-content;
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 17px 0;
  animation: ticker 24s linear infinite;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.13em;
}

.ticker-track b {
  color: var(--pink);
  font-size: 20px;
}

.section-shell {
  max-width: 1220px;
  margin: 0 auto;
  padding: 130px 28px;
}

.section-heading {
  max-width: 720px;
  margin: 0 auto 58px;
  text-align: center;
}

.kicker {
  color: var(--pink);
}

.section-heading h2,
.countdown-copy h2,
.date-intro h2,
.final-content h2 {
  margin-bottom: 18px;
  font-size: clamp(45px, 6vw, 84px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.section-heading h2 span,
.countdown-copy h2 span {
  color: var(--violet);
  font-style: italic;
}

.section-heading > p:last-child {
  color: rgba(24, 8, 41, 0.62);
  line-height: 1.7;
}

.people-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.person-card {
  position: relative;
  min-height: 370px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 38px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.66);
  box-shadow: 0 18px 50px rgba(80, 35, 100, 0.07);
  overflow: hidden;
  transition: 220ms ease;
}

.person-card::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -100px;
  width: 270px;
  height: 270px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 79, 139, 0.24), transparent 67%);
}

.person-card:hover {
  transform: translateY(-9px) rotate(-1deg);
  box-shadow: var(--shadow);
}

.person-card-featured {
  color: white;
  border-color: transparent;
  background: var(--ink-soft);
  transform: translateY(-18px) rotate(1deg);
}

.person-card-featured::before {
  background: radial-gradient(circle, rgba(142, 92, 255, 0.62), transparent 68%);
}

.person-card-featured:hover {
  transform: translateY(-27px) rotate(0deg);
}

.person-number {
  position: absolute;
  top: 28px;
  left: 30px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.18em;
  opacity: 0.5;
}

.person-icon {
  position: absolute;
  top: 23px;
  right: 27px;
  font-size: 40px;
  color: var(--pink);
  transform: rotate(10deg);
}

.person-card-featured .person-icon {
  color: var(--gold);
}

.person-card p {
  margin-bottom: 10px;
  color: var(--pink);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.person-card-featured p {
  color: var(--gold);
}

.person-card h3 {
  margin-bottom: 7px;
  font-family: "Fraunces", serif;
  font-size: clamp(42px, 5vw, 64px);
  letter-spacing: -0.05em;
}

.person-card span {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  opacity: 0.58;
  text-transform: uppercase;
}

.date-banner {
  position: relative;
  padding: 120px max(28px, calc((100vw - 1164px) / 2));
  color: white;
  background:
    radial-gradient(circle at 10% 0%, rgba(255, 79, 139, 0.35), transparent 32%),
    radial-gradient(circle at 93% 100%, rgba(142, 92, 255, 0.52), transparent 34%),
    var(--ink);
  overflow: hidden;
}

.date-intro {
  text-align: center;
}

.date-intro .kicker {
  color: var(--gold);
}

.date-intro h2 {
  font-size: clamp(36px, 4vw, 58px);
}

.date-lockup {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  max-width: 850px;
  margin: 30px auto 74px;
}

.day-name {
  justify-self: end;
  padding-right: 35px;
  color: var(--gold);
  font-size: clamp(22px, 3vw, 38px);
  font-weight: 700;
}

.date-number {
  font-family: "Fraunces", serif;
  font-size: clamp(150px, 21vw, 300px);
  font-weight: 900;
  line-height: 0.7;
  letter-spacing: -0.08em;
  color: transparent;
  -webkit-text-stroke: 3px var(--gold);
  filter: drop-shadow(0 12px 50px rgba(255, 200, 61, 0.16));
}

.date-meta {
  display: flex;
  flex-direction: column;
  padding-left: 35px;
}

.date-meta strong {
  font-size: clamp(22px, 3vw, 38px);
}

.date-meta span {
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  font-weight: 600;
}

.event-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 24px;
  overflow: hidden;
  backdrop-filter: blur(16px);
}

.fact {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 28px 30px;
  color: white;
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.045);
  text-align: left;
}

.fact:last-child {
  border-right: 0;
}

.fact-icon {
  flex: 0 0 auto;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: var(--ink);
  border-radius: 50%;
  background: var(--gold);
  font-size: 23px;
  font-weight: 800;
}

.fact div {
  display: flex;
  flex-direction: column;
}

.fact small {
  margin-bottom: 5px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.fact strong {
  font-family: "Fraunces", serif;
  font-size: 23px;
}

.fact p {
  margin: 3px 0 0;
  color: rgba(255, 255, 255, 0.56);
  font-size: 11px;
}

.fact-button {
  cursor: pointer;
  transition: 180ms ease;
}

.fact-button:hover {
  background: rgba(255, 255, 255, 0.12);
}

.date-decoration {
  position: absolute;
  color: var(--pink);
  font-size: 72px;
  animation: spin 11s linear infinite;
}

.date-decoration-left {
  top: 70px;
  left: 5%;
}

.date-decoration-right {
  right: 5%;
  bottom: 90px;
  color: var(--violet);
  animation-direction: reverse;
}

.countdown-section {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 80px;
  align-items: center;
}

.countdown-copy .kicker {
  margin-bottom: 22px;
}

.countdown-copy h2 {
  font-size: clamp(42px, 5vw, 72px);
}

.countdown {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  gap: 13px;
  align-items: start;
}

.countdown div {
  min-width: 0;
  text-align: center;
}

.countdown strong {
  display: grid;
  aspect-ratio: 0.88;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: white;
  box-shadow: 0 16px 40px rgba(55, 20, 76, 0.08);
  font-family: "Fraunces", serif;
  font-size: clamp(37px, 5vw, 64px);
  line-height: 1;
}

.countdown span {
  display: block;
  margin-top: 12px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.55;
}

.countdown b {
  margin-top: 35px;
  color: var(--pink);
  font-family: "Fraunces", serif;
  font-size: 34px;
}

.memories {
  padding-top: 60px;
}

.photo-wall {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 75px;
  gap: 20px;
  margin-top: 70px;
}

.photo-card {
  position: relative;
  margin: 0;
  padding: 10px 10px 45px;
  background: white;
  box-shadow: 0 24px 60px rgba(43, 13, 60, 0.16);
  transition: 220ms ease;
}

.photo-card:hover {
  z-index: 3;
  transform: rotate(0deg) scale(1.025);
}

.photo-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.04);
}

.photo-card figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 13px;
  text-align: center;
  font-family: "Fraunces", serif;
  font-size: 14px;
  font-style: italic;
}

.photo-one {
  grid-column: 1 / span 7;
  grid-row: 1 / span 6;
  transform: rotate(-2deg);
}

.photo-two {
  grid-column: 8 / span 5;
  grid-row: 1 / span 8;
  transform: rotate(2.5deg);
}

.photo-three {
  grid-column: 2 / span 5;
  grid-row: 7 / span 8;
  transform: rotate(2deg);
}

.photo-four {
  grid-column: 7 / span 6;
  grid-row: 9 / span 6;
  transform: rotate(-2.5deg);
}

.final-cta {
  position: relative;
  min-height: 720px;
  display: grid;
  place-items: center;
  padding: 120px 24px;
  color: white;
  text-align: center;
  isolation: isolate;
  overflow: hidden;
}

.final-cta-art {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url("assets/birthday-party-collage.png") center/cover no-repeat;
  filter: saturate(0.75);
  transform: scale(1.06);
}

.final-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(19, 4, 34, 0.8);
  backdrop-filter: blur(2px);
}

.final-content {
  max-width: 900px;
}

.final-content .kicker {
  color: var(--gold);
}

.final-content h2 {
  margin-bottom: 24px;
  font-size: clamp(54px, 8vw, 110px);
}

.final-content h2 span {
  color: var(--gold);
  font-style: italic;
}

.final-content > p:not(.kicker) {
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  letter-spacing: 0.08em;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 30px clamp(24px, 5vw, 76px);
  color: rgba(255, 255, 255, 0.65);
  background: #0e0418;
  font-size: 11px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

footer p {
  margin: 0;
}

footer span {
  color: var(--pink);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 50;
  max-width: calc(100vw - 32px);
  padding: 14px 20px;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(24, 8, 41, 0.92);
  box-shadow: 0 14px 50px rgba(20, 4, 31, 0.3);
  backdrop-filter: blur(16px);
  font-size: 13px;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 30px);
  transition: 250ms ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

#confetti {
  position: fixed;
  inset: 0;
  z-index: 100;
  overflow: hidden;
  pointer-events: none;
}

.confetti-piece {
  position: absolute;
  top: -20px;
  width: 9px;
  height: 16px;
  animation: confettiFall var(--duration) linear forwards;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes heroBreath {
  from { transform: scale(1.025); }
  to { transform: scale(1.07); }
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-7deg); }
  50% { transform: translateY(-14px) rotate(6deg); }
}

@keyframes ticker {
  to { transform: translateX(-50%); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes confettiFall {
  to {
    transform: translate3d(var(--drift), 110vh, 0) rotate(980deg);
    opacity: 0.85;
  }
}

@media (max-width: 900px) {
  .hero {
    min-height: 820px;
  }

  .hero-image {
    background-position: 54% center;
  }

  .floaty,
  .scroll-cue {
    display: none;
  }

  .hero-stamp {
    width: 100px;
    height: 100px;
    right: 22px;
    bottom: 28px;
  }

  .hero-stamp strong {
    font-size: 38px;
  }

  .people-grid,
  .event-facts,
  .countdown-section {
    grid-template-columns: 1fr;
  }

  .person-card-featured {
    transform: none;
  }

  .fact {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  }

  .fact:last-child {
    border-bottom: 0;
  }

  .countdown-section {
    gap: 40px;
    text-align: center;
  }
}

@media (max-width: 650px) {
  .topbar {
    padding: 18px;
  }

  .brand span:last-child {
    display: none;
  }

  .nav-pill {
    padding: 9px 14px;
    font-size: 11px;
  }

  .hero {
    min-height: 760px;
    padding-top: 120px;
  }

  .hero-image {
    background-position: 59% center;
  }

  .hero-content {
    margin-top: -80px;
  }

  h1 {
    font-size: clamp(58px, 20vw, 82px);
  }

  .hero-copy {
    max-width: 330px;
  }

  .button {
    min-height: 48px;
    padding: 0 19px;
    font-size: 12px;
  }

  .hero-stamp {
    right: 18px;
    bottom: 24px;
  }

  .section-shell {
    padding: 90px 18px;
  }

  .section-heading {
    margin-bottom: 38px;
  }

  .people-grid {
    gap: 14px;
  }

  .person-card {
    min-height: 280px;
    padding: 28px;
  }

  .date-banner {
    padding: 90px 18px;
  }

  .date-lockup {
    grid-template-columns: auto 1fr;
    max-width: 330px;
    margin-bottom: 56px;
  }

  .day-name {
    grid-column: 1 / -1;
    justify-self: center;
    padding: 0 0 22px;
  }

  .date-number {
    font-size: 148px;
  }

  .date-meta {
    padding-left: 24px;
  }

  .date-decoration {
    opacity: 0.4;
  }

  .event-facts {
    border-radius: 19px;
  }

  .fact {
    padding: 22px;
  }

  .countdown {
    gap: 6px;
  }

  .countdown strong {
    border-radius: 12px;
    font-size: 34px;
  }

  .countdown b {
    margin-top: 20px;
    font-size: 22px;
  }

  .countdown span {
    font-size: 8px;
  }

  .photo-wall {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 40px;
  }

  .photo-card {
    height: 390px;
  }

  .photo-one,
  .photo-two,
  .photo-three,
  .photo-four {
    transform: rotate(0);
  }

  .final-cta {
    min-height: 660px;
  }

  footer {
    flex-direction: column;
    text-align: center;
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* --- Cinematic wow layer --- */

body.invite-locked {
  overflow: hidden;
}

.invite-gate {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 24px;
  color: white;
  background: #10031d;
  isolation: isolate;
  overflow: hidden;
  transition: opacity 900ms cubic-bezier(0.76, 0, 0.24, 1), visibility 900ms;
}

.invite-gate.opening {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.gate-backdrop {
  position: absolute;
  inset: -4%;
  z-index: -3;
  background:
    linear-gradient(180deg, rgba(12, 2, 24, 0.45), rgba(12, 2, 24, 0.86)),
    url("assets/birthday-party-collage.png") center/cover;
  filter: saturate(0.7) blur(3px);
  animation: gateZoom 14s ease-in-out infinite alternate;
}

.invite-gate::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 50% 48%, rgba(142, 92, 255, 0.12), transparent 34%),
    linear-gradient(90deg, rgba(255, 79, 139, 0.12), transparent 28%, transparent 72%, rgba(97, 227, 244, 0.12));
}

.gate-card {
  position: relative;
  width: min(630px, 92vw);
  padding: clamp(44px, 7vw, 74px) 30px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 36px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.035));
  box-shadow: 0 40px 100px rgba(4, 0, 12, 0.62), inset 0 1px rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(24px);
}

.gate-card::before,
.gate-card::after {
  content: "✦";
  position: absolute;
  color: var(--gold);
  font-size: 32px;
  animation: twinkle 2s ease-in-out infinite;
}

.gate-card::before {
  top: 25px;
  left: 30px;
}

.gate-card::after {
  right: 30px;
  bottom: 25px;
  animation-delay: -1s;
}

.gate-monogram {
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  margin: 0 auto 25px;
  border: 1px solid rgba(255, 200, 61, 0.7);
  border-radius: 50%;
  color: var(--gold);
  font-family: "Fraunces", serif;
  font-size: 24px;
  font-weight: 900;
  transform: rotate(-8deg);
  box-shadow: 0 0 45px rgba(255, 200, 61, 0.18);
}

.gate-overline {
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.gate-card h2 {
  margin-bottom: 22px;
  font-size: clamp(58px, 9vw, 96px);
  line-height: 0.82;
  letter-spacing: -0.065em;
  text-shadow: 0 8px 50px rgba(0, 0, 0, 0.42);
}

.gate-card h2 em {
  color: var(--gold);
  font-weight: inherit;
}

.gate-date {
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.gate-button {
  position: relative;
  min-width: 190px;
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  padding: 0 26px;
  border: 0;
  border-radius: 999px;
  color: var(--ink);
  background: var(--gold);
  box-shadow: 0 18px 55px rgba(255, 200, 61, 0.35);
  cursor: pointer;
  font-weight: 900;
  overflow: hidden;
  transition: 200ms ease;
}

.gate-button::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -100%;
  width: 55%;
  height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.75), transparent);
  transform: skewX(-20deg);
  animation: buttonShine 2.7s ease-in-out infinite;
}

.gate-button:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 24px 70px rgba(255, 200, 61, 0.48);
}

.gate-button i {
  font-style: normal;
  animation: spin 4s linear infinite;
}

.gate-card small {
  display: block;
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.44);
  font-size: 9px;
  letter-spacing: 0.1em;
}

.gate-beam {
  position: absolute;
  top: -25%;
  z-index: -1;
  width: 22vw;
  height: 150vh;
  filter: blur(11px);
  opacity: 0.34;
  transform-origin: top center;
}

.gate-beam-left {
  left: 5%;
  background: linear-gradient(180deg, rgba(255, 79, 139, 0.8), transparent 72%);
  transform: rotate(-18deg);
  animation: beamLeft 5s ease-in-out infinite alternate;
}

.gate-beam-right {
  right: 5%;
  background: linear-gradient(180deg, rgba(97, 227, 244, 0.78), transparent 72%);
  transform: rotate(18deg);
  animation: beamRight 5.5s ease-in-out infinite alternate;
}

.gate-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 200, 61, 0.82), transparent);
}

.gate-line-top { top: 8%; }
.gate-line-bottom { bottom: 8%; }

.gate-star {
  position: absolute;
  color: white;
  animation: twinkle var(--twinkle-speed) ease-in-out infinite;
}

.starfield {
  position: fixed;
  inset: 0;
  z-index: 18;
  pointer-events: none;
  overflow: hidden;
}

.ambient-star {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 0 12px white;
  animation: ambientFloat var(--float-speed) linear infinite;
}

.pointer-glow {
  position: fixed;
  z-index: 17;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 200, 61, 0.14), rgba(142, 92, 255, 0.07) 38%, transparent 68%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity 300ms ease;
}

body:hover .pointer-glow {
  opacity: 1;
}

.stage-lights {
  position: absolute;
  inset: 0 0 auto;
  z-index: 2;
  display: flex;
  justify-content: space-around;
  pointer-events: none;
}

.stage-lights span {
  width: 13vw;
  height: 65vh;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.28), transparent 72%);
  filter: blur(10px);
  clip-path: polygon(45% 0, 55% 0, 100% 100%, 0 100%);
  transform-origin: 50% 0;
  opacity: 0.22;
  animation: stageSweep 8s ease-in-out infinite alternate;
}

.stage-lights span:nth-child(2) { animation-delay: -1.2s; filter: hue-rotate(80deg) blur(10px); }
.stage-lights span:nth-child(3) { animation-delay: -3s; }
.stage-lights span:nth-child(4) { animation-delay: -4.5s; filter: hue-rotate(220deg) blur(10px); }
.stage-lights span:nth-child(5) { animation-delay: -6s; }

.hero-giant-date {
  position: absolute;
  left: 50%;
  bottom: -4%;
  z-index: -1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.16);
  font-family: "Fraunces", serif;
  font-size: clamp(160px, 29vw, 480px);
  font-weight: 900;
  letter-spacing: -0.09em;
  white-space: nowrap;
  transform: translateX(-50%);
  pointer-events: none;
}

body.party-on .hero,
body.party-on .final-cta {
  animation: partyHue 3.5s linear infinite;
}

.wow-strip {
  position: relative;
  padding: 115px max(24px, calc((100vw - 1200px) / 2));
  color: white;
  background: #12051f;
  overflow: hidden;
  isolation: isolate;
}

.wow-strip::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(rgba(255, 255, 255, 0.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.032) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, transparent, black 20%, black 80%, transparent);
}

.wow-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: clamp(12px, 3vw, 52px);
}

.wow-item {
  text-align: center;
}

.wow-item strong {
  display: block;
  font-family: "Fraunces", serif;
  font-size: clamp(92px, 15vw, 220px);
  font-weight: 900;
  line-height: 0.78;
  letter-spacing: -0.085em;
  color: transparent;
  -webkit-text-stroke: 2px rgba(255, 255, 255, 0.56);
}

.wow-item-main strong {
  color: var(--gold);
  -webkit-text-stroke: 0;
  filter: drop-shadow(0 0 40px rgba(255, 200, 61, 0.22));
}

.wow-item span {
  display: inline-block;
  margin-top: 28px;
  font-size: clamp(11px, 1.2vw, 16px);
  font-weight: 900;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.wow-symbol {
  color: var(--pink);
  font-family: "Fraunces", serif;
  font-size: clamp(38px, 5vw, 70px);
}

.wow-caption {
  max-width: 650px;
  margin: 62px auto 0;
  color: rgba(255, 255, 255, 0.57);
  text-align: center;
  font-size: 13px;
  line-height: 1.8;
}

.wow-orb {
  position: absolute;
  z-index: -1;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(55px);
  opacity: 0.28;
  animation: orbDrift 8s ease-in-out infinite alternate;
}

.wow-orb-one {
  top: -200px;
  left: -100px;
  background: var(--pink);
}

.wow-orb-two {
  right: -100px;
  bottom: -220px;
  background: var(--violet);
  animation-delay: -3s;
}

.statement {
  padding: 80px 0 90px;
  color: var(--ink);
  background: var(--gold);
  border-top: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
  overflow: hidden;
  transform: rotate(-1deg) scale(1.02);
}

.statement-row {
  width: max-content;
  display: flex;
  align-items: center;
  gap: 32px;
  white-space: nowrap;
  font-family: "Fraunces", serif;
  font-size: clamp(60px, 9vw, 135px);
  font-weight: 900;
  line-height: 0.94;
  letter-spacing: -0.055em;
}

.statement-row b {
  color: var(--pink);
}

.statement-row-one {
  animation: statementLeft 22s linear infinite;
}

.statement-row-two {
  margin-top: 16px;
  color: transparent;
  -webkit-text-stroke: 2px var(--ink);
  animation: statementRight 20s linear infinite;
}

.person-card,
.photo-card {
  transform-style: preserve-3d;
  will-change: transform;
}

.person-card > *,
.photo-card figcaption {
  transform: translateZ(22px);
}

@keyframes gateZoom {
  to { transform: scale(1.09); }
}

@keyframes twinkle {
  0%, 100% { opacity: 0.25; transform: scale(0.7) rotate(0); }
  50% { opacity: 1; transform: scale(1.2) rotate(45deg); }
}

@keyframes buttonShine {
  0%, 40% { left: -100%; }
  75%, 100% { left: 155%; }
}

@keyframes beamLeft {
  to { transform: rotate(15deg); }
}

@keyframes beamRight {
  to { transform: rotate(-15deg); }
}

@keyframes stageSweep {
  from { transform: rotate(-18deg); opacity: 0.12; }
  to { transform: rotate(18deg); opacity: 0.32; }
}

@keyframes ambientFloat {
  from { transform: translateY(110vh) scale(0.5); opacity: 0; }
  20% { opacity: 0.7; }
  80% { opacity: 0.7; }
  to { transform: translateY(-20vh) scale(1.2); opacity: 0; }
}

@keyframes partyHue {
  to { filter: hue-rotate(360deg); }
}

@keyframes orbDrift {
  to { transform: translate(100px, 70px) scale(1.25); }
}

@keyframes statementLeft {
  to { transform: translateX(-33.333%); }
}

@keyframes statementRight {
  from { transform: translateX(-33.333%); }
  to { transform: translateX(0); }
}

@media (max-width: 760px) {
  .gate-card {
    border-radius: 26px;
  }

  .gate-card::before,
  .gate-card::after {
    font-size: 22px;
  }

  .wow-strip {
    padding-block: 90px;
  }

  .wow-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .wow-symbol {
    line-height: 0.6;
    transform: rotate(90deg);
  }

  .wow-item strong {
    font-size: 112px;
  }

  .wow-item span {
    margin-top: 15px;
  }

  .wow-caption {
    margin-top: 44px;
  }

  .statement {
    padding-block: 55px 65px;
  }

  .statement-row {
    font-size: 62px;
  }
}

@media (hover: none), (pointer: coarse) {
  .pointer-glow {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .invite-gate,
  .invite-gate * {
    animation: none !important;
  }
}
