:root {
  color-scheme: dark;
  --ink: #f9f2f4;
  --muted: #b9a8ae;
  --night: #0c070a;
  --night-soft: #170c11;
  --wine: #751c3d;
  --rose: #e35484;
  --blush: #ffb5cb;
  --line: rgba(255, 255, 255, 0.14);
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.52);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 21% 12%, rgba(117, 28, 61, 0.28), transparent 28rem),
    linear-gradient(125deg, #10080c 0%, #080608 50%, #16090e 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

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

.page-shell {
  position: relative;
  min-height: 100svh;
  isolation: isolate;
}

.page-shell::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: 0.18;
  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='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.42'/%3E%3C/svg%3E");
}

.topbar {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 20;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: clamp(1.5rem, 3vw, 2.5rem) clamp(1.35rem, 4.5vw, 4.8rem);
  pointer-events: none;
}

.wordmark,
.age-mark {
  pointer-events: auto;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ink);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-decoration: none;
  text-transform: uppercase;
}

.wordmark-mark {
  display: grid;
  width: 2rem;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  font-style: italic;
  letter-spacing: 0;
}

.age-mark {
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.22em;
}

.landing {
  display: grid;
  min-height: 100svh;
  grid-template-columns: minmax(22rem, 0.88fr) minmax(33rem, 1.12fr);
}

.invitation {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  padding: 7.25rem clamp(2.25rem, 5vw, 6.8rem) 4.5rem;
}

.copy-wrap {
  width: min(34rem, 100%);
}

.eyebrow {
  display: flex;
  margin: 0 0 1.35rem;
  align-items: center;
  gap: 0.85rem;
  color: var(--blush);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.eyebrow span {
  display: block;
  width: 2.5rem;
  height: 1px;
  background: currentColor;
}

h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(4.5rem, 8.2vw, 9.4rem);
  font-weight: 400;
  letter-spacing: -0.065em;
  line-height: 0.76;
}

h1 em {
  color: var(--blush);
  font-weight: 400;
}

.intro {
  width: min(30rem, 92%);
  margin: clamp(2.2rem, 5vh, 3.8rem) 0 2rem;
  color: #d5c8cd;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.05rem, 1.35vw, 1.35rem);
  line-height: 1.65;
}

.private-button {
  position: relative;
  display: inline-flex;
  min-width: min(21rem, 100%);
  min-height: 4.25rem;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  overflow: hidden;
  padding: 0.75rem 0.85rem 0.75rem 1.65rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  color: white;
  background: linear-gradient(115deg, #8c2049, #d23e71);
  box-shadow: 0 16px 48px rgba(157, 26, 75, 0.34);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.private-button::before {
  position: absolute;
  top: -100%;
  left: -35%;
  width: 34%;
  height: 300%;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  transform: rotate(18deg);
  transition: left 520ms ease;
}

.private-button svg {
  z-index: 1;
  width: 2.75rem;
  height: 2.75rem;
  flex: 0 0 auto;
  padding: 0.7rem;
  border-radius: 50%;
  background: white;
  stroke: #8c2049;
  stroke-width: 1.8;
  fill: none;
}

.private-button span {
  z-index: 1;
}

.private-button:hover {
  filter: brightness(1.08);
  box-shadow: 0 20px 60px rgba(199, 43, 98, 0.42);
  transform: translateY(-2px);
}

.private-button:hover::before {
  left: 115%;
}

.private-button:active {
  transform: translateY(0) scale(0.985);
}

.private-button:focus-visible,
.motion-toggle:focus-visible,
.wordmark:focus-visible {
  outline: 3px solid var(--blush);
  outline-offset: 4px;
}

.destination {
  margin: 1rem 0 0 1.1rem;
  color: #8f7d84;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
}

.destination span {
  margin: 0 0.35rem;
}

.side-note {
  position: absolute;
  bottom: 2.15rem;
  left: clamp(2.25rem, 5vw, 6.8rem);
  margin: 0;
  color: rgba(255, 255, 255, 0.27);
  font-size: 0.62rem;
  letter-spacing: 0.28em;
}

.portrait-stage {
  position: relative;
  display: grid;
  min-height: 100svh;
  place-items: center;
  overflow: hidden;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(90deg, rgba(10, 6, 8, 0.55), transparent 24%),
    radial-gradient(circle at 52% 47%, rgba(197, 54, 103, 0.18), transparent 48%);
}

.glow {
  position: absolute;
  top: 50%;
  left: 52%;
  width: min(40vw, 38rem);
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(181, 49, 96, 0.15);
  filter: blur(72px);
  transform: translate(-50%, -50%);
}

.video-card {
  position: relative;
  z-index: 4;
  width: min(42vh, 23.5rem);
  aspect-ratio: 9 / 14;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.23);
  border-radius: 12rem 12rem 1.25rem 1.25rem;
  box-shadow: var(--shadow);
  animation: rise-in 900ms cubic-bezier(0.2, 0.75, 0.2, 1) both;
}

.video-card video,
.portrait-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-card video {
  display: block;
}

.video-shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 58%, rgba(10, 4, 7, 0.65));
}

