/* Background motifs come from the artwork: street wires, lights, character contours and drawing paper. */
.artist-world { isolation: isolate; }
.artist-world-grain { mask-image: linear-gradient(transparent, #000 64px, #000 calc(100% - 64px), transparent); position: absolute; z-index: -1; inset: 0; pointer-events: none; opacity: .035; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.68' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath filter='url(%23n)' opacity='.8' d='M0 0h180v180H0z'/%3E%3C/svg%3E"); }
.pyre-heading > .artist-contact { justify-self: end; align-self: center; width: max-content; }
:is(.pyre-opening,.pyre-city,.pyre-together,.pyre-characters,.gold-portraits,.gold-colour-study,.gold-studies,.gold-character) { position: relative; isolation: isolate; }
.gallery-ambient { --ambient-state: paused; position: absolute; z-index: -1; pointer-events: none; translate: 0 var(--ambient-drift,0px); }
.gallery-ambient[data-ambient-visible] { --ambient-state: running; }
.gallery-ambient svg { display: block; width: 100%; height: 100%; overflow: visible; }
.pyre-ink-field { inset: -200px -10vw -140px 20%; }
.pyre-ink-field > span:first-child { position: absolute; top: 0; right: 0; width: 58%; height: 125%; rotate: -15deg; background: linear-gradient(115deg,#49273f00,#49273faa 22%,#57021096 55%,#49273f70 80%,#49273f00); clip-path: polygon(19% 0,91% 2%,94% 14%,87% 28%,100% 42%,92% 54%,97% 68%,84% 83%,81% 100%,3% 96%,11% 82%,0 69%,13% 52%,7% 38%,15% 22%); background-size: 180% 180%; animation: artist-ink-flow 24s ease-in-out infinite alternate; animation-play-state: var(--ambient-state); }
.pyre-ink-field > span:last-child { position: absolute; left: 0; top: 10%; width: 36%; height: 84%; rotate: -15deg; border-left: 1px solid #8097b755; border-right: 1px solid #8097b72b; background: linear-gradient(180deg,transparent,#706f8b1c,transparent); }
.pyre-city-lines { inset: -120px -14% -100px; color: #8097b7; opacity: .53; }
.pyre-window-lights { color: #e1fdfe; animation: artist-window-light 13s ease-in-out infinite alternate; animation-play-state: var(--ambient-state); }
.pyre-wire-glint { stroke-dasharray: 90 2300; stroke-dashoffset: 2390; opacity: .6; animation: artist-wire-light 24s linear infinite; animation-play-state: var(--ambient-state); }
.pyre-garland { inset: -140px -10% -110px; opacity: .55; }
.pyre-garland-bulbs circle { filter: drop-shadow(0 0 5px #e1fdfe66); animation: artist-bulb-light 9s ease-in-out infinite alternate; animation-play-state: var(--ambient-state); }
.pyre-garland-bulbs circle:nth-child(3n) { animation-delay: -4s; }
.pyre-garland-bulbs circle:nth-child(3n + 1) { animation-delay: -7s; }
.pyre-red-ink { inset: -60px -5% -80px; }
.pyre-red-ink > span { position: absolute; inset: 24% 10% 1% 23%; background: linear-gradient(140deg,#49273f00,#77080e8c 30%,#570210bc 70%,#57021000); clip-path: polygon(15% 3%,100% 0,88% 26%,96% 46%,86% 65%,87% 99%,0 94%,8% 71%,3% 48%,12% 23%); rotate: -9deg; background-size: 150% 180%; animation: artist-ink-flow 28s ease-in-out infinite alternate; animation-play-state: var(--ambient-state); }
.pyre-red-ink > svg { position: absolute; left: -9%; top: -6%; width: 80%; height: 72%; opacity: .24; }

.gold-portraits { min-height: 800px; }
.gold-silk-ribbon { inset: -240px -18% -260px; }
.gold-silk-ribbon > span { position: absolute; left: -5%; top: 0; width: 115%; height: 66%; border-radius: 50%; rotate: -27deg; background: linear-gradient(100deg,#a230a424 5%,#a230a4c4 20%,#cac5e5a6 38%,#f2e0a46b 50%,#cac5e585 65%,#a230a452 80%,#29008700); background-size: 180% 180%; mask-image: radial-gradient(ellipse,transparent 41%,#000 43%,#000 57%,transparent 59%); -webkit-mask-image: radial-gradient(ellipse,transparent 41%,#000 43%,#000 57%,transparent 59%); animation: artist-silk-flow 22s ease-in-out infinite alternate; animation-play-state: var(--ambient-state); }
.gold-silk-ribbon > span:last-child { left: 24%; top: 25%; width: 90%; height: 70%; rotate: 24deg; opacity: .64; animation-delay: -10s; }
.gold-mask-contour { top: -250px; right: -12%; bottom: -50px; width: 62%; color: #f2e0a4; opacity: .27; }
.gold-wing-study { inset: -60px -8% -90px -16%; color: #e6bed8; opacity: .48; }
.gold-wing-study::before { content: ''; position: absolute; z-index: -1; inset: -10% 0 -10% -4%; background: radial-gradient(ellipse at 32% 53%, #c57d9d70, transparent 65%); }
.gold-wing-glint { stroke-dasharray: 140 2000; stroke-dashoffset: 2140; animation: artist-wing-trace 24s linear infinite; animation-play-state: var(--ambient-state); }
.gold-arch { box-shadow: inset 20px 0 70px #29008729; }
.gold-colour-rings { inset: -60px -6%; color: #f2e0a4; opacity: .3; }
.gold-colour-rings > svg { animation: artist-orbit-settle 25s ease-in-out infinite alternate; animation-play-state: var(--ambient-state); }
.gold-colour-rings::before { content: ""; position: absolute; inset: 10% 5%; z-index: -1; background: radial-gradient(ellipse,#a230a46b,transparent 65%); }
.artist-compare-caption a { display: grid; place-items: center; width: 44px; min-height: 44px; }
.gold-pencil-study { inset: -100px -8% -10%; color: #cac5e5; opacity: .28; }
.gold-scythe-study { inset: 40% -9% -4% -12%; color: #cac5e5; opacity: .3; }
.gold-character { perspective: 1300px; padding-block: 130px 190px; }
.gold-sheet { position: relative; z-index: 1; box-shadow: 0 22px 45px #14002f38; }
.gold-turnaround { position: relative; z-index: 2; padding: 12px 12px 18px; background: #f6ffe9; rotate: 6deg; transform: rotateY(-7deg); box-shadow: 12px 28px 45px #14002f66; }
.gold-turnaround img { display: block; width: 100%; height: auto; }
.gold-turnaround::before { content: ""; position: absolute; z-index: 3; top: -11px; left: 35%; width: 30%; height: 26px; background: #f2e0a4b8; rotate: -9deg; box-shadow: 0 1px 2px #21182814; pointer-events: none; }
.gold-animation-paper { inset: 60px 2% 80px; }
.gold-animation-paper > span { position: absolute; top: 8%; left: 25%; width: 63%; height: 83%; rotate: -12deg; background: #f2e0a41c; border: 1px solid #f2e0a426; }
.gold-animation-paper > span:nth-child(2) { left: 8%; top: 20%; width: 58%; height: 72%; rotate: 8deg; background: #cac5e51a; border-color: #cac5e54a; }
.gold-animation-paper svg { position: relative; opacity: .5; }
.gold-animation-paper svg path { animation: artist-pencil-loop 32s linear infinite; animation-play-state: var(--ambient-state); }

@keyframes artist-ink-flow { from { background-position: 0 15%; } to { background-position: 85% 90%; } }
@keyframes artist-silk-flow { from { background-position: 0 0; transform: rotate(-2deg) translateY(-12px); } to { background-position: 85% 90%; transform: rotate(2deg) translateY(12px); } }
@keyframes artist-window-light { from { opacity: .22; } to { opacity: .8; } }
@keyframes artist-bulb-light { from { opacity: .28; } to { opacity: .9; } }
@keyframes artist-wire-light { to { stroke-dashoffset: 0; } }
@keyframes artist-orbit-settle { from { transform: rotate(-3deg) scale(.98); } to { transform: rotate(3deg) scale(1.02); } }
@keyframes artist-pencil-loop { to { stroke-dashoffset: -260; } }
@keyframes artist-wing-trace { to { stroke-dashoffset: 0; } }

[data-gallery-motion=off] .gallery-ambient,[data-gallery-hidden] .gallery-ambient { --ambient-state: paused !important; }
[data-gallery-motion=off] .gallery-ambient { translate: none; }
@media (max-width:700px) {
    .pyre-heading > .artist-contact { margin-top: 28px; }
    .pyre-ink-field { inset: -80px -25vw -50px 5%; }
    .pyre-ink-field > span:first-child { width: 77%; }
    .pyre-city-lines { inset: -70px -45% -70px -30%; }
    .pyre-garland { inset: -80px -75% -80px -35%; }
    .pyre-red-ink { inset: -30px -20% -40px; }
    .pyre-red-ink > span { inset: 22% 2% 2% 15%; }
    .pyre-red-ink > svg { width: 100%; left: -3%; opacity: .8; }
    .gold-portraits { min-height: 0; }
    .gold-silk-ribbon { inset: 80px -50% -150px -45%; }
    .gold-silk-ribbon > span { height: 60%; }
    .gold-mask-contour { top: 240px; right: -43%; width: 112%; bottom: -70px; opacity: .25; }
    .gold-wing-study { inset: -30px -28% -40px -40%; opacity: .36; }
    .gold-colour-rings { inset: -60px -80%; opacity: .25; }
    .gold-pencil-study { inset: -80px -50% -20% -15%; }
    .gold-scythe-study { inset: 44% -30% 10% -30%; opacity: .25; }
    .gold-character { padding-block: 70px 110px; }
    .gold-turnaround { margin: 34px 4px 0 12px !important; padding: 8px 8px 13px; rotate: 5deg; transform: none; }
    .gold-turnaround::before { height: 21px; top: -10px; }
    .gold-animation-paper { inset: 20px -10% 20px; }
    .gold-animation-paper > span { left: 12%; width: 77%; height: 75%; }
}
@media (prefers-reduced-motion:reduce) {
    .gallery-ambient { translate: none; }
    .gallery-ambient * { animation: none !important; }
}
@media print { .gallery-ambient,.artist-world-grain { display: none; } }
