/* MODE3 v6 · MOON hero (task 030). v6/moon.js drives it; the rack focus hero CSS (.hero9) stays for the reel, unused. */
.hero10 { --p: 0; position: relative; height: 400svh; color: #ede9e3; background: #000; isolation: isolate; padding: 0; display: block; min-height: 0; }
.moon-stage { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.moon-poster, .moon-poster img, .moon-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.moon-poster img { object-fit: cover; object-position: 50% 50%; }
.moon-canvas { opacity: 0; }
.moon-canvas.on { opacity: 1; }
.hero10 .hero-noise:not(.pinned) { display: none; }
/* the hand-over to The Day Opens: the pinned noise canvas starts on the hero's last frame */
/* 031: the hero ends on the bracelet, so The Day Opens starts there */
.hero10 .hero-noise.pinned { background: linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.35)), url(/assets/moon/poster-p720-bracelet.webp?v=4) 50% 26% / cover no-repeat, #000; }
@media (min-aspect-ratio: 1/1) { .hero10 .hero-noise.pinned { background-image: linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.35)), url(/assets/moon/poster-l1080-bracelet.webp?v=4); } }
.moon-scrim { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.6s var(--e-soft); background: linear-gradient(180deg, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.55) 36%, rgba(0, 0, 0, 0) 64%, rgba(0, 0, 0, 0) 100%); }
.hero10.landed .moon-scrim { opacity: 1; }