.video-label {
  position: absolute;
  bottom: 1.3rem;
  left: 1.45rem;
  color: rgba(255, 255, 255, 0.86);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  font-style: italic;
}

.motion-toggle {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: grid;
  width: 2.75rem;
  aspect-ratio: 1;
  cursor: pointer;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 50%;
  color: white;
  background: rgba(14, 8, 10, 0.32);
  backdrop-filter: blur(12px);
}

.motion-toggle svg {
  width: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.motion-toggle .play-icon {
  display: none;
  fill: currentColor;
  stroke: none;
}

.motion-toggle.is-paused .pause-icon {
  display: none;
}

.motion-toggle.is-paused .play-icon {
  display: block;
}

.portrait-card {
  position: absolute;
  z-index: 2;
  width: clamp(9rem, 15vw, 14rem);
  aspect-ratio: 3 / 4;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 0.75rem;
  filter: saturate(0.78) brightness(0.76);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
}

.portrait-card::after {
  position: absolute;
  inset: 0;
  content: "";
  background: rgba(75, 15, 38, 0.13);
}

.portrait-card--left {
  left: clamp(1rem, 4vw, 4.5rem);
  transform: rotate(-7deg) translateY(2.2rem);
}

.portrait-card--right {
  right: clamp(0.75rem, 3vw, 3.2rem);
  transform: rotate(7deg) translateY(-2rem);
}

.floating-line {
  position: absolute;
  right: 2.4rem;
  bottom: 2.25rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.floating-line span {
  width: 2.4rem;
  height: 1px;
  background: rgba(255, 255, 255, 0.34);
}

.floating-line p {
  margin: 0;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.63rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(1.5rem) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 1100px) {
  .landing {
    grid-template-columns: minmax(20rem, 0.9fr) minmax(28rem, 1.1fr);
  }

  .portrait-card--left {
    left: -2rem;
  }

  .portrait-card--right {
    right: -2rem;
  }
}

@media (max-width: 820px) {
  body {
    background: #090608;
  }

  .topbar {
    position: fixed;
    padding: 1.15rem 1.1rem;
  }

  .age-mark {
    font-size: 0.58rem;
    letter-spacing: 0.14em;
  }

  .landing {
    position: relative;
    display: block;
    min-height: 100svh;
  }

  .portrait-stage {
    position: absolute;
    inset: 0;
    min-height: 100svh;
    border: 0;
  }

  .video-card {
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .video-card video {
    object-position: center 52%;
  }

  .video-shade {
    background:
      linear-gradient(180deg, rgba(8, 4, 6, 0.28) 0%, transparent 30%, rgba(9, 5, 7, 0.18) 48%, rgba(8, 4, 6, 0.96) 91%),
      linear-gradient(90deg, rgba(8, 4, 6, 0.2), transparent 40%);
  }

  .video-label,
  .portrait-card,
  .floating-line,
  .glow {
    display: none;
  }

  .motion-toggle {
    top: 4.9rem;
    right: 1.15rem;
  }

  .invitation {
    z-index: 10;
    min-height: 100svh;
    align-items: end;
    padding: 7rem 1.25rem max(1.45rem, env(safe-area-inset-bottom));
    background: linear-gradient(180deg, transparent 44%, rgba(8, 4, 6, 0.18) 55%, rgba(8, 4, 6, 0.96) 92%);
  }

  .copy-wrap {
    width: 100%;
  }

  .eyebrow {
    margin-bottom: 0.8rem;
    font-size: 0.66rem;
  }

  h1 {
    font-size: clamp(4rem, 20vw, 6rem);
    line-height: 0.79;
  }

  .intro {
    width: min(31rem, 100%);
    margin: 1.35rem 0 1.2rem;
    font-size: 1rem;
    line-height: 1.5;
  }

  .private-button {
    width: 100%;
    min-width: 0;
    min-height: 4rem;
  }

  .destination {
    margin: 0.7rem 0 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.48);
  }

  .side-note {
    display: none;
  }
}

@media (max-width: 420px) and (max-height: 720px) {
  .invitation {
    padding-bottom: 0.8rem;
  }

  h1 {
    font-size: 3.6rem;
  }

  .intro {
    margin: 0.85rem 0;
    font-size: 0.92rem;
  }

  .private-button {
    min-height: 3.65rem;
  }

  .destination {
    font-size: 0.62rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
