/* PROTOTYPE, throwaway: 초대 섹션 B(줌)+E(새벽 와이프) 시안. 사이트 토큰(--fs-*) 그대로 사용 */
.story { height: 435vh; } /* 335vh of pinned scroll: stages 20% slower, no idle tail */
.story-pin { overflow: hidden; }
.story-pin > *:not(.p-sky):not(.p-beam) { position: relative; z-index: 1; }
.p-sky { position: absolute; top: 0; right: 0; bottom: 0; left: 0; inset: 0; pointer-events: none; background: linear-gradient(180deg, #132342 0%, #11203d 60%, #101c32 100%); }
/* fade the sky out at its foot so the invitation hands over to the next scene without a line */
.p-sky { -webkit-mask: linear-gradient(180deg, #000 78%, #0000 100%); mask: linear-gradient(180deg, #000 78%, #0000 100%); }
/* 첫 화면과 같은 빛줄기: 선 1px + 빛 점 16px */
.p-beam { position: absolute; top: 0; left: 50%; z-index: 0; width: 1px; pointer-events: none; }
.p-beam:before { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; inset: 0; background: linear-gradient(180deg, transparent, #ffffffbf 70%, #fff); }
.p-beam i { position: absolute; bottom: -8px; left: -7.5px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 0 10px 4px #d6e2ffe6, 0 0 28px 10px #96b4ff8c; }
.p-sky video { position: absolute; top: 0; right: 0; bottom: 0; left: 0; inset: 0; width: 100%; height: 100%; object-fit: cover; mix-blend-mode: screen; }
.p-sky .dawn { position: absolute; top: 0; right: 0; bottom: 0; left: 0; inset: 0; background: radial-gradient(ellipse 90% 60% at 50% 110%, #5f86ef 0%, #2d4a93 40%, transparent 75%); opacity: 0; }
.story-call { will-change: transform, filter, opacity; margin-bottom: var(--stack-m); }
.story-lines p { font-weight: 500; color: var(--text-2); }
.story-lines p:first-child { color: var(--text); }

/* 1 명조 에디토리얼 */

/* 2 로고 하강: 첫 화면 로고(1200:340)를 그대로 */
.inv-2 .story-call img { display: block; width: min(64vw, 560px); height: auto; aspect-ratio: 1200 / 340; }

/* 3 세로 쓰기 분할 */
@media (min-width: 901px) {
}

/* 4 은하수 글자 */

/* 5 새벽 라이트 */


/* 첫 화면 로고와 빛을 그대로 옮겨 오는 고정 레이어 */
.p-traveler { position: fixed; left: 0; top: 0; z-index: 40; pointer-events: none; display: none; will-change: transform; }
.p-traveler img { display: block; height: auto; aspect-ratio: 1200 / 340; }
.p-tbeam { position: absolute; width: 1px; }
.p-tbeam:before { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; inset: 0; background: linear-gradient(180deg, transparent, #ffffffbf 70%, #fff); }
.p-tbeam i { position: absolute; bottom: -8px; left: -7.5px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 0 10px 4px #d6e2ffe6, 0 0 28px 10px #96b4ff8c; }
.story-call { transform: none !important; }
.p-word { display: inline-block; white-space: nowrap; }
.p-glyph { display: inline-block; will-change: transform, opacity, filter; }
.p-beam:before { transition: opacity .4s; }
.p-beam.is-writing:before { opacity: 0; }

/* 초대 섹션 컴포넌트 크기 (사이트 토큰 기준)
   overline 18/500 → title-1 40/700 → 로고 폭 400 → 본문 title-3 20/500, 줄 간격 1.8 */
.story .heading { margin-bottom: 40px; gap: 16px; }
.story .overline { font-size: var(--fs-body-l); font-weight: 500; }
.inv-2 .story-call { margin-bottom: 40px; }
.inv-2 .story-call img { width: clamp(240px, 28vw, 400px); }
.story-lines { gap: 0; font-size: var(--fs-title-3); line-height: 1.8; font-weight: 500; }
.story-lines p { font-weight: 500; }
.story-lines .story-end { margin-top: 24px; }

/* 참가신청 띠: 청록 → 남색 유리 + 흰 버튼 (첫 화면 「집회 신청하기」와 같은 버튼) */
.mobile-cta { max-width: 560px; padding: 10px 10px 10px 24px; border: 0; border-radius: 999px; background: linear-gradient(120deg, #4a7be0e6, #2e5398e6 60%, #24467fe6); box-shadow: inset 0 0 0 1px #ffffff40, inset 0 1px 0 #ffffff59, 0 16px 48px #0206128c, 0 0 32px #4a7be04d; }
.floating-event strong { font-size: var(--fs-body); font-weight: 700; }
.floating-event strong span { font-size: var(--fs-caption); color: #e3ebff; }
.mobile-cta .floating-place { color: #d6e2ff; }
.floating-place { font-size: var(--fs-caption); }
.mobile-cta .floating-register { min-width: 0; min-height: 48px; padding: 0 24px; border-radius: 999px; background: #fff; color: #142344; font-size: var(--fs-body); font-weight: 700; box-shadow: none; }
.mobile-cta .floating-register:hover { background: #dce6ff; }
.mobile-cta .floating-register svg { display: none; }
/* 숨길 곳: 첫 화면·초대·참가 신청·마지막 화면 */
/* always visible: wins over the base scroll toggle */
.mobile-cta.is-pinned { transform: none !important; }

/* 삭개오 장면: 정지된 그림 + 나뭇잎 흔들림 + 구름 흐름. 아래는 페이지 색으로 스며듦 */
.verse.p-zac { padding: 0; text-align: left; }
.verse.p-zac:before { display: none; }
.p-zac-scene { position: relative; height: 100vh; height: 100svh; overflow: hidden; }
.p-zac-art { position: absolute; top: 50%; left: 50%; aspect-ratio: 1672 / 941; width: max(100vw, calc(100vh * 1672 / 941)); width: max(100vw, calc(100svh * 1672 / 941)); transform: translate(-50%, -50%); }
.p-zac-art > img.bg, .p-zac-sway, .p-zac-sway .canopy { position: absolute; top: 0; right: 0; bottom: 0; left: 0; inset: 0; width: 100%; height: 100%; }
/* the whole canopy turns a hair around the trunk, so tips move most and the trunk hardly at all */
.p-zac-sway { transform-origin: 10.8% 59.5%; animation: zac-sway 6s ease-in-out infinite; will-change: transform; }
.p-zac-sway .fig { position: absolute; left: 32.3%; top: 20.2%; height: 24.4%; width: auto; }
.p-zac-clouds { position: absolute; left: -25%; top: 1%; width: 150%; animation: zac-clouds 32s ease-in-out infinite alternate; will-change: transform; }
/* a second, fainter band lower down drifting the other way, so the sky clearly moves */
.p-zac-clouds.far { top: 16%; opacity: 0.6; transform: scaleX(-1); animation: zac-clouds-far 46s ease-in-out infinite alternate; }
.p-zac-clouds img { display: block; width: 100%; height: auto; }
/* always moving, never scroll-driven: an uneven breeze, gusts at 30% and 75% */
@keyframes zac-sway {
  0%, 100% { transform: rotate(-0.45deg); }
  30% { transform: rotate(0.6deg); }
  50% { transform: rotate(0.1deg); }
  75% { transform: rotate(0.7deg); }
}
@keyframes zac-clouds { from { transform: translateX(-12%); } to { transform: translateX(12%); } }
@keyframes zac-clouds-far { from { transform: scaleX(-1) translateX(-10%); } to { transform: scaleX(-1) translateX(10%); } }
/* the painting itself fades out at top and bottom (a mask, not a colour), so whatever
   page gradient is behind shows through and there is no seam line */
.p-zac-art { -webkit-mask: linear-gradient(180deg, #0000 0%, #000 12%, #000 60%, #0000 97%); mask: linear-gradient(180deg, #0000 0%, #000 12%, #000 60%, #0000 97%); }
/* a soft shade behind the verse, out in the open sky right of the tree */
.p-zac-scene:after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; inset: 0; pointer-events: none; background: radial-gradient(ellipse 30% 24% at 68% 40%, #0a1120b3, transparent); }
.p-zac .heading { position: absolute; z-index: 2; left: 68%; top: 30%; transform: translateX(-50%); width: min(640px, calc(100% - 2 * var(--gutter))); text-align: center; align-items: center; padding: 0; margin: 0; }
@media (max-width: 900px) {
  .p-zac-scene { height: auto; }
  .p-zac-art { position: relative; top: auto; left: -14vw; transform: none; width: 175vw; }
  .p-zac-art { -webkit-mask: linear-gradient(180deg, #0000 0%, #000 10%, #000 45%, #0000 92%); mask: linear-gradient(180deg, #0000 0%, #000 10%, #000 45%, #0000 92%); }
  .p-zac-scene:after { display: none; }
  /* the verse sits up on the lower part of the painting, not below it */
  .p-zac .heading { position: relative; left: auto; top: auto; transform: none; width: auto; margin: -34vw var(--gutter) 0; padding-bottom: var(--section); }
}
@media (prefers-reduced-motion: reduce) {
  .p-zac-sway, .p-zac-clouds { animation: none; }
}


/* Older browsers without aspect-ratio (Safari 14 and earlier): the scene's layers are all
   absolutely placed, so the art box needs an explicit height or it collapses to nothing. */
@supports not (aspect-ratio: 1) {
  .p-zac-art { height: max(calc(100vw * 941 / 1672), 100vh); }
  @media (max-width: 900px) {
    .p-zac-art { height: calc(175vw * 941 / 1672); }
  }
}
