/* ── 10 · Sketches: human figures + sketchbook desk ─────────────────────── */
#sketches {
  padding: 0;
  overflow-x: clip;
  --sheet: #fffcf6;
  --graphite: #5d5a58;
}
#sketches .sk-block {
  position: relative;
  padding: clamp(96px, 12vh, 150px) var(--gutter) clamp(80px, 10vh, 130px);
}
#sketches .sk-block--book { padding-top: clamp(40px, 6vh, 80px); }
#sketches .sk-board {
  position: relative;
  max-width: var(--maxw);
  margin-inline: auto;
  container-type: inline-size;
}
#sketches .sk-stage { position: relative; aspect-ratio: 1000 / 860; }
#sketches .sk-block--book .sk-stage { aspect-ratio: 1000 / 780; }

/* ── Titles ─────────────────────────────────────────────────────────────── */
#sketches .sk-title {
  position: absolute; left: 0; right: 0; z-index: 6;
  text-align: center;
  font-size: 11.6cqw;
  letter-spacing: .05em;
  pointer-events: none;
}
#sketches .sk-title .ch { pointer-events: auto; }
#sketches .sk-title--top { top: 2%; }
#sketches .sk-title--bottom { bottom: -1%; }
#sketches .sk-title--mid { top: 37.5%; font-size: 11cqw; letter-spacing: .04em; }

/* ── Items: sheet of sketch paper, pinned/taped to the board ─────────────── */
#sketches .sk-item {
  position: absolute; margin: 0; z-index: 2;
  left: calc(var(--x) * 1%);
  top: calc(var(--y) * 1%);
  width: calc(var(--w) * 1%);
}
#sketches .sk-item.is-up { z-index: 9; }
#sketches .sk-drag { position: relative; touch-action: pan-y; }
#sketches .sk-sheet { position: relative; }
#sketches .sk-paper {
  position: relative;
  padding: 6% 6% 7%;
  background: linear-gradient(165deg, #fffdf9 0%, var(--sheet) 55%, #f9f2e6 100%);
  box-shadow: var(--shadow-paper);
  border-radius: 2px;
  rotate: var(--r, 0deg);
  transition: rotate .7s var(--ease-bounce), scale .6s var(--ease-bounce), translate .6s var(--ease-out);
  cursor: zoom-in;
  -webkit-tap-highlight-color: transparent;
}
#sketches .sk-paper::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  box-shadow: var(--shadow-lift); opacity: 0; transition: opacity .5s var(--ease-out);
}
#sketches .sk-art { position: relative; }
#sketches .sk-art img { width: 100%; height: auto; display: block; user-select: none; -webkit-user-drag: none; }
#sketches .sk-ink {
  position: absolute; inset: 0; width: 100%; height: 100%;
  overflow: visible; pointer-events: none; mix-blend-mode: multiply;
}

@media (hover: hover) {
  #sketches .sk-item:hover { z-index: 9; }
  #sketches .sk-paper:hover { rotate: calc(var(--r, 0deg) * .25); scale: 1.045; translate: 0 -8px; }
  #sketches .sk-paper:hover::after { opacity: 1; }
}
#sketches .sk-drag.is-dragging .sk-paper { rotate: calc(var(--r, 0deg) + 4deg); scale: 1.07; transition-duration: .35s; }
#sketches .sk-drag.is-dragging .sk-paper::after { opacity: 1; }
#sketches .sk-paper:focus-visible { outline-offset: 6px; }

/* spiral sketchbook page: a row of punched holes along the top */
#sketches .sk-paper--spiral { padding-top: 11%; }
#sketches .sk-paper--spiral::before {
  content: ''; position: absolute; left: 6%; right: 6%; top: 3.2%; height: 12px;
  background: radial-gradient(circle, var(--bg) 0 3.3px, rgba(58, 42, 42, .28) 3.8px, transparent 4.6px) 0 50% / 15px 12px repeat-x;
}

