/* Artifacts page only. The top bar and side menu styles come from style.css. */

:root { --green-deep: #1f3328; --gold-deep: #8a6a22; --stone-brown: #7a5c3e; --night: #152a1f; --earth: #241c14; }

html { scroll-behavior: smooth; }
body.artifacts-page { background: var(--night); color: var(--ink); }

/* The top bar changes colour so it stays readable on cream sections (artifacts.js adds .on-light) */
.artifacts-page .topbar a, .artifacts-page .menu-btn span { transition: color 0.5s var(--ease), background 0.5s var(--ease); }
.artifacts-page.on-light:not(.menu-open) .topbar a { color: var(--green-deep); }
.artifacts-page.on-light:not(.menu-open) .menu-btn span { background: var(--green-deep); }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes drift { to { transform: translateX(-50%); } }
@keyframes twinkle { 0%, 100% { opacity: 0.2; transform: scale(0.7); } 50% { opacity: 0.9; transform: scale(1.15); } }

/* ---------- Image placeholders (shown until your real image loads) ---------- */
.pic { position: relative; overflow: hidden; background: repeating-linear-gradient(45deg, rgba(138, 106, 34, 0.09) 0 10px, transparent 10px 20px), #f3ecdf; }
.pic::before {
  content: "Add your image\A" attr(data-ph); white-space: pre;
  position: absolute; inset: 8px; display: grid; place-content: center; text-align: center;
  padding: 10px; border: 1.5px dashed rgba(138, 106, 34, 0.55); border-radius: inherit;
  font-size: 0.78rem; line-height: 1.7; color: var(--gold-deep);
}
.pic img { position: relative; z-index: 1; display: block; width: 100%; height: 100%; }
.pic.loaded::before, .pic.loaded::after { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: grid; place-items: center;
  padding: 120px 24px clamp(110px, 14vw, 200px);
  text-align: center;
  background: radial-gradient(circle at 50% 40%, #3d5c4a, var(--night) 72%);
  overflow: hidden;
}
.hero-inner { position: relative; z-index: 2; width: min(100%, 980px); }
.hero h1 { margin: 0 auto; max-width: 18ch; font-family: "Fraunces", serif; font-weight: 600; line-height: 1.12; font-size: clamp(2.1rem, 5.6vw, 3.6rem); color: var(--cream); }
.lead { margin: 1.1rem auto 0; max-width: 46ch; font-size: 1.05rem; line-height: 1.6; color: rgba(246, 239, 224, 0.85); }

.orbs { display: flex; justify-content: center; gap: clamp(20px, 4vw, 52px); margin-top: 48px; }
.orb { display: grid; justify-items: center; gap: 14px; color: var(--gold); text-decoration: none; animation: bob 5s ease-in-out infinite; animation-delay: calc(var(--k) * -1.25s); }
.orb .ring {
  width: clamp(96px, 11vw, 132px); aspect-ratio: 1; display: grid; place-items: center;
  border: 2px dotted rgba(201, 162, 75, 0.75); border-radius: 50%; background: rgba(21, 42, 31, 0.45);
  transition: border-color 0.5s var(--ease), background 0.5s var(--ease), transform 0.5s var(--ease);
}
.orb svg { width: 62%; height: auto; overflow: visible; }
.orb .lbl { font-family: "Fraunces", serif; font-size: 1.05rem; color: var(--cream); border-bottom: 1px solid transparent; transition: border-color 0.5s var(--ease); }
.orb:hover .ring, .orb:focus-visible .ring { border-style: solid; border-color: var(--gold); background: rgba(201, 162, 75, 0.12); transform: scale(1.06); }
.orb:hover .lbl, .orb:focus-visible .lbl { border-bottom-color: var(--gold); }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
.turn { transform-box: fill-box; transform-origin: center; animation: spin 18s linear infinite; }
.turn.fast { animation-duration: 6s; }

/* golden dust floating up (artifacts.js adds the dots) */
.motes { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.motes span { position: absolute; bottom: -10px; width: 3px; height: 3px; border-radius: 50%; background: var(--gold); opacity: 0; left: var(--x); animation: mote var(--t) linear infinite; animation-delay: var(--dl); }
@keyframes mote { 0% { opacity: 0; transform: translate(0, 0); } 12% { opacity: 0.75; } 100% { opacity: 0; transform: translate(var(--dx), -105vh); } }

/* drifting waves at the bottom, ending in the cream of the next section */
.waves { position: absolute; z-index: 1; left: 0; right: 0; bottom: -1px; height: clamp(60px, 9vw, 130px); overflow: hidden; pointer-events: none; }
.wave { position: absolute; left: 0; bottom: 0; width: 200%; height: 100%; animation: drift 16s linear infinite; }
.wave.w1 { bottom: 8px; animation-duration: 26s; animation-direction: reverse; }

/* ---------- Sections ---------- */
.sec { position: relative; overflow: hidden; padding: 96px 24px; }
.wrap { position: relative; z-index: 1; max-width: 1120px; margin: 0 auto; }
.sec-head { max-width: 680px; margin: 0 auto 48px; text-align: center; }
.sec-head h2 { margin: 0; font-family: "Fraunces", serif; font-weight: 600; line-height: 1.15; font-size: clamp(1.8rem, 4vw, 2.6rem); color: #2f4a3d; }
.sec-head p { margin: 0.9rem 0 0; font-size: 1.02rem; line-height: 1.6; color: #3a463e; }
.hand, .sec-head .hand { font-family: "Caveat", cursive; font-weight: 500; font-size: 1.65rem; line-height: 1.3; color: var(--stone-brown); }
.deco { position: absolute; z-index: 0; pointer-events: none; }
.wave-top { position: absolute; z-index: 2; top: -1px; left: 0; width: 100%; height: clamp(40px, 6vw, 90px); display: block; }

/* ---------- Section 1: UI experiments (dotted drawing paper) ---------- */
.sec-ui { background: radial-gradient(rgba(138, 106, 34, 0.2) 1.1px, transparent 1.5px) 0 0 / 24px 24px, var(--cream); }
.deco.bezier { top: 70px; left: 4vw; width: clamp(120px, 14vw, 200px); color: var(--gold-deep); opacity: 0.6; }
.deco.pencil { top: 64px; right: 4vw; width: clamp(130px, 15vw, 210px); color: var(--green-deep); opacity: 0.5; }

.exhibits { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.exhibit {
  display: flex; flex-direction: column;
  padding: 16px 16px 24px;
  background: #fff;
  border: 1px solid rgba(138, 106, 34, 0.35);
  border-radius: 14px;
  box-shadow: 0 0 0 5px rgba(246, 239, 224, 0.9), 0 0 0 6px rgba(138, 106, 34, 0.25);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.exhibit:hover { transform: translateY(-6px); box-shadow: 0 0 0 5px rgba(246, 239, 224, 0.9), 0 0 0 6px rgba(138, 106, 34, 0.25), 0 18px 38px rgba(31, 51, 40, 0.18); }
.shot { aspect-ratio: 1 / 1; display: block; border-radius: 10px; background: #fff; }
.shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.shot img { object-fit: contain; }
.shot::after {
  --l: linear-gradient(var(--gold-deep), var(--gold-deep));
  content: ""; position: absolute; inset: 8px; z-index: 2; pointer-events: none;
  background: var(--l) top left / 18px 2px, var(--l) top left / 2px 18px, var(--l) top right / 18px 2px, var(--l) top right / 2px 18px,
              var(--l) bottom left / 18px 2px, var(--l) bottom left / 2px 18px, var(--l) bottom right / 18px 2px, var(--l) bottom right / 2px 18px;
  background-repeat: no-repeat;
}
/* tall, narrow screens (Flappy Bird): shown whole, centred, never stretched */
.tag { align-self: flex-start; margin: 18px 0 0; padding: 3px 12px; background: var(--cream); border: 1px solid var(--gold-deep); border-radius: 3px; font-size: 0.74rem; font-weight: 500; letter-spacing: 0.08em; color: var(--gold-deep); }
.exhibit h3 { margin: 10px 0 0; font-family: "Fraunces", serif; font-weight: 600; font-size: 1.3rem; line-height: 1.25; color: #2f4a3d; }
.cap { margin: 8px 0 0; font-size: 0.88rem; line-height: 1.55; color: #6b6f6c; flex: 1; }
.proto { align-self: flex-start; margin-top: 16px; padding: 8px 20px; border: 1px solid var(--green-deep); border-radius: 999px; color: var(--green-deep); font-size: 0.88rem; font-weight: 500; text-decoration: none; transition: background 0.4s var(--ease), color 0.4s var(--ease); }
.proto:hover, .proto:focus-visible { background: var(--green-deep); color: var(--cream); }

/* ---------- Section 2: Art & craft (everything moves) ---------- */
.sec-craft { background: linear-gradient(180deg, rgba(201, 160, 92, 0.12), rgba(201, 160, 92, 0) 70%), radial-gradient(rgba(176, 137, 104, 0.22) 1.4px, transparent 1.8px) 0 0 / 30px 30px, var(--cream); }
.swirl { display: block; width: 44px; height: 44px; margin: 0 auto 10px; color: var(--gold-deep); animation: spin 12s linear infinite; }
.blob { position: absolute; z-index: 0; border-radius: 50%; filter: blur(46px); opacity: 0.55; pointer-events: none; animation: blobmove 18s ease-in-out infinite alternate; }
.blob.b1 { width: 360px; height: 360px; left: -90px; top: 90px; background: radial-gradient(circle, #f3c9a8, transparent 70%); }
.blob.b2 { width: 400px; height: 400px; right: -90px; top: 330px; background: radial-gradient(circle, #cfe0c0, transparent 70%); animation-delay: -6s; }
.blob.b3 { width: 380px; height: 380px; left: 30%; bottom: -120px; background: radial-gradient(circle, #f0d58a, transparent 70%); animation-delay: -11s; }
@keyframes blobmove { to { transform: translate(70px, -50px) scale(1.18); } }
.coil { width: 80px; height: 80px; color: var(--gold-deep); opacity: 0.5; animation: spin 24s linear infinite; }
.coil.c1 { left: 5vw; top: 190px; }
.coil.c2 { right: 6vw; bottom: 300px; width: 110px; height: 110px; animation-direction: reverse; animation-duration: 32s; }
.deco.spark { color: var(--gold-deep); animation: twinkle 2.8s ease-in-out infinite; }
.deco.sp1 { top: 120px; left: 22%; width: 22px; height: 22px; }
.deco.sp2 { top: 90px; right: 24%; width: 16px; height: 16px; animation-delay: -1s; }
.deco.sp3 { top: 220px; right: 12%; width: 26px; height: 26px; animation-delay: -2s; }

.cutter { display: block; width: min(900px, 100%); height: auto; margin: 0 auto 56px; filter: drop-shadow(0 6px 10px rgba(60, 44, 20, 0.18)); }

.polaroids { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 36px 32px; }
.polaroid { position: relative; width: 240px; margin: 0; padding: 14px 14px 10px; background: #fff; border-radius: 4px; box-shadow: 0 8px 22px rgba(60, 44, 20, 0.2); transform: rotate(var(--r, 0deg)); transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease); }
.polaroid::before { content: ""; position: absolute; top: -13px; left: 50%; z-index: 2; width: 84px; height: 24px; margin-left: -42px; transform: rotate(-4deg); background: repeating-linear-gradient(90deg, rgba(201, 160, 92, 0.75) 0 8px, rgba(201, 160, 92, 0.55) 8px 16px); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12); }
.polaroids li:nth-child(2) .polaroid::before { background: repeating-linear-gradient(90deg, rgba(76, 110, 90, 0.7) 0 8px, rgba(76, 110, 90, 0.5) 8px 16px); transform: rotate(3deg); }
.polaroids li:nth-child(3) .polaroid::before { background: repeating-linear-gradient(90deg, rgba(236, 107, 157, 0.55) 0 8px, rgba(236, 107, 157, 0.38) 8px 16px); transform: rotate(-2deg); }
.polaroids li:nth-child(4) .polaroid::before { transform: rotate(5deg); }
.polaroid:hover { transform: rotate(0deg) scale(1.05); box-shadow: 0 18px 38px rgba(60, 44, 20, 0.32); }
.polaroid .pic { height: 230px; }
.polaroid img { object-fit: cover; }
.polaroid figcaption { margin-top: 10px; min-height: 3.4em; text-align: center; font-family: "Caveat", cursive; font-weight: 500; font-size: 1.3rem; line-height: 1.2; color: var(--stone-brown); }

/* wool being woven + a ball of yarn rocking beside it */
.loom { display: flex; align-items: flex-end; justify-content: center; gap: 10px; max-width: 980px; margin: 72px auto 0; }
.loom .yarn { flex: none; width: clamp(80px, 10vw, 120px); aspect-ratio: 120 / 110; color: #b08968; animation: roll 5s ease-in-out infinite; }
@keyframes roll { 0%, 100% { transform: translateX(0) rotate(-6deg); } 50% { transform: translateX(12px) rotate(16deg); } }
.weave { flex: 1; min-width: 0; height: auto; }
.weave .warp { stroke: #7a5c3e; stroke-opacity: 0.45; stroke-width: 1.5; }
.weave .weft { fill: none; stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: weave 13s ease-in-out infinite; animation-delay: calc(var(--k) * 1.3s); }
@keyframes weave { 0% { stroke-dashoffset: 1; opacity: 1; } 42% { stroke-dashoffset: 0; } 84% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }

/* ---------- Section 3: Dinosaur fossils ---------- */
.sec-fossils { padding: 150px 24px 200px; background: repeating-linear-gradient(180deg, rgba(201, 162, 75, 0.05) 0 2px, transparent 2px 48px), linear-gradient(#241c14, #2d2318); }
.sec-fossils .sec-head h2 { color: var(--cream); }
.sec-fossils .sec-head p { color: #d9cdb8; }
/* your personal note: same handwriting as Art & Craft and Travel, in a warm gold so it reads on the dark background */
.sec-fossils .sec-head .hand { color: #f0d9a8; text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6); }
.egg { display: block; width: 40px; height: auto; margin: 0 auto 12px; transform-origin: 50% 100%; animation: wobble 4s ease-in-out infinite; }
@keyframes wobble { 0%, 58%, 100% { transform: rotate(0); } 64% { transform: rotate(-9deg); } 72% { transform: rotate(8deg); } 80% { transform: rotate(-5deg); } 88% { transform: rotate(3deg); } }

.frond { position: absolute; z-index: 0; bottom: 70px; width: clamp(110px, 15vw, 230px); height: auto; overflow: visible; transform-origin: bottom center; animation: sway 6s ease-in-out infinite alternate; }
.frond path { fill: none; stroke: var(--gold); stroke-opacity: 0.4; stroke-width: 2; stroke-linecap: round; }
.frond.fl { left: -1vw; }
.frond.fr { right: -1vw; transform: scaleX(-1); animation-delay: -3s; }
@keyframes sway { from { rotate: -4deg; } to { rotate: 5deg; } }

.specimens { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 30px; }
.fossil { width: calc(50% - 15px); padding: 12px 12px 22px; background: rgba(255, 248, 230, 0.04); border: 1px solid rgba(201, 162, 75, 0.45); border-radius: 6px; box-shadow: 0 14px 30px rgba(0, 0, 0, 0.3); transition: transform 0.5s var(--ease), border-color 0.5s var(--ease); }
.fossil.big { width: 100%; }
.fossil:hover { transform: translateY(-5px); border-color: var(--gold); }
.fossil .pic { aspect-ratio: 1600 / 721; border-radius: 3px; background: repeating-linear-gradient(180deg, rgba(201, 162, 75, 0.1) 0 14px, transparent 14px 28px), #3a2d20; }
.fossil .pic::before { color: #d9b873; border-color: rgba(217, 184, 115, 0.5); padding-top: 38px; }
.fossil .pic::after { content: ""; position: absolute; left: 50%; top: 30%; width: 34px; height: 42px; margin-left: -17px; opacity: 0.7; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 30'%3E%3Cg fill='%23c9a24b'%3E%3Cellipse cx='12' cy='21' rx='6.5' ry='6'/%3E%3Cellipse cx='4.5' cy='11' rx='2.6' ry='4.4' transform='rotate(-24 4.5 11)'/%3E%3Cellipse cx='12' cy='7' rx='2.8' ry='5'/%3E%3Cellipse cx='19.5' cy='11' rx='2.6' ry='4.4' transform='rotate(24 19.5 11)'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat; }
.fossil img { object-fit: cover; }
.fossil .no { display: inline-block; margin: 16px 0 0; padding: 3px 12px; border: 1px solid var(--gold); border-radius: 3px; font-size: 0.74rem; font-weight: 500; letter-spacing: 0.08em; color: var(--gold); }
.fossil h3 { margin: 10px 0 0; font-family: "Fraunces", serif; font-weight: 600; font-size: 1.35rem; line-height: 1.25; color: var(--cream); }
.fossil .cap { margin: 6px 0 0; font-size: 0.92rem; line-height: 1.55; color: #cdbfa5; }

/* ground with footprints and a tiny T-rex */
.ground { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; height: 110px; overflow: hidden; pointer-events: none; }
.ground::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 36px; background: #19130d; border-top: 2px solid rgba(201, 162, 75, 0.5); }
.step { position: absolute; bottom: 44px; left: calc(var(--i) * 7%); width: 16px; height: 21px; color: var(--gold); opacity: 0; transform: rotate(90deg); animation: printfade 36s linear infinite; animation-delay: calc(var(--i) * 2.52s); }
.step:nth-child(even) { bottom: 52px; }
@keyframes printfade { 0% { opacity: 0; } 1.5% { opacity: 0.8; } 30% { opacity: 0.8; } 42%, 100% { opacity: 0; } }
.trex { position: absolute; bottom: 34px; left: 0; width: 100px; height: auto; animation: trek 36s linear infinite; }
@keyframes trek { from { transform: translateX(-140px); } to { transform: translateX(calc(100vw + 40px)); } }

/* ---------- Section 4: Travel (temple painting background, photos shown whole) ---------- */
.sec-travel { padding: 150px 0 56px; background: #14231a; }
.sec-travel::before { content: ""; position: absolute; inset: -4%; z-index: 0; background: url("images/artifacts/travel_background.webp") center / cover; animation: pan 50s ease-in-out infinite alternate; }
.sec-travel::after { content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(rgba(14, 28, 20, 0.7), rgba(14, 28, 20, 0.86)); }
@keyframes pan { from { transform: scale(1) translateX(0); } to { transform: scale(1.08) translateX(-2%); } }
.sec-travel .wave-top { z-index: 3; }
.sec-travel .sec-head { padding: 0 24px; }
.sec-travel .sec-head h2 { color: var(--cream); text-shadow: 0 2px 18px rgba(0, 0, 0, 0.6); }
.sec-travel .hand { color: #f0d9a8; text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6); }
.bird { position: absolute; z-index: 1; width: 46px; height: auto; opacity: 0.85; left: -60px; animation: fly var(--t, 30s) linear infinite; animation-delay: var(--dl, 0s); }
.bird.b1 { top: 150px; --t: 34s; }
.bird.b2 { top: 210px; width: 34px; --t: 40s; --dl: -12s; }
.bird.b3 { top: 120px; width: 28px; --t: 46s; --dl: -26s; }
@keyframes fly { 0% { left: -60px; transform: translateY(0); } 50% { transform: translateY(-22px); } 100% { left: 102%; transform: translateY(10px); } }

.ticker { position: relative; z-index: 1; overflow-x: auto; padding: 14px 0 12px; }
.ticker.live { overflow: hidden; }
.ticker.live::before, .ticker.live::after { content: ""; position: absolute; top: 0; bottom: 0; width: 110px; z-index: 2; pointer-events: none; }
.ticker.live::before { left: 0; background: linear-gradient(to right, rgba(14, 28, 20, 0.9), rgba(14, 28, 20, 0)); }
.ticker.live::after { right: 0; background: linear-gradient(to left, rgba(14, 28, 20, 0.9), rgba(14, 28, 20, 0)); }
.track { list-style: none; margin: 0; padding: 0; display: flex; align-items: flex-start; width: max-content; }
.track.run { animation: drift 90s linear infinite; }
.track.run:has(.pic:hover) { animation-play-state: paused; }

.frame { flex: none; margin-right: 32px; }
.frame .pic { height: 300px; width: 420px; min-width: 230px; border-radius: 6px; border: 2px solid rgba(201, 162, 75, 0.85); box-shadow: 0 0 0 5px rgba(14, 28, 20, 0.9), 0 0 0 6px rgba(201, 162, 75, 0.35), 0 14px 30px rgba(0, 0, 0, 0.5); background: repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.05) 0 10px, transparent 10px 20px), #243b2e; }
.frame .pic::before { color: #dcc08f; border-color: rgba(220, 192, 143, 0.5); }
.frame .pic.loaded { width: auto; min-width: 0; background: none; }
.frame .pic.loaded img { width: auto; height: 100%; max-width: none; }
.frame img { width: auto; height: 100%; }
/* the caption never makes the frame wider than its photo */
.frame p { width: 0; min-width: 100%; margin: 22px 0 0; text-align: center; font-family: "Caveat", cursive; font-weight: 500; font-size: 1.55rem; line-height: 1.2; color: var(--cream); text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7); }

.art-foot { position: relative; z-index: 1; margin: 56px 0 0; padding: 0 24px; text-align: center; font-size: 0.95rem; color: rgba(246, 239, 224, 0.8); }
.art-foot a { color: var(--gold); text-decoration: none; border-bottom: 1px solid transparent; transition: border-color 0.5s var(--ease); }
.art-foot a:hover, .art-foot a:focus-visible { border-bottom-color: var(--gold); }

/* ---------- Tablet and phone ---------- */
@media (max-width: 960px) {
  .exhibits { grid-template-columns: repeat(2, 1fr); }
  .deco.bezier, .deco.pencil, .coil.c2 { display: none; }
  .fossil { width: 100%; }
}
@media (max-width: 620px) {
  .sec { padding: 72px 20px; }
  .sec-fossils { padding: 120px 20px 170px; }
  .sec-travel { padding: 120px 0 48px; }
  .orbs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px 12px; margin-top: 36px; }
  .exhibits { grid-template-columns: 1fr; }
  .polaroid { width: 78vw; max-width: 320px; }
  .polaroid .pic { height: 72vw; max-height: 300px; }
  .hand, .sec-head .hand { font-size: 1.45rem; }
  .frame .pic { height: 220px; width: 300px; min-width: 190px; }
  .frame p { font-size: 1.3rem; }
  .ticker.live::before, .ticker.live::after { width: 48px; }
  .loom .yarn { display: none; }
  .trex { width: 78px; }
}

@media (prefers-reduced-motion: reduce) {
  .artifacts-page *, .artifacts-page *::before, .artifacts-page *::after { animation: none !important; }
  .weave .weft { stroke-dashoffset: 0; }
  .motes, .bird, .trex { display: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Scroll reveal (artifacts.js adds the .sr classes) ---------- */
.sr:not(.in) { opacity: 0; }
.sr.in { animation: srUp 0.9s var(--ease, ease-out) var(--sd, 0s) backwards; }
.sr-left.in  { animation-name: srLeft; }
.sr-right.in { animation-name: srRight; }
.sr-pop.in   { animation-name: srPop; }
.sr-tilt.in  { animation-name: srTilt; }
.sr-fade.in  { animation-name: srFade; animation-duration: 1.2s; }

@keyframes srUp    { from { opacity: 0; translate: 0 44px; } }
@keyframes srLeft  { from { opacity: 0; translate: -60px 0; } }
@keyframes srRight { from { opacity: 0; translate: 60px 0; } }
@keyframes srPop   { from { opacity: 0; scale: 0.6; } }
@keyframes srTilt  { from { opacity: 0; translate: 0 60px; rotate: 6deg; } }
@keyframes srFade  { from { opacity: 0; } }

/* photos zoom in slowly while their card appears */
.exhibit.in .pic img,
.polaroids li.in .pic img,
.fossil.in .pic img { animation: picZoom 1.3s var(--ease, ease-out) var(--sd, 0s) backwards; }
@keyframes picZoom { from { scale: 1.15; } }

@media (prefers-reduced-motion: reduce) { .sr:not(.in) { opacity: 1; } }