/* Structure shared by both Renaissance prototypes: the black ribbon, the perspective lab, artist subheads,
   the "how to read" list, the notes. Colours come from each design's variables. */

/* the black ribbon: the bar and the hero sit on black, and the hero's foot fades into the page's ground */
.bar{background:#0a0908;box-shadow:none;color:#f3efe6}
.bar .brand{color:#fff}
.bar .bar-title{color:rgb(255 255 255/.6)}
.bar-links a,.share-btn{color:rgb(255 255 255/.72)}
.bar-links a:hover,.share-btn:hover{color:#fff;background:rgb(255 255 255/.1)}
.bar::after{content:"";position:absolute;left:0;right:0;top:100%;height:22px;background:linear-gradient(#0a0908,rgb(10 9 8/0));pointer-events:none;opacity:0;transition:opacity .4s}
body.past-hero .bar::after{opacity:1}
.hero{position:relative;background:#0a0908;color:#fff;overflow:hidden}
.hero::before{content:"";position:absolute;left:0;right:0;bottom:-1px;height:var(--fade-h,26%);z-index:1;background:linear-gradient(180deg,rgb(10 9 8/0),var(--fade-mid) 28%,color-mix(in srgb,var(--fade-mid) 70%,var(--bg)) 52%,color-mix(in srgb,var(--fade-mid) 30%,var(--bg)) 76%,var(--bg));pointer-events:none}

/* artist subheads inside "Three Giants" */
.artist{font:var(--h-weight) clamp(1.5rem,2.4vw,2rem)/1.1 var(--display);letter-spacing:var(--h-track);color:var(--ink);margin:2.2em 0 .7em;display:flex;flex-wrap:wrap;align-items:baseline;gap:.2em .6em}
.artist .dates{font:500 .85rem/1 var(--ui);letter-spacing:.04em;color:var(--acc);font-variant-numeric:tabular-nums}

/* a chapter with an empty side column takes the full width; running text keeps its measure */
.ch.noside .ch-grid{grid-template-columns:minmax(0,1fr)}
.ch.noside .ch-side{display:none}
.ch.noside .ch-main{max-width:none}
.ch.noside .fbeat{max-width:var(--measure,40rem)}
@media (min-width:1000px){
  .ch.noside .why-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0 48px}
  .ch.noside .note{display:grid;grid-template-columns:minmax(0,14rem) minmax(0,1fr);gap:0 48px;padding:28px 32px}
  .ch.noside .note h3{margin:4px 0 0}
  .ch.noside .note p{max-width:62ch}
}

/* how to read a painting: four numbered steps, two by two on a wide screen */
.look{list-style:none;counter-reset:lk;margin:28px 0 0;padding:0;display:grid;gap:0}
.look li{counter-increment:lk;display:grid;grid-template-columns:3rem minmax(0,1fr);gap:0 14px;align-items:baseline;padding:20px 0;border-top:1px solid var(--hair)}
.look li>span{min-width:0}
/* one list, four points, as wide as the painting above it */
.ch .look{width:min(1136px,calc(100vw - 44px));margin-left:calc((100% - min(1136px,calc(100vw - 44px))) / 2);grid-template-columns:minmax(0,1fr)}
.look li::before{content:counter(lk);font:var(--h-weight) 2rem/1 var(--display);color:var(--acc);font-variant-numeric:tabular-nums}
.look strong{color:var(--ink)}

/* Move the Vanishing Point: the live page's lab */
.lab{max-width:none;margin:clamp(90px,12vw,150px) 0;padding:clamp(56px,8vw,110px) max(22px,calc((100vw - 1136px)/2));background:var(--lab-bg,#0f0e0c);color:#efeae0}
.lab-head h3{font:var(--h-weight) clamp(2rem,4.2vw,3.4rem)/1.02 var(--display);letter-spacing:var(--h-track);color:#fff;margin:0 0 12px;text-wrap:balance}
.lab-head .sub{color:rgb(239 234 224/.72);font:400 1.1rem/1.45 var(--ui);margin:0 0 32px;max-width:48ch}
.lab-stage{border-radius:var(--r);overflow:hidden;background:rgb(255 255 255/.03);box-shadow:inset 0 0 0 1px rgb(255 255 255/.12)}
#persp{width:100%;height:auto;touch-action:none;cursor:grab}
#persp:active{cursor:grabbing}
#persp:focus-visible{outline:3px solid var(--lab-gold);outline-offset:3px}
#persp .ortho{stroke:var(--lab-ortho,#e3765c);stroke-width:1.4}
#persp .trans{stroke:rgb(239 234 224/.28);stroke-width:1.2}
#persp .edge{stroke:rgb(239 234 224/.8);stroke-width:2;fill:none}
#persp .back{fill:rgb(255 255 255/.04);stroke:rgb(239 234 224/.8);stroke-width:2}
#persp .horizon{stroke:var(--lab-gold);stroke-width:1.2;stroke-dasharray:6 6}
#persp .fig{fill:var(--lab-gold)}
#persp .vp{fill:var(--lab-gold);stroke:#0f0e0c;stroke-width:3}
#persp .ring{fill:none;stroke:var(--lab-gold);stroke-width:2;opacity:.6}
#persp .vpt{fill:var(--lab-gold);font:600 13px var(--ui)}
.lab-cap{margin:22px 0 0;max-width:62ch;font:400 1.05rem/1.55 var(--ui);color:rgb(239 234 224/.86)}

/* the two notes ("Myth busted", "A Renaissance person") */
.note{padding:22px 24px;margin:30px 0}
.note h3{font:600 .8rem/1 var(--ui);letter-spacing:.08em;text-transform:uppercase;color:var(--acc);margin:0 0 10px}
.note p{margin:0}

.nums-h{margin:0 0 12px;font:600 .8rem/1 var(--ui);letter-spacing:.08em;text-transform:uppercase;color:var(--ink3)}
.band-tl .sub{max-width:1180px;margin:-16px auto 28px;padding:0 22px;color:var(--ink2);font:400 1.05rem/1.45 var(--ui)}

/* plates: one painting per chapter on the wrap's edges, no caption. Wide works fill the frame;
   upright panels stand whole in it over a dim, blurred copy of themselves. */
.plate{position:relative;width:min(1136px,calc(100% - 44px));margin:0 auto clamp(28px,4vw,44px);border-radius:var(--r);overflow:hidden;background:#141210;aspect-ratio:2.35/1}
.plate img{width:100%;height:100%;object-fit:cover;transition:transform .7s cubic-bezier(.2,.8,.2,1)}
.plate:hover img{transform:scale(1.025)}
.plate.panel .bk{position:absolute;inset:-40px;width:calc(100% + 80px);height:calc(100% + 80px);filter:blur(34px) brightness(.45) saturate(1.1);transform:none!important}
.plate.panel .fg{position:relative;width:auto;height:100%;margin:0 auto;object-fit:contain;box-shadow:0 20px 50px -20px rgb(0 0 0/.8)}
@media (max-width:700px){.plate{aspect-ratio:4/3}.plate.panel{aspect-ratio:4/5}}

/* the dealt moment "picture develops": a plate comes up like a print in the tray, darks first, then colour */
.develop img{filter:grayscale(1) contrast(.55) brightness(1.5);transform:scale(1.05);transition:filter 1.6s cubic-bezier(.2,.7,.2,1),transform 1.6s cubic-bezier(.16,1,.3,1)}
.develop.panel .bk{filter:blur(34px) brightness(.45) grayscale(1)}
.develop.dev img.fg,.develop.dev:not(.panel) img{filter:none;transform:none}
.develop.dev .bk{filter:blur(34px) brightness(.45) saturate(1.1);transition:filter 1.6s}
@media (prefers-reduced-motion:reduce){.develop img{filter:none!important;transform:none!important;transition:none}}
