/* Utilidades (u-): hacen una sola cosa. Grano y luz del puntero están en sus propios archivos. */

.u-chamfer    { clip-path: var(--clip-md); }
.u-chamfer--sm { clip-path: var(--clip-sm); }

.u-mono {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: var(--ls-caps);
}

/* Texto con degradado de marca. */
.u-text-gradient {
  display: inline-block;
  background: linear-gradient(90deg, var(--color-lime), var(--color-violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Aparición al hacer scroll (navegadores recientes; en el resto se ve sin animar). */
@keyframes u-reveal-in {
  from { opacity: 0; transform: translateY(44px); }
  to   { opacity: 1; transform: none; }
}
@supports (animation-timeline: view()) {
  .u-reveal {
    --reveal-start: 0%;
    animation: u-reveal-in linear both;
    animation-timeline: view();
    animation-range: entry var(--reveal-start) entry calc(var(--reveal-start) + 60%);
  }
}

.u-reveal--1 {
    --reveal-start: 0%;
}
.u-reveal--2 {
    --reveal-start: 8%;
}
.u-reveal--3 {
    --reveal-start: 16%;
}
.u-reveal--4 {
    --reveal-start: 24%;
}

.u-visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  .u-reveal { animation: none; }
  * { scroll-behavior: auto !important; }
}
