/* ═════════ STITCHED (8 Oct 2026): the graveyard sky on top, the funnel beneath the graves.
   Nudges, by design: two clear doors on the sky, a "beneath the graves" cue, the free-book ask following you all the way down. ═════════ */
html.gate-open, html.gate-open body { height: auto; }   /* the page scrolls beneath the graves once the Gate opens */
body.stitched { overflow-x: hidden; overflow-y: auto; overscroll-behavior-y: auto; }
body.stitched #trace { touch-action: pan-y; }   /* 31 Oct: Orion traceable again after the Gate. A drag that starts on one of his stars traces; any other swipe scrolls the page (sky.js touchstart) */

#below { position: relative; z-index: 10; margin-top: 100svh; background: #040405; }
#below::before { content: ""; position: absolute; left: 0; right: 0; top: -140px; height: 140px; pointer-events: none; background: linear-gradient(180deg, rgba(4, 4, 5, 0), #040405); }

/* the sky's UI steps aside as you go beneath */
.stage, .foot, #cx-stars, #cx-threads, #cx-hud, .top, .mist { transition: opacity .45s ease; }
body.below .stage, body.below .foot, body.below #cx-stars, body.below #cx-threads, body.below #cx-hud, body.below .top { opacity: 0; pointer-events: none; }
body.below .foot .cx-doors, body.below #cx-stars .cx-star { pointer-events: none; }
body.stitched .foot .credit, body.stitched .foot .studio { display: none; }