/* the kinetic words: one at a time, big, centred in the lower third; they land like the hero words did */
.moon-words { position: absolute; left: 0; right: 0; top: 66%; height: 0; z-index: 3; pointer-events: none; }
.moon-word { position: absolute; left: 0; right: 0; top: 0; transform: translateY(-50%) scale(1.05); margin: 0; text-align: center; font-weight: 900; font-size: clamp(3rem, 12.5vw, 9.5rem); line-height: 0.92; letter-spacing: 0.24em; color: #ede9e3; text-shadow: 0 4px 40px rgba(0, 0, 0, 0.6); opacity: 0; filter: blur(14px); transition: opacity 0.2s linear, filter 0.2s linear, letter-spacing 0.2s linear, transform 0.2s linear; white-space: nowrap; }
.moon-word.on { opacity: 1; filter: blur(0); letter-spacing: -0.04em; transform: translateY(-50%) scale(1); transition: opacity 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), filter 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), letter-spacing 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1); }
.moon-word.amber { color: #ffcf7a; }
.moon-word.teal { color: #9fe6d3; }

/* the moon to route flash, 0.25 s amber to white */
.moon-flash { position: absolute; inset: 0; z-index: 4; pointer-events: none; opacity: 0; background: #ffb347; }
.moon-flash.go { animation: moonFlash 0.25s ease-out both; }
@keyframes moonFlash { 0% { opacity: 0; background: #ffb347; } 35% { opacity: 0.85; background: #fff1d6; } 100% { opacity: 0; background: #fff; } }

/* the scroll cue */
.moon-cue { position: absolute; left: 50%; bottom: clamp(1.4rem, 4svh, 2.4rem); transform: translateX(-50%); z-index: 5; margin: 0; display: flex; flex-direction: column; align-items: center; gap: 0.6rem; font-size: var(--t-micro); font-weight: 800; letter-spacing: 0.24em; text-transform: uppercase; color: rgba(237, 233, 227, 0.78); transition: opacity 0.4s var(--e-soft); }
.moon-cue i { display: block; width: 1px; height: 34px; background: linear-gradient(rgba(237, 233, 227, 0.8), rgba(237, 233, 227, 0)); transform-origin: top; animation: moonCue 1.8s cubic-bezier(0.65, 0, 0.35, 1) infinite; }
@keyframes moonCue { 0% { transform: scaleY(0); opacity: 1; } 60% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }
.hero10.moving .moon-cue { opacity: 0; }

/* landed: the copy in the top half, as the rack focus landed state */
.moon-land { position: absolute; left: 0; right: 0; top: 0; z-index: 6; padding-top: clamp(6rem, 15svh, 9.5rem); }
.moon-h1 { margin: 0; font-size: var(--t-huge); font-weight: 900; line-height: 0.92; letter-spacing: -0.04em; max-width: 12ch; text-shadow: 0 2px 30px rgba(0, 0, 0, 0.55); }
.moon-h1 span { display: inline-block; }
.moon-statement { margin: 1rem 0 0; max-width: 34ch; font-size: var(--t-body); line-height: 1.5; color: rgba(237, 233, 227, 0.84); }
.moon-cta { margin-top: 1.3rem; }
.moon-cta .quiet { color: rgba(237, 233, 227, 0.75); text-decoration: none; font-size: var(--t-micro); font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; display: inline-flex; align-items: center; min-height: 44px; }
.hero10 .btn-primary { background: #ede9e3; color: #0b0d10; }
.hero10 .rf-guarantee { margin-top: 0.5rem; }
.moon-h1 span, .moon-statement, .moon-cta, .hero10 .rf-guarantee { opacity: 0; transform: translateY(0.5em); transition: opacity 0.3s var(--e-soft), transform 0.3s var(--e-soft); }
.hero10.landed .moon-h1 span { opacity: 1; transform: none; transition: opacity 0.6s var(--e-soft), transform 0.75s var(--e-norris); }
.hero10.landed .moon-h1 span:nth-child(1) { transition-delay: 0.1s; }
.hero10.landed .moon-h1 span:nth-child(2) { transition-delay: 0.3s; }
.hero10.landed .moon-h1 span:nth-child(3) { transition-delay: 0.5s; }
.hero10.landed .moon-statement { opacity: 1; transform: none; transition: opacity 0.6s var(--e-soft) 0.75s, transform 0.75s var(--e-norris) 0.75s; }
.hero10.landed .moon-cta { opacity: 1; transform: none; transition: opacity 0.6s var(--e-soft) 0.95s, transform 0.75s var(--e-norris) 0.95s; }
.hero10.landed .rf-guarantee { opacity: 1; transform: none; transition: opacity 0.6s var(--e-soft) 1.1s, transform 0.75s var(--e-norris) 1.1s; }
.hero10:not(.landed) .moon-land { pointer-events: none; }
.hero10 .hero-clock, .hero10 .hero-now { display: none !important; }
@media (max-width: 720px) { .moon-land { padding-top: 6.5rem; } .moon-h1 { max-width: 9ch; } .moon-cta .btn-primary { width: auto; } }

/* reduced motion: no pinning, the bracelet still with the landed copy */
@media (prefers-reduced-motion: reduce) {
  .hero10 { height: auto; min-height: 100svh; }
  .moon-stage { position: relative; height: 100svh; min-height: 36rem; }
  .moon-canvas, .moon-words, .moon-flash, .moon-cue { display: none; }
  .moon-scrim { opacity: 1; }
  .moon-poster img { transform: translateY(26%); }
  @media (min-aspect-ratio: 1/1) { .moon-poster img { transform: translate(14%, 16%); } }
  .moon-h1 span, .moon-statement, .moon-cta, .hero10 .rf-guarantee { opacity: 1 !important; transform: none !important; }
}

/* 031 · landed = the bracelet: the node flashes white, then the bracelet still fades in under the copy, laid out as the reduced-motion
   version (portrait: the lower half; landscape: right of the copy). Scrolling back fades it out over the route frames. */
.moon-flash.go.white { animation: moonFlashWhite 0.7s ease-out both; }
@keyframes moonFlashWhite { 0% { opacity: 0; background: #fff; } 28% { opacity: 0.9; background: #fff; } 100% { opacity: 0; background: #fff; } }
.moon-bracelet, .moon-bracelet img { position: absolute; inset: 0; width: 100%; height: 100%; }
.moon-bracelet { z-index: 1; opacity: 0; transition: opacity 0.3s linear; pointer-events: none; background: #000; }
.moon-bracelet img { object-fit: cover; object-position: 50% 50%; transform: translateY(26%); }
@media (min-aspect-ratio: 1/1) { .moon-bracelet img { transform: translate(14%, 16%); } }
.hero10.landed .moon-bracelet { opacity: 1; transition: opacity 0.5s var(--e-soft) 0.15s; }
.moon-scrim { z-index: 2; }
@media (prefers-reduced-motion: reduce) { .moon-bracelet { display: none; } }

/* 032 · one world from the hero to WHY: the space layer (v6/space.js) sits behind the pinned canvas; the canvas itself is transparent now */
.hero10 .hero-noise.pinned { background: none; }
.space-back { display: none; position: fixed; inset: 0; pointer-events: none; background: #000;
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(var(--edge, 400vh) - 100vh), transparent var(--edge, 400vh)); mask-image: linear-gradient(to bottom, #000 calc(var(--edge, 400vh) - 100vh), transparent var(--edge, 400vh)); }
.space-back.on { display: block; }
.space-stars { position: absolute; inset: 0; background: url(/assets/moon/stars-720.webp) 0 0 / 720px 360px repeat; }
.space-bracelet { position: absolute; inset: 0; background: url(/assets/moon/poster-p720-bracelet.webp?v=4) 50% 26% / cover no-repeat; transform-origin: 50% 40%; will-change: transform, opacity; }
@media (min-aspect-ratio: 1/1) { .space-bracelet { background-image: url(/assets/moon/poster-l1080-bracelet.webp?v=4); background-position: 50% 50%; } }
/* the sections in the space zone are transparent over it */
.opens, .why { background: transparent; }
@media (prefers-reduced-motion: reduce) {
  .space-back { display: none !important; }
  .opens, .why { background: #000 url(/assets/moon/stars-720.webp) 0 0 / 720px 360px repeat; }
  .why { -webkit-mask-image: none; }
  .why::after { content: ""; display: block; height: 60svh; margin-bottom: calc(-1 * clamp(5rem, 12svh, 8rem)); background: linear-gradient(#000, var(--sky)); }
}

/* 038: the route is warm now (amber fibres, a white-gold node); the word next to it follows, no teal */
.moon-word.gold { color: #fff1d6; text-shadow: 0 0 40px rgba(255, 196, 110, 0.35), 0 4px 40px rgba(0, 0, 0, 0.6); }

/* 039: the CTAs are hidden from focus and from view until landed (inert in v6/moon.js); visibility waits for the fade-out */
.hero10:not(.landed) .moon-cta, .hero10:not(.landed) .rf-guarantee { visibility: hidden; transition: opacity 0.3s var(--e-soft), transform 0.3s var(--e-soft), visibility 0s linear 0.3s; }
.hero10.landed .moon-cta, .hero10.landed .rf-guarantee { visibility: visible; }

/* 058 · CLS: the words no longer animate letter-spacing (a layout change); the same opening reads through a horizontal scale */
.moon-word { letter-spacing: -0.04em; transform: translateY(-50%) scale(1.05) scaleX(1.28); }
.moon-word.on { letter-spacing: -0.04em; transform: translateY(-50%) scale(1); }

/* 060 · what it is: the plain line and three rows with the physical action, under the headline; they land with the statement */
.moon-rows { list-style: none; margin: 0.8rem 0 0; padding: 0; display: grid; gap: 0.35rem; max-width: 36ch; font-size: var(--t-body); line-height: 1.35; color: rgba(237, 233, 227, 0.9); }
.moon-rows b { display: inline-block; min-width: 6.2em; font-size: var(--t-micro); font-weight: 800; letter-spacing: 0.18em; color: var(--c); }
.moon-rows { opacity: 0; transform: translateY(0.5em); transition: opacity 0.3s var(--e-soft), transform 0.3s var(--e-soft); }
.hero10.landed .moon-rows { opacity: 1; transform: none; transition: opacity 0.6s var(--e-soft) 0.85s, transform 0.75s var(--e-norris) 0.85s; }
@media (prefers-reduced-motion: reduce) { .moon-rows { opacity: 1; transform: none; } }
.moon-rows b { min-width: 7.6em; }
.moon-rows, .moon-statement { text-shadow: 0 1px 14px rgba(0, 0, 0, 0.9), 0 0 2px rgba(0, 0, 0, 0.8); }
