html.orbit[data-orbit-page="home"] main {
  --curtain-radius: 40px;
}

html.orbit[data-orbit-page="home"] main > section.focus-proof {
  position: relative;
  z-index: 2;
  margin-top: calc(-1 * var(--curtain-radius)) !important;
  border-radius: var(--curtain-radius) var(--curtain-radius) 0 0 !important;
}

html.orbit[data-orbit-page="home"][data-orbit-theme="dark"] main > section.focus-proof {
  background: var(--secondary) !important;
}

@media (max-width: 760px) {
  html.orbit[data-orbit-page="home"] main {
    --curtain-radius: 26px;
  }
}

@media (min-width: 761px) {
  /* The chat welcome bubble occupies the right edge as the sheet enters. */
  html.orbit[data-orbit-page="home"] .focus-proof .focus-section-top > a {
    margin-inline-end: max(0px, calc(176px - var(--home-gutter)));
  }
}

@media (min-width: 761px) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  html.orbit[data-orbit-page="home"] main > :is(section.focus-proof, section#first-meeting, .focus-home-close) {
    /* Keep the bottom attached to the following section as the top expands. */
    transform-origin: center bottom;
  }

  @supports (animation-timeline: view()) and (animation-range: cover 0px cover 70dvh) {
    html.orbit[data-orbit-page="home"] main > :is(section.focus-proof, section#first-meeting, .focus-home-close) {
      animation: home-curtain-enter 1ms linear;
      animation-timeline: view(block 0px);
      animation-range: cover 0px cover 70dvh;
    }
  }
}

@keyframes home-curtain-enter {
  from {
    transform: scale(0.94);
  }

  to {
    transform: scale(1);
  }
}


@media (max-width: 760px) and (prefers-reduced-motion: no-preference) {
  html.orbit[data-orbit-page="home"] main > :is(section.focus-proof, section#first-meeting) {
    transform-origin: center bottom;
  }

  @supports (animation-timeline: view()) and (animation-range: cover 0px cover 70dvh) {
    html.orbit[data-orbit-page="home"] main > :is(section.focus-proof, section#first-meeting) {
      animation: home-curtain-enter 1ms linear;
      animation-timeline: view(block 0px);
      animation-range: cover 0px cover 70dvh;
    }
  }
}
