/* ============================================================
   Hal Munger — shared site styles
   ============================================================ */
:root {
  --bg: #0a0a0c;
  --bg2: #121216;
  --ink: #f4f2ee;
  --muted: #9a97a0;
  --gold: #ffd166;
  --red: #ef476f;
  --azure: #4cc9f0;
  --violet: #9b5de5;
  --accent: var(--gold);
  --serif: "Didot", "Bodoni 72", "Playfair Display", Georgia, serif;
  --sans: "Avenir Next", "Avenir", "Futura", "Helvetica Neue", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  overflow-x: hidden;
  min-height: 100vh;
}
::selection { background: var(--accent); color: #000; }
img { max-width: 100%; display: block; }
a { color: inherit; }

/* ---- film grain overlay ---- */
body::after {
  content: "";
  position: fixed; inset: -50%;
  width: 200%; height: 200%;
  pointer-events: none;
  z-index: 2000;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 900ms steps(4) infinite;
}
@keyframes grain {
  0% { transform: translate(0,0); }
  25% { transform: translate(-2%,3%); }
  50% { transform: translate(3%,-2%); }
  75% { transform: translate(-3%,-3%); }
  100% { transform: translate(2%,2%); }
}
@media (prefers-reduced-motion: reduce) {
  body::after { animation: none; }
  * { animation-duration: .01s !important; transition-duration: .01s !important; }
}

/* ---- page transitions ---- */
/* The intro is a CSS animation, not a JS-toggled class: rAF and timers are
   paused/throttled in background tabs, which used to leave a page that loaded
   unfocused stuck at opacity 0 — permanently blank. This always settles. */
#page { animation: pageIn .55s ease; }   /* no fill-mode: resting state is visible */
@keyframes pageIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}
body.leaving #page {
  animation: none;
  opacity: 0;
  transform: translateY(-14px);
  transition: opacity .35s ease, transform .35s ease;
}

/* ---- top bar (subpages) ---- */
.topbar {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 900;
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 1.1rem 2rem;
  background: linear-gradient(180deg, rgba(10,10,12,.92), rgba(10,10,12,.6) 70%, transparent);
  backdrop-filter: blur(2px);
}
.topbar .wordmark {
  font-family: var(--serif);
  font-size: 1.35rem;
  letter-spacing: .06em;
  text-decoration: none;
  color: var(--ink);
  transition: color .3s;
}
.topbar .wordmark:hover { color: var(--accent); }
.topbar nav { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.topbar nav a {
  font-size: .78rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
  position: relative;
  transition: color .3s;
}
.topbar nav a::after {
  content: ""; position: absolute; left: 0; bottom: -4px;
  width: 100%; height: 1px;
  background: var(--accent);
  transform: scaleX(0); transform-origin: right;
  transition: transform .35s ease;
}
.topbar nav a:hover, .topbar nav a.here { color: var(--ink); }
.topbar nav a:hover::after, .topbar nav a.here::after { transform: scaleX(1); transform-origin: left; }

/* ---- hero titles ---- */
.page-hero {
  padding: 9rem 2rem 3rem;
  max-width: 1100px;
  margin: 0 auto;
  text-align: left;
}
.page-hero .kicker {
  font-size: .8rem;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .8rem;
}
.page-hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.6rem, 7vw, 5rem);
  line-height: 1.05;
  letter-spacing: .01em;
}
.page-hero h1 .lt {
  display: inline-block;
  opacity: 0;
  transform: translateY(.55em) rotate(4deg);
  animation: ltIn .7s cubic-bezier(.2,.7,.2,1) forwards;
  animation-delay: calc(var(--i) * 38ms + .15s);
}
@keyframes ltIn { to { opacity: 1; transform: none; } }
.page-hero .sub { color: var(--muted); margin-top: 1rem; max-width: 46rem; }
.page-hero.hero-centered { text-align: center; }
.page-hero.hero-centered .sub { margin-left: auto; margin-right: auto; }

/* ---- prose ---- */
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 2rem 5rem; }
.prose { max-width: 46rem; font-size: 1.08rem; }
.prose p { margin-bottom: 1.35rem; }
.prose a {
  color: var(--accent);
  text-decoration: none;
  background-image: linear-gradient(var(--accent), var(--accent));
  background-size: 100% 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: color .3s, background-size .3s;
}
.prose a:hover { background-size: 100% 100%; color: #000; }
.prose ul { list-style: none; margin: 0 0 1.35rem; }
.prose li { padding-left: 1.4rem; position: relative; margin-bottom: .3rem; }
.prose li::before {
  content: "◆"; position: absolute; left: 0; top: 0;
  color: var(--accent); font-size: .7em; line-height: 2.6;
}
.prose h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: 1.9rem; margin: 2.6rem 0 1rem;
}
.prose .big {
  font-family: var(--serif);
  font-size: 1.5rem;
  line-height: 1.5;
}

