/* A quiet opening before the Prologue. */
.opening-intro{min-height:100svh;position:relative;display:grid;place-items:center;padding:120px 28px;color:var(--fg)}
.opening-intro h1{font:300 clamp(28px,4.1vw,66px)/1.14 'Funnel Display',sans-serif;letter-spacing:-.035em;text-align:center;margin:0;text-wrap:balance;max-width:1200px}
.opening-next{position:absolute;bottom:64px;left:50%;transform:translateX(-50%);display:grid;place-items:center;width:44px;height:44px;color:var(--muted)}
.opening-next svg{width:18px;height:30px;fill:none;stroke:currentColor;stroke-width:1.2}
.opening-next:hover{color:var(--fg)}
.opening-next:focus-visible{outline:1px solid var(--cell-highlight);outline-offset:4px}
body .site-header{position:fixed;background:var(--bg)}
body.figure-open .site-header{background:transparent;pointer-events:none}
body.figure-open .site-header :is(a,button){pointer-events:auto}
body.figure-open .opening-intro{display:none}
body.intro-in-view:not(.figure-open) .controls-shell{visibility:hidden;pointer-events:none}
body.intro-in-view:not(.figure-open) #about-dialog{top:50%;max-height:calc(100svh - 180px)}
.community-invitation h1{max-width:20em;margin-inline:auto}
@media(max-width:600px){.opening-intro h1{font-size:clamp(30px,7.5vw,44px);max-width:500px}.opening-next{bottom:44px}}

.opening-copy{text-align:center}.opening-copy p{font:400 clamp(16px,1.35vw,20px)/1.5 'Funnel Sans',sans-serif;color:var(--muted);max-width:34em;margin:24px auto 0;text-wrap:balance}

.opening-intro{min-height:0;height:calc(100svh - var(--prologue-offset,96px) - var(--prologue-peek,48px));padding:88px 28px 32px}

