/* ===== Intro: curtain reveal + 0-100 counter ===== */

/* Scroll lock while the intro runs */
html.intro-lock,
html.intro-lock body {
  overflow: hidden;
}

/* Full-screen overlay (visible from the very first paint, so the page never flashes) */
#intro {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  z-index: 9998;
  pointer-events: none;
  overflow: hidden;
}

.intro-dark,
.intro-gray {
  position: absolute;
  inset: 0;
  will-change: transform;
}

/* Top layer: dark curtain (portfolio theme dark brown) */
.intro-dark {
  background: #2b2019;
  z-index: 2;
}

/* Layer behind: light-gray panel that trails the dark one (becomes the thin gray strip) */
.intro-gray {
  background: #c9c9c6;
  z-index: 1;
}

/* The big counter, rides along the dark curtain's left edge */
.intro-counter {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 0;
  margin-left: 4vw;
  font-size: 16vh;
  line-height: 1;
  margin-top: -0.5em;
  font-family: "Arial Black", "Helvetica Neue", Arial, sans-serif;
  font-weight: 900;
  white-space: nowrap;
  will-change: transform;
}

/* Gray, semi-transparent digits with fine horizontal scan lines */
.intro-counter span {
  color: rgba(142, 145, 155, 0.6);
  background: repeating-linear-gradient(
    to bottom,
    rgba(150, 153, 163, 0.9) 0,
    rgba(150, 153, 163, 0.9) 3px,
    rgba(150, 153, 163, 0.25) 3px,
    rgba(150, 153, 163, 0.25) 6px
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

@media (max-width: 600px) {
  .intro-counter {
    font-size: 14vw;
  }
}

/* The navbar must stay visible ABOVE the curtain. */
header.nav {
  position: fixed;
  z-index: 9999;
}