/* Hero: the painting is the page. Text sits on the sky. */
.hero {
  --sky-top: #081e88;
  --art-h: 56.25vw; /* the painting keeps its 16:9 shape and its full width */
  position: relative;
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  background: var(--sky-top);
  color: var(--on-art);
}

html[data-theme="night"] .hero {
  --sky-top: #040a30;
}

/* The painting keeps its full width at the bottom; the sky above it is extended in the same colour,
   so taller screens get more room for the headline instead of a cropped painting. */
.hero__art {
  position: absolute;
  inset: auto 0 0;
  z-index: -2;
  width: 100%;
  height: var(--art-h);
  object-fit: cover;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 9%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 9%);
}

/* Tall screens (phones, portrait tablets): the painting becomes a band at the bottom,
   cropped to the village on the left, and the sky above grows to hold the text. */
@media (max-aspect-ratio: 6/5) {
  .hero {
    --art-h: clamp(300px, 46svh, 560px);
  }

  .hero__art {
    object-position: 8% 100%;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 16%);
    mask-image: linear-gradient(to bottom, transparent 0, #000 16%);
  }
}

.hero__picture {
  display: contents;
}

/* keeps cream type readable where the painting is busy */
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 52% 46% at 50% 36%, rgb(30 41 39 / 0.5), transparent 75%),
    linear-gradient(to bottom, rgb(30 41 39 / 0.28), transparent 38%);
  pointer-events: none;
}

.hero__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  align-self: start;
  gap: clamp(12px, 2svh, 20px);
  width: 100%;
  max-width: 980px;
  margin-inline: auto;
  padding: clamp(104px, 15svh, 150px) var(--gutter) clamp(110px, 16svh, 170px);
  text-align: center;
}

.hero__eyebrow {
  color: var(--on-art);
}

.hero__title {
  max-width: 13em;
  font-size: clamp(2.6rem, min(1rem + 5.4vw, 12.5svh), 5.9rem);
  color: var(--cream-50);
  text-shadow: 0 2px 28px rgb(30 41 39 / 0.35);
}

.hero__title em {
  color: var(--gold-500);
  font-style: normal;
}

.hero__lede {
  max-width: 34em;
  color: var(--on-art);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 18px 26px;
  margin-top: 6px;
}

/* waitlist (shared by the hero and the closing panel) */
.waitlist {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: 100%;
}

.waitlist--hero {
  max-width: 620px;
  gap: 12px;
  margin-top: 4px;
  padding: 18px 22px 8px;
  border: 1px solid rgb(246 244 238 / 0.18);
  border-radius: 28px;
  /* darker toward the bottom, where the plate sits over the bright village */
  background: linear-gradient(to bottom, rgb(30 41 39 / 0.5), rgb(30 41 39 / 0.84));
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.waitlist__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0 20px;
  width: 100%;
}

.waitlist__row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: center;
  gap: 14px 18px;
  width: 100%;
  padding-bottom: 16px; /* room for the field's hint, which sits under the line while you type */
}

.waitlist__msg {
  color: var(--gold-500);
  font-size: 0.9375rem;
  font-weight: 600;
}

.waitlist__bar {
  width: 100%;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--on-art);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: normal;
}

.waitlist--hero .uv-arrowlink {
  margin-bottom: 4px;
}

@media (max-width: 767px) {
  .hero__content {
    padding-top: 100px;
    padding-bottom: 96px;
  }

  .waitlist--hero {
    padding: 14px 16px 6px;
  }

  .uv-scrollcue__label {
    display: none;
  }

  .waitlist__row {
    flex-direction: column;
    align-items: stretch;
    row-gap: 24px;
    padding-bottom: 0;
  }

  .waitlist__row .uv-field {
    flex: 0 0 auto;
  }

  .waitlist .uv-glow {
    width: 100%;
  }
}

@media (max-height: 760px) and (min-width: 768px) {
  .hero__title {
    font-size: clamp(2.6rem, 1rem + 5.4vw, 5.6rem);
  }
}

.hero__or {
  margin-top: 6px;
  color: var(--on-art);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: normal;
  text-transform: none;
  text-shadow: 0 1px 10px rgb(30 41 39 / 0.8);
}