/* tape, pins and clips */
#sketches .sk-tape { width: 84px; height: 24px; }
#sketches .sk-tape--top { top: -11px; left: 50%; translate: -50% 0; rotate: -3deg; }
#sketches .sk-tape--tl { top: -4px; left: -24px; rotate: -38deg; width: 76px; }
#sketches .sk-tape--tr { top: -4px; right: -24px; rotate: 38deg; width: 76px; }
#sketches .sk-tape--br { bottom: 0; right: -24px; rotate: -38deg; width: 76px; }

#sketches .sk-pin {
  position: absolute; z-index: 4; top: -8px; left: 50%;
  width: 22px; height: 22px; margin-left: -11px; border-radius: 50%;
  --pc: var(--pink);
  background:
    radial-gradient(circle at 34% 30%, rgba(255, 255, 255, .85) 0 2.4px, transparent 3.4px),
    radial-gradient(circle at 50% 55%, var(--pc) 0 52%, color-mix(in srgb, var(--pc) 70%, #3a2a2a) 100%);
  box-shadow: 3px 6px 5px -2px rgba(58, 42, 42, .38);
  pointer-events: none;
}
#sketches .sk-pin::after { /* needle shadow on the paper */
  content: ''; position: absolute; left: 13px; top: 16px; width: 2px; height: 12px;
  background: rgba(58, 42, 42, .22); rotate: -32deg; border-radius: 2px; z-index: -1;
}
#sketches .sk-pin--teal { --pc: var(--teal); }
#sketches .sk-pin--butter { --pc: #eebe4e; }

#sketches .sk-clip {
  position: absolute; z-index: 4; top: -24px; left: 12%;
  width: 16px; height: 44px; rotate: 7deg;
  color: #85818a; stroke-width: 2.6px;
  filter: drop-shadow(1px 2px 1px rgba(58, 42, 42, .25));
}

/* the reveal pencil (built in JS) */
#sketches .sk-pencil { position: absolute; left: 0; top: 0; width: 0; height: 0; z-index: 7; pointer-events: none; }
#sketches .sk-pencil__hand { position: absolute; left: 0; top: 0; width: 0; height: 0; }
#sketches .sk-pencil svg {
  position: absolute; left: -1.5px; top: -11px; width: 128px; height: 23px; overflow: visible;
  filter: drop-shadow(5px 9px 4px rgba(58, 42, 42, .22));
}
#sketches .sk-pencil .ln { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ── Notes, doodles, eraser ─────────────────────────────────────────────── */
#sketches .sk-hint {
  position: absolute; z-index: 5; margin: 0;
  font-size: clamp(18px, 1.55cqw, 25px); color: var(--ink-soft);
  line-height: 1.1; white-space: nowrap; rotate: -6deg;
}
#sketches .sk-hint--drag { right: 0; bottom: 16%; }
#sketches .sk-hint-arrow { position: absolute; z-index: 5; width: 4.2%; right: 8%; bottom: 19.5%; rotate: 200deg; scale: 1 -1; }

#sketches .sk-dd { position: absolute; z-index: 5; }
#sketches .sk-dd--1 { width: 3.2%; left: 74%; top: 4%; }
#sketches .sk-dd--2 { width: 2.6%; left: 26.5%; top: 25%; }
#sketches .sk-dd--3 { width: 4%; left: 6%; top: 85%; }
#sketches .sk-dd--4 { width: 2.2%; left: 23%; top: 8%; }
#sketches .sk-dd--5 { width: 3%; left: 13%; top: 36%; }
#sketches .sk-dd--6 { width: 2.6%; left: 92%; top: 26%; }
#sketches .sk-dd--7 { width: 2.4%; left: 48%; top: 54%; }

