/* FolioIO intro — one continuous shot
   Reveal under curtain (page stays painted; intro wipes off). */

.li {
  --li-ease: cubic-bezier(0.76, 0, 0.24, 1);
  --li-soft: cubic-bezier(0.22, 1, 0.36, 1);
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  pointer-events: none;
  overflow: hidden;
  background: transparent;
}

/* Full black veil — clipped away on exit */
.li-shade {
  position: absolute;
  inset: 0;
  background: #030304;
  z-index: 0;
  will-change: clip-path;
  clip-path: inset(0 0 0 0);
}

/* Film mattes (letterbox) — close in, then open with shade */
.li-matte {
  position: absolute;
  left: 0;
  right: 0;
  height: 0;
  z-index: 3;
  background: #000;
  will-change: height, transform;
}
.li-matte--top { top: 0; }
.li-matte--bot { bottom: 0; }

.li-center {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  text-align: center;
}

/* Logo: clip wipe + ken-burns settle */
.li-mark {
  width: 72px;
  height: 72px;
  overflow: hidden;
  clip-path: inset(100% 0 0 0);
  will-change: clip-path;
}
.li-mark img {
  display: block;
  width: 72px;
  height: 72px;
  transform: scale(1.18);
  transform-origin: 50% 60%;
  will-change: transform;
  filter: drop-shadow(0 0 24px rgba(167, 243, 208, 0));
}

.li-name {
  margin-top: 28px;
  display: flex;
  justify-content: center;
  gap: 0;
  font-family: 'Geist', system-ui, -apple-system, sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.46em;
  text-indent: 0.46em;
  text-transform: uppercase;
  color: rgba(242, 243, 245, 0.92);
  line-height: 1;
}
.li-name span {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.55em);
  will-change: transform, opacity;
}

.li-hair {
  margin-top: 22px;
  width: 0;
  height: 1px;
  background: #a7f3d0;
  opacity: 0.7;
  transform-origin: 50% 50%;
  will-change: width;
}

/* During intro: page stays rendered underneath (no visibility:hidden flash) */
body.landing-intro-active .lp,
body.landing-intro-active .landing-page {
  visibility: visible;
}
body.landing-intro-active {
  overflow: hidden;
}

/* Exit states driven by JS classes / WAAPI — fallback CSS */
.li.is-done {
  visibility: hidden;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .li { display: none !important; }
}
