/* Mobile entrance study, 11 October 2026. Original hero artwork is unchanged. */
body.mobile-entrance .discover-link {
  border: 0;
}
body.mobile-entrance .discover-link::after {
  content: none;
  display: none;
}
body.mobile-entrance .discover-link .scroll-arrow {
  position: relative;
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  color: var(--paper);
}
body.mobile-entrance .discover-link .scroll-arrow::before {
  content: '';
  position: absolute;
  inset: 5px;
  border: 1px solid #ffffff1c;
  border-radius: 50%;
  background: #191919;
}
body.mobile-entrance .discover-link:focus-visible { outline: 1px solid var(--paper); outline-offset: 5px; }
body.mobile-entrance .discover-link:hover .scroll-arrow::before { border-color: #ffffff40; }
body.mobile-entrance .discover-link .scroll-arrow svg {
  position: relative;
  display: block;
  width: 18px;
  height: 18px;
  overflow: visible;
  animation: none;
}
@media (prefers-reduced-motion: no-preference) {
  body.mobile-entrance .discover-link .scroll-arrow svg {
    animation: entrance-invitation 2.6s cubic-bezier(.4,0,.2,1) 1.2s 2;
  }
}
body.mobile-entrance.motion-paused .scroll-arrow svg,
body.mobile-entrance.entrance-scrolled .scroll-arrow svg {
  animation-play-state: paused;
}
@keyframes entrance-invitation {
  0%, 48%, 100% { transform: translateY(0); }
  24% { transform: translateY(4px); }
}
@media (max-width: 899px) {
  body.mobile-entrance .hero {
    min-height: calc(var(--mobile-viewport, 100dvh) - var(--mobile-masthead, 112px));
    padding: clamp(12px, 2svh, 24px) var(--gutter) max(22px, env(safe-area-inset-bottom));
    display: flex;
    flex-direction: column;
    gap: clamp(18px, 3svh, 28px);
  }
  body.mobile-entrance .hero .type-stage {
    flex: none;
    padding-block: 20px 18px;
    margin: auto 0;
  }
  body.mobile-entrance .hero .hero-title .type-line + .type-line {
    margin-top: 6px;
  }
  body.mobile-entrance .hero .hero-bottom {
    flex: none;
    justify-content: center;
    padding: 0;
    margin: 0;
    border: 0;
    transition: opacity 180ms ease;
  }
  body.mobile-entrance .hero .discover-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 8px 18px;
    border: 0;
    font-size: 13px;
    line-height: 1.5;
    min-height: 44px;
  }
  body.mobile-entrance .hero + .work {
    padding-top: 2rem;
    transition: opacity 240ms ease;
  }
  body.mobile-entrance.entrance-ready:not(.content-revealed) .hero + .work {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
  body.mobile-entrance.entrance-ready .main-nav {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate(-50%, 12px);
    transition: opacity 280ms ease, transform 280ms cubic-bezier(.2,.75,.2,1), visibility 280ms;
  }
  body.mobile-entrance.entrance-ready.work-entered .main-nav {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, 0);
  }
  body.mobile-entrance.entrance-ready.entrance-scrolled .hero-bottom {
    opacity: 0;
    pointer-events: none;
  }
}
@media (max-width: 650px) {
  body.mobile-entrance .hero .hero-title {
    font-size: min(30vw, 132px, max(44px, calc((var(--mobile-viewport, 100dvh) - var(--mobile-masthead, 112px) - 204px) / 2.8)));
  }
}
@media (max-width: 899px) and (max-height: 500px) {
  body.mobile-entrance .hero { padding-block: 4px 10px; gap: 8px; }
  body.mobile-entrance .hero .type-stage { padding-block: 8px; }
  body.mobile-entrance .hero .hero-title {
    font-size: min(22vw, 132px, max(44px, calc((var(--mobile-viewport, 100dvh) - var(--mobile-masthead, 112px) - 124px) / 2.8)));
  }
  body.mobile-entrance .hero .discover-link { flex-direction: row; gap: 12px; }
}
/* Keep the entire composition together when the viewport is wide but short. */
@media (orientation: landscape) and (max-height: 500px) {
  body.mobile-entrance .hero .type-stage {
    font-size: min(22vw, 132px, max(44px, calc((100svh - var(--masthead-height, 112px) - 124px) / 2.8)));
    max-width: 4.5454545em;
    margin-inline: auto;
  }
  body.mobile-entrance .hero .hero-title { font-size: 1em; }
  body.mobile-entrance .hero .type-stage .hero-art { inset: 0 -4.95%; }
}
@media (prefers-reduced-motion: reduce) {
  body.mobile-entrance.entrance-ready .main-nav,
  body.mobile-entrance .hero .hero-bottom,
  body.mobile-entrance .hero + .work,
  body.mobile-entrance .scroll-arrow { transition: none; }
}

/* Approved mobile portrait spacing: add 6px only above HATE. */
@media (max-width: 650px) and (orientation: portrait) {
  body.mobile-entrance .hero .hero-title .type-line.line-hate {
    margin-top: 12px;
  }
}
