html.intro-running { overflow: hidden; }

#site-intro[open] {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  overflow: hidden;
  background: #000;
  color: #fff;
  box-shadow: none;
}
#site-intro::backdrop { background: transparent; }
.intro-lockup {
  --intro-fill: 0%;
  position: relative;
  display: grid;
  justify-items: center;
  gap: clamp(.8rem, 2.4vw, 1.35rem);
}
.intro-tree {
  position: relative;
  width: clamp(102px, 19vw, 174px);
  line-height: 0;
  transform-origin: center;
}
.intro-tree img { display: block; width: 100%; height: auto; }
.intro-tree::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(0deg, #86cd32, #caf775);
  mask: url("assets/simbolo.png") center / contain no-repeat;
  clip-path: inset(calc(100% - var(--intro-fill)) 0 0);
}
.intro-percent {
  display: block;
  min-width: 4ch;
  text-align: center;
  color: #e5f5d9;
  font: 600 clamp(.98rem, 2vw, 1.32rem)/1 "Instrument Sans", Arial, sans-serif;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.025em;
}
#site-intro:focus-visible { outline: none; }
#site-intro.intro-zoom { animation: abertura-revelar .76s cubic-bezier(.52,.06,.3,1) both; }
.intro-zoom .intro-tree { animation: atravessar-arvore .76s cubic-bezier(.55,.04,.31,1) both; }
.intro-zoom .intro-percent { opacity: 0; transition: opacity .16s ease; }

@keyframes atravessar-arvore {
  0% { transform: scale(1); }
  22% { transform: translateY(-7%) scale(1.09); }
  100% { transform: translateY(10%) scale(34); }
}
@keyframes abertura-revelar {
  0%, 24% { opacity: 1; }
  100% { opacity: 0; }
}

.motion-reveal {
  transition: opacity .67s ease, translate .75s cubic-bezier(.2,.71,.29,1);
  transition-delay: var(--reveal-delay, 0ms);
}
.motion-wait { opacity: 0; translate: var(--reveal-x, 0) var(--reveal-y, 25px); }
.motion-reveal:focus-within {
  opacity: 1;
  translate: none;
  transition: none;
}
.free-media.motion-reveal, .teacher-photo.motion-reveal { --reveal-x: 15px; --reveal-y: 13px; }
.teacher-copy.motion-reveal { --reveal-x: -13px; --reveal-y: 13px; }
.relatos > :nth-child(3n + 2), .price-grid > :nth-child(4n + 2) { --reveal-delay: 75ms; }
.relatos > :nth-child(3n + 3), .price-grid > :nth-child(4n + 3) { --reveal-delay: 150ms; }
.price-grid > :nth-child(4n + 4) { --reveal-delay: 225ms; }

@media (max-width: 680px) {
  .motion-reveal { transition-delay: 0ms; }
  .motion-wait { translate: 0 19px; }
}
@media (prefers-reduced-motion: reduce) {
  #site-intro.intro-zoom, .intro-zoom .intro-tree { animation: none; }
  .motion-reveal { opacity: 1; translate: none; transition: none; }
}

@media (min-width: 681px) {
  .materials-grid > .material-card:nth-child(2) { --reveal-delay: 135ms; }
}
