/* The new opening is scoped to #home; the five artistic journeys keep their styles. */
body[data-world="home"] .site-header { display: none; }

body[data-world="home"] .cosmos,
body[data-world="home"] #starlight { visibility: hidden; }
body[data-world="home"] #announcer { position: fixed !important; top: 0; left: 0; }
#home { isolation: isolate; overflow: hidden; background: #02060d; }
#home.active { animation: none; }
.home-space, .home-space-camera, .home-space-image,
.home-space-haze, .home-space-shade, #home-depth { position: absolute; inset: 0; pointer-events: none; }
.home-space { z-index: 0; overflow: hidden; }
.home-space-camera {
  inset: -4%;
  transform: translate3d(var(--space-x, 0px), var(--space-y, 0px), 0);
  transition: transform 1.6s ease-out;
}
.home-space-image { width: 100%; height: 100%; object-fit: cover; opacity: 1; filter: brightness(1.52) saturate(1.12); animation: home-cosmic-drift 54s ease-in-out infinite alternate; }
.home-space-haze {
  background: radial-gradient(ellipse at 12% 30%, #759dd638, transparent 52%), radial-gradient(ellipse at 88% 72%, #d4b6d735, transparent 48%);
  mix-blend-mode: screen;
  animation: home-dust-drift 27s ease-in-out infinite alternate;
}
.home-space-shade { background: radial-gradient(ellipse at 50% 43%, #01050c20 2%, transparent 60%), linear-gradient(0deg, #02060d50, transparent 16%, transparent 90%, #02060d18); }
#home-depth { z-index: 1; width: 100%; height: 100%; }
#home .home-content {
  position: relative; z-index: 2;
  min-height: 100svh;
  padding: 56px 24px;
  justify-content: center; gap: 24px;
  transition: opacity .55s ease, transform .8s ease;
}
#home .home-identity { gap: 4px; margin: 0; }
#home .home-logo { width: 80px; height: auto; margin: 0; filter: drop-shadow(0 0 24px #f02f5250); }
#home .home-content #home-title.sr-only { width: 1px; height: 1px; margin: 0; padding: 0; }
#home .motto-birth { padding: 0; max-width: 840px; }
#home .home-content .motto,
#home .motto-birth .motto-author,
#home .home-content .entry-star {
  animation: none; opacity: 1; filter: none; transform: none;
}
#home .home-content .motto { font-size: clamp(1.7rem, 4vw, 3rem); line-height: 1.5; }
#home .motto-author { margin: 4px auto 0; color: #e8d3b3; }
#home [data-home-writing] { position: relative; }
.home-handwriting { display: block; max-width: 100%; margin: 0 auto; overflow: visible; fill: none; stroke: currentColor; stroke-width: 5.5; stroke-linecap: round; stroke-linejoin: round; }
#home [data-home-writing="quote"] .home-handwriting { width: min(420px, 82vw, 55svh); color: #fff6e8; filter: drop-shadow(0 0 10px #f3ddbc45); }
/* Keep the accessible transcription hidden from the very first paint, before JS. */
#home .home-writing-fallback { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
#home .home-content .entry-star { margin-top: 8px; gap: 0; width: 88px; height: 88px; justify-content: center; padding: 16px; }
#home .entry-star .star-shape { font-size: 56px; color: #fff7df; text-shadow: 0 0 18px #ffdfa9, 0 0 48px #dec1a775, 0 0 100px #b9ccff55; }
#home .entry-star::before, #home .entry-star::after { top: 13px; width: 62px; height: 62px; transform: scale(1.45); border-color: #f4dabb26; }
#home .entry-star::after { transform: scale(1.85); border-color: #f4dabb15; }
#home .entry-star:hover .star-shape { color: #fff; }

/* Stroke delays are measured from real Bézier lengths, including pauses at word boundaries. */
#home.intro-ready .home-ink { animation: home-ink-write var(--ink-duration) var(--ink-delay) linear both; }
#home.intro-ready .entry-star .star-shape,
#home.intro-ready .entry-star::before,
#home.intro-ready .entry-star::after { opacity: .38; transition: opacity 1s; }
#home.intro-ready .entry-star.home-entry-ready .star-shape,
#home.intro-ready .entry-star.home-entry-ready::before,
#home.intro-ready .entry-star.home-entry-ready::after,
#home.intro-ready .entry-star:focus-visible .star-shape,
#home.intro-ready .entry-star:hover .star-shape { opacity: 1; }
#home.intro-paused *, #home.intro-paused *::before, #home.intro-paused *::after { animation-play-state: paused !important; }
#home.intro-complete .home-ink { animation: none; stroke-dashoffset: 0; }
#home.home-departing .home-content { opacity: 0; transform: scale(1.09); }
#home.home-departing .home-space { transform: scale(1.18); filter: brightness(1.3); transition: transform .9s ease-in, filter .9s; }

@keyframes home-ink-write { from { stroke-dashoffset: var(--ink-length); } to { stroke-dashoffset: 0; } }
@keyframes home-cosmic-drift { from { transform: scale(1.025) translate3d(-.5%, 0, 0); } to { transform: scale(1.14) translate3d(1%, -.7%, 0); } }
@keyframes home-dust-drift { from { transform: translate3d(-2%, 1%, 0); opacity: .3; } to { transform: translate3d(2%, -1%, 0); opacity: .8; } }

.reduced-motion #home *, .reduced-motion #home *::before, .reduced-motion #home *::after { animation: none !important; transition: none !important; }
.reduced-motion #home .home-ink { stroke-dashoffset: 0; }
.reduced-motion #home .home-space-camera { transform: none; }
.reduced-motion #home .entry-star .star-shape, .reduced-motion #home .entry-star::before, .reduced-motion #home .entry-star::after { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  body:not(.motion-opt-in) #home *, body:not(.motion-opt-in) #home *::before, body:not(.motion-opt-in) #home *::after { animation: none !important; transition: none !important; }
  body:not(.motion-opt-in) #home .home-ink { stroke-dashoffset: 0; }
}
@media (max-width: 620px) {
  #home .home-content { padding: 48px 18px; gap: 24px; }
  #home .home-identity { gap: 4px; margin-bottom: 0; }
  #home .home-logo { width: 75px; }
  #home [data-home-writing="quote"] .home-handwriting { width: min(340px, 84vw, 52svh); }
  #home .home-space-image { object-position: center; }
}
@media (max-height: 760px) and (min-width: 621px) {
  #home .home-content { padding-block: 40px; gap: 18px; }
  #home .home-logo { width: 65px; }
  #home .home-identity { gap: 2px; margin-bottom: 0; }
}
@media (max-width: 620px) and (max-height: 680px) {
  #home .home-content { padding-block: 32px; gap: 18px; }
  #home .home-identity { margin-bottom: 0; }
}
