:root {
  --bg: #f5eedf;
  --bg-deep: #ecdcb8;
  --ink: #162238;
  --muted: #626c79;
  --accent: #c19036;
  --shadow: 0 24px 64px rgba(22, 34, 56, 0.12);
  --safe-top: env(safe-area-inset-top);
  --safe-bottom: env(safe-area-inset-bottom);
}

* {
  box-sizing: border-box;
}

html {
  height: 100%;
  height: -webkit-fill-available;
  background-color: var(--bg);
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0) 32%),
    linear-gradient(180deg, #faf5ea 0%, var(--bg) 46%, var(--bg-deep) 100%);
  color: var(--ink);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overscroll-behavior-y: none;
}

body {
  margin: 0;
  height: 100%;
  min-height: 100%;
  background-color: var(--bg);
  font-family: "Manrope", sans-serif;
  color: var(--ink);
  overflow: hidden;
  position: relative;
  overscroll-behavior-y: none;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.24;
  background-image:
    linear-gradient(90deg, rgba(22, 34, 56, 0.03) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.24) 1px, transparent 1px);
  background-size: 28px 28px, 100% 100%;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent);
}

.page {
  width: min(720px, 100%);
  margin: 0 auto;
  height: 100svh;
  max-height: 100svh;
  padding: calc(12px + var(--safe-top)) 18px calc(16px + var(--safe-bottom));
  position: relative;
  z-index: 1;
  display: flex;
  overflow: hidden;
}

.hero {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 12px;
  min-height: 0;
  align-content: center;
}

.hero-copy {
  display: grid;
  gap: 8px;
  text-align: center;
  flex: 0 0 auto;
  position: relative;
  z-index: 4;
}

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

h1 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(4rem, 18vw, 6.4rem);
  line-height: 0.9;
  letter-spacing: -0.06em;
}

.lead {
  margin: 0 auto;
  max-width: 34rem;
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--muted);
}

.lead strong {
  color: var(--ink);
}

.hero-image {
  position: relative;
  overflow: visible;
  padding: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.image-halo {
  position: absolute;
  inset: 8% 10% 22%;
  border-radius: 999px;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.08) 52%, rgba(255, 255, 255, 0) 70%),
    radial-gradient(circle, rgba(193, 144, 54, 0.28), rgba(193, 144, 54, 0.05) 40%, rgba(193, 144, 54, 0) 66%);
  filter: blur(22px);
}

.portrait {
  position: relative;
  z-index: 1;
  display: block;
  width: min(100%, 430px);
  margin: 0 auto;
  height: auto;
  filter: drop-shadow(0 20px 45px rgba(22, 34, 56, 0.16));
  mask-image: linear-gradient(180deg, #000 0%, #000 84%, rgba(0, 0, 0, 0.12) 95%, transparent 100%);
}

.confetti-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 3;
}

.confetti-piece {
  position: absolute;
  top: -12vh;
  width: 8px;
  height: 18px;
  opacity: 0.75;
  border-radius: 2px;
  will-change: transform;
  animation-name: confetti-fall;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

.confetti-piece.square {
  border-radius: 1px;
}

.confetti-piece.slim {
  width: 6px;
  height: 14px;
}

@keyframes confetti-fall {
  from {
    transform: translate3d(0, -12vh, 0) rotate(0deg);
  }

  to {
    transform: translate3d(var(--drift), 112vh, 0) rotate(var(--spin));
  }
}

@media (min-width: 720px) {
  .page {
    width: min(1180px, 100%);
    padding-left: 40px;
    padding-right: 40px;
    padding-bottom: calc(24px + var(--safe-bottom));
  }

  .hero {
    grid-template-rows: none;
    grid-template-columns: minmax(360px, 460px) minmax(440px, 620px);
    align-items: center;
    justify-content: center;
    gap: 56px;
  }

  .hero-copy {
    gap: 14px;
    text-align: left;
    max-width: 440px;
  }

  .eyebrow {
    font-size: 0.9rem;
  }

  h1 {
    font-size: clamp(5.4rem, 9vw, 8.4rem);
  }

  .lead {
    font-size: 1.34rem;
    line-height: 1.6;
    margin: 0;
  }

  .hero-image {
    margin-top: 0;
    justify-content: center;
  }

  .portrait {
    width: min(100%, 620px);
  }

  .image-halo {
    inset: 10% 8% 18%;
    filter: blur(28px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .confetti-piece {
    animation: none;
    opacity: 0.2;
  }
}
