/* ==========================================================================
   THE LOCKER page (locker.html, built by js/locker.js).
   A dim locker room: cinder-block wall, a bare swinging bulb, a row of dented
   metal lockers. The middle one swings open to show belongings.
   Sizes inside .row are fixed "design pixels"; js/locker.js scales the whole
   row to fit the screen (--k via transform), so nothing here needs media-query sizing.
   ========================================================================== */
body.locker-page { margin: 0; background: #0a0e10; overflow-x: hidden; }
body.noting { overflow: hidden; }
.nav-btn { display: inline-flex; align-items: center; text-decoration: none; letter-spacing: .06em; }

/* ---------- the room ---------- */
.room { position: relative; min-height: 100vh; overflow: hidden; display: flex; flex-direction: column; padding-bottom: 90px;
  background:
    radial-gradient(ellipse 60% 70% at 50% 34%, rgba(255,214,140,.16), transparent 70%),
    repeating-linear-gradient(0deg, transparent 0 78px, rgba(0,0,0,.42) 78px 82px),
    repeating-linear-gradient(90deg, transparent 0 158px, rgba(0,0,0,.3) 158px 162px),
    linear-gradient(180deg, #223033 0%, #18231f 60%, #0e1415 100%); }
.room::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5; mix-blend-mode: multiply;
  background: radial-gradient(ellipse 14% 9% at 16% 22%, #05080a, transparent), radial-gradient(ellipse 10% 14% at 86% 34%, #05080a, transparent), radial-gradient(ellipse 18% 6% at 60% 8%, #05080a, transparent); }
.floor { position: absolute; left: 0; right: 0; bottom: 0; height: 150px; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,.7), rgba(0,0,0,.05) 40%, rgba(0,0,0,.5)),
    radial-gradient(ellipse 40% 90% at 50% 0%, rgba(255,214,140,.22), transparent 70%),
    conic-gradient(#2b3036 25%, #15181c 0 50%, #2b3036 0 75%, #15181c 0) 0 0 / 96px 96px;
  border-top: 5px solid #05080a; }

/* the bare bulb */
.bulb { position: absolute; left: 50%; top: 0; width: 0; z-index: 3; transform-origin: 0 0; animation: bulbsway 7s ease-in-out infinite alternate; pointer-events: none; }
@keyframes bulbsway { from { transform: rotate(-1.4deg); } to { transform: rotate(1.4deg); } }
.bulb .cord { position: absolute; left: -1px; top: 0; width: 2px; height: 92px; background: #050505; }
.bulb .glass { position: absolute; left: -14px; top: 90px; width: 28px; height: 36px; border-radius: 50% 50% 46% 46%;
  background: radial-gradient(circle at 50% 38%, #fffbe0, #ffd98a 50%, #c98a2a); box-shadow: 0 0 36px 12px rgba(255,214,140,.7), 0 0 120px 50px rgba(255,200,120,.3); animation: bulbflick 9s linear infinite; }
@keyframes bulbflick { 0%, 100% { opacity: 1; } 71% { opacity: 1; } 72% { opacity: .55; } 74% { opacity: 1; } 75% { opacity: .7; } 77% { opacity: 1; } }
.bulb .cone { position: absolute; left: -440px; top: 120px; width: 880px; height: 1000px; mix-blend-mode: screen;
  clip-path: polygon(46% 0, 54% 0, 100% 100%, 0 100%); background: linear-gradient(180deg, rgba(255,226,160,.26), rgba(255,226,160,.05) 75%, transparent); }
.pool { position: absolute; left: 50%; top: 14%; width: 1000px; height: 1000px; translate: -50% 0; z-index: 3; pointer-events: none; mix-blend-mode: screen;
  background: radial-gradient(circle, rgba(255,214,140,.16), transparent 62%); animation: bulbflick 9s linear infinite; }
.dust { position: absolute; inset: 0; z-index: 5; pointer-events: none; overflow: hidden; }
.dust i { position: absolute; border-radius: 50%; background: #ffe9b8; opacity: 0; animation: dustf linear infinite; }
@keyframes dustf { 0% { opacity: 0; transform: translate(0, 0); } 20%, 75% { opacity: .55; } 100% { opacity: 0; transform: translate(46px, -90px); } }
.vignette { position: absolute; inset: 0; z-index: 6; pointer-events: none; box-shadow: inset 0 0 220px 90px rgba(0,0,0,.85); }
.grain { position: absolute; inset: -20%; z-index: 7; pointer-events: none; opacity: .3; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: lgrain .5s steps(4) infinite; }
@keyframes lgrain { 0% { transform: translate(0,0); } 25% { transform: translate(-4%,3%); } 50% { transform: translate(3%,-4%); } 75% { transform: translate(-3%,-2%); } 100% { transform: translate(4%,4%); } }

/* ---------- header ---------- */
.lk-head { position: relative; z-index: 4; display: flex; flex-wrap: wrap; align-items: center; gap: 18px 24px; padding: 22px 28px 8px; }
.lk-head .nameplate { display: inline-block; margin: 0; rotate: -1.5deg; background: linear-gradient(180deg, #d9b05a, #8a6a22); color: var(--paper-ink);
  border: 3px solid #3a2a0a; padding: 8px 26px; box-shadow: 0 5px 0 #000; font: 400 clamp(26px, 4vw, 40px) var(--font-display); letter-spacing: .08em; }
.lk-head .sticky { max-width: 300px; margin: 0; rotate: 2deg; background: var(--ochre); color: var(--ink); padding: 12px 14px; font: 18px/1.25 var(--font-marker); box-shadow: 4px 5px 0 rgba(0,0,0,.5); }

/* ---------- the lockers ---------- */
.stage { position: relative; z-index: 2; margin-top: 18px; }
.fit { transform-origin: top center; margin: 0 auto; }
.row { position: relative; display: flex; align-items: flex-end; width: max-content; height: 830px; padding-bottom: 22px; }

.lk { position: relative; flex: none; width: 220px; height: 800px; z-index: 1; perspective: 1800px; margin-right: -2px;
  --c: #3d6b66; filter: drop-shadow(10px 0 14px rgba(0,0,0,.45)); }
.lk-main { width: 440px; z-index: 3; }
.lk::after { content: ""; position: absolute; left: 6px; right: 6px; bottom: -22px; height: 22px; z-index: -1;   /* feet */
  background: linear-gradient(90deg, #050708 0 14px, transparent 14px calc(100% - 14px), #050708 calc(100% - 14px)); }

.lk-body { position: absolute; inset: 0; background: linear-gradient(90deg, #060809, #12181a 50%, #060809); border: 6px solid rgba(0,0,0,.65); box-shadow: inset 0 0 40px rgba(0,0,0,.8); }
.lk-n .lk-body { box-shadow: inset 0 0 30px rgba(255,170,60,.2), inset 0 0 40px #000; }

/* door: hinged on the left; front face = outside, back face = inside of the door */
.door { position: absolute; inset: 0; transform-origin: 0 50%; transform-style: preserve-3d; transition: transform 1.9s cubic-bezier(.3,.08,.2,1); }
.lk-main.open .door { transform: rotateY(-114deg); }
.lk-n.ajar .door { transform: rotateY(-9deg); }
.lk-main:not(.open) .door { cursor: pointer; }
.face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; overflow: hidden;
  border: 5px solid rgba(0,0,0,.6); box-shadow: inset 0 0 0 3px rgba(255,255,255,.07), inset 0 0 50px rgba(0,0,0,.45);
  background-color: var(--c);
  background-image: url("../assets/metal.svg"),
    linear-gradient(90deg, rgba(0,0,0,.5) 0, rgba(255,255,255,.17) 4%, rgba(255,255,255,0) 22%, rgba(255,255,255,.07) 55%, rgba(0,0,0,.2) 90%, rgba(0,0,0,.55) 100%),
    repeating-linear-gradient(90deg, transparent 0 5px, rgba(255,255,255,.03) 5px 6px);
  background-size: 320px 320px, 100% 100%, auto; background-blend-mode: overlay, normal, normal; }
/* dents, rust and wear painted on top of the metal */
.face.front::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 70px 46px at 28% 46%, rgba(255,255,255,.14), transparent 70%),
    radial-gradient(ellipse 60px 40px at 33% 50%, rgba(0,0,0,.34), transparent 72%),
    radial-gradient(ellipse 50px 70px at 76% 72%, rgba(255,255,255,.1), transparent 70%),
    radial-gradient(ellipse 46px 60px at 80% 76%, rgba(0,0,0,.3), transparent 72%),
    linear-gradient(180deg, transparent 62%, rgba(120,52,22,.4) 100%),
    linear-gradient(90deg, transparent 12%, rgba(110,50,20,.22) 13%, transparent 17%, transparent 70%, rgba(110,50,20,.2) 72%, transparent 75%); }
.face.front::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, rgba(255,255,255,.12), transparent 30%); }
.face.back { transform: rotateY(180deg); filter: brightness(.82); }

/* louvre vents */
.face.front > i, .lk-vents > i, .in-vents > i { position: absolute; left: 17%; right: 17%; height: 9px; border-radius: 5px; background: #040607; box-shadow: 0 2px 0 rgba(255,255,255,.15), inset 0 3px 4px #000; }
.face.front > i:nth-of-type(1) { top: 34px; } .face.front > i:nth-of-type(2) { top: 52px; } .face.front > i:nth-of-type(3) { top: 70px; } .face.front > i:nth-of-type(4) { top: 88px; }
.face.front > i:nth-of-type(5) { top: 106px; } .face.front > i:nth-of-type(6) { top: 124px; } .face.front > i:nth-of-type(7) { top: 142px; }
.lk-vents { position: absolute; left: 0; right: 0; bottom: 40px; display: grid; gap: 9px; }
.lk-vents > i { position: relative; left: auto; right: auto; margin: 0 17%; }
.face.front > b.hole-top { position: absolute; top: 10px; left: 50%; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: #040607; box-shadow: 0 1px 0 rgba(255,255,255,.2); }

.handle { position: absolute; left: 50%; top: 360px; width: 50px; height: 124px; translate: -50% 0; background: linear-gradient(90deg, #1a1c1f, #52585f 40%, #16181b); border-radius: 7px; box-shadow: inset 0 0 0 3px #0a0c0e, 0 2px 0 rgba(255,255,255,.2); }
.handle u { position: absolute; left: 9px; right: 9px; top: 28px; height: 66px; text-decoration: none; background: linear-gradient(90deg, #7b828a, #eef1f3 45%, #6a7078); border-radius: 5px; box-shadow: 0 4px 0 #000, inset 0 0 0 1px rgba(0,0,0,.4); }
.plate { position: absolute; left: 50%; top: 168px; translate: -50% 0; width: 64px; padding: 4px 0; background: #e8e0c4; border: 3px solid #2a2e32; color: #1a1408; font: 22px var(--font-comic); letter-spacing: .06em; text-align: center; box-shadow: 0 3px 0 rgba(0,0,0,.5); }
.plate.big { top: 176px; width: 140px; padding: 6px 0; font-size: 36px; background: linear-gradient(135deg, #f1d58a, #b8892f 55%, #6e4e14); border-color: #2a1a04; color: #2a1a04; }
.namecard { position: absolute; left: 50%; top: 262px; translate: -50% 0; rotate: -1.5deg; width: 216px; padding: 8px; background: #c0c4c8; border: 3px solid #4a4f55; box-shadow: 3px 4px 0 rgba(0,0,0,.5); }
.namecard span { display: block; padding: 8px 6px; background: #efe5c8; color: #2a1d0a; font: 21px var(--font-marker); text-align: center; border: 1px solid rgba(0,0,0,.4); }
.padlock { position: absolute; left: 50%; top: 496px; width: 54px; translate: -50% 0; transform-origin: 50% 0; cursor: pointer; transition: transform .9s cubic-bezier(.5,0,.8,.6) .1s, opacity .5s .7s; filter: drop-shadow(3px 5px 0 rgba(0,0,0,.5)); }
.padlock svg { display: block; width: 100%; overflow: visible; }
.lk-main.open .padlock { transform: translateY(150px) rotate(40deg); opacity: 0; pointer-events: none; }
.face .stk-wrap { position: absolute; }
.s-a { left: 18px; top: 618px; } .s-b { right: 26px; top: 160px; }
.lk-n .face .stk-wrap { left: 22px; top: 480px; }
.lk-n .plate { top: 180px; }

/* inside of the door */
.mirror { position: absolute; left: 50%; top: 100px; translate: -50% 0; width: 250px; height: 330px; border: 9px solid #25292e; box-shadow: inset 0 0 26px rgba(0,0,0,.5), 3px 4px 0 rgba(0,0,0,.5);
  background: linear-gradient(135deg, #5c6c78, #c8d5dd 38%, #7a8894 56%, #34404a); }
.mirror i { position: absolute; left: 20%; top: -4%; width: 2px; height: 70%; background: rgba(255,255,255,.55); rotate: 24deg; box-shadow: 0 0 4px #fff; }
.in-note { position: absolute; left: 34px; top: 470px; rotate: -3deg; padding: 12px 14px; background: #f0cf4a; color: #2a1d0a; font: 20px/1.2 var(--font-marker); box-shadow: 3px 4px 0 rgba(0,0,0,.45); }
.in-pic { position: absolute; right: 36px; top: 470px; width: 90px; height: 120px; rotate: 4deg; background: linear-gradient(#5a6a8c, #2a3556); border: 7px solid #efe5c8; box-shadow: 3px 4px 0 rgba(0,0,0,.45); }
.in-pic.p2 { right: 150px; top: 560px; rotate: -6deg; width: 80px; height: 100px; background: linear-gradient(#8a5a3c, #3a2415); }
.magnet { position: absolute; right: 74px; top: 462px; width: 18px; height: 18px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ff8a78, #b3262c); box-shadow: 0 2px 0 rgba(0,0,0,.6); }
.magnet.m2 { right: 184px; top: 552px; background: radial-gradient(circle at 35% 30%, #8ac4ff, #2a5aa8); }
.in-vents { position: absolute; left: 0; right: 0; top: 30px; }
.in-vents > i { position: relative; display: block; margin: 0 17% 9px; left: auto; right: auto; }

/* inside the locker */
.lk-in { position: absolute; inset: 14px; overflow: visible; background: linear-gradient(90deg, #0b1214, #1c2a2d 50%, #0b1214); box-shadow: inset 0 0 60px #000; }
.in-back { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 1.2s .5s;
  background: radial-gradient(ellipse 90% 50% at 50% 0%, rgba(255,226,160,.28), transparent 70%), linear-gradient(90deg, rgba(0,0,0,.55), transparent 12%, transparent 88%, rgba(0,0,0,.55)),
    url("../assets/metal.svg") 0 0 / 320px 320px; background-blend-mode: normal, normal, overlay; }
.lk-main.open .in-back { opacity: 1; }
.lk-in > .shelf { position: absolute; height: 14px; background: linear-gradient(#cfd6dc, #8a93a0 25%, #4a525e); border-top: 2px solid #e4e9ed; box-shadow: 0 7px 0 rgba(0,0,0,.55); z-index: 1; }
.shelf.s1 { left: 0; right: 0; top: 168px; } .shelf.s2 { left: 226px; right: 0; top: 398px; } .shelf.s3 { left: 226px; right: 0; top: 580px; }
.lk-in > .rail { position: absolute; left: 8px; right: 8px; top: 200px; height: 7px; border-radius: 4px; background: linear-gradient(#e4e9ed, #6a7280); box-shadow: 0 4px 0 rgba(0,0,0,.5); }
.it { position: absolute; z-index: 2; padding: 0; border: 0; background: none; color: inherit; font: inherit; transition: translate .2s; }
button.it { cursor: pointer; }
.it svg { display: block; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(3px 5px 0 rgba(0,0,0,.55)); }
.lk-main:not(.open) .it { pointer-events: none; }
button.it svg { animation: glint 7s ease-in-out infinite; }
button.it:nth-of-type(2n) svg { animation-delay: -2s; } button.it:nth-of-type(3n) svg { animation-delay: -4s; }
@keyframes glint { 0%, 88%, 100% { filter: drop-shadow(3px 5px 0 rgba(0,0,0,.55)); } 94% { filter: drop-shadow(0 0 7px rgba(255,214,140,.7)) drop-shadow(3px 5px 0 rgba(0,0,0,.55)); } }
button.it:hover, button.it:focus-visible { translate: 0 -5px; z-index: 6; outline: none; }
button.it:hover svg, button.it:focus-visible svg { animation: none; filter: drop-shadow(0 0 10px rgba(255,214,140,.95)) drop-shadow(3px 5px 0 rgba(0,0,0,.55)); }
button.it::after { content: attr(data-label); position: absolute; left: 50%; bottom: calc(100% + 8px); translate: -50% 0; white-space: nowrap; padding: 2px 10px; font: 17px var(--font-type);
  background: #f2e6c9; color: #2a1d0a; border: 2px solid #000; box-shadow: 3px 3px 0 rgba(0,0,0,.55); opacity: 0; pointer-events: none; transition: opacity .15s; }
button.it:hover::after, button.it:focus-visible::after { opacity: 1; }
.reel { animation: reelspin 5s linear infinite; }
@keyframes reelspin { to { transform: rotate(360deg); } }
.dial { animation: dialg 3s ease-in-out infinite alternate; }
@keyframes dialg { from { fill: #ffb347; } to { fill: #7a4a14; } }

/* ---------- the note card ---------- */
.note-wrap { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 16px; background: rgba(2,4,8,.74); animation: nfade .25s ease-out; }
.note-wrap[hidden] { display: none; }
@keyframes nfade { from { opacity: 0; } }
.note { position: relative; width: min(560px, 100%); max-height: 86vh; overflow: auto; padding: 40px 38px 32px; rotate: -1deg; color: var(--paper-ink); outline: none;
  background: repeating-linear-gradient(0deg, transparent 0 31px, rgba(60,110,190,.16) 31px 32px), linear-gradient(#f4ecd6, #eadfbf); box-shadow: 9px 11px 0 rgba(0,0,0,.6); animation: nin .35s cubic-bezier(.3,1.4,.5,1); }
@keyframes nin { from { opacity: 0; transform: translateY(30px) rotate(3deg) scale(.94); } }
.note > .tape { position: absolute; left: 50%; top: -12px; width: 90px; height: 24px; margin-left: -45px; rotate: -3deg; background: rgba(240,226,170,.8); border-left: 3px dotted rgba(0,0,0,.16); border-right: 3px dotted rgba(0,0,0,.16); }
.note h2 { margin: 0 0 14px; font: 400 32px/1.1 var(--font-display); color: #8e2a22; }
.note-body { font: 21px/1.55 var(--font-text); }
.note-body p { margin: 0 0 12px; } .note-body ul, .note-body ol { margin: 0 0 12px; padding-left: 22px; } .note-body li { margin: 6px 0; }
.note-body a { color: #8e2a22; } .note-body code { font-family: var(--font-type); font-size: .85em; background: rgba(0,0,0,.08); padding: 0 4px; }
.note-body figure { margin: 12px 0; } .note-body img { border: 6px solid #fff; box-shadow: 3px 4px 0 rgba(0,0,0,.4); }
.note-x { position: absolute; right: 10px; top: 6px; width: 44px; height: 44px; border: 0; background: none; font: 34px var(--font-comic); color: #8e2a22; cursor: pointer; }
.note-x:hover { color: #000; }

/* ---------- smaller screens ---------- */
@media (max-width: 1000px) { .lk-n.far { display: none; } }
@media (max-width: 700px) {
  .lk-n { display: none; }
  .row { padding-left: 170px; }
  .bulb { left: 78%; }
  .lk-head { padding: 16px 14px 4px; } .lk-head .sticky { font-size: 15px; max-width: 220px; }
}
@media (prefers-reduced-motion: reduce) { .door { transition-duration: .01s; } .bulb { animation: none; } .note-wrap, .note { animation: none; } }

/* shelves and belongings are hidden while the door is shut (they fade in as it swings open) */
.lk-main .lk-in { opacity: 0; visibility: hidden; transition: opacity .4s 1.5s, visibility 0s 1.9s; }
.lk-main.open .lk-in { opacity: 1; visibility: visible; transition: opacity .9s .35s, visibility 0s 0s; }

/* ==========================================================================
   GRIT: grime, rust, scratches, wobble and grain, same hand-inked look as the homepage.
   Textures are generated by tools/gen_grit.py (assets/grit.svg and assets/wall.svg).
   ========================================================================== */
.wallart { position: absolute; inset: 0; z-index: 0; pointer-events: none; background: url("../assets/wall.svg") center / cover no-repeat; opacity: .92; }
.face > em.grit { position: absolute; inset: 0; z-index: 0; pointer-events: none; background: url("../assets/grit.svg") 0 0 / 100% 100% no-repeat; opacity: .95; }
.lk-n .face > em.grit { background-size: 200% 100%; background-position: calc(var(--k, 0) * 100%) 0; }
/* wobbly ink outline + speckle on the metal (the same filter the office art uses) */
.face { filter: url(#orough); border-width: 7px; border-color: rgba(0,0,0,.82); }
.face.back { filter: url(#orough) brightness(.82); }
.lk-body { border-width: 8px; border-color: #020303; }
.stk-wrap, .namecard, .plate { filter: url(#orough); }
.face .stk-wrap, .face .namecard, .face .plate, .face .handle, .face .padlock, .face > i, .face > b { z-index: 1; }
/* hatched shadow along the right edge of each door, like an inked comic panel */
.face.front::after { background: repeating-linear-gradient(115deg, transparent 0 6px, rgba(0,0,0,.16) 6px 7px) right / 22% 100% no-repeat, linear-gradient(115deg, rgba(255,255,255,.12), transparent 30%); }
.in-back { background-image: radial-gradient(ellipse 90% 50% at 50% 0%, rgba(255,226,160,.28), transparent 70%), linear-gradient(90deg, rgba(0,0,0,.55), transparent 12%, transparent 88%, rgba(0,0,0,.55)), url("../assets/grit.svg"), url("../assets/metal.svg");
  background-size: auto, auto, 100% 100%, 320px 320px; background-blend-mode: normal, normal, normal, overlay; }

/* chalk / marker scribbles */
.doodle { position: absolute; z-index: 1; pointer-events: none; color: rgba(236,230,206,.78); font-family: var(--font-marker); text-shadow: 0 0 2px rgba(0,0,0,.5); }
.doodle b { display: block; font-weight: normal; font-size: 24px; line-height: 1; letter-spacing: .03em; }
.d-tally { left: 22px; top: 215px; rotate: -4deg; } .d-tally span { display: block; font-size: 34px; letter-spacing: 4px; margin-bottom: 6px; }
.d-heart { right: 20px; top: 232px; rotate: 6deg; width: 84px; text-align: center; } .d-heart svg { width: 54px; margin: 0 auto 4px; display: block; }
.d-eye { left: 24px; top: 560px; rotate: -3deg; width: 120px; } .d-eye svg { width: 100px; display: block; margin-bottom: 4px; }
.d-arrow { right: 14px; top: 548px; rotate: -8deg; font-size: 22px; } .d-arrow b { font-size: 26px; }
.d-jw { right: 34px; bottom: 40px; font-size: 22px; opacity: .55; rotate: -5deg; } .d-jw span { font-family: var(--font-type); letter-spacing: .2em; }

/* floor: hazard line, scuffs, puddle shine */
.floor { background:
    repeating-linear-gradient(-45deg, rgba(214,170,40,.75) 0 14px, rgba(8,8,8,.85) 14px 28px) 0 0 / 100% 9px no-repeat,
    radial-gradient(ellipse 18% 14% at 22% 62%, rgba(150,190,210,.18), transparent 70%),
    radial-gradient(ellipse 14% 10% at 74% 78%, rgba(150,190,210,.14), transparent 70%),
    repeating-linear-gradient(8deg, transparent 0 46px, rgba(255,255,255,.035) 46px 48px),
    linear-gradient(180deg, rgba(0,0,0,.7), rgba(0,0,0,.05) 40%, rgba(0,0,0,.5)),
    radial-gradient(ellipse 40% 90% at 50% 0%, rgba(255,214,140,.22), transparent 70%),
    conic-gradient(#2b3036 25%, #15181c 0 50%, #2b3036 0 75%, #15181c 0) 0 0 / 96px 96px; }

/* heavier film grain + halftone dots creeping in from the corners */
.grain { opacity: .5; }
.vignette::before { content: ""; position: absolute; inset: 0; opacity: .5;
  background: radial-gradient(circle, rgba(0,0,0,.9) 1.1px, transparent 1.7px) 0 0 / 6px 6px;
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 50% 45%, transparent 55%, #000 100%); mask-image: radial-gradient(ellipse 75% 70% at 50% 45%, transparent 55%, #000 100%); }

/* hanging things swing when you touch them (set from locker.js; --sw is how far) */
.it[data-kind="hang"] svg { transform-origin: 50% 0; }
button.it.swing svg { animation: sway 2.6s ease-out 1 both; }
@keyframes sway { 0% { rotate: 0deg; } 16% { rotate: var(--sw, 4deg); } 38% { rotate: calc(var(--sw, 4deg) * -.7); } 58% { rotate: calc(var(--sw, 4deg) * .42); } 76% { rotate: calc(var(--sw, 4deg) * -.2); } 90% { rotate: calc(var(--sw, 4deg) * .07); } 100% { rotate: 0deg; } }
/* the helmet's visor flips up when you look at it or read its note */
.visor { transform-box: view-box; transform-origin: 46px 36px; transition: transform .38s cubic-bezier(.3, 1.5, .5, 1); }
button.it:hover .visor, button.it:focus-visible .visor, button.it.is-open .visor { transform: rotate(42deg); }
@media (prefers-reduced-motion: reduce) { button.it.swing svg { animation: none; } .visor { transition: none; } }
