.root {
  position: relative;
  height: 100%;
  display: grid;
  grid-template: "header header" auto
                  "hero hero" auto
                  "list list" 1fr / 1fr 1fr;
  gap: 6rem;
  padding: 1.5rem;

  overflow: hidden auto;
  overscroll-behavior: none;
}

.root__bg {
  position: absolute;
  top: 0;
  left: 0;
  aspect-ratio: 375 / 341;
  width: 70%;
  z-index: -1;
  pointer-events: none;
}

.header {
  grid-area: header;
  display: flex;
  justify-content: flex-end;
}

.header__logo {
  object-fit: contain;
  width: 129px;
}

.hero {
  grid-area: hero;
  display: flex;
  flex-direction: column;
  gap: 4rem;
  min-height: calc(100vh - 4.25rem - 4rem - 5rem);
}

.hero__image {
  display: flex;
  justify-content: flex-end;
  margin-top: auto;
  min-height: 0;
}

.hero__image-object-wrapper {
  display: flex;
  flex: 1;
  object-fit: contain;
  max-width: clamp(13rem, 100%, 74vw);
}

.hero__image-object {
  width: 100%;
  height: 100%;
}

.hero-footer {
  display: flex;
  gap: 2rem;
  margin-top: auto;
}

.hero-text {
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.33;
  text-align: left;
}

.list {
  grid-area: list;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.card {
  border-radius: 1rem;
  background-color: var(--white);
  color: var(--black);
  aspect-ratio: 0.78;
  display: flex;
  flex-direction: column;
  padding: 0.25rem;
  background-size: cover;
}

.card__footer {
  margin-top: auto;
  display: flex;
  gap: 0.25rem;
}

.card__icon {
  border-radius: 50%;
  background-color: var(--white);
}

.card:not(.card--with-text, .card--with-animation) .card__footer {
  display: none;
}

.card:not(.card--with-text) .card__icon--text,
.card:not(.card--with-animation) .card__icon--animation {
  display: none;
}

.scroll-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background-color: var(--green);
  color: var(--white);
  flex: 0;
  align-self: flex-end;
}

.bottom-sheet {
  background-color: var(--white);
  inset-block-start: unset;
  top: unset;
  bottom: 0;
  width: 100%;
  position: absolute;
  max-width: unset;
  margin: unset;
  margin-top: auto;
  border-radius: 1rem 1rem 0 0;
  border: none;
  overflow: visible;
  padding: 1.5rem;
}

.bottom-sheet[open] {
  animation: slide-up var(--duration--short) var(--easing--in-out);
}

@keyframes slide-up {
  from {
    transform: translateY(80%);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.bottom-sheet__close {
  border: none;
  border-radius: 0.5rem;
  padding: 0.5rem;
  appearance: none;
  background: var(--main-100) none;
  position: absolute;
  top: -1.25rem;
}

.bottom-sheet__main {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.bottom-sheet__controls {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media screen and (min-width: 375px) {
  .root {
    grid-gap: 3rem 0;
  }
}

@media screen and (min-width: 744px) {
  .hero-text {
    text-align: center;
    font-size: 3rem;
    line-height: 1.5;
  }

  .hero__image {
    justify-content: center;
  }

  .scroll-hint {
    display: none;
  }
}

@media screen and (min-width: 960px) {
  .root {
    grid-template: "header list" auto
                  "hero list" 1fr / 1fr 1fr;
  }

  .root__bg {
    width: unset;
  }

  .hero-footer {
    margin-top: unset;
  }

  .list {
    overflow: auto;
    margin: -1.5rem;
    margin-left: 0;
    padding: 1.5rem;
    padding-left: 3rem;

    background: url("../assets/images/tile--m.svg");
  }

  .bottom-sheet {
    width: unset;
    top: 0;
    bottom: 0;
    margin: auto;
    max-width: 50%;
    border-radius: 1rem;
    overflow: visible;
    padding: 1.5rem;
  }

  .card__footer {
    padding: 0.5rem;
  }

  .card__icon {
    width: 2rem;
    height: 2rem;
    padding: 0.25rem;
  }
}