/* ---- scroll reveal ---- */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1);
}
.reveal.visible { opacity: 1; transform: none; }

/* ---- shard mosaic ---- */
.shard-stage {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 620px;
  overflow: hidden;
  background:
    radial-gradient(1200px 600px at 35% 40%, #1c1c22 0%, #0a0a0c 70%);
}
.shard-stage .cell {
  position: absolute;
  perspective: 1100px;
  pointer-events: none;
}
.shard-stage .cell.filler { z-index: 1; }
.shard-stage .cell.flip { z-index: 6; }
.shard-stage .cell.lifted { z-index: 60; }
.cell .flipper {
  position: absolute; inset: 0;
  transform-style: preserve-3d;
  transition: transform .7s cubic-bezier(.35,.1,.2,1);
}
/* a pair flips together: hovering either shard adds .flipped to both */
.cell.flipped .flipper { transform: rotateY(180deg); }
.cell .face {
  position: absolute; inset: 0;
  clip-path: var(--poly);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  pointer-events: auto;
  background-size: cover;
  background-position: center;
}
.cell .face.back { transform: rotateY(180deg); }
/* a "contain" photo is smaller than its shard, so it must not tile, and the
   spare area inside the glass reads as black */
.cell .face.photo { background-repeat: no-repeat; }
.cell .face.photo.contain { background-color: #000; }
/* the two word tiles of a pair take opposite tones */
.cell .face.txt { text-align: center; }
.cell .face.txt.dark { background: #0c0c0f; }
.cell .face.txt.light { background: #f1eee8; }
.cell .face.txt.light .cap { color: #0a0a0c; }
.cell .face.txt.light .cap small { color: var(--accent-ink, var(--accent)); }
/* JS places the caption on the shard's centroid and fits it to the
   inscribed circle, so words never spill past the clip-path */
.cell .face.txt .cap {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--serif);
  font-size: 1.5rem;
  letter-spacing: .04em;
  color: var(--ink);
  line-height: 1.22;
}
.cell .face.txt .cap small {
  display: block;
  font-family: var(--sans);
  font-size: .4em;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: .75em;
  line-height: 1.35;
}
.cell.flip { cursor: pointer; }
.cell.flip .face::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(255,255,255,.16), transparent 45%);
  opacity: 0; transition: opacity .4s;
}
.cell.lifted .face::after { opacity: 1; }
.cell.filler .face { transition: filter .5s, transform .5s; }
.cell.filler:hover .face { filter: brightness(1.35); }
/* entrance + shatter-exit are driven inline from JS */

.shard-hint {
  position: absolute; bottom: 1.4rem; left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  font-size: .68rem; letter-spacing: .3em; text-transform: uppercase;
  color: rgba(244,242,238,.55);
  pointer-events: none;
  animation: hintPulse 3s ease-in-out infinite;
}
@keyframes hintPulse { 0%,100% { opacity: .45; } 50% { opacity: 1; } }

.stage-title {
  position: absolute; top: 0; left: 0; right: 0;
  z-index: 30;
  pointer-events: none;
  text-align: center;
  padding-top: 5.4rem;
}
.stage-title h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.2rem, 6vw, 4.2rem);
  color: var(--ink);
  text-shadow: 0 2px 30px rgba(0,0,0,.8);
}

/* ---- galleries ---- */
.gallery { columns: 3 280px; column-gap: 14px; }
.gallery figure {
  break-inside: avoid;
  margin: 0 0 14px;
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  cursor: zoom-in;
  transform: translateZ(0);
}
.gallery img {
  width: 100%;
  transition: transform .8s cubic-bezier(.2,.7,.2,1), filter .8s;
}
.gallery figure::after {
  content: ""; position: absolute; inset: 0;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
  transition: box-shadow .4s;
  pointer-events: none;
}
.gallery figure:hover img { transform: scale(1.05); }
.gallery figure:hover::after { box-shadow: inset 0 0 0 1px var(--accent); }