#sketches .sk-desk { position: absolute; z-index: 5; left: 79%; top: 76%; width: 20%; height: 20%; }
#sketches .sk-eraser {
  position: absolute; left: 6%; top: 34%;
  width: clamp(70px, 7cqw, 100px); aspect-ratio: 100 / 44;
  padding: 0; border: 0; background: none; cursor: pointer;
  transform-origin: 50% 80%;
}
#sketches .sk-eraser__body {
  position: absolute; inset: 0; display: block; overflow: hidden; rotate: -16deg;
  border: 2px solid var(--ink); border-radius: 10px 10px 12px 12px;
  background: linear-gradient(180deg, #f8b6c9 0%, #ee92b0 70%, #e47ea0 100%);
  box-shadow: 4px 8px 8px -3px rgba(58, 42, 42, .32);
}
#sketches .sk-eraser__sleeve {
  position: absolute; top: -2px; bottom: -2px; left: 44%; right: -2px;
  background:
    linear-gradient(180deg, transparent 0 40%, rgba(255, 255, 255, .7) 40% 47%, transparent 47%),
    linear-gradient(180deg, #9ec8e8, #7fb1d9);
  border-left: 2px solid var(--ink);
}
#sketches .sk-eraser:focus-visible { outline-offset: 6px; }
#sketches .sk-crumb {
  position: absolute; width: 7px; height: 4px; border-radius: 3px; pointer-events: none;
  background: #e98fae; box-shadow: inset 0 -1px 0 rgba(58, 42, 42, .2);
}
#sketches .sk-hint--erase { left: 48%; top: 0; font-size: clamp(17px, 1.45cqw, 23px); rotate: 5deg; text-align: left; }
#sketches .sk-hint-arrow--erase { left: 34%; right: auto; bottom: auto; top: 4%; width: 15%; rotate: 70deg; scale: -1 1; }

/* ── Phones & tablets: tidy masonry ─────────────────────────────────────── */
@media (max-width: 899px) {
  #sketches .sk-block { padding: 84px 18px 56px; }
  #sketches .sk-block--book { padding-top: 40px; }
  #sketches .sk-board { container-type: normal; }
  #sketches .sk-stage, #sketches .sk-block--book .sk-stage {
    aspect-ratio: auto; columns: 2; column-gap: 16px; padding-top: 8px;
  }
  #sketches .sk-item {
    position: relative; left: auto; top: auto; width: auto;
    break-inside: avoid; margin: 0 0 26px; padding-top: 12px;
    display: inline-block; width: 100%;
  }
  #sketches .sk-paper { rotate: calc(var(--r, 0deg) * .6); }
  #sketches .sk-title { position: relative; top: auto; bottom: auto; font-size: clamp(60px, 18.5vw, 132px); }
  #sketches .sk-title--top { margin: 0 0 14px; }
  #sketches .sk-title--bottom { margin: 4px 0 0; }
  #sketches .sk-title--mid { margin: 0 0 18px; font-size: clamp(56px, 16.5vw, 120px); }
  #sketches .sk-hint--drag, #sketches .sk-hint-arrow { display: none; }
  #sketches .sk-dd--2, #sketches .sk-dd--5, #sketches .sk-dd--7 { display: none; }
  #sketches .sk-dd--1 { width: 26px; left: auto; right: 4%; top: -40px; }
  #sketches .sk-dd--3 { width: 30px; left: 2%; top: auto; bottom: 14px; }
  #sketches .sk-dd--4 { width: 18px; left: 6%; top: -26px; }
  #sketches .sk-dd--6 { width: 22px; left: auto; right: 6%; top: -10px; }
  #sketches .sk-tape { width: 64px; height: 20px; }
  #sketches .sk-tape--tl { left: -16px; width: 56px; }
  #sketches .sk-tape--tr { right: -16px; width: 56px; }
  #sketches .sk-tape--br { right: -16px; width: 56px; }
  #sketches .sk-pencil svg { width: 92px; height: 17px; top: -8px; }

  #sketches .sk-desk { position: relative; left: auto; top: auto; width: 100%; height: 96px; margin-top: 6px; }
  #sketches .sk-eraser { left: 18%; top: 30px; width: 84px; }
  #sketches .sk-hint--erase { left: 52%; top: 18px; font-size: 20px; }
  #sketches .sk-hint-arrow--erase { left: 38%; top: 10px; width: 44px; }
}
@media (min-width: 600px) and (max-width: 899px) {
  #sketches .sk-stage, #sketches .sk-block--book .sk-stage { columns: 3; }
}