/* the two doors */
.cx-doors { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; pointer-events: auto; margin-bottom: 8px; }
body.stitched .cx-cta { background: linear-gradient(180deg, #ffb066, #ff9a3c 45%, #e0611a); color: #1a0d04; box-shadow: 0 0 0 1px rgba(255, 190, 130, .55), 0 8px 28px rgba(0, 0, 0, .55), 0 0 34px rgba(255, 154, 60, .3); margin: 0; }
.cx-door2 { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: .55em; padding: 11px 20px; border-radius: 999px; font-family: var(--serif); font-weight: 700; font-size: 14px; letter-spacing: .12em; text-transform: uppercase;
  color: #ffd6a8; border: 1px solid rgba(255, 154, 60, .6); background: rgba(10, 6, 4, .55); backdrop-filter: blur(2px); }
.cx-door2:hover, .cx-door2:focus-visible { border-color: #ffb066; color: #fff; outline: none; box-shadow: 0 0 22px rgba(255, 154, 60, .25); }

/* the cue: beneath the graves */
.cx-cue { all: unset; cursor: pointer; display: inline-flex; flex-direction: column; align-items: center; gap: 2px; pointer-events: auto; font-family: var(--serif); font-size: 10.5px; letter-spacing: .26em; text-transform: uppercase; color: var(--pewter); margin-top: 2px; }
.cx-cue .ar { font-size: 15px; color: #ffb066; animation: cx-bob 1.8s ease-in-out infinite; }
.cx-cue.attn { color: #ffd6a8; text-shadow: 0 0 14px rgba(255, 154, 60, .6); }
.cx-cue.attn .ar { animation-duration: .9s; }
.cx-cue:focus-visible { outline: 2px solid #ffb066; outline-offset: 4px; border-radius: 6px; }
@keyframes cx-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }

/* desktop: the funnel's top bar becomes a map of everything below */
#below .bar .nav { display: flex; gap: 18px; margin-left: auto; margin-right: 18px; }
#below .bar .nav a { font-family: var(--serif); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: #c9cdd4; text-decoration: none; opacity: .8; }
#below .bar .nav a:hover, #below .bar .nav a:focus-visible, #below .bar .nav a.on { color: #ffb066; opacity: 1; outline: none; }
@media (max-width: 860px) { #below .bar .nav { display: none; } }

/* phones: a dock that follows you once you're beneath */
#cx-dock { position: fixed; z-index: 60; left: 0; right: 0; bottom: 0; display: none; padding: 8px 10px calc(env(safe-area-inset-bottom, 0px) + 8px); background: rgba(6, 6, 8, .94); border-top: 1px solid rgba(255, 154, 60, .25); backdrop-filter: blur(6px); }
#cx-dock .row { display: flex; gap: 8px; max-width: 520px; margin: 0 auto; }
#cx-dock button { all: unset; cursor: pointer; flex: 1; text-align: center; padding: 11px 6px; border-radius: 10px; font-family: var(--serif); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: #ece5d6; border: 1px solid #2a2622; }
#cx-dock button.main { flex: 1.5; background: linear-gradient(180deg, #ffb066, #e0611a); color: #1a0d04; border-color: transparent; font-weight: 700; }
#cx-dock button:focus-visible { outline: 2px solid #ffb066; outline-offset: 2px; }
@media (max-width: 700px) { body.below #cx-dock { display: block; } body.below #below .bar { display: none; } body.below #below footer { padding-bottom: 96px; } }

/* Your Deck: the cards you've found, the ones still asleep */
#below .sec-deck { padding: 72px 18px 56px; max-width: 1180px; margin: 0 auto; }
.yd-head { text-align: center; margin-bottom: 26px; }
.yd-head .k { font-family: var(--serif); font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: #8fd6ff; }
.yd-head h2 { font-family: var(--serif); color: #ece5d6; font-size: clamp(1.6rem, 4vw, 2.3rem); margin: 8px 0 6px; font-weight: 700; letter-spacing: .02em; }
.yd-head p { color: #9c968a; font-size: 15px; max-width: 52ch; margin: 0 auto; line-height: 1.55; }
.yd-meter { max-width: 340px; margin: 16px auto 0; height: 6px; border-radius: 99px; background: #1a1712; overflow: hidden; }
.yd-meter i { display: block; height: 100%; background: linear-gradient(90deg, #8fd6ff, #e8c14a); border-radius: 99px; transition: width .6s; }
.yd-count { margin-top: 8px; font-family: var(--serif); font-size: 12px; letter-spacing: .18em; color: #c9cdd4; text-transform: uppercase; }
.yd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 12px; }
.yd-card { all: unset; position: relative; aspect-ratio: 2 / 3; border-radius: 10px; overflow: hidden; cursor: pointer; background: #0b1017; box-shadow: 0 0 0 1px #2a3340, 0 10px 24px rgba(0, 0, 0, .5); container-type: inline-size; transition: transform .2s; }
.yd-card:hover, .yd-card:focus-visible { transform: translateY(-3px); box-shadow: 0 0 0 1px #e8c14a, 0 12px 28px rgba(0, 0, 0, .6); outline: none; }
.yd-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.yd-card .nm { position: absolute; left: 0; right: 0; bottom: 0; padding: 22% 8% 8%; background: linear-gradient(180deg, transparent, rgba(5, 7, 12, .85)); font-family: var(--serif); font-weight: 700; color: #ece5d6; font-size: clamp(.62rem, 10cqi, .9rem); line-height: 1.1; text-shadow: 0 1px 6px #000; }
.yd-card.asleep { cursor: default; background: radial-gradient(circle at 50% 42%, rgba(143, 214, 255, .1), transparent 60%), #070b10; box-shadow: 0 0 0 1px #1c2530; }
.yd-card.asleep .zz { position: absolute; inset: 0; display: grid; place-items: center; color: #2f4252; font-family: var(--serif); font-size: clamp(.5rem, 8cqi, .72rem); letter-spacing: .22em; text-transform: uppercase; text-align: center; padding: 10%; }
.yd-card.asleep .zz b { display: block; font-size: 2.2em; color: #3a5163; letter-spacing: 0; margin-bottom: 6px; font-weight: 400; }
.yd-go { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }
.yd-go button { all: unset; cursor: pointer; padding: 11px 20px; border-radius: 999px; font-family: var(--serif); font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase; color: #ffd6a8; border: 1px solid rgba(255, 154, 60, .55); }
.yd-go button.main { background: linear-gradient(180deg, #ffb066, #e0611a); color: #1a0d04; border-color: transparent; font-weight: 700; }
.yd-go button:focus-visible { outline: 2px solid #ffb066; outline-offset: 3px; }

@media (max-width: 600px) {
  .cx-door2, body.stitched .cx-cta { font-size: 12.5px; padding: 11px 15px; }
  .yd-grid { grid-template-columns: repeat(3, 1fr); gap: 9px; }
}
@media (prefers-reduced-motion: reduce) { .cx-cue .ar { animation: none; } }
/* phones: lift the wordmark block so the two doors never cover the tagline or The Call */
@media (max-width: 700px) { body.stitched .stage { transform: translateY(-17svh); } }

/* ═════════ 9 Oct mobile pass ═════════ */
/* phones: the offer first beneath the graves, the Book II poster after it */
@media (max-width: 700px) {
  #below .hero-inner { display: flex; flex-direction: column; }
  #below .hero-copy { order: 1; }
  #below .hero .herocover { order: 2; width: min(210px, 54vw); margin: 30px auto 0; }
}
/* sideways rows: an edge fade where there's more, and dots */
#below .sw { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 18px, #000 calc(100% - 48px), transparent); mask-image: linear-gradient(90deg, transparent 0, #000 18px, #000 calc(100% - 48px), transparent); }
#below .sw.at-start { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 48px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 48px), transparent); }
#below .sw.at-end { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 18px); mask-image: linear-gradient(90deg, transparent 0, #000 18px); }
.sw-dots { display: flex; justify-content: center; gap: 7px; margin: 2px 0 16px; }
.sw-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(236, 229, 214, .22); transition: background .25s, transform .25s; }
.sw-dots i.on { background: #ffb066; transform: scale(1.25); }
/* Your Deck on phones: one compact line for the sleepers */
.yd-asleep { max-width: 360px; margin: 18px auto 0; text-align: center; }
.yd-asleep .zzz { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-bottom: 10px; }
.yd-asleep .zzz i { width: 9px; height: 13px; border-radius: 2px; background: #0b1118; box-shadow: 0 0 0 1px #1c2530; }
.yd-asleep p { color: #9c968a; font-size: 13.5px; line-height: 1.5; margin: 0; }
.yd-asleep b { color: #c9cdd4; font-weight: 600; }
/* desktop: the top bar is solid enough that the nav never reads over section text */
#below .bar { background: linear-gradient(180deg, rgba(4, 4, 5, .97), rgba(4, 4, 5, .86)); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-bottom: 1px solid rgba(255, 154, 60, .1); }
/* Section V (Brooke, 9 Oct): the same eyebrow as the other sections; the lede centred line by line */
#below .sec-deck { padding: 72px 22px 56px; max-width: 1120px; }
#below .yd-head .eyebrow { margin-bottom: 18px; }
#below .yd-head .yd-lede { text-align: center; color: #9c968a; font-size: 15px; max-width: 52ch; margin: 0 auto; line-height: 1.55; }
.sw-dots[hidden] { display: none; }

/* 9 Oct playtest: video tiles get their real poster frames (stored locally; the CSP allows only 'self') */
#below .vidtile[data-yt="CV-UL_Ie494"] { background: linear-gradient(180deg, rgba(5, 5, 7, .1), rgba(5, 5, 7, .8)), url('funnel/vid-CV-UL_Ie494.jpg') center 22% / cover; }
#below .vidtile[data-href*="dzBp3KXzzYM"] { background: linear-gradient(180deg, rgba(5, 5, 7, .15), rgba(5, 5, 7, .78)), url('funnel/vid-dzBp3KXzzYM.jpg') center / cover; }
#below .vidtile[data-href*="_i98wBPXNDI"] { background: linear-gradient(180deg, rgba(5, 5, 7, .15), rgba(5, 5, 7, .78)), url('funnel/vid-_i98wBPXNDI.jpg') center 30% / cover; }
#below form.capture [hidden] { display: none !important; }
#below .vidtile[data-yt="_i98wBPXNDI"] { background: linear-gradient(180deg, rgba(5, 5, 7, .1), rgba(5, 5, 7, .8)), url('funnel/vid-_i98wBPXNDI.jpg') center 30% / cover; }
#below .vidtile.vt-mv + .vidtile.vt-mv { margin-top: 14px; }
