/* v2 motion layer (PR_MOTION=on only). Rules fill in by later tasks; every animation lives inside @media (prefers-reduced-motion: no-preference). */

/* ── Cinematic photo hero (Task 2): the existing .v2-hero-photo lifts to a full-bleed cover behind the copy ── */
body.v2 .v2-hero.v2-hero--cine { position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: flex-end; min-height: min(92vh, 900px); background: #000; overflow: hidden; padding-bottom: 56px; }
body.v2 .v2-hero--cine .v2-hero-photo { position: absolute; inset: 0; z-index: -1; margin: 0; padding: 0; max-width: none; width: 100%; }
body.v2 .v2-hero--cine .v2-hero-photo .v2-figure { position: absolute; inset: 0; margin: 0; }
body.v2 .v2-hero--cine .v2-hero-photo picture { display: block; width: 100%; height: 100%; }
body.v2 .v2-hero--cine .v2-hero-photo img { display: block; width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; border-radius: 0; margin: 0; transform-origin: 50% 50%; will-change: transform; }
body.v2 .v2-hero--cine .v2-hero-photo::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(0, 0, 0, .05) 30%, rgba(0, 0, 0, .72) 100%); }
body.v2 .v2-hero--cine .v2-figcap { position: absolute; right: var(--v2-gut); bottom: 8px; z-index: 1; margin: 0 !important; color: var(--v2-on-dark-2) !important; }
body.v2 .v2-hero--cine .v2-figcap a { color: inherit; }
body.v2 .v2-hero--cine .v2-h1 .v2-gt { background: none; -webkit-text-fill-color: currentColor; color: var(--v2-on-dark); }
body.v2 .v2-hero--cine .v2-crumbs, body.v2 .v2-hero--cine .v2-crumbs a, body.v2 .v2-hero--cine .v2-eyebrow { color: var(--v2-on-dark); text-shadow: 0 1px 12px rgba(0, 0, 0, .6); }
body.v2 .v2-hero--cine .v2-hero-grid { position: relative; z-index: 1; }
body.v2 .v2-hero--cine .v2-h1 { color: var(--v2-on-dark); text-shadow: 0 2px 24px rgba(0, 0, 0, .45); }
body.v2 .v2-hero--cine .v2-sub { background: rgba(255, 255, 255, .12); -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4); border: 1px solid rgba(255, 255, 255, .22); border-radius: 16px; padding: 16px 20px; max-width: 520px; color: var(--v2-on-dark); }
/* money pages: the affiliate disclosure sits in the hero copy and must stay in the first screen (v2-measure disclosureY < 700), so the bottom-anchored copy gets a shorter hero */
body.v2 .v2-hero.v2-hero--cine:has(.v2-disclosure) { min-height: min(74vh, 700px); padding-top: 52px; }
body.v2 .v2-hero--cine:has(.v2-disclosure) .v2-sub { padding: 10px 16px; max-width: 760px; }
@media (max-width: 734px) {
  body.v2 .v2-hero.v2-hero--cine { min-height: min(88vh, 720px); padding-bottom: 40px; }
}
@media (prefers-reduced-motion: no-preference) {
  body.v2 .v2-hero--cine .v2-hero-photo img { animation: pr-kb 22s ease-in-out infinite alternate; }
  body.v2 .v2-hero--cine .v2-sub { animation: pr-fade-in 1s ease both; }
  @keyframes pr-kb { from { transform: scale(1); } to { transform: scale(1.12) translate(-2%, -2%); } }
  @keyframes pr-fade-in { from { opacity: 0; } to { opacity: 1; } }
}

/* ── Photo rail (Task 3): its own band between two text bands; fixed height, scrolls inside its own track ── */
body.v2 .v2-band--rail { padding: 40px 0; }
body.v2 .v2-rail__track { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-inline: var(--v2-gutter, var(--v2-gut, 20px)); overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }
body.v2 .v2-rail__track::-webkit-scrollbar { display: none; }
body.v2 .v2-rail__track:focus-visible { outline: 3px solid var(--v2-focus, #0C98A6); outline-offset: 4px; }
body.v2 .v2-rail__item { flex: 0 0 min(78vw, 360px); margin: 0; scroll-snap-align: start; }
body.v2 .v2-rail__item picture { display: block; aspect-ratio: 3 / 2; border-radius: 18px; overflow: hidden; }
body.v2 .v2-rail__item img { display: block; width: 100%; height: 100%; object-fit: cover; margin: 0; border-radius: 0; }
body.v2 .v2-rail__item .v2-figcap { margin: 8px 0 0; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  body.v2 .v2-rail__item img { transition: transform .5s ease; }
  body.v2 .v2-rail__item:hover img { transform: scale(1.06); }
}
/* mouse users: no arrows, so show a thin scrollbar under the rail (touch keeps the hidden one) */
@media (hover: hover) {
  body.v2 .v2-rail__track { scrollbar-width: thin; scrollbar-color: rgba(27, 36, 48, .35) transparent; padding-bottom: 12px; }
  body.v2 .v2-rail__track::-webkit-scrollbar { display: block; height: 6px; }
  body.v2 .v2-rail__track::-webkit-scrollbar-thumb { background: rgba(27, 36, 48, .35); border-radius: 3px; }
}
