/* Launch v2 "wow" layer. Loaded after site.css + launch.css. Motion: transform + opacity only.
   Every hover state has a :focus-visible twin and a tap (JS class) twin; reduced motion swaps instantly. */

:root { --night: #232046; --night-2: #34305f; --moon: #fdf3dc; }

/* ---------- 1. Scroll reveal (launch.js): early, short, never blank ---------- */
.rv-wait { opacity: 0; translate: 0 12px; }
.rv-in { opacity: 1; translate: 0 0; transition: opacity 0.32s ease var(--rvd, 0ms), translate 0.35s cubic-bezier(0.2, 0.8, 0.2, 1) var(--rvd, 0ms); }

/* ---------- 2. Wraps, measure, rhythm ---------- */
h1, h2, h3 { text-wrap: balance; }
.section-head { max-width: 760px; }
.section-head h2 { max-width: 24ch; }
.section-head p { max-width: 60ch; }
.section-head-c { margin-left: auto; margin-right: auto; text-align: center; }
.section-head-c h2, .section-head-c p { margin-left: auto; margin-right: auto; }
.nowrap { white-space: nowrap; }
.measure { max-width: 65ch; }
.gift-inner p { max-width: 65ch; }
.more-link { margin-top: 26px; }
.look, .friends-section, .why, .books-band, .gift, .tiles-section, .ppt, .faq, .series-strip, .story, .explore, .cast-place, .cast { padding: 48px 0; }
@media (min-width: 960px) {
  .look, .friends-section, .why, .books-band, .gift, .tiles-section, .ppt, .faq, .series-strip, .story, .explore, .cast-place, .cast { padding: 72px 0; }
}

/* ---------- 3. Home hero: the books as objects beside Sunny ---------- */
.v2hero { padding-bottom: 32px; }
.v2hero .wrap { display: grid; gap: 18px; }
.beats { list-style: none; margin: 4px 0 18px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.beats li {
  display: inline-flex; align-items: center; gap: 8px; padding: 4px 14px 4px 4px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.72); font-weight: 700; font-size: 1rem; line-height: 1.2;
}
.beats li + li::before { content: "→"; margin: 0 6px 0 -2px; color: var(--ink-soft); order: -1; display: none; }
.beats img { width: 40px; height: 40px; object-fit: contain; border-radius: 50%; background: #fdf0d6; padding: 2px; }
.hero-stage { position: relative; display: grid; grid-template-columns: 1fr; justify-items: center; }
.v2hero .hero-art { width: min(58vw, 380px); margin: 0; }
.hero-fan { display: flex; justify-content: center; gap: 4px; margin-top: -26px; position: relative; z-index: 2; }
.fan-book { display: grid; justify-items: center; gap: 8px; text-decoration: none; color: var(--ink); width: 150px; }
.fan-1 { rotate: -5deg; }
.fan-2 { rotate: 5deg; margin-top: 14px; }
.fan-label { font-family: var(--display); font-weight: 600; font-size: 1.15rem; display: grid; text-align: center; line-height: 1.15; }
.fan-label span { font-family: var(--body); font-weight: 700; font-size: 0.92rem; color: var(--ink-soft); }
.fan-book:focus-visible { box-shadow: none; }
.fan-book:focus-visible .fan-label { box-shadow: var(--focus); border-radius: 8px; }
@media (min-width: 960px) {
  .v2hero .wrap { grid-template-columns: 1fr 1.05fr; grid-template-areas: none; align-items: center; column-gap: 40px; }
  .v2hero .hero-copy { padding-top: 12px; }
  .hero-stage { grid-template-columns: 1fr; }
  .v2hero .hero-art { width: 360px; justify-self: start; margin-left: 10px; }
  .hero-fan { position: absolute; right: -6px; bottom: -6px; margin: 0; gap: 0; }
  .fan-book { width: 200px; }
  .fan-2 { margin-top: 40px; margin-left: -34px; }
  .beats li + li::before { display: inline; }
}

/* ---------- 4. 3D books ---------- */
.b3d { --ry: 22deg; --rx: 4deg; --t: 16px; position: relative; display: block; width: 100%; perspective: 1100px; }
.b3d-obj {
  position: relative; display: block; transform-style: preserve-3d;
  transform: rotateY(var(--ry)) rotateX(var(--rx)); transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.b3d-cover { position: relative; display: block; transform-origin: 0 50%; transform: translateZ(1px); transition: transform 0.55s cubic-bezier(0.2, 0.8, 0.2, 1); }
.b3d-cover .cover { box-shadow: inset 7px 0 0 rgba(0, 0, 0, 0.08), inset 9px 0 6px -4px rgba(255, 255, 255, 0.4); border-radius: 4px 12px 12px 4px; }
.b3d-back { position: absolute; inset: 0; border-radius: 4px 12px 12px 4px; background: #e9dcc4; transform: translateZ(calc(var(--t) * -1)); }
.b3d-spine {
  position: absolute; left: 0; top: 0; width: var(--t); height: 100%; transform-origin: 0 50%; transform: rotateY(90deg);
  background: linear-gradient(90deg, #8f3b25, #b5543a 50%, #8f3b25); border-radius: 3px 0 0 3px; overflow: hidden;
}
.b3d-ireland .b3d-spine { background: linear-gradient(90deg, #2f5e3a, #4f8a5c 50%, #2f5e3a); }
.b3d-canada .b3d-spine { background: linear-gradient(90deg, #1e4f4c, #2f6b6a 50%, #1e4f4c); }
.b3d-spine span { display: none; }
.b3d-pages {
  position: absolute; right: 0; top: 2%; width: var(--t); height: 96%; transform-origin: 100% 50%; transform: rotateY(-90deg);
  background: repeating-linear-gradient(90deg, #fffdf7 0 2px, #eadfca 2px 3px);
}
.b3d-peek {
  position: absolute; inset: 2% 2% 2% 0; display: grid; place-items: center; transform: translateZ(-1px);
  background: linear-gradient(90deg, #efe4cf, #fffaf0 18%); border-radius: 2px 10px 10px 2px;
}
.b3d-peek-line { font-family: var(--display); font-weight: 600; font-size: 0.95rem; color: var(--ink-soft); padding-left: 30%; }
.b3d-shadow {
  position: absolute; left: 6%; right: -2%; bottom: -7%; height: 16%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(59, 42, 34, 0.32), rgba(59, 42, 34, 0)); transition: opacity 0.4s ease;
}
/* open slightly to peek inside: hover, keyboard focus on the link, or .is-open (tap / JS) */
a:hover .b3d-cover, a:focus-visible .b3d-cover, .b3d.is-open .b3d-cover { transform: translateZ(1px) rotateY(-32deg); }
a:hover .b3d, a:focus-visible .b3d { --ry: 8deg; }
.b3d-sm { width: 120px; }
.b3d-lg { max-width: 380px; margin: 0 auto; --t: 22px; }
.book-card .cover-link { padding: 6px 14px 18px 4px; }

/* ---------- 5. Benefit cards: Sunny reacts ---------- */
.v2-why .benefits { gap: 22px; }
.v2-why .benefit { text-align: center; padding: 24px 24px 26px; display: grid; justify-items: center; }
.face-swap {
  position: relative; display: grid; width: 104px; height: 128px; margin: -4px 0 8px; padding: 0; border: 0; border-radius: 50%;
  background: radial-gradient(closest-side, #fde8b8, rgba(253, 232, 184, 0)); cursor: pointer;
}
.face-swap img { grid-area: 1 / 1; width: 104px; height: auto; align-self: end; transition: opacity 0.22s ease; }
.face-swap .fs-b { opacity: 0; }
.face-swap:focus-visible { box-shadow: var(--focus); }
[data-face]:hover .fs-a, .face-swap:focus-visible .fs-a, .face-swap[aria-pressed="true"] .fs-a { opacity: 0; }
[data-face]:hover .fs-b, .face-swap:focus-visible .fs-b, .face-swap[aria-pressed="true"] .fs-b { opacity: 1; }
[data-face]:hover .face-swap, .face-swap:focus-visible, .face-swap[aria-pressed="true"] { animation: squash 0.5s cubic-bezier(0.3, 0.7, 0.4, 1.4); }
@keyframes squash {
  0% { transform: scale(1, 1); }
  30% { transform: scale(1.1, 0.9); }
  60% { transform: scale(0.95, 1.06) translateY(-4px); }
  100% { transform: scale(1, 1); }
}
.trust { list-style: none; margin: 30px auto 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 0; font-weight: 700; color: var(--ink-soft); font-size: 1.02rem; }
.trust li { white-space: nowrap; }
.trust li:not(:last-child)::after { content: "·"; margin: 0 10px; }
.book-hero .trust { justify-content: flex-start; margin: 10px 0 0; font-size: 0.98rem; }
.cast-sunny { position: relative; }
.cast-sunny .face-swap { position: absolute; right: -36px; top: -8px; width: 72px; height: 88px; }
.cast-sunny .face-swap img { width: 72px; }

/* ---- pass 1 fixes ---- */
.v2hero .hero-copy, .v2hero .hero-stage, .v2hero .hero-art { grid-area: auto; }
@media (min-width: 960px) {
  .v2hero .wrap { grid-template-areas: "copy stage"; }
  .v2hero .hero-copy { grid-area: copy; }
  .v2hero .hero-stage { grid-area: stage; align-self: center; padding-bottom: 40px; }
}
@media (min-width: 1100px) { .v2-books .book-card, .books-band .book-card { grid-template-columns: 210px 1fr; } }
.gn-scene { height: 250px; }
.gn-sleeper { width: 200px; }
.gn-moon { right: 7%; }
@media (min-width: 960px) {
  .beats li + li::before { display: none; }
  .v2hero .hero-art { width: 340px; margin-left: 0; }
  .hero-fan { right: -24px; bottom: -34px; }
  .fan-book { width: 176px; }
  .fan-2 { margin-top: 52px; margin-left: -26px; }
}
/* phones: the books join the first screen, beside Sunny, right under the promise */
@media (max-width: 959px) {
  .v2hero .hero-copy { display: contents; }
  .v2hero .wrap { gap: 0; }
  .v2hero .eyebrow { justify-self: start; }
  .v2hero .eyebrow, .v2hero h1, .v2hero .promise { order: 1; }
  .v2hero .hero-stage { order: 2; grid-template-columns: 0.85fr 1.15fr; align-items: end; justify-items: stretch; width: 100%; max-width: 520px; margin: 0 0 14px; }
  .v2hero .hero-art { width: 100%; }
  .v2hero .hero-fan { margin: 0 0 0 -8px; gap: 0; align-items: end; }
  .v2hero .fan-book { width: 50%; }
  .v2hero .fan-2 { margin: 0 0 12px -6px; }
  .v2hero .fan-label { font-size: 1rem; }
  .v2hero .fan-label span { font-size: 0.82rem; }
  .v2hero .beats { order: 3; }
  .v2hero .hero-actions { order: 4; }
  .v2hero .promise { margin-bottom: 10px; }
}
