:root {
  --paper: #f6efe0;
  --paper-edge: #e9dec8;
  --ink: #121116;
  --yellow: #ffe600;
  --magenta: #ff1e7a;
  --cyan: #00c4d4;
  --tangerine: #ff5a1f;
  --cobalt: #1c3faa;
  --lime: #c8ff00;
  --crimson: #e11d38;
  --pine: #0f6b47;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: 'IBM Plex Mono', monospace;
  -webkit-font-smoothing: antialiased;
}

/* ============================================================
   FULL-SCREEN SEAMLESS HORIZONTAL PANORAMA
   ============================================================ */
.panorama-viewport {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  overscroll-behavior-y: none;
  touch-action: pan-x;
  position: relative;
  cursor: grab;
  scrollbar-width: thin;
  scrollbar-color: rgba(18, 17, 22, 0.35) transparent;
}
.panorama-viewport.dragging {
  cursor: grabbing;
  scroll-behavior: auto;
}
.panorama-viewport::-webkit-scrollbar {
  height: 7px;
}
.panorama-viewport::-webkit-scrollbar-track {
  background: rgba(18, 17, 22, 0.08);
}
.panorama-viewport::-webkit-scrollbar-thumb {
  background: rgba(18, 17, 22, 0.42);
  border-radius: 999px;
}

.panorama-track {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  height: 100%;
  width: max-content;
  position: relative;
  overflow-y: hidden;
  background:
    linear-gradient(
      90deg,
      #f6efe0 0%,
      #f6efe0 31%,
      #f5edd9 34%,
      #faf6ea 50%,
      #f2ead7 72%,
      #f7f0df 100%
    );
}

.mural-grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 92;
  opacity: 0.2;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 220 220' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}

.magazine-shell {
  position: relative;
  height: 100%;
  width: 76vh;
  width: 76dvh;
  flex: 0 0 auto;
  container-type: inline-size;
  background: transparent;
}

.magazine-page {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: visible;
  user-select: none;
}

/* ============================================================
   SEAM BLENDING BRIDGES (TORN PAPER / TAPE / OVERLAPS)
   ============================================================ */
.seam-bridge {
  position: absolute;
  top: 0;
  bottom: 0;
  right: -5%;
  width: 10%;
  pointer-events: none;
  z-index: 46;
}

.seam-tape {
  position: absolute;
  background: rgba(255, 249, 220, 0.72);
  border-left: 0.16cqw dashed rgba(150, 138, 102, 0.55);
  border-right: 0.16cqw dashed rgba(150, 138, 102, 0.55);
  box-shadow: 0 0.22cqw 0.5cqw rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(0.5px);
}

.seam-arrow {
  position: absolute;
  right: -4.5%;
  top: 47.5%;
  background: var(--ink);
  color: var(--yellow);
  font-family: 'Anton', sans-serif;
  font-size: 1.55cqw;
  letter-spacing: 0.08em;
  padding: 0.35cqw 0.9cqw;
  border: 0.22cqw solid var(--yellow);
  box-shadow: 0.35cqw 0.35cqw 0 var(--magenta);
  transform: rotate(-3deg);
  z-index: 58;
  pointer-events: none;
  white-space: nowrap;
}

/* ============================================================
   SHARED MAGAZINE COMPONENTS
   ============================================================ */
.bg-halftone-grid {
  position: absolute;
  inset: 3.4% 0 5.4% 0;
  background-image: radial-gradient(rgba(18, 17, 22, 0.13) 1px, transparent 1px);
  background-size: 1.5cqw 1.5cqw;
  z-index: 1;
  pointer-events: none;
}

.folio-top {
  position: absolute;
  top: 1.3%;
  left: 0;
  right: 0;
  padding: 0 3.2% 0.5cqw;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.08cqw;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-bottom: 0.24cqw solid var(--ink);
  z-index: 42;
  color: var(--ink);
}
.folio-pill {
  background: var(--ink);
  color: var(--yellow);
  padding: 0.18cqw 0.7cqw;
  letter-spacing: 0.16em;
}

.starburst {
  position: absolute;
  z-index: 48;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  pointer-events: none;
}
.starburst svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0.35cqw 0.5cqw 0 rgba(18, 17, 22, 0.35));
}
.starburst-text {
  position: relative;
  z-index: 2;
  font-family: 'Bangers', cursive;
  letter-spacing: 0.06em;
  line-height: 0.96;
}

.tape {
  position: absolute;
  background: rgba(255, 250, 226, 0.65);
  border-left: 0.14cqw dashed rgba(180, 168, 130, 0.45);
  border-right: 0.14cqw dashed rgba(180, 168, 130, 0.45);
  box-shadow: 0 0.18cqw 0.4cqw rgba(0, 0, 0, 0.14);
  backdrop-filter: blur(0.5px);
  pointer-events: none;
  z-index: 38;
}

.polaroid {
  position: absolute;
  background: #fdfbf5;
  padding: 0.9cqw 0.9cqw 2.9cqw;
  box-shadow: 0.5cqw 0.8cqw 1.8cqw rgba(18, 17, 22, 0.34);
  border: 0.12cqw solid rgba(18, 17, 22, 0.16);
  z-index: 14;
  cursor: pointer;
  transition: transform 0.22s ease;
}
.polaroid:hover {
  transform: scale(1.04) !important;
  z-index: 72 !important;
}
.polaroid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  filter: contrast(1.06) saturate(1.08);
  pointer-events: none;
}
.polaroid.portrait img {
  aspect-ratio: 3 / 4;
}
.polaroid-cap {
  position: absolute;
  bottom: 0.55cqw;
  left: 1.0cqw;
  right: 1.0cqw;
  font-family: 'Permanent Marker', cursive;
  font-size: 1.28cqw;
  color: #202028;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.polaroid-cap span:last-child {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.92cqw;
  color: var(--magenta);
  font-weight: 700;
}

.pull-quote {
  position: absolute;
  background: var(--ink);
  color: #fff;
  padding: 1.1cqw 1.55cqw;
  border: 0.28cqw solid var(--yellow);
  box-shadow: 0.65cqw 0.65cqw 0 var(--magenta), 0 0.8cqw 1.8cqw rgba(0, 0, 0, 0.34);
  z-index: 36;
}
.pull-quote-kicker {
  font-size: 0.92cqw;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--yellow);
  text-transform: uppercase;
  margin-bottom: 0.28cqw;
}
.pull-quote p {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 700;
  font-size: 1.78cqw;
  line-height: 1.2;
  color: #fffdf7;
}

.tag-banner {
  position: absolute;
  font-family: 'Anton', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 0.35cqw 1.15cqw;
  border: 0.25cqw solid var(--ink);
  box-shadow: 0.45cqw 0.45cqw 0 var(--ink);
  z-index: 46;
  pointer-events: none;
}

