/* Compact first screen with static decoration and content in normal flow. */
.hero--compact .hero__content,
.hero--compact .hero__actions {
  position: relative;
  inset: auto;
}

.hero--compact .hero__canvas { inset: 0; }

.hero__gift-label { display: none; }
.hero__layout,
.hero__message { display: contents; }
.hero__photo-frame { display: none; }

.hero__flow {
  position: absolute;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  background: url("./assets/decor/hero-waves-desktop.svg") center / 100% 100% no-repeat;
}

@media (min-width: 761px) {
  .hero--compact {
    --hero-desktop-height: clamp(560px, 74svh, 720px);
    --hero-desktop-top: clamp(112px, 13.5svh, 146px);
    --hero-frame-limit: calc((var(--hero-desktop-height) - var(--hero-desktop-top) - 64px) * 4 / 3);
    min-height: 0;
    padding-top: var(--hero-desktop-top);
    /* Gives the lower wave equal breathing room between the hero and the three cards. */
    padding-bottom: 32px;
    -webkit-mask: url("./assets/decor/hero-bottom-mask.svg?v=20261104-1") 0 0 / 100% 100% no-repeat;
    mask: url("./assets/decor/hero-bottom-mask.svg?v=20261104-1") 0 0 / 100% 100% no-repeat;
  }

  .hero--compact .hero__layout {
    --hero-column-gap: clamp(28px, 4vw, 64px);
    --hero-outer-gap: max(48px, calc((100vw - 1440px) / 2));
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
    grid-template-rows: minmax(0, 1fr) max-content;
    align-items: start;
    column-gap: var(--hero-column-gap);
    row-gap: 0;
    width: min(calc(100% - 96px), 1440px);
    margin: 0 auto;
  }

  .hero--compact .hero__message { display: contents; }

  .hero--compact .hero__photo-frame {
    grid-column: 1;
    grid-row: 1 / 3;
    align-self: end;
    display: block;
    width: min(94%, var(--hero-frame-limit));
    margin-left: calc((100% + var(--hero-column-gap) - min(94%, var(--hero-frame-limit)) - var(--hero-outer-gap)) / 2);
    aspect-ratio: 4 / 3;
    border: 1.5px solid rgba(227, 178, 91, .9);
    border-radius: 24px;
    background: linear-gradient(145deg, rgba(225, 174, 91, .025), rgba(14, 5, 3, .12));
    box-shadow: 0 1px 0 rgba(255, 224, 171, .08) inset;
  }

  .hero--compact .hero__content {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    width: auto;
    max-width: none;
    margin: 0;
    align-self: stretch;
  }
  .hero--compact h1 {
    order: 1;
    flex-shrink: 0;
    align-self: stretch;
    width: calc(100% + 24px);
    max-width: none;
    margin-left: -12px;
    text-align: center;
  }
  .hero--compact .hero__eyebrow { display: none; }
  .hero--compact .hero__features {
    order: 3;
    flex-shrink: 0;
    margin: auto 0;
  }
  .hero--compact .hero__gift-label {
    display: block;
    margin-bottom: 8px;
    color: #e5bb7d;
    font-size: clamp(20px, 1.55vw, 24px);
    line-height: 1.1;
    letter-spacing: .04em;
    text-align: center;
  }
  .hero--compact .hero__actions {
    grid-column: 2;
    grid-row: 2;
    align-self: end;
    display: flex;
    width: 100%;
    margin: 0;
    gap: clamp(12px, 1.3vw, 20px);
    flex-wrap: nowrap;
  }
  .hero--compact .hero__actions .button {
    flex: 1 1 0;
    min-width: 0;
    justify-content: center;
  }
  .hero--compact + .lower-night { margin-top: -32px; padding-top: 32px; }

  .hero--compact .hero__dark-surface {
    inset: 0;
    width: 100%;
    height: 100%;
    -webkit-mask-image: none;
    mask-image: none;
    clip-path: none;
    background:
      radial-gradient(circle at 78% var(--glow-y), rgba(101, 27, 15, .31), transparent 33%),
      radial-gradient(circle at 66% 79%, rgba(72, 17, 10, .42), transparent 30%),
      radial-gradient(circle at 92% 8%, rgba(77, 20, 12, .17), transparent 28%),
      linear-gradient(232deg, #0b0201 0, #1b0503 46%, #0e0302 76%, #040101 100%);
    box-shadow: 30px -20px 60px rgba(52, 10, 5, .28) inset;
  }

  .hero--compact .hero__flow {
    left: 0;
    background-size: 100vw 100%;
    background-position: left center;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .hero--compact .hero__atmosphere {
    background:
      radial-gradient(circle at 78% 46%, rgba(209, 135, 65, .08), transparent 27%),
      radial-gradient(circle at 90% 38%, rgba(174, 116, 55, .045), transparent 31%),
      linear-gradient(248deg, rgba(255, 223, 174, .045), transparent 39%, rgba(95, 53, 26, .025) 70%, transparent);
  }

  .hero--compact .hero__ember--one { left: 69%; }
  .hero--compact .hero__ember--two { left: 54%; }

  .hero--compact .hero__transition { display: none; }
}

@media (min-width: 1001px) and (max-width: 1200px) {
  .hero--compact h1 { font-size: clamp(38px, 4vw, 49px); }
  .hero--compact .hero__features { gap: 12px; }
  .hero--compact .hero__features li { font-size: 18px; }
}

@media (min-width: 761px) and (max-width: 1000px) {
  .hero--compact { --hero-desktop-top: 112px; }
  .hero--compact h1 { font-size: 28px; }
  .hero--compact .hero__features li { font-size: 14px; }
  .hero--compact .hero__features { gap: 4px; }
}

@media (max-width: 760px) {
  .hero--compact { min-height: 0; padding-bottom: 42px; }

  .hero--compact .hero__content {
    width: auto;
    max-width: none;
    margin: 0 6%;
    padding: 84px 0 0;
  }

  .hero--compact .hero__actions { margin: 24px 6% 0; }

  .hero--compact h1 { text-align: center; }

  .hero--compact .hero__gift-label {
    display: block;
    margin-bottom: 8px;
    color: #e5bb7d;
    font-size: 20px;
    line-height: 1.1;
    letter-spacing: .04em;
  }

  .hero__flow { background-image: url("./assets/decor/hero-waves-mobile.svg"); }
}
