/* 첫 화면 글은 어디서 와도(홈·다른 쪽·주소로 바로) 흐린 데서 천천히 또렷해지며 떠오른다(대표 11-14 "다른 쪽에서 와도 흐릿했다가 또렷해지게") */
@media (prefers-reduced-motion: no-preference) { html.fonts .hero > .eyebrow, html.fonts .hero h1 { animation: from-home 1.1s cubic-bezier(.2,.7,.2,1) both; }
html.fonts .hero h1 { animation-delay: 0.15s; } }
@keyframes from-home { from { opacity: 0; filter: blur(12px); translate: 0 18px; } }
html.from-home .hero-bg img { visibility: hidden; }
html.from-home::view-transition-old(root), html.from-home::view-transition-new(root) { animation-duration: 0.6s; }
html.home-snap .hero-bg::before { content: ""; position: absolute; inset: 0; background: var(--home-snap) center / 100% 100% no-repeat; transform: var(--home-snap-tf); }
@media (prefers-reduced-motion: no-preference) { html.home-snap .hero-gl.ready { animation: home-snap-in 0.3s ease both; } }
@keyframes home-snap-in { from { opacity: 0; } }
/* 홈으로 돌아갈 때(아래 스크립트): 홈의 가운데 막(pages.css .home-bg::after)과 같은 막, 다른 화면에서 떠날 때 덮는 어둠 */
.hero-homeveil { position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0; background: radial-gradient(ellipse 62% 46% at 50% 54%, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0) 100%); }
.leave-dark { position: fixed; inset: 0; z-index: 25; pointer-events: none; opacity: 0; background: #0a0a0a; }