.scribble {
  position: absolute;
  font-family: 'Permanent Marker', cursive;
  z-index: 48;
  pointer-events: none;
  line-height: 1.05;
}

.cutout {
  position: absolute;
  cursor: pointer;
  transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1), filter 0.24s ease;
  transform-origin: center center;
}
.cutout img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0.45cqw 0.75cqw 0.9cqw rgba(18, 12, 8, 0.38));
  pointer-events: none;
}
.cutout:hover {
  z-index: 78 !important;
  transform: var(--hover-transform) !important;
}
.cutout:hover img {
  filter: drop-shadow(0.7cqw 1.2cqw 1.5cqw rgba(18, 12, 8, 0.52));
}

.pin-num {
  position: absolute;
  width: 2.35cqw;
  height: 2.35cqw;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--ink);
  border: 0.2cqw solid var(--ink);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 1.05cqw;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0.22cqw 0.22cqw 0 var(--ink);
  z-index: 5;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
body.hide-pins .pin-num {
  opacity: 0;
  transform: scale(0.5);
}

.doodles-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 41;
}

.folio-bottom {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 6.4%;
  background: rgba(253, 250, 242, 0.96);
  border-top: 0.28cqw solid var(--ink);
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 1.3cqw;
  padding: 0.45cqw 2.4cqw;
  z-index: 50;
}
.folio-bottom.simple {
  grid-template-columns: 1fr auto;
}
.credits-list {
  font-size: 0.78cqw;
  line-height: 1.48;
  color: var(--ink);
  letter-spacing: 0.01em;
}
.credits-list .cr {
  white-space: nowrap;
  display: inline-block;
}
.credits-list b {
  background: var(--yellow);
  padding: 0 0.24cqw;
  margin-right: 0.16cqw;
}
.credits-list .sep {
  color: var(--magenta);
  margin: 0 0.22cqw;
}
.barcode-box {
  background: #fff;
  border: 0.16cqw solid var(--ink);
  padding: 0.3cqw 0.5cqw 0.15cqw;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.barcode-meta { font-size: 0.68cqw; font-weight: 700; letter-spacing: 0.08em; margin-bottom: 0.14cqw; white-space: nowrap; }
.barcode-svg { width: 8.2cqw; height: 2.2cqw; display: block; }
.barcode-num { font-size: 0.64cqw; letter-spacing: 0.16em; margin-top: 0.08cqw; }
.page-num-box {
  font-family: 'Anton', sans-serif;
  font-size: 2.5cqw;
  line-height: 1;
  background: var(--ink);
  color: var(--yellow);
  padding: 0.55cqw 0.85cqw;
  letter-spacing: 0.04em;
}

/* ============================================================
   CHAPTER 1 (P.42) — COVER COLLAGE
   ============================================================ */
#page-1 { z-index: 16; }
.p1 .scrap-cyan-circle {
  position: absolute; left: 22%; top: 25%; width: 56%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(var(--cyan) 28%, transparent 30%), rgba(0, 196, 212, 0.22);
  background-size: 1.35cqw 1.35cqw; z-index: 2; pointer-events: none;
}
.p1 .scrap-magenta-top {
  position: absolute; left: -2%; top: 6.0%; width: 90%; height: 11.8%; background: var(--magenta);
  transform: rotate(-1.4deg);
  clip-path: polygon(0% 8%, 4% 2%, 9% 7%, 15% 1%, 22% 6%, 29% 2%, 37% 7%, 46% 1%, 54% 6%, 63% 2%, 72% 7%, 81% 1%, 90% 6%, 98% 2%, 100% 14%, 99% 88%, 93% 95%, 85% 90%, 77% 97%, 68% 91%, 59% 98%, 49% 91%, 40% 97%, 31% 92%, 21% 98%, 12% 91%, 4% 96%, 0% 90%);
  z-index: 3; box-shadow: 0 0.6cqw 1.4cqw rgba(18, 17, 22, 0.2);
}
.p1 .scrap-yellow-mid {
  position: absolute; left: -3%; top: 47%; width: 109%; height: 18%; background: var(--yellow);
  transform: rotate(-2.2deg);
  clip-path: polygon(0% 14%, 5% 4%, 11% 12%, 19% 3%, 26% 11%, 34% 2%, 43% 10%, 51% 4%, 60% 12%, 69% 3%, 78% 11%, 87% 4%, 95% 12%, 100% 6%, 100% 88%, 94% 96%, 86% 87%, 77% 95%, 68% 88%, 59% 97%, 50% 89%, 41% 96%, 32% 88%, 23% 95%, 14% 87%, 6% 96%, 0% 89%);
  z-index: 4; opacity: 0.94;
}
.p1 .scrap-checker {
  position: absolute; left: -2%; top: 63.8%; width: 64%; height: 3.1%; transform: rotate(1.7deg);
  background-color: #fff;
  background-image:
    linear-gradient(45deg, var(--ink) 25%, transparent 25%, transparent 75%, var(--ink) 75%, var(--ink)),
    linear-gradient(45deg, var(--ink) 25%, transparent 25%, transparent 75%, var(--ink) 75%, var(--ink));
  background-size: 2.2cqw 2.2cqw; background-position: 0 0, 1.1cqw 1.1cqw;
  border-top: 0.22cqw solid var(--ink); border-bottom: 0.22cqw solid var(--ink);
  z-index: 6; box-shadow: 0 0.4cqw 0.8cqw rgba(0, 0, 0, 0.22);
}
.p1 .scrap-tangerine-br {
  position: absolute; right: -4%; bottom: 5%; width: 48%; height: 32%;
  background: repeating-linear-gradient(-45deg, var(--tangerine), var(--tangerine) 0.7cqw, #ff7947 0.7cqw, #ff7947 1.4cqw);
  transform: rotate(2.2deg);
  clip-path: polygon(6% 4%, 18% 0%, 34% 5%, 52% 1%, 70% 5%, 88% 1%, 98% 8%, 95% 42%, 100% 72%, 94% 100%, 4% 98%, 0% 82%, 5% 65%, 1% 45%, 5% 24%);
  z-index: 3; opacity: 0.9;
}
.p1 .scrap-cobalt-left {
  position: absolute; left: 2.2%; top: 19%; width: 19%; height: 41%; background: var(--cobalt);
  transform: rotate(-1.2deg); z-index: 3; opacity: 0.9; clip-path: polygon(0 0, 96% 2%, 100% 98%, 3% 100%);
}
.p1 .masthead { position: absolute; top: 5.2%; left: 4.5%; z-index: 25; display: flex; flex-direction: column; gap: 0.4cqw; }
.p1 .masthead-row { display: flex; align-items: baseline; gap: 1.2cqw; }
.p1 .word-will {
  font-family: 'Anton', sans-serif; font-size: 10.6cqw; line-height: 0.88; letter-spacing: 0.02em;
  color: var(--ink); background: var(--yellow); padding: 0.4cqw 1.6cqw 0.2cqw;
  transform: rotate(-2.5deg); border: 0.35cqw solid var(--ink); box-shadow: 0.85cqw 0.85cqw 0 var(--cyan); display: inline-block;
}
.p1 .word-amp {
  font-family: 'Playfair Display', serif; font-style: italic; font-weight: 900; font-size: 9.2cqw; line-height: 0.85;
  color: #fff; text-shadow: 0.35cqw 0.35cqw 0 var(--ink), -0.2cqw -0.2cqw 0 var(--ink), 0.2cqw -0.2cqw 0 var(--ink), -0.2cqw 0.2cqw 0 var(--ink);
  transform: rotate(6deg) translateY(0.5cqw); display: inline-block;
}
.p1 .word-alina {
  font-family: 'Anton', sans-serif; font-size: 10.6cqw; line-height: 0.88; letter-spacing: 0.02em;
  color: #fff; background: var(--ink); padding: 0.4cqw 1.8cqw 0.2cqw;
  transform: rotate(1.6deg); border: 0.35cqw solid #fff; box-shadow: 0.85cqw 0.85cqw 0 var(--yellow); display: inline-block;
}
.p1 .masthead-sub {
  margin-top: 0.7cqw; display: inline-flex; align-items: center; gap: 1.0cqw;
  background: var(--crimson); color: #fffdf5; border: 0.28cqw solid var(--ink); padding: 0.3cqw 1.3cqw;
  transform: rotate(-1.0deg); box-shadow: 0.48cqw 0.48cqw 0 var(--ink); width: fit-content;
}
.p1 .masthead-sub .holiday-main {
  font-family: 'Anton', sans-serif; font-size: 2.55cqw; letter-spacing: 0.08em; line-height: 1;
  color: var(--yellow); text-shadow: 0.2cqw 0.2cqw 0 var(--ink);
}
.p1 .masthead-sub .holiday-tag {
  font-size: 1.05cqw; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  background: #fff; color: var(--ink); padding: 0.22cqw 0.65cqw; border: 0.16cqw solid var(--ink);
}
.p1 .masthead-sub .dot { color: var(--yellow); font-size: 1.6cqw; }
.p1 .sb-top { right: 2.0%; top: 4.5%; width: 14.5%; aspect-ratio: 1; transform: rotate(10deg); }
.p1 .sb-top .starburst-text { font-size: 1.85cqw; color: var(--ink); }
.p1 .sb-top .starburst-text small { display: block; font-family: 'IBM Plex Mono', monospace; font-size: 0.95cqw; font-weight: 700; letter-spacing: 0.08em; color: var(--magenta); margin-top: 0.15cqw; }
.p1 .sb-mid { left: 25.5%; top: 39.2%; width: 12.2%; aspect-ratio: 1; transform: rotate(-14deg); z-index: 42; }
.p1 .sb-mid .starburst-text { font-size: 1.55cqw; color: #fff; }
.p1 .polaroid { left: 5.5%; top: 19.6%; width: 24.5%; transform: rotate(-5.5deg); z-index: 8; }
.p1 .pull-quote { left: 25.5%; top: 59.5%; width: 47.5%; transform: rotate(-1.8deg); }
.p1 .tb-party { right: 1.4%; top: 62.6%; background: var(--magenta); color: #fff; font-size: 1.95cqw; transform: rotate(2.6deg); }
.p1 .tb-marin { left: 50.8%; top: 86.2%; background: var(--yellow); color: var(--ink); font-size: 1.85cqw; transform: rotate(-2.4deg); z-index: 46; }
.p1 .tb-surf { left: 1.6%; top: 48.2%; background: var(--cyan); color: var(--ink); font-size: 1.85cqw; transform: rotate(-3.5deg); z-index: 44; }
.p1 .scr-style { right: 1.8%; top: 17.6%; font-size: 1.7cqw; color: var(--magenta); transform: rotate(7deg); text-shadow: 0.18cqw 0.18cqw 0 #fff; }
.p1 .scr-beanies { left: 33.5%; top: 20.6%; font-size: 1.55cqw; color: var(--cobalt); transform: rotate(-5deg); background: rgba(255, 230, 0, 0.85); padding: 0.1cqw 0.65cqw; }
.p1 .scr-zoo { left: 61.5%; top: 34.4%; font-size: 1.5cqw; color: var(--ink); transform: rotate(5deg); background: var(--lime); padding: 0.1cqw 0.6cqw; border: 0.16cqw solid var(--ink); }

.p1 .c-cliff       { left: 69.2%; top: 2.6%;  width: 13.8%; transform: rotate(-2deg);   --hover-transform: rotate(0deg) scale(1.07); z-index: 30; }
.p1 .c-alina-dress { left: 75.5%; top: 18.8%; width: 22.4%; transform: rotate(3.8deg);  --hover-transform: rotate(2deg) scale(1.06); z-index: 26; }
.p1 .c-will-surf   { left: -1.4%; top: 26.2%; width: 31.8%; transform: rotate(-3deg);   --hover-transform: rotate(-1deg) scale(1.05); z-index: 20; }
.p1 .c-beanies     { left: 29.2%; top: 22.8%; width: 44.5%; transform: rotate(2.2deg);  --hover-transform: rotate(0.5deg) scale(1.05); z-index: 22; }
.p1 .c-hug         { left: 30.2%; top: 40.2%; width: 34.5%; transform: rotate(-1.8deg); --hover-transform: rotate(0deg) scale(1.06); z-index: 32; }
.p1 .c-pets        { left: 59.4%; top: 37.5%; width: 21.8%; transform: rotate(3.2deg);  --hover-transform: rotate(1deg) scale(1.06); z-index: 28; }
.p1 .c-toast       { left: 79.5%; top: 40.5%; width: 20.5%; transform: rotate(-3.5deg); --hover-transform: rotate(-1.5deg) scale(1.06); z-index: 34; }
.p1 .c-wine        { left: -0.6%; top: 52.8%; width: 15.2%; transform: rotate(0deg);    --hover-transform: translateX(0.4cqw) scale(1.05); z-index: 29; }
.p1 .c-hike        { left: 15.6%; top: 52.8%; width: 13.6%; transform: rotate(-5.2deg); --hover-transform: rotate(-2deg) scale(1.07); z-index: 33; }
.p1 .c-flash       { left: 1.4%;  top: 70.0%; width: 37.2%; transform: rotate(-2.2deg); --hover-transform: rotate(-0.8deg) scale(1.05); z-index: 35; }
.p1 .c-shades      { left: 36.2%; top: 65.4%; width: 19.2%; transform: rotate(2.4deg);  --hover-transform: rotate(0.5deg) scale(1.06); z-index: 37; }
.p1 .c-bikes       { left: 51.8%; top: 69.2%; width: 23.2%; transform: rotate(-3.2deg); --hover-transform: rotate(-1deg) scale(1.06); z-index: 36; }
.p1 .c-rock        { left: 69.4%; top: 57.6%; width: 11.4%; transform: rotate(3deg);    --hover-transform: rotate(0deg) scale(1.08); z-index: 43; }
.p1 .c-knit        { left: 73.2%; top: 66.2%; width: 27.6%; transform: rotate(1.6deg);  --hover-transform: rotate(0deg) scale(1.05); z-index: 39; }

/* ============================================================
   CHAPTER 2 (P.43) — FRESH OFF THE ROLL • FALL '26
   ============================================================ */
#page-2 { z-index: 12; }
.p2 .p2-band-top {
  position: absolute; left: -1.5%; top: 5.4%; width: 103%; height: 14%;
  background: var(--cobalt); transform: rotate(0.9deg); z-index: 2;
  clip-path: polygon(2% 10%, 0 42%, 3% 76%, 0 96%, 14% 98%, 30% 94%, 48% 99%, 66% 93%, 84% 99%, 100% 94%, 98% 48%, 100% 4%, 80% 0, 62% 5%, 44% 1%, 26% 5%, 12% 0);
}
.p2 .p2-orange-diag {
  position: absolute; left: 0%; top: 34%; width: 62%; height: 34%;
  background: repeating-linear-gradient(45deg, var(--tangerine), var(--tangerine) 0.9cqw, #ff7c43 0.9cqw, #ff7c43 1.8cqw);
  transform: rotate(-3.2deg); z-index: 2; opacity: 0.92;
  clip-path: polygon(0 6%, 94% 0, 100% 94%, 4% 100%);
}
.p2 .p2-yellow-right {
  position: absolute; right: -2%; top: 44%; width: 52%; height: 49%;
  background: var(--yellow); transform: rotate(2.2deg); z-index: 3; opacity: 0.92;
  clip-path: polygon(6% 2%, 100% 0, 100% 98%, 0 96%, 4% 48%);
}
.p2 .p2-headline {
  position: absolute; top: 6.4%; left: 4.5%; right: 4.5%; z-index: 25;
  display: flex; align-items: flex-end; justify-content: space-between;
}
.p2 .p2-title {
  font-family: 'Anton', sans-serif; font-size: 7.4cqw; line-height: 0.92; color: #fff;
  letter-spacing: 0.03em; text-shadow: 0.55cqw 0.55cqw 0 var(--ink);
}
.p2 .p2-title span {
  background: var(--yellow); color: var(--ink); padding: 0 1.2cqw;
  border: 0.3cqw solid var(--ink); box-shadow: 0.5cqw 0.5cqw 0 var(--magenta);
  display: inline-block; transform: rotate(-2deg); text-shadow: none;
}
.p2 .p2-date-badge {
  background: var(--magenta); color: #fff; border: 0.28cqw solid var(--ink);
  box-shadow: 0.45cqw 0.45cqw 0 var(--yellow); padding: 0.6cqw 1.2cqw;
  text-align: center; transform: rotate(4deg);
}
.p2 .p2-date-badge strong { display: block; font-family: 'Anton', sans-serif; font-size: 2.8cqw; line-height: 1; }
.p2 .p2-date-badge small { font-size: 0.95cqw; font-weight: 700; letter-spacing: 0.14em; }

.p2 .p2-note-card {
  position: absolute; left: 32.5%; top: 51.0%; width: 24.5%; background: #fffdf7;
  border: 0.26cqw solid var(--ink); box-shadow: 0.6cqw 0.6cqw 0 var(--cobalt);
  padding: 1.0cqw 1.2cqw; transform: rotate(-1.5deg); z-index: 38;
}
.p2 .p2-note-card h3 {
  font-family: 'Anton', sans-serif; font-size: 1.85cqw; letter-spacing: 0.06em;
  color: var(--crimson); margin-bottom: 0.35cqw;
}
.p2 .p2-note-card p { font-size: 0.96cqw; line-height: 1.42; font-weight: 500; }

.p2 .p2-polaroid-dog { left: 4.5%; top: 48.2%; width: 26.8%; transform: rotate(-5deg); z-index: 16; }

.p2 .c-nov-park   { left: 3.5%;  top: 20.5%; width: 38.5%; transform: rotate(-2.5deg); --hover-transform: rotate(0deg) scale(1.05); z-index: 26; }
.p2 .c-oct-sf     { left: 37.5%; top: 20.8%; width: 37.5%; transform: rotate(2.0deg);  --hover-transform: rotate(0deg) scale(1.05); z-index: 28; }
.p2 .c-nov-barn-a { left: 73.5%; top: 18.8%; width: 25.0%; transform: rotate(2.8deg);  --hover-transform: rotate(1deg) scale(1.05); z-index: 30; }
.p2 .c-nov-barn-w { left: 55.8%; top: 45.2%; width: 19.2%; transform: rotate(-2.0deg); --hover-transform: rotate(0deg) scale(1.06); z-index: 35; }
.p2 .c-nov-puffer { left: 2.0%;  top: 67.2%; width: 34.5%; transform: rotate(-1.8deg); --hover-transform: rotate(0deg) scale(1.05); z-index: 36; }
.p2 .c-nov-suit   { left: 36.2%; top: 69.8%; width: 28.5%; transform: rotate(1.5deg);  --hover-transform: rotate(0deg) scale(1.05); z-index: 37; }
.p2 .c-oct-sun    { left: 69.5%; top: 60.2%; width: 28.8%; transform: rotate(-1.8deg); --hover-transform: rotate(0deg) scale(1.05); z-index: 36; }

.p2 .tb-park  { left: 4.0%; top: 45.2%; background: var(--yellow); color: var(--ink); font-size: 1.75cqw; transform: rotate(-2.5deg); z-index: 44; }
.p2 .tb-sf    { left: 43.0%; top: 43.2%; background: var(--magenta); color: #fff; font-size: 1.75cqw; transform: rotate(2.4deg); z-index: 44; }
.p2 .tb-barn  { right: 4.2%; top: 50.8%; background: var(--ink); color: var(--yellow); font-size: 1.7cqw; transform: rotate(-3deg); z-index: 45; }

/* ============================================================
   CHAPTER 3 (P.44) — AFTER DARK • TORN MIDNIGHT POSTER OVERLAY!
   ============================================================ */
#page-3 { z-index: 18; }
.p3 { color: #fffdf5; }
.p3-torn-bg {
  position: absolute;
  top: -1%;
  bottom: -1%;
  left: -3.0%;
  right: -3.0%;
  background:
    radial-gradient(circle at 22% 24%, rgba(255, 30, 122, 0.26), transparent 44%),
    radial-gradient(circle at 80% 72%, rgba(0, 196, 212, 0.24), transparent 46%),
    radial-gradient(circle at 50% 50%, rgba(200, 255, 0, 0.09), transparent 55%),
    #14121b;
  clip-path: polygon(
    2.4% 0%, 97.6% 0%,
    99.5% 5%, 96.6% 11%, 99.2% 18%, 96.8% 25%, 99.6% 33%, 96.5% 41%, 99.4% 49%, 96.6% 57%, 99.5% 65%, 96.7% 74%, 99.3% 83%, 96.8% 91%, 98.8% 100%,
    1.8% 100%,
    0.4% 92%, 3.2% 84%, 0.6% 75%, 3.4% 66%, 0.5% 57%, 3.1% 48%, 0.4% 39%, 3.3% 30%, 0.6% 21%, 3.2% 13%, 0.5% 6%
  );
  filter: drop-shadow(0 0 1.4cqw rgba(0, 0, 0, 0.42));
  z-index: 0;
  pointer-events: none;
}
.p3 .bg-halftone-grid {
  background-image: radial-gradient(rgba(255, 255, 255, 0.14) 1px, transparent 1px);
  inset: 3.4% 1.5% 5.4% 1.5%;
}
.p3 .folio-top { color: #fffdf5; border-bottom-color: var(--lime); }
.p3 .folio-pill { background: var(--magenta); color: #fff; }
.p3 .p3-neon-stripe {
  position: absolute; left: -4%; top: 44%; width: 108%; height: 15%;
  background: var(--magenta); transform: rotate(2.4deg); z-index: 2; opacity: 0.94;
  clip-path: polygon(0 12%, 14% 2%, 30% 10%, 48% 1%, 66% 11%, 84% 2%, 100% 10%, 100% 90%, 82% 98%, 62% 89%, 44% 98%, 24% 89%, 8% 97%, 0 90%);
}
.p3 .p3-lime-grid {
  position: absolute; right: 3%; top: 18%; width: 42%; height: 32%;
  background-image: radial-gradient(var(--lime) 26%, transparent 28%);
  background-size: 1.4cqw 1.4cqw; opacity: 0.35; z-index: 2; pointer-events: none;
}
.p3 .p3-header { position: absolute; top: 5.5%; left: 4.5%; z-index: 25; }
.p3 .p3-kicker {
  display: inline-block; background: var(--lime); color: var(--ink);
  font-size: 1.15cqw; font-weight: 700; letter-spacing: 0.16em;
  padding: 0.22cqw 0.9cqw; margin-bottom: 0.5cqw; transform: rotate(-1.5deg);
}
.p3 .p3-title {
  font-family: 'Anton', sans-serif; font-size: 9.2cqw; line-height: 0.88;
  color: #fff; letter-spacing: 0.03em;
  text-shadow: 0.6cqw 0.6cqw 0 var(--magenta), -0.25cqw -0.25cqw 0 var(--cyan);
}
.p3 .p3-title em {
  font-family: 'Playfair Display', serif; font-style: italic; font-weight: 900;
  color: var(--yellow); text-shadow: 0.45cqw 0.45cqw 0 var(--ink);
}

.p3 .p3-pol-drums { left: 4.5%;  top: 23.0%; width: 25.5%; transform: rotate(-5.5deg); z-index: 15; }
.p3 .p3-pol-margs { right: 4.2%; top: 17.5%; width: 24.5%; transform: rotate(4.5deg);  z-index: 16; }
.p3 .p3-pol-crew  { left: 3.5%;  top: 52.8%; width: 31.5%; transform: rotate(-3.5deg); z-index: 18; }

.p3 .c-flash-both { left: 25.5%; top: 24.2%; width: 45.5%; transform: rotate(1.6deg);  --hover-transform: rotate(0deg) scale(1.05); z-index: 28; }
.p3 .c-golden-w   { left: 74.0%; top: 41.5%; width: 24.5%; transform: rotate(2.5deg);  --hover-transform: rotate(0deg) scale(1.06); z-index: 30; }
.p3 .c-shades-w   { left: 53.5%; top: 57.5%; width: 25.5%; transform: rotate(-2.2deg); --hover-transform: rotate(0deg) scale(1.06); z-index: 32; }
.p3 .c-barn-a     { left: 26.5%; top: 67.5%; width: 28.5%; transform: rotate(-2.0deg); --hover-transform: rotate(0deg) scale(1.05); z-index: 36; }
.p3 .c-flash-a    { left: 0.5%;  top: 66.2%; width: 27.5%; transform: rotate(2.2deg);  --hover-transform: rotate(0deg) scale(1.05); z-index: 35; }

.p3 .pull-quote {
  left: 29.0%; top: 45.8%; width: 44.5%; transform: rotate(-1.6deg);
  background: var(--yellow); color: var(--ink); border-color: var(--ink);
  box-shadow: 0.65cqw 0.65cqw 0 var(--cyan);
}
.p3 .pull-quote-kicker { color: var(--magenta); }
.p3 .pull-quote p { color: var(--ink); font-size: 1.65cqw; }

.p3 .tb-vip   { right: 1.4%; top: 75.2%; background: var(--lime); color: var(--ink); font-size: 1.9cqw; transform: rotate(-4deg); z-index: 46; }
.p3 .tb-after { left: 54.0%; top: 82.0%; background: var(--cyan); color: var(--ink); font-size: 1.8cqw; transform: rotate(2.2deg); z-index: 46; }
.p3 .folio-bottom { background: #1c1926; border-top-color: var(--lime); }
.p3 .credits-list { color: #f4eee0; }
.p3 .credits-list b { background: var(--magenta); color: #fff; }
.p3 .credits-list .sep { color: var(--lime); }
.p3 .page-num-box { background: var(--lime); color: var(--ink); }

/* ============================================================
   CHAPTER 4 (P.45) — SUMMER '26 • SUN, SEA & WHEELS
   ============================================================ */
#page-4 { z-index: 17; }
.p4 .p4-sun-wave {
  position: absolute; left: -2%; top: 5.5%; width: 105%; height: 15.5%;
  background: var(--cyan); z-index: 2; transform: rotate(-1.0deg);
  clip-path: polygon(0 0, 100% 4%, 100% 86%, 88% 95%, 74% 85%, 60% 96%, 46% 86%, 32% 95%, 16% 85%, 0 94%);
}
.p4 .p4-coral-block {
  position: absolute; left: -2%; top: 52%; width: 48%; height: 41%;
  background: var(--tangerine); transform: rotate(-2.5deg); z-index: 2; opacity: 0.9;
  clip-path: polygon(0 4%, 96% 0, 100% 96%, 2% 100%);
}
.p4 .p4-yellow-dots {
  position: absolute; right: -2%; top: 24%; width: 54%; height: 42%;
  background: radial-gradient(var(--yellow) 36%, transparent 38%), rgba(255, 230, 0, 0.22);
  background-size: 1.8cqw 1.8cqw; border-radius: 24px; transform: rotate(3deg); z-index: 2;
}
.p4 .p4-header { position: absolute; top: 6.4%; left: 5.2%; z-index: 25; }
.p4 .p4-title {
  font-family: 'Anton', sans-serif; font-size: 7.3cqw; line-height: 0.9; color: var(--yellow);
  text-shadow: 0.52cqw 0.52cqw 0 var(--ink), -0.18cqw -0.18cqw 0 var(--ink);
  letter-spacing: 0.03em;
}
.p4 .p4-sub {
  margin-top: 0.55cqw; display: inline-block; background: var(--ink); color: #fff;
  font-size: 1.18cqw; font-weight: 700; letter-spacing: 0.14em; padding: 0.3cqw 1.0cqw;
  box-shadow: 0.4cqw 0.4cqw 0 var(--yellow);
}

.p4 .p4-pol-bmw { right: 4.5%; top: 48.5%; width: 32%; transform: rotate(3.8deg); z-index: 16; }

.p4 .c-point-w { left: 67.5%; top: 4.2%;  width: 28.0%; transform: rotate(3.2deg);  --hover-transform: rotate(0deg) scale(1.06); z-index: 30; }
.p4 .c-hat-a   { left: 3.5%;  top: 21.8%; width: 22.8%; transform: rotate(-3.5deg); --hover-transform: rotate(-1deg) scale(1.06); z-index: 28; }
.p4 .c-beer-a  { left: 26.8%; top: 23.0%; width: 27.5%; transform: rotate(2.0deg);  --hover-transform: rotate(0deg) scale(1.05); z-index: 26; }
.p4 .c-yard-w  { left: 53.5%; top: 26.2%; width: 39.5%; transform: rotate(-2.2deg); --hover-transform: rotate(0deg) scale(1.05); z-index: 27; }
.p4 .c-car-w   { left: 53.2%; top: 44.8%; width: 22.8%; transform: rotate(-4.0deg); --hover-transform: rotate(-1deg) scale(1.06); z-index: 35; }
.p4 .c-drive-w { left: 2.0%;  top: 67.2%; width: 32.5%; transform: rotate(-2.0deg); --hover-transform: rotate(0deg) scale(1.05); z-index: 34; }
.p4 .c-wc-w    { left: 34.0%; top: 62.8%; width: 23.8%; transform: rotate(2.5deg);  --hover-transform: rotate(0deg) scale(1.05); z-index: 36; }

.p4 .tb-patio  { left: 26.0%; top: 49.5%; background: var(--yellow); color: var(--ink); font-size: 1.75cqw; transform: rotate(-2.2deg); z-index: 44; }
.p4 .tb-wc     { left: 34.2%; top: 85.8%; background: var(--magenta); color: #fff; font-size: 1.75cqw; transform: rotate(-1.8deg); z-index: 45; }
.p4 .pull-quote {
  right: 2.2%; bottom: 9.8%; width: 39.5%; transform: rotate(1.5deg);
  background: var(--ink); border-color: var(--cyan); box-shadow: 0.6cqw 0.6cqw 0 var(--yellow);
}
.p4 .pull-quote p { font-size: 1.55cqw; }

/* ============================================================
   CHAPTER 5 (P.46) — WILD AT HEART • COAST & TRAIL
   ============================================================ */
#page-5 { z-index: 16; }
.p5 .p5-emerald-top {
  position: absolute; left: -1%; top: 5.2%; width: 72%; height: 13.5%;
  background: var(--pine); transform: rotate(-1.4deg); z-index: 2;
  clip-path: polygon(0 6%, 98% 0, 100% 92%, 88% 98%, 72% 91%, 56% 98%, 40% 92%, 22% 99%, 6% 92%, 0 96%);
}
.p5 .p5-mono-box {
  position: absolute; left: 3.5%; top: 51.5%; width: 44%; height: 39%;
  background: #1a1a1f; border: 0.3cqw solid var(--ink);
  box-shadow: 0.7cqw 0.7cqw 0 var(--lime); transform: rotate(-1.5deg); z-index: 5;
  padding: 1.0cqw 1.3cqw;
}
.p5 .p5-mono-label {
  font-family: 'Anton', sans-serif; font-size: 2.15cqw; letter-spacing: 0.08em;
  color: var(--lime); border-bottom: 0.18cqw solid rgba(255,255,255,0.22);
  padding-bottom: 0.35cqw; display: flex; justify-content: space-between; align-items: center;
}
.p5 .p5-mono-label small { font-family: 'IBM Plex Mono', monospace; font-size: 0.9cqw; color: #fff; }
.p5 .p5-sand-right {
  position: absolute; right: -4%; top: 24%; width: 52%; height: 64%;
  background: repeating-linear-gradient(-45deg, rgba(19, 111, 74, 0.13), rgba(19, 111, 74, 0.13) 0.9cqw, transparent 0.9cqw, transparent 1.8cqw);
  z-index: 2;
}
.p5 .p5-header { position: absolute; top: 6.2%; left: 4.8%; z-index: 25; }
.p5 .p5-title {
  font-family: 'Anton', sans-serif; font-size: 7.8cqw; line-height: 0.92; color: var(--lime);
  text-shadow: 0.5cqw 0.5cqw 0 var(--ink); letter-spacing: 0.03em;
}
.p5 .p5-sub {
  margin-top: 0.45cqw; display: inline-block; background: var(--yellow); color: var(--ink);
  border: 0.24cqw solid var(--ink); padding: 0.25cqw 0.95cqw;
  font-size: 1.15cqw; font-weight: 700; letter-spacing: 0.12em;
}

.p5 .p5-pol-wave { right: 4.0%; top: 4.6%; width: 25.5%; transform: rotate(4.5deg); z-index: 16; }

.p5 .c-boat-both    { left: 3.5%;  top: 21.5%; width: 41.5%; transform: rotate(-2.2deg); --hover-transform: rotate(0deg) scale(1.05); z-index: 26; }
.p5 .c-flowers-both { left: 45.5%; top: 20.5%; width: 24.5%; transform: rotate(2.4deg);  --hover-transform: rotate(0deg) scale(1.06); z-index: 30; }
.p5 .c-palm-a       { left: 78.5%; top: 27.6%; width: 17.5%; transform: rotate(3.2deg);  --hover-transform: rotate(1deg) scale(1.07); z-index: 28; }
.p5 .c-bw-a         { left: 6.2%;  top: 57.5%; width: 16.5%; transform: rotate(-2.0deg); --hover-transform: rotate(0deg) scale(1.07); z-index: 34; }
.p5 .c-bw-w         { left: 22.8%; top: 56.2%; width: 19.8%; transform: rotate(1.5deg);  --hover-transform: rotate(0deg) scale(1.06); z-index: 35; }
.p5 .c-bike-both    { left: 49.5%; top: 58.2%; width: 29.8%; transform: rotate(-2.4deg); --hover-transform: rotate(0deg) scale(1.05); z-index: 33; }
.p5 .c-redwood-a    { left: 77.2%; top: 58.5%; width: 19.5%; transform: rotate(4.0deg);  --hover-transform: rotate(1deg) scale(1.07); z-index: 36; }

.p5 .tb-boat  { left: 5.5%; top: 41.2%; background: var(--crimson); color: #fff; font-size: 1.75cqw; transform: rotate(-2.8deg); z-index: 44; }
.p5 .tb-trail { left: 50.5%; top: 84.8%; background: var(--lime); color: var(--ink); font-size: 1.75cqw; transform: rotate(2.0deg); z-index: 45; }

/* ============================================================
   CHAPTER 6 (P.47) — HOLIDAY FINALE • 2026 WRAPPED & SIGNED CARD
   ============================================================ */
#page-6 { z-index: 14; }
.p6 .p6-festive-top {
  position: absolute; left: -2%; top: 5.2%; width: 104%; height: 14.5%;
  background: var(--crimson); transform: rotate(-1.1deg); z-index: 2;
  clip-path: polygon(0 4%, 100% 0, 100% 92%, 86% 98%, 68% 90%, 50% 98%, 32% 90%, 14% 98%, 0 91%);
}
.p6 .p6-pine-ribbon {
  position: absolute; left: -2%; top: 51%; width: 104%; height: 15%;
  background: var(--pine); transform: rotate(2.2deg); z-index: 3;
  clip-path: polygon(0 12%, 18% 2%, 36% 12%, 56% 2%, 74% 12%, 92% 2%, 100% 10%, 100% 90%, 82% 98%, 62% 88%, 44% 98%, 24% 88%, 8% 97%, 0 90%);
}
.p6 .p6-header {
  position: absolute; top: 5.8%; left: 4.5%; right: 4.5%; z-index: 25;
  display: flex; align-items: center; justify-content: space-between;
}
.p6 .p6-title {
  font-family: 'Anton', sans-serif; font-size: 8.2cqw; line-height: 0.9; color: var(--yellow);
  text-shadow: 0.55cqw 0.55cqw 0 var(--ink); letter-spacing: 0.03em;
}
.p6 .p6-stamp {
  width: 14.5%; aspect-ratio: 1; background: #fffdf5; border: 0.3cqw dashed var(--pine);
  outline: 0.25cqw solid var(--ink); padding: 0.6cqw; transform: rotate(7deg);
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  box-shadow: 0.45cqw 0.45cqw 0 var(--ink);
}
.p6 .p6-stamp span { font-family: 'Anton', sans-serif; font-size: 2.0cqw; color: var(--crimson); line-height: 1; }
.p6 .p6-stamp small { font-size: 0.82cqw; font-weight: 700; color: var(--pine); letter-spacing: 0.1em; margin-top: 0.25cqw; }

.p6 .scorecard {
  position: absolute; left: 4.2%; top: 21.8%; width: 30.5%;
  background: #fffdf6; border: 0.28cqw solid var(--ink);
  box-shadow: 0.65cqw 0.65cqw 0 var(--pine); padding: 1.25cqw 1.35cqw;
  transform: rotate(-2.2deg); z-index: 26;
}
.p6 .scorecard h3 {
  font-family: 'Anton', sans-serif; font-size: 2.35cqw; letter-spacing: 0.05em;
  background: var(--yellow); color: var(--ink); padding: 0.18cqw 0.65cqw;
  border: 0.2cqw solid var(--ink); display: inline-block; margin-bottom: 0.7cqw;
}
.p6 .score-row {
  display: flex; justify-content: space-between; align-items: baseline;
  border-bottom: 0.14cqw dashed rgba(18, 17, 22, 0.28); padding: 0.42cqw 0;
  font-size: 1.0cqw; font-weight: 700;
}
.p6 .score-row strong {
  font-family: 'Anton', sans-serif; font-size: 1.85cqw; color: var(--crimson);
}

.p6 .holiday-card-note {
  position: absolute; left: 26.5%; top: 57.5%; width: 47.5%;
  background: #fffdf7; border: 0.3cqw solid var(--ink);
  box-shadow: 0.75cqw 0.75cqw 0 var(--crimson), 0 0.8cqw 1.8cqw rgba(0, 0, 0, 0.25);
  padding: 1.5cqw 1.85cqw; transform: rotate(-1.2deg); z-index: 38;
}
.p6 .holiday-card-note .note-kicker {
  font-size: 0.95cqw; font-weight: 700; letter-spacing: 0.16em;
  color: var(--pine); text-transform: uppercase; margin-bottom: 0.45cqw;
}
.p6 .holiday-card-note p {
  font-family: 'Playfair Display', serif; font-style: italic; font-weight: 700;
  font-size: 1.72cqw; line-height: 1.28; color: var(--ink); margin-bottom: 0.75cqw;
}
.p6 .holiday-card-note .sig {
  font-family: 'Permanent Marker', cursive; font-size: 2.1cqw;
  color: var(--crimson); text-align: right;
}

.p6 .p6-pol-lake  { right: 4.0%; top: 21.8%; width: 26.5%; transform: rotate(4.2deg);  z-index: 16; }
.p6 .p6-pol-lake img { object-position: center 94%; }
.p6 .p6-pol-beach { left: 4.5%;  top: 47.2%; width: 21.8%; transform: rotate(-4.5deg); z-index: 18; }

.p6 .c-city-night { left: 37.5%; top: 21.5%; width: 31.0%; transform: rotate(1.5deg);  --hover-transform: rotate(0deg) scale(1.05); z-index: 28; }
.p6 .c-cat-a      { left: 74.0%; top: 37.5%; width: 23.8%; transform: rotate(-3.2deg); --hover-transform: rotate(0deg) scale(1.06); z-index: 34; }
.p6 .c-xmas-door  { left: 2.0%;  top: 72.0%; width: 24.5%; transform: rotate(-2.2deg); --hover-transform: rotate(0deg) scale(1.05); z-index: 35; }
.p6 .c-beanie-a   { left: 27.2%; top: 72.5%; width: 15.8%; transform: rotate(2.5deg);  --hover-transform: rotate(0deg) scale(1.07); z-index: 39; }
.p6 .c-cap-w      { left: 44.5%; top: 74.0%; width: 25.5%; transform: rotate(-1.5deg); --hover-transform: rotate(0deg) scale(1.05); z-index: 36; }
.p6 .c-puffer-w   { left: 71.2%; top: 72.5%; width: 26.8%; transform: rotate(2.2deg);  --hover-transform: rotate(0deg) scale(1.05); z-index: 37; }
.p6 .tb-xmas      { left: 3.0%;  top: 87.2%; background: var(--crimson); color: var(--yellow); font-size: 1.65cqw; transform: rotate(-2deg); z-index: 46; }

/* ============================================================
   FLOATING COMPACT PANORAMA SCRUBBER HUD + SWIPE HINT
   ============================================================ */
.swipe-hint {
  position: fixed;
  bottom: calc(max(14px, env(safe-area-inset-bottom)) + 64px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 145;
  background: var(--yellow);
  color: var(--ink);
  border: 2.5px solid var(--ink);
  box-shadow: 4px 4px 0 var(--magenta);
  font-family: 'Anton', sans-serif;
  font-size: 14px;
  letter-spacing: 0.08em;
  padding: 5px 14px;
  pointer-events: none;
  white-space: nowrap;
  transition: opacity 0.45s ease, transform 0.45s ease;
}
.swipe-hint.hidden {
  opacity: 0;
  transform: translateX(-50%) translateY(8px);
}

.hud-dock {
  position: fixed;
  bottom: max(12px, env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  z-index: 150;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  background: rgba(18, 17, 22, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 6px 12px 7px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
  max-width: calc(100vw - 16px);
}
.hud-mobile-title {
  display: none;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--yellow);
}
.hud-row { display: flex; align-items: center; gap: 5px; }
.hud-tab {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.07);
  color: #efe8d8;
  padding: 5px 9px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}
.hud-tab:hover { border-color: var(--yellow); color: #fff; }
.hud-tab.active { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }
.hud-btn {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 5px 9px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}
.hud-btn:hover { background: var(--magenta); border-color: var(--magenta); }
.hud-progress-track {
  width: 92%;
  height: 3px;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  overflow: hidden;
}
.hud-progress-fill {
  height: 100%;
  width: 16%;
  background: linear-gradient(90deg, var(--yellow), var(--magenta), var(--cyan));
  border-radius: 999px;
  transition: width 0.08s linear;
}

/* Lightbox Modal */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(12, 10, 14, 0.86);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  display: none; align-items: center; justify-content: center;
  z-index: 220; padding: 16px;
}
.modal-backdrop.open { display: flex; }
.modal-card {
  background: var(--paper); color: var(--ink); border: 3px solid var(--ink);
  box-shadow: 10px 10px 0 var(--yellow), 0 24px 60px rgba(0, 0, 0, 0.65);
  max-width: 780px; width: 100%; max-height: 90dvh; overflow-y: auto;
  padding: 20px; position: relative;
}
.modal-head {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  border-bottom: 2px solid var(--ink); padding-bottom: 10px; margin-bottom: 14px;
}
.modal-title { font-family: 'Anton', sans-serif; font-size: 26px; letter-spacing: 0.04em; text-transform: uppercase; }
.modal-date { font-size: 12px; font-weight: 700; background: var(--magenta); color: #fff; padding: 3px 8px; margin-left: 8px; display: inline-block; }
.modal-close {
  background: var(--ink); color: var(--yellow); border: none;
  font-family: 'IBM Plex Mono', monospace; font-weight: 700; font-size: 14px;
  padding: 8px 14px; cursor: pointer; flex-shrink: 0;
}
.modal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: center; }
.modal-grid.single { grid-template-columns: 1fr; }
.modal-pane { background: #ece4d2; border: 2px solid var(--ink); padding: 10px; text-align: center; }
.modal-pane.cutout-bg { background: repeating-conic-gradient(#d8cfbc 0% 25%, #ebe4d4 0% 50%) 50% / 16px 16px; }
.modal-pane img { max-width: 100%; max-height: 360px; object-fit: contain; display: block; margin: 0 auto; }
.modal-pane-label { margin-top: 6px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; }

/* Touch devices: avoid sticky hover scale on tap */
@media (hover: none) {
  .cutout:hover { transform: none !important; z-index: auto !important; }
  .polaroid:hover { transform: none !important; z-index: auto !important; }
  .panorama-viewport { cursor: default; }
}

/* Mobile portrait & compact screens */
@media (max-width: 760px) and (orientation: portrait) {
  .magazine-shell {
    width: clamp(390px, 68dvh, 580px);
  }
}

@media (max-width: 760px) {
  .panorama-viewport::-webkit-scrollbar { height: 4px; }
  .hud-dock {
    border-radius: 18px;
    padding: 6px 10px 7px;
    gap: 4px;
  }
  .hud-mobile-title { display: block; }
  .hud-row { gap: 4px; }
  .hud-tab .tab-label { display: none; }
  .hud-tab {
    font-size: 11.5px;
    padding: 6px 9px;
    min-width: 32px;
    text-align: center;
  }
  .hud-btn {
    font-size: 12px;
    padding: 6px 9px;
    min-width: 32px;
  }
  .swipe-hint {
    bottom: calc(max(12px, env(safe-area-inset-bottom)) + 76px);
    font-size: 13px;
  }
  .modal-card { padding: 14px; box-shadow: 6px 6px 0 var(--yellow); }
  .modal-title { font-size: 20px; }
  .modal-date { font-size: 10.5px; margin-left: 6px; }
  .modal-grid { grid-template-columns: 1fr; gap: 10px; }
  .modal-pane img { max-height: 28dvh; }
}

/* Landscape phones (short viewport height) */
@media (max-height: 460px) and (orientation: landscape) {
  .hud-dock { bottom: 6px; padding: 4px 10px; gap: 3px; }
  .hud-mobile-title { display: none; }
  .hud-tab { padding: 3px 7px; font-size: 10px; }
  .hud-btn { padding: 3px 7px; font-size: 10px; }
  .swipe-hint { bottom: 54px; font-size: 11px; padding: 3px 10px; }
}
