/* A faint reflection on the blackened studio surface shows through the gaps between exhibits. */
#top {
  isolation:isolate;
  /* Light from above left: a fine amber rim, a cool return edge and a soft cast below right. */
  --studio-rim: inset 1px 1px 0 rgb(255 214 160 / 17%), inset -1px -1px 0 rgb(134 186 206 / 12%);
  --studio-panel-shadow: 2px 4px 5px -3px rgb(12 9 7 / 55%), 5px 10px 17px -9px rgb(0 0 0 / 66%);
  --studio-key-shadow: 1px 2px 2px rgb(9 8 7 / 46%), 2px 4px 5px -2px rgb(0 0 0 / 54%);
  --studio-icon-shadow: drop-shadow(-.7px -.35px 0 rgb(243 174 120 / 27%))
    drop-shadow(.7px .35px 0 rgb(113 186 207 / 22%)) drop-shadow(1.5px 3px 1.7px rgb(6 7 8 / 64%));
}
@media (forced-colors:active) {
  #top { --studio-rim:0 0 transparent; --studio-panel-shadow:0 0 transparent; --studio-key-shadow:0 0 transparent; --studio-icon-shadow:none; }
}
.studio-air {
  position:fixed; inset:0; z-index:-1; overflow:hidden; contain:strict;
  pointer-events:none; user-select:none; background:#030303;
}
.studio-air::before, .studio-air::after {
  content:""; position:absolute; inset:-8%; pointer-events:none;
  background:url("workshop/paint-graphite.webp") center/cover no-repeat;
  filter:grayscale(1);
}
.studio-air::before {
  opacity:.075;
  mask-image:linear-gradient(117deg,transparent 1%,#0007 12%,#000 18%,transparent 36%,transparent 68%,#0009 86%,transparent 100%);
  animation:studio-raking-light 48s ease-in-out infinite alternate;
}
.studio-air::after {
  background-image:url("brushed-palladium.webp");
  opacity:.037;
  mask-image:radial-gradient(ellipse 28% 85% at 100% 8%,#000 9%,transparent 98%);
  animation:studio-raking-light 65s -26s ease-in-out infinite alternate-reverse;
}
.studio-air i {
  position:absolute; left:var(--x); top:var(--y); width:var(--length); height:1px;
  background:linear-gradient(90deg,transparent,#b9b9b9 40%,#dedede 68%,transparent);
  opacity:0; animation:studio-fleck var(--period) var(--phase) linear infinite;
}
@keyframes studio-raking-light {
  from {transform:translate(-1.8%,.9%)}
  to {transform:translate(1.8%,-.9%)}
}
@keyframes studio-fleck {
  0%, 77%, 100% {opacity:0}
  26% {opacity:var(--peak)}
  48% {opacity:calc(var(--peak) * .44)}
  from {transform:translate(0,0) rotate(var(--tilt))}
  to {transform:translate(var(--drift),-26px) rotate(var(--tilt))}
}
html:not([data-studio-motion=on]) .studio-air i,
html:not([data-studio-motion=on]) .studio-air::before,
html:not([data-studio-motion=on]) .studio-air::after,
.demo-open .studio-air *, .demo-open .studio-air::before, .demo-open .studio-air::after {
  animation-play-state:paused;
}
.demo-open .studio-air {visibility:hidden}
@media(max-width:600px) { .studio-air i:nth-child(n+19) {display:none} }
@media(forced-colors:active) { .studio-air {display:none} }

/* The two studio photographs carry their own light and dust. */
.webwrights-atmosphere {
  position:absolute;inset:0;overflow:hidden;contain:strict;
  pointer-events:none;user-select:none;z-index:2;
}
.webwrights-atmosphere canvas {display:block;width:100%;height:100%}
.signature > .webwrights-atmosphere {
  inset:0 0 0 26%;
  mask-image:linear-gradient(90deg,transparent,#000 17%,#000 94%,transparent);
}
.signature > .signature-type {z-index:3}
.signature .signature-art::before,.inlay-reflection {
  position:absolute;inset:0;pointer-events:none;
  background:url("webwrights-hero.webp") 52% 48% / cover no-repeat;
}
.signature .signature-art::before {
  content:"";z-index:1;filter:url(#studio-lens) brightness(.77) contrast(1.17);
  mask-image:radial-gradient(ellipse at 54% 47%,transparent 5%,#000c 38%,#000 75%);
}
.inlay-reflection {
  z-index:2;opacity:0;mix-blend-mode:screen;
  filter:grayscale(1) contrast(2.4) brightness(.72);
  mask-image:linear-gradient(113deg,transparent 41%,#0002 45%,#000a 49%,#000 50%,#0004 54%,transparent 61%);
  mask-size:235% 100%;mask-repeat:no-repeat;
  animation:steel-reflection 19s cubic-bezier(.45,0,.55,1) infinite;
  animation-play-state:paused;
}
.signature[data-air="running"] .inlay-reflection {animation-play-state:running}
@keyframes steel-reflection {
  0%,9% {mask-position:100% center;opacity:0}
  30% {opacity:.31}
  66% {mask-position:0% center;opacity:.22}
  76%,100% {mask-position:0% center;opacity:0}
}
.signature-art::after {z-index:3}
footer .studio-motion {
  display:inline-flex;align-items:center;gap:8px;padding:2px 0;min-height:44px;
  font:500 12px/1.3 var(--sans);color:#c1c1b9;border:0;background:transparent;
}
footer .studio-motion[hidden]{display:none}
footer .studio-motion span {width:7px;height:7px;border:1px solid #7d7f76;border-radius:50%}
footer .studio-motion[aria-pressed=true] span {background:#b9b4a2;border-color:#d4cdb6}
footer .studio-motion b {font:inherit}
footer .studio-motion small {font:inherit;color:#a7a69c}
footer .studio-motion:hover {color:#f2ecda}
html[data-studio-motion=off] .closing-verses .verse-leaf {animation:none!important;transition:none!important;transform:none!important}
@media(max-width:700px){body>footer {display:flex;flex-wrap:wrap}footer .studio-motion {flex-basis:100%}}
.correspondence-air {inset:6% 2% 10% 8%}
@media(max-width:750px) {
  .signature>.webwrights-atmosphere {grid-area:1/1;position:relative;inset:auto;align-self:stretch;mask-image:linear-gradient(0deg,transparent,#000 18%,#000 88%,transparent)}
  .signature .signature-art::before,.inlay-reflection {background-position:52% 50%}
}
@media(forced-colors:active) {
  .webwrights-atmosphere,.inlay-reflection {display:none}
}

/* A travelling reflection lifts the grain just above the studio monogram. */
.signature > .webwrights-atmosphere::before {
  content:""; position:absolute; inset:-22%;
  background:linear-gradient(119deg,transparent 30%,rgb(211 167 96 / .045) 41%,
    rgb(245 201 133 / .27) 48%,rgb(215 177 116 / .065) 57%,transparent 67%);
  mask-image:radial-gradient(ellipse 55% 70% at 55% 28%,#000 5%,#0008 48%,transparent 83%);
  opacity:.66; pointer-events:none;
}
.signature .inlay-reflection {animation-delay:1s;}

/* The photograph's black field screens away, leaving the wisps over both surfaces. */
#top > footer {position:relative;isolation:isolate;}
#top > footer > .studio-footer-mist {
  position:absolute; inset:auto 0 0; height:clamp(126px,13vw,250px);
  overflow:hidden; z-index:-1; pointer-events:none; user-select:none;
  opacity:.5; mix-blend-mode:screen;
  mask-image:linear-gradient(to top,#000 0%,#000d 26%,#0009 50%,transparent 100%);
}
.studio-footer-mist::before {
  content:""; position:absolute; inset:-8% -6% -10%;
  background:url("aletheia-ground-smoke.webp") center 73% / 100% 100% no-repeat;
  filter:grayscale(1) brightness(.42) blur(.8px);
}
@media (max-width:650px) {
  .studio-footer-mist::before {background-size:auto 100%;background-position:28% center;}
}
@media (prefers-reduced-motion:no-preference) {
  .signature > .webwrights-atmosphere::before {
    animation:studio-lamp-shift 12s -5s ease-in-out infinite alternate paused;
  }
  .signature[data-air=running] > .webwrights-atmosphere::before {animation-play-state:running;}
  .studio-footer-mist::before {animation:studio-mist-drift 29s -8s ease-in-out infinite alternate paused;}
  html[data-studio-motion=on] body:not(.demo-open) .studio-footer-mist.in-view::before {animation-play-state:running;}
}
@keyframes studio-lamp-shift {
  from {transform:translateX(-10%) rotate(-3deg);opacity:.38;}
  to {transform:translateX(10%) rotate(2deg);opacity:.82;}
}
@keyframes studio-mist-drift {
  from {transform:translate(-2%,2%) scale(1.015);}
  to {transform:translate(2.3%,-1%) scale(1.035);}
}
@media (forced-colors:active) { .studio-footer-mist {display:none;} }
