/* The coming soon page (views/pages/soon.php): on phones the photo on top, fading into the white, then the words;
   from 992px the photo fills the left of the screen and the words sit beside it. */
.soon {
  display: grid;
  min-height: 100vh;
  min-height: 100dvh;
  grid-template-rows: auto 1fr; /* the photo keeps its own height; the words take the rest of the screen */
  background-color: var(--c-page);
}

@media (min-width: 992px) {
  .soon {
    grid-template-columns: min(50%, var(--soon-photo-w)) minmax(0, 1fr);
    grid-template-rows: auto;
  }
}

/* --- The photo --- */
.soon__picture {
  display: block; /* <picture> is inline by default, which made the fade below only a line of text tall */
  position: relative;
}

/* Phones and tablets: the photo's lower edge fades into the page's white. The fade eases in and is fully white for
   the last few pixels, so no edge shows where the photo stops. */
.soon__picture::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 50%;
  background-image: linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.35) 35%, rgba(255, 255, 255, 0.8) 65%, var(--c-page) 90%);
}

.soon__photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 75% 15%;
}

@media (min-width: 576px) {
  .soon__picture::after {
    height: 35%; /* tablets: the fade starts lower, below her face */
  }

  .soon__photo {
    aspect-ratio: 16 / 9;
    object-position: center 10%; /* tablets: a closer crop of the upright photo, her face in the middle */
  }
}

/* From 992px the photo stays in place, the full height of the screen, while the words scroll if they need to. */
@media (min-width: 992px) {
  .soon__picture::after {
    content: none;
  }

  .soon__photo {
    position: sticky;
    top: 0;
    height: 100vh;
    height: 100dvh;
    aspect-ratio: auto;
    object-position: 88% 15%; /* keeps Dr. Beran in the middle of the narrower photo */
  }
}

/* --- The words and the form --- */
.soon__side {
  display: flex;
  flex-direction: column;
  gap: var(--sp-8);
  padding: var(--sp-6) var(--sp-6) var(--sp-8);
}

@media (min-width: 576px) {
  .soon__side {
    padding-block: var(--sp-10);
  }
}

@media (min-width: 992px) {
  .soon__side {
    align-items: center; /* the words sit in the middle of the wide right side, no wider than --soon-text-w */
    padding: var(--sp-12) var(--sp-16);
  }

  .soon__body,
  .soon__foot {
    width: 100%;
    max-width: var(--soon-text-w);
  }
}

.soon__body {
  display: grid;
  gap: var(--sp-4);
  margin-block: auto;
}

.soon__eyebrow {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--c-accent-text);
}

.soon__title {
  font-size: var(--fs-h1);
}

.soon__text {
  max-width: 44ch;
}

/* The email box, with the button under it: full width on phones, its own width from 576px. */
.soon__form {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  max-width: var(--soon-text-w);
}

.soon__button {
  justify-content: center;
}

@media (min-width: 576px) {
  .soon__button {
    align-self: flex-start;
  }
}

.soon__note {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-small);
  color: var(--c-text-muted);
}

.soon__note .bi {
  color: var(--c-tick);
}

/* After sending: the thank you in the form's place. */
.soon__sent {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  max-width: var(--soon-text-w);
  padding: var(--sp-4);
  border-radius: var(--radius-2);
  background-color: var(--c-success-bg);
}

.soon__sent .bi {
  color: var(--c-tick);
}

.soon__foot {
  font-size: var(--fs-small);
  color: var(--c-text-muted);
}
