/* ==================== Landing — fixed stage, scroll-driven ==================== */
html,
body {
  height: 100%;
  overflow: hidden; /* the page never scrolls; scroll drives animation */
  overscroll-behavior: none;
}

.stage {
  position: fixed;
  inset: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  align-items: center;
  touch-action: none; /* we handle touch ourselves */
}

/* top pill */
.top {
  display: flex;
  justify-content: center;
  padding: clamp(1.4rem, 4vh, 2.6rem) var(--pad) 0;
}

/* center core */
.core {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(1.6rem, 3vh, 2.4rem);
  padding: 0 var(--pad);
  text-align: center;
}
.core [data-logo] {
  width: clamp(150px, 24vw, 250px);
  height: auto;
  margin-bottom: clamp(0.2rem, 1.2vh, 0.9rem);
  filter: drop-shadow(0 18px 42px rgba(110, 91, 255, 0.24));
  transform: scale(var(--logoS, 1)) translateY(var(--logoY, 0));
  transition: transform 0.25s var(--ease);
  animation: floaty 6.5s ease-in-out infinite;
}
@keyframes floaty {
  50% {
    transform: scale(var(--logoS, 1)) translateY(calc(var(--logoY, 0px) - 9px));
  }
}
.wordmark.big {
  font-size: clamp(2.6rem, 1.9rem + 4vw, 4.6rem);
  line-height: 1.08; /* room for the "g" descender under background-clip:text */
  padding-bottom: 0.06em;
}

/* the reel of one-line phrases (only one visible at a time) */
.reel {
  position: relative;
  width: min(92vw, 36rem);
  height: clamp(5rem, 13vh, 7rem);
}
.reel .line {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: clamp(1.05rem, 0.9rem + 1.4vw, 1.6rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  padding: 0 0.5rem;
  /* driven by JS: --o opacity, --y translate */
  opacity: var(--o, 0);
  transform: translateY(var(--y, 0));
  will-change: opacity, transform;
  pointer-events: none;
}
/* let the gradient phrase win over .reel .line's ink color */
.reel .line.grad-text {
  color: transparent;
}
.reel .line.final {
  font-size: clamp(1.9rem, 1.3rem + 3vw, 2.9rem);
  font-weight: 800;
  letter-spacing: -0.035em;
}

/* bottom: progress dots + scroll hint */
.bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  padding: 0 var(--pad) clamp(1.4rem, 4vh, 2.6rem);
}
.dots {
  display: flex;
  gap: 0.55rem;
}
.dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--border);
  transition: background 0.3s ease, transform 0.3s ease, width 0.3s ease;
}
.dots i.on {
  background: var(--violet);
}
.dots i.done {
  background: var(--violet-soft);
}
.hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  transition: opacity 0.4s ease;
  opacity: var(--hintO, 1);
}
.hint .mouse {
  width: 21px;
  height: 33px;
  border: 2px solid var(--border);
  border-radius: 12px;
  position: relative;
}
.hint .mouse::after {
  content: "";
  position: absolute;
  top: 6px;
  left: 50%;
  width: 3px;
  height: 6px;
  margin-left: -1.5px;
  border-radius: 2px;
  background: var(--violet);
  animation: wheel 1.8s ease-in-out infinite;
}
@keyframes wheel {
  0%,
  100% {
    transform: translateY(0);
    opacity: 1;
  }
  60% {
    transform: translateY(8px);
    opacity: 0.2;
  }
}

/* tiny discreet contact, corner */
.corner {
  position: fixed;
  right: var(--pad);
  bottom: clamp(1.4rem, 4vh, 2.6rem);
  font-size: 0.72rem;
  color: var(--muted);
  z-index: 10;
}
.corner a:hover {
  color: var(--violet);
}

@media (max-width: 560px) {
  .corner {
    left: 0;
    right: 0;
    text-align: center;
    bottom: 0.7rem;
  }
}
@media (max-width: 560px), (hover: none) {
  .hint .mouse {
    display: none;
  }
  .bottom {
    padding-bottom: clamp(2.2rem, 7vh, 3.4rem);
  }
}
@media (max-height: 520px) {
  .hint .mouse {
    display: none;
  }
  .core [data-logo] {
    width: 74px;
    height: 74px;
  }
}
