.page {
  height: 100vh;
  display: flex;
  flex-direction: column;
  --footer-height: 4.94rem;
}

.main {
  flex: 1;
  margin-bottom: var(--gap-pad);
}

h1 {
  font-family: "obviously-narrow", sans-serif;
  font-size: 7.05rem;
  text-transform: uppercase;
  letter-spacing: -.05em;
  text-align: center;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  line-height: var(--height);
  --height: 1em;
  --time: .8s;
  padding: 0 var(--container-pad);
}

.anime-word {
  --ease: cubic-bezier(0.7, 0, 0.2, 1); /* style du mouvement */
  display: inline-block;
  vertical-align: top;
  text-align: left;
  white-space: pre;
  height: var(--height);
  line-height: var(--height);
  --bar-height: 1.3em; /* hauteur du rectangle (celle des majuscules, à peu près) */
  --bar-shift: 0em; /* pour descendre (+) ou monter (-) le rectangle */
  --bar-pad: .35rem; /* débord à gauche et à droite du mot */
  --bar-color: currentColor;
}

.anime-bar {
  position: absolute;
  left: calc(var(--bar-pad) * -1);
  top: 50%;
  margin-top: calc(var(--bar-height) / -2.5 + var(--bar-shift));
  box-sizing: content-box;
  height: var(--bar-height);
  width: 0;
  padding: 0 var(--bar-pad);
  background: var(--bar-color);
  transform: scaleX(0);
  transform-origin: left;
  pointer-events: none;
}

.anime-word.lilas {
  color: var(--lilas);
}

.anime-column {
  box-sizing: content-box;
  display: inline-block;
  vertical-align: top;
  height: var(--height);
  line-height: var(--height);
  clip-path: inset(0 -1em);
  transition: width var(--time) var(--ease);
}

.anime-stack {
  display: flex;
  flex-direction: column;
  transition: transform var(--time) var(--ease);
}

.anime-stack span {
  display: block;
  height: var(--height);
}

.anime-stack.is-sliding {
  transform: translateY(-50%);
}

.anime-probe {
  position: absolute;
  visibility: hidden;
  white-space: pre;
}

.container {
  height: 100%;
}

.home-bio {
  font-size: .85rem;
  width: 500px;
  position: absolute;
  left: 0;
  bottom: 0;
}

footer {
  margin-top: 0;
  position: absolute;
  bottom: calc(-1 * (var(--gutter)));
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--white);
  opacity: 0;
  pointer-events: none;
  transition: var(--animation-nav);
}

.to-top {
  display: none;
}

.infos {
  display: block;
  font-family: "Overused Grotesk", 'sans-serif';
  text-transform: uppercase;
  font-size: .7rem;
  color: rgba(var(--lilas-rgb), .5);
  position: absolute;
  bottom: 0;
  right: 0;
  transition: var(--animation-nav);
}

.infos:hover {
  color: rgba(var(--lilas-rgb), 1);
}

.footer-open footer {
  bottom: var(--gutter);
  opacity: 1;
  pointer-events: auto;
}

.footer-open .infos {
  bottom: calc(var(--footer-height) + var(--gutter));
}


@media screen and (max-width: 1260px) {
  h1 strong {
    width: 564px
  }

  h1 {
    display: flex;
    justify-content: center;
    text-align: left;
  }
}

@media screen and (max-width: 650px) {

  .main {
    flex: none;
    height: 100svh;
    padding-top: 0;
  }

  h1 {
    position: absolute;
    width: 100%;
    padding: 0;
    font-size: 5.5rem;
  }

  .home-bio {
    width: 100%;
    right: auto;
    left: 0;
    transform: none;
    margin-bottom: var(--gutter);
  }

  .home-bio p {
    width: 90%;
  }

  footer {
    position: relative;
    opacity: 1;
    pointer-events: auto;
    padding-bottom: var(--gutter);
  }

  .infos {
    display: none;
  }
}

@media screen and (max-width: 550px) {
  h1 {
    font-size: 5.25rem;
  }
}

@media screen and (max-width: 450px) {
  h1 {
    font-size: 4rem;
  }
}

@media screen and (max-width: 350px) {
  h1 {
    font-size: 3.5rem;
  }
}