/* ---- lightbox ---- */
.lightbox {
  position: fixed; inset: 0; z-index: 3000;
  background: rgba(5,5,7,.94);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity .35s;
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox img {
  max-width: 92vw; max-height: 88vh;
  box-shadow: 0 30px 90px rgba(0,0,0,.7);
  transform: scale(.94);
  transition: transform .35s cubic-bezier(.2,.7,.2,1);
}
.lightbox.open img { transform: scale(1); }
.lightbox button {
  position: absolute;
  background: none; border: 0; color: var(--ink);
  font-size: 2rem; cursor: pointer; opacity: .6;
  transition: opacity .3s, transform .3s;
  padding: 1rem;
  font-family: var(--sans);
}
.lightbox button:hover { opacity: 1; transform: scale(1.15); }
.lightbox .lb-close { top: .6rem; right: 1rem; }
.lightbox .lb-prev { left: .6rem; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: .6rem; top: 50%; transform: translateY(-50%); }
.lightbox .lb-prev:hover, .lightbox .lb-next:hover { transform: translateY(-50%) scale(1.15); }

/* ---- video embeds ---- */
.video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  box-shadow: 0 20px 60px rgba(0,0,0,.55);
  margin: 2.2rem 0;
}
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* two videos side by side; collapses to one column when there isn't room */
.video-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.4rem; }
.video-row .video-embed { margin: 0; }

/* ---- row-order masonry (see buildRowOrderGalleries in site.js) ---- */
.gallery.rows-grid { columns: auto; display: flex; align-items: flex-start; gap: 18px; }
.gallery.rows-grid .rows-col { flex: 1 1 0; min-width: 0; }

/* ---- wording that differs on touch devices ----------------------------
   A phone has no hover, so "hover a shard" and "click the corners" describe
   something the visitor cannot do. Both strings ship; CSS picks one. ---- */
.on-touch { display: none; }
@media (hover: none), (pointer: coarse) {
  .on-hover { display: none; }
  .on-touch { display: inline; }
}

/* ---- photo credits (sit under the gallery they belong to) ---- */
.photo-credit {
  margin: 1.1rem 0 0;
  text-align: right;
  font-size: .8rem;
  letter-spacing: .06em;
  color: rgba(255,255,255,.55);
}

/* ---- podcast embeds ---- */
.podcast-embed { width: 100%; max-width: 980px; margin: 2.4rem 0; }
.podcast-embed iframe { display: block; width: 100%; box-shadow: 0 16px 44px rgba(0,0,0,.5); }

