/* The top of the page. Written by preview/photo-ideas/promote.py from preview.css. */
:root{--bar:0px}
/* A pinned section: tall, with a screen-high stage that stays put while you scroll through it. */
.pin{position:relative;height:var(--len,300vh);padding:0}
/* --bar is the preview bar's height, so the pinned screen stops above it */
.pin>.pin-stage{position:sticky;top:0;height:calc(100dvh - var(--bar,0px));overflow:hidden}
/* Reduced motion: no pinning, the stage shows its finished state. */
.still .pin{height:auto}
.still .pin>.pin-stage{position:relative;height:auto;min-height:calc(100dvh - var(--bar,0px))}

.on-dark{color:#f3f3f0}
/* Where the top bar sits on a dark photo (concepts 3 and 7), the logo's "yours" seat and any light-dark() colour in it stay at night values. Concept 6 does this in its own CSS. */
body:has(> .p3)>.wrap:first-child,body:has(> .p7)>.wrap:first-child{--ink:#f3f3f0;color-scheme:dark}
.on-dark .sub{color:rgba(243,243,240,.82)}
.scroll-cue{position:absolute;left:50%;bottom:94px;translate:-50% 0;margin:0;font-size:14px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;pointer-events:none}
.still .scroll-cue{display:none}

.credit-line{flex-basis:100%;font-size:14px}
/* Short phones: the pinned screen hides the intro paragraph; it appears here instead (each idea hides it in its own CSS if not wanted) */
.sub-after{display:none}
@media(max-width:860px) and (max-height:760px){.sub-after{display:block;margin-block:28px}}
/* Read by screen readers, not shown */
.vh{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
/* "Motion off" in the footer: looks like the footer link, 44px high to tap */
.motion-toggle{min-height:44px;padding:0;border:0;background:none;color:inherit;font:inherit;text-decoration:underline;cursor:pointer}
.motion-toggle:focus-visible{outline:3px solid var(--ink);outline-offset:2px}
.motion-toggle:disabled{text-decoration:none;cursor:default}