/* Three values: navigation, introduction, then the animation collection. */
body .site-header,body.figure-open .site-header,
body:has(#about-dialog[open]) .site-header,
body:has(#search-dialog[open]) .site-header,
body:has(#contribution-options[open]) .site-header{background:#fff;padding:10px 28px}
.site-header .site-logo,.site-header .site-name:hover .site-logo,.site-header .site-name:focus-visible .site-logo{background:#000}
.site-header .site-links{gap:24px}
.site-header .site-links a,.site-header .site-links button{display:grid;place-items:center;width:auto;min-height:44px;padding:0;border:0;background:transparent;color:#555;text-decoration:none}
.site-header .site-links a:hover,.site-header .site-links button:hover{color:#000}
.opening-intro{background:#e7e7e7;color:#080808}
@media(max-width:600px){body .site-header{padding:8px 16px}.site-header .site-links{gap:18px}}

.about-section{background:#e7e7e7;color:#171717;padding:clamp(64px,9vw,128px) 28px;scroll-margin-top:64px}
.about-content{max-width:760px;margin:0 auto}
.about-section h2{font:inherit;font-size:16px;font-weight:500;margin:0 0 36px;outline:none;text-align:center}
.about-section p{font-size:16px;line-height:1.55;margin:0 0 28px;text-align:left}
.about-section .about-opening{font-size:var(--section-headline-size);line-height:1.2;letter-spacing:-.025em;max-width:19em;margin:0 auto 36px;text-align:center}
.about-section a{color:inherit;text-decoration:underline;text-underline-offset:3px}
.about-section p:last-child{margin-bottom:0}
body.figure-open .about-section{display:none}
@media(max-width:600px){.about-section{padding:56px 24px;scroll-margin-top:60px}}

.page-footer{min-height:92px;background:var(--bg)}
body.about-in-view:not(.figure-open) .page-footer .controls-shell{position:relative;inset:auto;visibility:visible;pointer-events:auto}
body.about-in-view:not(.figure-open) .controls-shell::after{display:none}
body.figure-open .page-footer{min-height:0}
@media(max-width:600px){.page-footer{min-height:82px}}

.about-content{max-width:660px}
.about-section p:not(.about-opening){max-width:620px;margin-left:auto;margin-right:auto}

/* Shared headline scale, based on the contribution headline. */
:root{--section-headline-size:clamp(24px,2.7vw,34px)}
.community-invitation h1{font-size:var(--section-headline-size)}
@media(max-width:600px){:root{--section-headline-size:26px}}

/* Light-mode value blocking: paper gallery between grey reading sections. */
body.light:has(#prologue){--bg:#f5f4f0;--fg:#171717}
body.light .opening-intro,body.light .about-section{background:#e7e7e7;color:#171717}
body.light .page-footer{background:#fff}
body.light:not(.figure-open) .page-footer .controls-shell{--bg:#fff;background:#fff}

.installation-placeholder{margin:0;background:#171717;width:100%}
.installation-placeholder img{display:block;width:100%;height:auto}
body.figure-open .installation-placeholder{display:none}

.installation-placeholder{overflow:hidden;background:#000}
.installation-placeholder img{transform-origin:center;will-change:opacity,transform}
@media(prefers-reduced-motion:reduce){.installation-placeholder img{will-change:auto}}

.installation-placeholder.reveal-ready img{opacity:0;transform:scale(1.05);transition:opacity 3.5s ease-out,transform 5s cubic-bezier(.2,.65,.25,1)}
.installation-placeholder.reveal-ready.is-revealed img{opacity:1;transform:scale(1)}
@media(prefers-reduced-motion:reduce){.installation-placeholder.reveal-ready img{opacity:1;transform:none;transition:none}}

/* Collection controls stay quiet; frame rates belong to specimen viewing. */
body:not(.figure-open) .controls .rates,body:not(.figure-open) .controls .divider{display:none}
body.light .site-header,body.light.figure-open .site-header,body.light:has(dialog[open]) .site-header{background:#000;color:#fff}
body.light .site-header .site-links :is(a,button){color:#fff}
body.light .site-header .site-logo,body.light .site-header .site-name:hover .site-logo,body.light .site-header .site-name:focus-visible .site-logo{background:#fff;filter:none}

/* Edge-aligned Prologue labels and a closer invitation. */
.collection-caption .prologue-title{display:flex;align-items:baseline;justify-content:space-between;gap:20px;width:100%;text-align:left}
.collection-caption .prologue-title span{margin:0;text-align:right}
body:not(.figure-open) #community{padding-top:calc(var(--frame-top) + var(--overview-size) + 100px)}
.community-invitation{padding-top:clamp(40px,6svh,64px);padding-bottom:clamp(80px,12svh,128px)}

/* Bring the invitation one headline x-height closer, then lead into the chapters. */
.community-invitation{padding-top:calc(clamp(40px,6svh,64px) - 36px);padding-bottom:0}
.community-direction{display:flex;justify-content:center;margin:64px auto 152px;color:var(--muted)}
.community-direction svg{width:24px;height:72px;fill:none;stroke:currentColor;stroke-width:1}
@media(max-width:600px){.community-invitation{padding-top:calc(clamp(40px,6svh,64px) - 28px)}.community-direction{margin:48px auto 112px}}

#contribution-options{padding:32px;width:min(420px,calc(100vw - 40px));max-height:calc(100svh - 80px)}
#contribution-options h2{font-family:'Funnel Display',sans-serif;font-size:26px;font-weight:400;line-height:1.2;margin:0 32px 20px 0}
#contribution-options p{font-size:16px;line-height:1.5;color:var(--muted);margin:0 0 28px}
#contribution-options .dialog-close{position:absolute;right:12px;top:12px}
#open-keylite{display:block;margin:0 auto;padding:10px 20px;border:1px solid var(--line);background:transparent;color:var(--fg);font:inherit;cursor:pointer}
#open-keylite:hover,#open-keylite:focus-visible{background:var(--fg);color:var(--bg)}
#contribution-options::backdrop{inset:64px 0 0;background:rgba(0,0,0,.45);backdrop-filter:blur(3.75px);-webkit-backdrop-filter:blur(3.75px)}
@media(max-width:600px){#contribution-options::backdrop{top:60px}}