/* ---- buttons ---- */
.btn {
  display: inline-block;
  position: relative;
  font-family: var(--sans);
  font-size: .82rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  border: 1px solid var(--accent);
  padding: 1rem 2.2rem;
  overflow: hidden;
  z-index: 1;
  transition: color .35s;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--accent);
  transform: translateX(-101%) skewX(-12deg) scaleX(1.2);
  transition: transform .45s cubic-bezier(.2,.7,.2,1);
}
.btn:hover { color: #000; }
.btn:hover::before { transform: translateX(0) skewX(0) scaleX(1.2); }

/* ---- accents per section ---- */
/* --accent-ink is the same hue darkened for use on white word tiles */
body.theme-improv { --accent: var(--red);    --accent-ink: #c11a45; }
body.theme-artist { --accent: var(--azure);  --accent-ink: #0b6f92; }
body.theme-time   { --accent: var(--violet); --accent-ink: #6a30b0; }
body.theme-hal    { --accent: var(--gold);   --accent-ink: #9a6d12; }

/* ---- footer ---- */
footer {
  padding: 3rem 2rem 4rem;
  text-align: center;
  color: var(--muted);
  font-size: .8rem;
  letter-spacing: .18em;
  text-transform: uppercase;
}
footer a { color: var(--accent); text-decoration: none; }

/* ---- full-page photo backdrop (artist-ink) ----
   A fixed layer under the content, not a body background, so it neither
   scrolls nor fights the film grain. #page is lifted above it only on
   pages that opt in. */
.page-bg {
  position: fixed; inset: 0; z-index: 0;
  background-position: center; background-size: cover; background-repeat: no-repeat;
}
/* anchor to the top of the picture instead of its middle */
.page-bg.bg-top { background-position: top center; }
.page-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10,10,12,.94), rgba(10,10,12,.72) 45%, rgba(10,10,12,.96)),
    rgba(10,10,12,.35);
}
body.has-bg #page { position: relative; z-index: 1; }

/* ---- floating prints beside a hero (alphabet book) ---- */
.hero-float {
  display: flex; align-items: center; justify-content: center;
  gap: clamp(1rem, 4vw, 3.5rem);
  max-width: 1180px; margin: 0 auto;
}
/* min-width:0 lets the title column shrink instead of pushing the prints
   off the viewport edge on narrow screens */
.hero-float .page-hero { padding-left: 0; padding-right: 0; min-width: 0; }
.float-print {
  width: clamp(74px, 11vw, 148px);
  flex: none;
  border-radius: 2px;
  cursor: zoom-in;
  box-shadow: 0 16px 40px rgba(0,0,0,.6);
  animation: floatBob 7s ease-in-out infinite;
  transition: transform .5s cubic-bezier(.2,.7,.2,1), box-shadow .5s;
}
/* stacks of three: the middle print leans against the other two */
/* Anchored to the top of the row, not centred: a three-print column is taller
   than the hero, so centring pushed the top print up under the fixed topbar. */
.print-stack {
  display: flex; flex-direction: column; align-items: center;
  gap: clamp(.6rem, 1.6vw, 1.5rem);
  flex: none;
  align-self: flex-start;
  padding-top: 6.6rem;
}
.float-print.tilt-a { transform: rotate(-6deg); animation-delay: -1.2s; }
.float-print.tilt-b { transform: rotate(6deg);  animation-delay: -4.1s; }
.print-stack .float-print:nth-child(2) { animation-delay: -3.4s; }
.print-stack .float-print:nth-child(3) { animation-delay: -5.8s; }
.float-print:hover { box-shadow: 0 22px 55px rgba(0,0,0,.75); animation-play-state: paused; }
.float-print.tilt-a:hover { transform: rotate(-2deg) scale(1.07); }
.float-print.tilt-b:hover { transform: rotate(2deg) scale(1.07); }
@keyframes floatBob {
  0%, 100% { translate: 0 -9px; }
  50%      { translate: 0 9px; }
}
@media (prefers-reduced-motion: reduce) { .float-print { animation: none; } }

/* ---- panorama with tracking minimap (artist-other) ---- */
.pano-wide { width: min(1560px, 95vw); margin: 0 auto; }
.pano-mini {
  position: relative; overflow: hidden;
  border-radius: 2px; margin-bottom: 12px;
  cursor: ew-resize; touch-action: none;
}
.pano-mini img { width: 100%; }
.pano-box {
  position: absolute; top: 0; bottom: 0;
  border: 1px solid var(--accent);
  box-shadow: 0 0 0 100vmax rgba(8,8,10,.66);
  pointer-events: none;
}
.pano.pano-fits .pano-mini, .pano.pano-fits .pano-hint { display: none; }
.pano-scroll { overflow-x: auto; overflow-y: hidden; scrollbar-width: thin; }
.pano-scroll img {
  height: min(58vh, 520px); width: auto; max-width: none;
  cursor: zoom-in;
}
.work-label {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  text-align: center; margin-bottom: 1.1rem;
}
.pano-hint {
  margin-top: .8rem; text-align: center;
  font-size: .72rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--muted);
}

/* ---- triptych (artist-other) ---- */
.triptych {
  display: grid; grid-template-columns: 1fr 1.3fr 1fr;
  gap: 16px; align-items: center;
  max-width: 1250px; margin: 0 auto;
}
.triptych img { width: 100%; border-radius: 2px; cursor: zoom-in; }
.solo-figure { max-width: 760px; margin: 0 auto; }
.solo-figure img { width: 100%; border-radius: 2px; cursor: zoom-in; }

/* ---- ink scrapbook: one big drawing with the rest pinned around it ---- */
.scrapbook {
  position: relative;
  width: 100%; max-width: 1080px; margin: 0 auto;
  aspect-ratio: 3 / 2;
}
.scrapbook img {
  position: absolute;
  cursor: zoom-in;
  box-shadow: 0 14px 34px rgba(0,0,0,.6);
  transition: transform .45s cubic-bezier(.2,.7,.2,1), box-shadow .45s;
}
.scrapbook img:hover {
  box-shadow: 0 20px 50px rgba(0,0,0,.8);
  z-index: 9;
}
.sb-big {
  height: 92%; width: auto;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
}
.sb-big:hover { transform: translate(-50%, -50%) scale(1.03); }
.sb-pin { z-index: 2; }
.sb-1 { left: 4%;  top: 2%;     width: 24%; transform: rotate(-4deg); }
.sb-2 { right: 3%; top: 6%;     width: 26%; transform: rotate(3.5deg); z-index: 3; }
.sb-3 { left: 11%; top: 34%;    width: 17%; transform: rotate(2.5deg); z-index: 4; }
.sb-4 { right: 9%; top: 40%;    width: 17%; transform: rotate(-3deg);  z-index: 4; }
.sb-5 { left: 14%; bottom: 2%;  width: 16%; transform: rotate(-2.5deg); z-index: 3; }
.sb-6 { right: 14%; bottom: 4%; width: 16%; transform: rotate(4deg);   z-index: 5; }
.sb-1:hover { transform: rotate(-4deg)   scale(1.07); }
.sb-2:hover { transform: rotate(3.5deg)  scale(1.07); }
.sb-3:hover { transform: rotate(2.5deg)  scale(1.07); }
.sb-4:hover { transform: rotate(-3deg)   scale(1.07); }
.sb-5:hover { transform: rotate(-2.5deg) scale(1.07); }
.sb-6:hover { transform: rotate(4deg)    scale(1.07); }

/* these two carry several drawings each, so they get their own quiet row */
.sb-pair {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 18px; max-width: 820px; margin: 5rem auto 0;
}
.sb-pair img { width: 100%; border-radius: 2px; cursor: zoom-in; }

/* ---- sculpture puzzle ----
   Hand-placed composition rather than a grid, because nothing may be cropped:
   every photo keeps its own aspect ratio (width set, height auto) and is put
   where it belongs. --x/--y/--w are in cqw — percent of the container's width
   — so vertical and horizontal units match and the whole thing scales as one. */
.sculpt-puzzle {
  container-type: inline-size;
  max-width: 1500px; margin: 0 auto; padding: 6.4rem 2rem 0;   /* clears the topbar */
}
.sculpt-stage {
  position: relative;
  height: 172cqw;            /* tallest placement (169.5) plus a little air */
}
.sculpt-stage .sc {
  position: absolute;
  left: calc(var(--x) * 1cqw);
  top:  calc(var(--y) * 1cqw);
  width: calc(var(--w) * 1cqw);
  height: auto;              /* natural aspect — never cropped */
  border-radius: 2px; cursor: zoom-in;
  transition: transform .45s cubic-bezier(.2,.7,.2,1), box-shadow .45s;
}
.sculpt-stage .sc:hover {
  transform: scale(1.03);
  box-shadow: 0 18px 44px rgba(0,0,0,.7);
  z-index: 5;
}
.puzzle-head {
  position: absolute;
  left: calc(var(--x) * 1cqw);
  top:  calc(var(--y) * 1cqw);
  width: calc(var(--w) * 1cqw);
  padding: 0 2.5rem 0 0;     /* keeps the title clear of the photos */
  max-width: none; min-width: 0;
}
/* the payoff for anyone who scrolls all the way down */
.joke { margin-top: 60vh; text-align: center; }
.joke img {
  height: min(66vh, 600px); width: auto; margin: 0 auto;
  border-radius: 2px; cursor: zoom-in;
}

@media (max-width: 900px) {
  .triptych { grid-template-columns: 1fr; max-width: 560px; }

  /* half as many columns, spans halved to match */
  /* The hand-placed composition is too fine-grained for a phone: everything
     would shrink to thumbnails. Fall back to a simple flow in DOM order, which
     is already grouped cluster by cluster. */
  .sculpt-puzzle { padding: 6rem 1.2rem 0; }
  .sculpt-stage {
    position: static; height: auto;
    display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start;
  }
  .sculpt-stage .sc, .puzzle-head {
    position: static; left: auto; top: auto;
  }
  .puzzle-head { width: 100%; padding-right: 0; margin-bottom: 1rem; }
  .sculpt-stage .sc.main { width: 100%; }
  .sculpt-stage .sc.sm   { width: calc(50% - 4px); }

  /* the scrapbook stops being a collage and just stacks */
  .scrapbook { aspect-ratio: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
  .scrapbook img {
    position: static; width: 100%; height: auto;
    transform: none; box-shadow: 0 10px 24px rgba(0,0,0,.55);
  }
  .scrapbook img:hover, .sb-big:hover { transform: none; }
  .sb-big { grid-column: span 2; justify-self: center; max-width: 70%; }
}

@media (max-width: 640px) {
  .topbar { padding: .9rem 1.1rem; }
  .topbar nav { gap: .8rem; }
  .page-hero { padding: 7rem 1.2rem 2rem; }
  .wrap { padding: 0 1.2rem 3rem; }
  .hero-float { gap: .5rem; padding: 0 .5rem; }
  .float-print { width: clamp(50px, 15vw, 78px); }
  /* the topbar wraps to two lines at this width, so it needs more clearance */
  .print-stack { gap: .45rem; padding-top: 7.6rem; }
  .sb-pair { grid-template-columns: 1fr; margin-top: 3rem; }
}
