/* gauravgives.lol · mixtape zine · Midnight & Gold */

@font-face { font-family: "Bricolage"; src: url(../fonts/bricolage.woff2) format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Caveat"; src: url(../fonts/caveat.woff2) format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Space Mono"; src: url(../fonts/spacemono-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Space Mono"; src: url(../fonts/spacemono-700.woff2) format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --paper: #F4EEE1; --ink: #1D1B20; --navy: #151C36; --gold: #D1A544; --parch: #E6D8B4;
  --blue: #2B3E8C; --cream: #F4EEE1; --white: #FFFDF8; --orange: #FF7A2F;
  --grain: url(../assets/grain.webp);
  --spring: cubic-bezier(.3, 1.55, .5, 1);
  --out: cubic-bezier(.2, .8, .2, 1);
  --shadow: 4px 4px 0 var(--shade);
  --shade: var(--ink); --line: var(--ink); --on-light: #1D1B20; --sticker: var(--white);
  --pencil: rgb(29 27 32 / .28); --rule: rgb(29 27 32 / .35); --hover: rgb(230 216 180 / .45);
  --drum-a: rgb(255 253 248 / .7); --drum-b: rgb(209 165 68 / .35);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 12px; }
body {
  margin: 0; min-height: 100vh; color: var(--ink);
  background: var(--grain), var(--paper);
  font: 400 16px/1.5 "Bricolage", system-ui, sans-serif;
  font-optical-sizing: auto; -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: inherit; -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.mono { font-family: "Space Mono", ui-monospace, monospace; letter-spacing: .02em; }
.b { font-weight: 700; }
.hand { font-family: "Caveat", cursive; font-weight: 700; }
.dim { opacity: .6; }
.rough { filter: url(#rough); will-change: transform; }
.rough-lg { filter: url(#rough-lg); will-change: transform; }
/* cheap hand-drawn feel for big or changing surfaces: a second, fainter pencil line */
.sketch { outline: 1.5px solid var(--pencil); outline-offset: -7px; }
.fine-only { display: none; }
@media (hover: hover) and (pointer: fine) { .fine-only { display: inline; } }

/* iOS haptics: an invisible native switch laid over each control (see haptics.js) */
[data-haptic] { position: relative; }
.hx { position: absolute; inset: 0; opacity: 0; z-index: 2; cursor: inherit; }
.hx input { display: none; }
.no-haptics .hx { display: none; }

/* ---------- stickers, buttons ---------- */
.sticker-round { display: block; border-radius: 50%; background: var(--white); border: 2.5px solid var(--line); box-shadow: var(--shadow); padding: 0; aspect-ratio: 1; }
.sticker-round svg { width: 84%; height: auto; margin: 8%; }
.crest { fill: var(--gold); transition: fill .3s; }
.eyes-open { display: none; }
.awake .eyes-open { display: inline; }
.awake .eyes-shut { display: none; }

.btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 46px;
  padding: 10px 18px; border: 2.5px solid var(--line); border-radius: 12px;
  background: var(--white); font-weight: 700; font-size: 17px; text-decoration: none;
  box-shadow: var(--shadow); transition: transform .09s var(--out), box-shadow .09s var(--out), border-color .2s;
}
.btn svg { width: 14px; height: 14px; }
.btn-navy { background: var(--grain), var(--navy); color: var(--cream); }
.btn-parch { background: var(--grain), var(--parch); }
@media (hover: hover) { .btn:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--shade); } }
.btn:active, .btn.pressed { transform: translate(4px, 4px); box-shadow: 0 0 0 var(--shade); }

/* ---------- masthead ---------- */
.mast {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  max-width: 1240px; margin: 0 auto; padding: 18px 20px 12px; font-size: 11px; font-weight: 700;
  border-bottom: 2px dashed var(--line);
}
.mast a { text-decoration: none; }
.mast-nav { display: none; gap: 22px; }
.mast-nav a:hover, .mast-cv:hover { text-decoration: underline; text-decoration-thickness: 2px; }
@media (min-width: 900px) { .mast-nav { display: flex; } .mast { font-size: 12px; } }

/* ---------- hero ---------- */
.hero {
  max-width: 1240px; margin: 0 auto; padding: 28px 20px 8px;
  display: grid; gap: 22px 40px; grid-template-columns: 1fr; align-items: start;
}
.poster {
  position: relative; grid-column: 1; rotate: -1.5deg;
  background: var(--grain), var(--navy); color: var(--cream);
  border: 2.5px solid var(--line); box-shadow: 7px 7px 0 var(--shade);
  padding: 18px 18px 22px; min-height: 300px;
  transition: rotate .4s var(--spring), border-color .2s, box-shadow .35s var(--spring);
}
.poster-top { font-size: 11px; font-weight: 700; margin: 0 0 6px; opacity: .9; }
.poster-name { display: grid; margin: 0; font-weight: 800; font-size: clamp(64px, 17vw, 168px); line-height: .84; letter-spacing: -.025em; font-variation-settings: "opsz" 96; }
.poster-name > span { grid-area: 1 / 1; }
.poster-name .ghost { color: var(--gold); transform: translate(.045em, .035em); transition: transform .55s var(--spring), opacity .2s, translate .42s var(--spring); }
.poster-name .ink { color: var(--cream); position: relative; }
.poster-chip {
  display: inline-block; margin: 14px 0 12px; rotate: 2deg;
  background: var(--gold); color: var(--on-light); border: 2px solid var(--line);
  padding: 3px 10px; font-weight: 700; font-size: clamp(15px, 2.4vw, 26px);
}
.poster-sub { margin: 0; max-width: min(34ch, calc(100% - 96px)); font-size: 14px; opacity: .92; }
.poster-robin { position: absolute; right: -10px; bottom: -22px; width: clamp(100px, 26vw, 190px); rotate: 8deg; transition: rotate .3s var(--spring), scale .2s var(--spring); }
.poster-robin:hover { rotate: 2deg; scale: 1.04; }
.poster-robin.ruffle { animation: ruffle .45s var(--spring); }
@keyframes ruffle { 30% { scale: 1.12 .88; } 60% { scale: .94 1.08; } }

.note-me { justify-self: end; margin: 14px 6px -8px 0; font-size: 24px; color: var(--blue); rotate: -4deg; }
.tagline { display: grid; margin: 0; font-weight: 800; font-size: clamp(21px, 3.4vw, 36px); line-height: 1.2; }
.tagline > span { grid-area: 1 / 1; }
.tagline .hl { color: transparent; filter: url(#rough);
  background: linear-gradient(transparent 52%, rgb(209 165 68 / .6) 52% 94%, transparent 94%);
  -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.tagline .hl > span { background: inherit; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.receipt {
  background: var(--grain), var(--white); border: 2px solid var(--line); box-shadow: 5px 5px 0 var(--shade);
  padding: 18px 18px 20px; rotate: 1.2deg; font-size: 12.5px; max-width: 460px;
}
.receipt p { margin: 0 0 6px; }
.receipt dl { margin: 10px 0 12px; }
.receipt dl div { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; }
.receipt dt, .receipt dd { margin: 0; }
.receipt dd { font-weight: 700; text-align: right; }
.receipt .thanks { color: var(--blue); margin: 0; }
html.js .receipt:not(.printed) dl div, html.js .receipt:not(.printed) .thanks { opacity: 0; translate: 0 -4px; }
.receipt dl div, .receipt .thanks { transition: opacity .1s, translate .2s; transition-delay: calc(var(--i, 0) * 110ms); }

@media (min-width: 980px) {
  .hero { grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); padding-top: 36px; }
  .hero-side { grid-column: 2; grid-row: 1 / span 6; align-self: start; display: flex; flex-direction: column; gap: 14px; margin-top: 10px; }
  .poster { grid-row: 1; padding: 26px 30px 30px; min-height: 460px; }
  .poster-top { font-size: 13px; }
  .poster-sub { font-size: 16px; max-width: 42ch; }
  .note-me { grid-column: 1; margin: 12px 24px -10px 0; justify-self: end; font-size: 28px; }
  .tagline, .actions { grid-column: 1; }
}

/* ---------- sections ---------- */
.side { max-width: 1240px; margin: 0 auto; padding: 72px 20px 0; }
.side-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 18px; margin-bottom: 22px; }
.mis {
  margin: 0; font-weight: 800; font-size: clamp(52px, 10vw, 104px); line-height: .9; letter-spacing: -.02em;
  font-variation-settings: "opsz" 96; text-shadow: .05em .04em 0 var(--gold);
}
.mis.small { font-size: clamp(38px, 7vw, 64px); }
.hand-note { margin: 0; font-size: clamp(22px, 3vw, 30px); color: var(--blue); rotate: -2.5deg; line-height: 1.1; }
html.js .hand-note { clip-path: inset(-20% 100% -20% -8%); transition: clip-path .75s cubic-bezier(.5, 0, .5, 1); }
html.js .hand-note.written { clip-path: inset(-20% -8% -20% -8%); }

.reveal { transition: opacity .2s, scale .5s var(--spring), rotate .5s var(--spring); }
html.js .reveal:not(.in) { opacity: 0; scale: 1.14; rotate: calc(var(--r, 0deg) - 4deg); }
.reveal.in { rotate: var(--r, 0deg); }

/* J-card tracklist */
.jcard {
  position: relative; background: var(--grain), var(--white); border: 2.5px solid var(--line);
  box-shadow: 6px 6px 0 var(--shade); rotate: -.5deg; padding: 8px 14px;
}
.tape { position: absolute; top: -15px; width: 104px; height: 28px; background: var(--parch); opacity: .85; filter: url(#rough); z-index: 1; }
.tape-l { left: 18px; rotate: -8deg; } .tape-r { right: 18px; rotate: 7deg; }
.tracks { list-style: none; margin: 0; padding: 0; }
.track + .track { border-top: 1.5px dashed var(--rule); }
.track-btn {
  width: 100%; display: grid; align-items: center; gap: 2px 14px; padding: 12px 6px;
  grid-template-columns: 34px 58px minmax(0, 1fr); border-radius: 10px;
  transition: translate .2s var(--spring), background-color .2s;
}
.track-btn .why, .track-btn .proof { grid-column: 3; }
.num { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; background: var(--c); color: var(--fg, var(--cream)); border: 2px solid var(--line); filter: url(#rough); }
.cover { grid-row: span 3; width: 58px; height: 58px; padding: 3px; background: var(--white); border: 2px solid var(--line); box-shadow: 3px 3px 0 var(--shade); rotate: -3deg; transition: rotate .3s var(--spring); }
.track:nth-child(even) .cover { rotate: 3deg; }
.t { display: flex; flex-direction: column; }
.t b { font-size: 21px; font-weight: 800; line-height: 1.1; }
.t span { font-size: 14px; }
.why { font-size: 21px; color: var(--blue); line-height: 1.1; }
.proof { font-size: 11px; font-weight: 700; }
@media (hover: hover) and (pointer: fine) {
  .track-btn:hover { background: var(--hover); translate: 0 -2px; }
  .track-btn:hover .cover { animation: wobble .5s var(--spring); }
}
@keyframes wobble { 30% { rotate: 5deg; } 65% { rotate: -4deg; } }
@media (min-width: 820px) {
  .track-btn { grid-template-columns: 40px 66px minmax(0, 1.15fr) minmax(0, 1.25fr) 150px; padding: 12px 10px; }
  .track-btn .why, .track-btn .proof { grid-column: auto; }
  .cover { grid-row: auto; width: 66px; height: 66px; }
  .num { width: 38px; height: 38px; }
  .why { font-size: 25px; }
  .proof { text-align: right; }
}

/* Side B stickers */
.stickers {
  list-style: none; margin: 0 -20px; padding: 10px 20px 26px; display: grid; gap: 22px;
  grid-auto-flow: column; grid-auto-columns: min(54vw, 240px); overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.stickers::-webkit-scrollbar { display: none; }
.stickers li { scroll-snap-align: start; }
.sticker-card { display: block; width: 100%; background: var(--white); border: 2.5px solid var(--line); box-shadow: 5px 5px 0 var(--shade); padding: 8px 8px 12px; }
.sticker-card.in { rotate: var(--r); }
.sticker-card img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.cap { display: flex; flex-direction: column; padding: 10px 4px 0; }
.cap b { font-size: 19px; font-weight: 800; line-height: 1.1; }
.cap span { font-size: 14px; }
@media (hover: hover) { .sticker-card.in:hover { rotate: 0deg; scale: 1.03; } }
@media (min-width: 900px) { .stickers { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); overflow: visible; margin: 0; padding: 10px 0 20px; } }

/* Discography: cassette cases */
.cases { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.case {
  width: 100%; display: flex; gap: 14px; align-items: center; padding: 12px 14px 12px 12px;
  background: var(--grain), var(--parch); border: 2.5px solid var(--line); border-left-width: 12px; border-radius: 12px;
  box-shadow: 5px 5px 0 var(--shade); --r: -.8deg;
}
.cases li:nth-child(2) .case { --r: .9deg; }
.case img { width: 74px; height: 74px; border: 2px solid var(--line); flex: none; }
.case-t { display: flex; flex-direction: column; }
.case-t .mono { font-size: 11px; font-weight: 700; }
.case-t b { font-size: 20px; font-weight: 800; line-height: 1.15; }
.case-t span:last-child { font-size: 14px; }
@media (hover: hover) { .case.in:hover { rotate: 0deg; translate: 0 -2px; } }
@media (min-width: 900px) { .cases { grid-template-columns: repeat(3, 1fr); } }

/* Bonus tracks */
.bonus { list-style: none; margin: 0; padding: 0; display: grid; gap: 0 32px; font-size: 13px; font-weight: 700; }
.bonus li { border-bottom: 1.5px dashed var(--rule); }
.bonus button { width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 2px; flex-wrap: wrap; }
.bonus img { width: 40px; height: 40px; border: 2px solid var(--line); }
.bonus em { font: 400 15px "Bricolage", sans-serif; font-style: normal; opacity: .75; }
@media (hover: hover) { .bonus button:hover { color: var(--blue); } }
@media (min-width: 900px) { .bonus { grid-template-columns: 1fr 1fr; } }

/* Wrapped stat stickers (tap to flip) */
.stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px 16px; }
.stat {
  display: block; position: relative; width: min(100%, 210px); aspect-ratio: 1; margin: 0 auto;
  perspective: 700px; --r: 0deg;
}
.stat .front, .stat .back {
  position: absolute; inset: 0; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 12%; background: var(--grain), var(--bg); color: var(--fg);
  border: 2.5px solid var(--line); box-shadow: 5px 5px 0 var(--shade); backface-visibility: hidden;
  transition: transform .55s var(--spring); filter: url(#rough);
}
.stat .back { transform: rotateY(180deg); font-size: 14px; font-weight: 600; line-height: 1.3; }
.stat.flipped .front { transform: rotateY(-180deg); }
.stat.flipped .back { transform: rotateY(0); }
.stat b { font-size: clamp(36px, 9vw, 56px); font-weight: 800; line-height: 1; letter-spacing: -.02em; }
.stat .hand { font-size: 21px; line-height: 1; margin-top: 4px; }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(3, 1fr); } }

/* Liner notes: lyrics */
.lyrics { max-width: 900px; }
.lyric { margin: 0 0 14px; font-weight: 800; font-size: clamp(24px, 4.6vw, 44px); line-height: 1.15; letter-spacing: -.01em; opacity: .2; transition: opacity .35s, translate .35s var(--spring); }
.lyric.hand.big { font-family: "Caveat", cursive; font-size: clamp(34px, 6.4vw, 60px); color: var(--blue); }
.lyric.past { opacity: .55; }
.lyric.on { opacity: 1; translate: 6px 0; }
html:not(.js) .lyric { opacity: 1; }

/* Credits envelope */
.envelope {
  position: relative; max-width: 560px; background: var(--grain), var(--white); border: 2.5px solid var(--line);
  box-shadow: 6px 6px 0 var(--shade); padding: 96px 22px 22px; rotate: 1deg;
}
.envelope::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 86px;
  background:
    linear-gradient(to bottom right, transparent calc(50% - 1.2px), var(--line) calc(50% - 1.2px) calc(50% + 1.2px), transparent calc(50% + 1.2px)) left / 50% 100% no-repeat,
    linear-gradient(to bottom left, transparent calc(50% - 1.2px), var(--line) calc(50% - 1.2px) calc(50% + 1.2px), transparent calc(50% + 1.2px)) right / 50% 100% no-repeat;
}
.stamp { position: absolute; top: 14px; right: 16px; width: 66px; height: 78px; display: grid; place-items: center; text-align: center; background: var(--navy); color: var(--cream); border: 2px dashed var(--gold); outline: 2px solid var(--line); rotate: 6deg; font-weight: 700; font-size: 14px; line-height: 1.2; }
.envelope .mono { font-size: 12px; margin: 0; }
.env-mail { display: inline-block; font-size: clamp(30px, 6vw, 42px); color: var(--blue); text-decoration: none; margin: 2px 0 6px; overflow-wrap: anywhere; }
.env-mail:hover { text-decoration: underline; }
.env-links { margin: 0; font-weight: 700; font-size: 17px; }
.env-links a { text-decoration-thickness: 2px; text-underline-offset: 3px; }
.colophon { max-width: 640px; font-size: 12px; opacity: .7; margin: 32px 0 0; padding-bottom: 150px; }

/* ---------- walkman ---------- */
.walkman {
  position: fixed; z-index: 50; left: 50%; bottom: max(12px, env(safe-area-inset-bottom)); translate: -50% 0;
  width: min(660px, calc(100% - 20px)); display: flex; align-items: center; gap: 8px; padding: 8px 10px;
  background: var(--grain), var(--parch); border: 2.5px solid var(--line); border-radius: 18px; box-shadow: 5px 5px 0 var(--shade);
}
.cassette { position: relative; flex: none; width: 76px; height: 42px; background: var(--ink); border-radius: 8px; display: flex; align-items: center; justify-content: space-around; padding: 0 8px; }
.reel { width: 24px; height: 24px; border-radius: 50%; background: radial-gradient(circle, var(--ink) 0 22%, transparent 23%), conic-gradient(var(--white) 0 20%, var(--parch) 0 25%, var(--white) 0 45%, var(--parch) 0 50%, var(--white) 0 70%, var(--parch) 0 75%, var(--white) 0 95%, var(--parch) 0); animation: spin 1.8s linear infinite paused; }
.tape-line { position: absolute; left: 20px; right: 20px; bottom: 7px; height: 3px; background: #6b4a2a; border-radius: 2px; }
.walkman.playing .reel { animation-play-state: running; }
.walkman.ff .reel { animation-duration: .25s; animation-play-state: running; }
.walkman.rw .reel { animation-duration: .25s; animation-direction: reverse; animation-play-state: running; }
.walkman.scratch .reel { animation: scratch .45s var(--out); }
@keyframes spin { to { rotate: 360deg; } }
@keyframes scratch { 25% { rotate: -140deg; } 50% { rotate: 90deg; } 75% { rotate: -60deg; } }
.wk-meta { flex: 1; min-width: 0; }
.wk-side { margin: 0; font-size: 10px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wk-title { margin: 0 0 4px; font-weight: 800; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wk-bar { height: 6px; background: var(--white); border: 1.5px solid var(--line); border-radius: 4px; overflow: hidden; }
.wk-bar i { display: block; height: 100%; background: var(--navy); transform-origin: left; transform: scaleX(0); }
.wk-time { margin: 0; font-size: 11px; font-weight: 700; display: none; }
.wk-btn { flex: none; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; border: 2px solid var(--line); background: var(--white); transition: translate .08s, box-shadow .08s; }
.wk-btn svg { width: 14px; height: 14px; }
.wk-btn:active { translate: 2px 2px; }
.wk-play { width: 44px; height: 44px; background: var(--navy); color: var(--cream); box-shadow: 3px 3px 0 var(--shade); }
.wk-play:active { box-shadow: 0 0 0 var(--shade); }
.wk-toggle svg { width: 18px; height: 18px; }
.wk-toggle[aria-pressed="false"] { opacity: .5; background: linear-gradient(135deg, transparent 46%, var(--ink) 46% 54%, transparent 54%), var(--white); }
#wk-prev, #wk-next, .hap-only { display: none; }
@media (min-width: 440px) { html.can-haptic .hap-only { display: grid; } }
.linkish { font: inherit; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 439px) { .cassette { width: 58px; height: 36px; padding: 0 5px; } .reel { width: 19px; height: 19px; } .wk-robin { width: 40px; height: 40px; } .walkman { gap: 6px; } }
.wk-robin { flex: none; width: 46px; height: 46px; padding: 4px; box-shadow: 2px 2px 0 var(--shade); rotate: -8deg; }
.wk-robin.beat svg { animation: bob .28s var(--out); }
@keyframes bob { 40% { translate: 0 -3px; rotate: -6deg; } }
.wk-robin.asleep::after { content: "z"; position: absolute; top: -12px; right: -4px; font: 700 18px "Caveat", cursive; animation: zz 2s ease-in-out infinite; }
@keyframes zz { 50% { translate: 3px -5px; opacity: .5; } }
@media (min-width: 560px) { #wk-prev, #wk-next { display: grid; } .wk-time { display: block; } }

/* ---------- project sheet ---------- */
.sheet { width: 100%; max-width: 760px; max-height: 100dvh; margin: auto auto 0; padding: 0; border: 0; background: transparent; overflow: visible; color: var(--ink); }
.sheet::backdrop { background: rgb(21 28 54 / .45); backdrop-filter: blur(3px) saturate(.8); -webkit-backdrop-filter: blur(3px) saturate(.8); }
.sheet[open] .sheet-paper { animation: sheet-in .5s var(--spring); }
.sheet.closing .sheet-paper { animation: sheet-out .32s ease-in forwards; }
.sheet.flip-l .sheet-paper { animation: flip-l .38s var(--spring); }
.sheet.flip-r .sheet-paper { animation: flip-r .38s var(--spring); }
@keyframes sheet-in { from { translate: 0 100%; rotate: 2deg; } }
@keyframes sheet-out { to { translate: 0 105%; rotate: 3deg; } }
@keyframes flip-l { from { translate: -40px 0; rotate: -2deg; opacity: .3; } }
@keyframes flip-r { from { translate: 40px 0; rotate: 2deg; opacity: .3; } }
.sheet-paper {
  max-height: 92dvh; overflow-y: auto; overscroll-behavior: contain;
  background: var(--grain), var(--paper); border: 2.5px solid var(--line); border-bottom: 0; border-radius: 18px 18px 0 0;
  padding: 18px 20px 28px; box-shadow: 0 -6px 0 var(--shade);
}
@media (min-width: 800px) {
  .sheet { margin: auto; }
  .sheet-paper { border-bottom: 2.5px solid var(--line); border-radius: 18px; max-height: 88vh; box-shadow: 8px 8px 0 var(--shade); padding: 24px 32px 32px; }
}
.sheet-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.sheet-close { font-size: 24px; }
.sheet-top .mono { margin: 0; font-size: 11px; font-weight: 700; }
.sheet-cover { position: relative; width: min(78%, 300px); margin: 18px auto 20px; padding: 10px; background: var(--white); border: 2.5px solid var(--line); box-shadow: 6px 6px 0 var(--shade); rotate: -3deg; }
.sheet-cover img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.sheet-cover .tape { top: -12px; width: 86px; height: 26px; transition: scale .3s var(--spring) .15s; }
.sheet:not([open]) .sheet-cover .tape { scale: 0; }
.sheet-kind { margin: 0 0 6px; font-size: 11px; font-weight: 700; }
.sheet .mis { font-size: clamp(44px, 9vw, 72px); margin-bottom: 12px; }
#sheet-body .lede { font-size: 19px; font-weight: 600; line-height: 1.4; margin: 0 0 16px; }
#sheet-body .links { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 16px; }
#sheet-body .links a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border: 2.5px solid var(--line); border-radius: 12px; background: var(--white); box-shadow: var(--shadow); font-weight: 700; text-decoration: none; transition: transform .09s, box-shadow .09s; }
#sheet-body .links a:first-child { background: var(--grain), var(--navy); color: var(--cream); }
#sheet-body .links a:active { transform: translate(4px, 4px); box-shadow: none; }
#sheet-body .chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; padding: 0; }
#sheet-body .chips li { font: 700 11px "Space Mono", monospace; border: 1.5px solid var(--line); background: var(--white); padding: 4px 8px; border-radius: 6px; }
#sheet-body .novel { margin: 0 0 22px; padding: 14px 18px 16px; background: var(--grain), var(--parch); box-shadow: 4px 5px 0 var(--shade); rotate: 1.2deg; font-weight: 600; font-size: 16px; line-height: 1.45; border-left: 6px solid var(--gold); }
#sheet-body .novel b { display: block; font: 700 27px "Caveat", cursive; color: var(--navy); line-height: 1; margin-bottom: 4px; }
#sheet-body h3 { font: 700 30px "Caveat", cursive; color: var(--blue); margin: 16px 0 2px; }
#sheet-body p { font-size: 16px; line-height: 1.6; margin: 0 0 8px; }
.sheet-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 26px; }

/* ---------- intro: needle drop ---------- */
#intro { display: none; }
html.js:not(.no-intro) #intro {
  position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; padding: 24px; text-align: center; background: var(--grain), var(--paper);
  transition: background-color .35s, background-image .35s;
}
html.js:not(.no-intro) body { overflow: hidden; }
#intro.clear { background: transparent; pointer-events: none; }
#intro.clear > :not(.intro-deck), #intro.clear .intro-sleeve, #intro.clear .intro-arm { opacity: 0; transition: opacity .3s; }
.intro-deck { position: relative; width: 320px; height: 300px; margin-bottom: 18px; animation: rise .7s var(--spring) both; }
@keyframes rise { from { translate: 0 40px; opacity: 0; } }
.intro-sleeve {
  position: absolute; left: 0; top: 24px; width: 240px; height: 252px; z-index: 2; text-align: left; rotate: -2deg;
  background: var(--grain), var(--navy); color: var(--cream); border: 2.5px solid var(--line); box-shadow: 6px 6px 0 var(--shade); padding: 14px;
  transition: translate .6s cubic-bezier(.5, 0, .9, .4), rotate .6s ease-in;
}
.intro-sleeve .mono { font-size: 10px; font-weight: 700; margin: 0; }
.sleeve-name { display: flex; flex-direction: column; margin: 8px 0 0; font-weight: 800; font-size: 56px; line-height: .86; letter-spacing: -.02em; text-shadow: .05em .04em 0 var(--gold); }
.sleeve-chip { position: absolute; left: 14px; bottom: 16px; margin: 0; background: var(--gold); color: var(--on-light); border: 2px solid var(--line); padding: 2px 8px; font-weight: 700; font-size: 14px; rotate: 2deg; }
.intro-record { position: absolute; left: 50px; top: 28px; width: 244px; height: 244px; z-index: 1; translate: 26px 0; animation: breathe 1.58s ease-in-out infinite; transition: translate .5s var(--spring); }
@keyframes breathe { 50% { translate: 32px 0; } }
.vinyl { width: 100%; height: 100%; border-radius: 50%; display: grid; place-items: center; box-shadow: 5px 4px 0 var(--gold);
  background: radial-gradient(circle, var(--gold) 0 17%, transparent 17.5%), repeating-radial-gradient(circle, #1D1B20 0 5px, #2b2930 5px 6px), var(--ink); }
.vinyl span { font-weight: 800; font-size: 22px; color: var(--navy); }
.intro-arm { position: absolute; right: -6px; top: 6px; width: 110px; z-index: 3; transform-origin: 87.5% 5.5%; transition: rotate .5s cubic-bezier(.34, 1.56, .64, 1); }
.intro-robin { position: absolute; right: -22px; top: -40px; width: 88px; z-index: 4; rotate: 8deg; animation: slap .5s var(--spring) .35s both, nod .79s ease-in-out 1s infinite alternate; }
@keyframes slap { from { scale: 1.3; rotate: 22deg; opacity: 0; } }
@keyframes nod { to { rotate: 3deg; translate: 0 2px; } }
.intro-name { margin: 0; font-weight: 800; font-size: clamp(34px, 8vw, 46px); letter-spacing: -.02em; line-height: 1; }
.intro-role { margin: 0 0 18px; font-size: 26px; color: var(--blue); }
.intro-play {
  display: inline-flex; align-items: center; gap: 12px; padding: 16px 30px; border-radius: 14px;
  background: var(--grain), var(--navy); color: var(--cream); border: 2.5px solid var(--line); box-shadow: 5px 5px 0 var(--shade);
  font-weight: 800; font-size: 22px; letter-spacing: .01em; animation: bobble 1.58s ease-in-out infinite;
  transition: translate .09s var(--out), box-shadow .09s var(--out);
}
.intro-play svg { width: 16px; height: 16px; }
@keyframes bobble { 50% { translate: 0 -2px; } }
.intro-play.pressed { animation: none; translate: 5px 5px; box-shadow: 0 0 0 var(--shade); }
.intro-quiet { margin-top: 10px; font-size: 24px; opacity: .7; }
.intro-quiet:hover { opacity: 1; }
.intro-hint { margin: 10px 0 0; font-size: 11px; opacity: .55; }
#intro.playing .intro-record { animation: none; translate: 84px 0; }
#intro.playing .vinyl { animation: spin 1.8s linear infinite; }
#intro.playing .intro-arm { rotate: 30deg; }
#intro.playing .intro-robin { animation: none; rotate: -10deg; }
#intro.dropped .intro-sleeve { translate: -30px 110vh; rotate: -14deg; }
#intro.fast * { transition-duration: .2s !important; }

/* drum-light sweep for each print pass */
.drum { position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: 0;
  background: linear-gradient(to bottom, transparent 0, var(--drum-a) 46%, var(--drum-b) 50%, transparent 56%) 0 -60vh / 100% 60vh no-repeat; }
.drum.go { animation: drum .38s linear; }
@keyframes drum { 0% { opacity: 1; background-position: 0 -60vh; } 100% { opacity: 1; background-position: 0 100vh; } }

/* ---------- the print: four riso passes (only above the fold) ---------- */
:is(.mast, .hero, #walkman) :is(.l1, .l2, .l3, .l4), #walkman { transition: opacity .16s linear, translate .45s var(--spring), border-color .2s, box-shadow .35s var(--spring); }
html.printing :is(.mast, .hero) :is(.l1, .l2, .l3, .l4),
html.printing #walkman :is(.l2, .l4),
html.printing #walkman { opacity: 0; translate: var(--jx, 3px) -12px; }
html.printing #walkman { translate: calc(-50% + 3px) -12px; }
html.pass1 #walkman { opacity: 1; translate: -50% 0; }
html.pass1 :is(.mast, .hero) .l1, html.pass2 :is(.mast, .hero, #walkman) .l2,
html.pass3 :is(.mast, .hero) .l3, html.pass4 :is(.mast, .hero, #walkman) .l4 { opacity: 1; translate: 0 0; }
html.printing:not(.pass4) .inked { border-color: transparent; box-shadow: none; }
html.printing:not(.pass4) .poster { rotate: 0deg; }
html.printing:not(.pass4) .poster-name .ghost { transform: translate(.14em, .11em); }
html.printing .hl { --jx: -6px; }
html.printing .tape-line { opacity: 0; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  html.js .reveal:not(.in) { opacity: 1; scale: 1; rotate: var(--r, 0deg); }
  html.js .hand-note { clip-path: none; }
}
.can-hap-only { display: none; } html.can-haptic .can-hap-only { display: inline; }
#sheet-body .credit { font-size: 11px; opacity: .65; margin-top: 18px; }

/* ================= phones: tighter, shorter, swipe instead of stack ================= */
@media (max-width: 639px) {
  body { font-size: 15px; }
  .hide-sm { display: none; }

  /* masthead: brand + résumé, then a swipeable section menu to jump instead of scroll */
  .mast { flex-wrap: wrap; row-gap: 8px; padding: 14px 16px 10px; }
  .mast-nav { display: flex; order: 3; width: 100%; gap: 16px; overflow-x: auto; scrollbar-width: none; font-size: 11px; padding-bottom: 2px; }
  .mast-nav::-webkit-scrollbar { display: none; }
  .mast-nav a { flex: none; padding: 6px 0; }

  /* hero */
  .hero { padding: 18px 16px 4px; gap: 14px; }
  .poster { min-height: 0; padding: 14px 14px 18px; box-shadow: 5px 5px 0 var(--shade); }
  .poster-top { font-size: 10px; }
  .poster-name { font-size: clamp(56px, 16vw, 84px); }
  .poster-chip { margin: 10px 0 8px; font-size: 14px; }
  .poster-sub { font-size: 12.5px; }
  .poster-robin { width: 84px; right: -6px; bottom: -16px; }
  .note-me { margin: 10px 2px -4px 0; font-size: 21px; }
  .tagline { font-size: 20px; }
  .actions { gap: 10px; flex-wrap: nowrap; }
  .actions .btn { min-height: 44px; padding: 8px 13px; font-size: 15px; flex: 1 1 auto; justify-content: center; }
  .receipt { padding: 14px 14px 16px; font-size: 11.5px; box-shadow: 4px 4px 0 var(--shade); }
  .receipt dl { margin: 6px 0 8px; }
  .receipt dl div { padding: 2px 0; }

  /* sections */
  .side { padding: 44px 16px 0; }
  .side-head { margin-bottom: 14px; gap: 2px 12px; }
  .mis { font-size: clamp(40px, 12vw, 56px); }
  .mis.small { font-size: 34px; }
  .hand-note { font-size: 20px; }

  /* Side A: two lines per track */
  .jcard { padding: 4px 10px; box-shadow: 4px 4px 0 var(--shade); }
  .track-btn { grid-template-columns: 28px 48px minmax(0, 1fr) auto; gap: 0 10px; padding: 10px 2px; }
  .num { width: 28px; height: 28px; font-size: 10px; }
  .cover { grid-row: span 2; width: 48px; height: 48px; padding: 2px; }
  .t { grid-column: 3; }
  .t b { font-size: 18px; }
  .t > span:not(.logos) { display: none; }
  .track-btn .proof { grid-column: 4; grid-row: 1; font-size: 9.5px; text-align: right; }
  .track-btn .why { grid-column: 3 / 5; font-size: 18px; }

  /* swipe rows */
  .stickers, .cases, .stats, .bonus {
    grid-auto-flow: column; grid-template-columns: none; overflow-x: auto; scroll-snap-type: x mandatory;
    scrollbar-width: none; margin: 0 -16px; padding: 8px 16px 22px; scroll-padding-left: 16px;
  }
  .stickers::-webkit-scrollbar, .cases::-webkit-scrollbar, .stats::-webkit-scrollbar, .bonus::-webkit-scrollbar { display: none; }
  .stickers li, .cases li, .stats li, .bonus li { scroll-snap-align: start; }
  .stickers { grid-auto-columns: min(46vw, 200px); gap: 16px; }
  .cap b { font-size: 16px; } .cap span { font-size: 12.5px; }
  .cases { grid-auto-columns: 84vw; gap: 14px; }
  .case { padding: 10px 12px 10px 10px; }
  .case img { width: 60px; height: 60px; }
  .case-t b { font-size: 17px; } .case-t span:last-child { font-size: 12.5px; }
  .stats { grid-auto-columns: 148px; gap: 14px; padding-top: 12px; }
  .stat { width: 148px; }
  .stat b { font-size: 34px; }
  .stat .hand { font-size: 17px; }
  .stat .back { font-size: 11.5px; padding: 14%; }
  .bonus { grid-auto-columns: 62vw; gap: 10px; font-size: 11.5px; }
  .bonus li { border: 2px solid var(--line); border-radius: 10px; background: var(--grain), var(--white); box-shadow: 3px 3px 0 var(--shade); }
  .bonus button { padding: 8px 10px; gap: 10px; flex-wrap: nowrap; min-height: 56px; }
  .bonus em { display: none; }

  /* liner notes: smaller type, same lyric effect */
  .lyric { font-size: 21px; margin-bottom: 9px; }
  .lyric.hand.big { font-size: 30px; }

  /* credits */
  .envelope { padding: 74px 16px 18px; box-shadow: 4px 4px 0 var(--shade); }
  .envelope::before { height: 64px; }
  .stamp { width: 54px; height: 64px; font-size: 12px; top: 10px; right: 12px; }
  .env-mail { font-size: 28px; }
  .env-links { font-size: 15px; }
  .colophon { margin-top: 22px; padding-bottom: 104px; font-size: 11px; }

  /* project sheet */
  .sheet-paper { padding: 14px 16px 24px; }
  .sheet-cover { width: min(62%, 240px); margin: 12px auto 14px; }
  .sheet .mis { font-size: 40px; }
  #sheet-body .lede { font-size: 17px; }
  #sheet-body h3 { font-size: 26px; }
  #sheet-body p { font-size: 15px; }
}
@media (max-width: 359px) {
  .actions .btn { padding: 8px 10px; font-size: 14px; }
  .poster-name { font-size: 52px; }
}

/* ---------- rough bubbles instead of long sprawling cards ---------- */
#sheet-body .bubble {
  background: var(--grain), var(--white); border: 2px solid var(--line); border-radius: 12px;
  box-shadow: 4px 4px 0 var(--shade); padding: 12px 16px 14px; margin: 0 0 16px; rotate: -.6deg;
}
#sheet-body .bubble:nth-of-type(even) { rotate: .7deg; }
#sheet-body .bubble h3 { margin-top: 0; }
#sheet-body .bubble p:last-child { margin-bottom: 0; }

@media (max-width: 639px) {
  /* Side A: one bubble per track instead of one tall card */
  .jcard { background: none; border: 0; box-shadow: none; outline: none; padding: 0; rotate: 0deg; }
  .jcard .tape-r { display: none; }
  .jcard .tape-l { top: -10px; left: 14px; width: 84px; height: 24px; }
  .track {
    background: var(--grain), var(--white); border: 2.5px solid var(--line); border-radius: 12px;
    box-shadow: 4px 4px 0 var(--shade); filter: url(#rough); margin-bottom: 14px; rotate: -.7deg;
  }
  .track:nth-child(even) { rotate: .8deg; }
  .track + .track { border-top: 2.5px solid var(--line); }
  .track-btn { padding: 10px 10px 10px 8px; }
}

/* ---------- social circles ---------- */
.find-me { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.find-me .hand { font-size: 22px; color: var(--blue); rotate: -3deg; }
.socials { list-style: none; display: flex; gap: 12px; margin: 0; padding: 0; }
.soc {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; color: var(--ink);
  background: var(--grain), var(--white); border: 2.5px solid var(--line); box-shadow: 3px 3px 0 var(--shade);
  rotate: var(--r, 0deg); transition: translate .09s var(--out), box-shadow .09s var(--out), rotate .3s var(--spring), background-color .2s, color .2s;
}
.soc svg { width: 20px; height: 20px; }
@media (hover: hover) { .soc:hover { rotate: 0deg; translate: -1px -1px; box-shadow: 4px 4px 0 var(--shade); background: var(--grain), var(--navy); color: var(--cream); } }
.soc:active { translate: 3px 3px; box-shadow: 0 0 0 var(--shade); }
.env-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 4px; }
.env-cv { min-height: 44px; }
@media (min-width: 980px) { .find-me { grid-column: 1; } }

/* ---------- expertise pins ("genres I play") ---------- */
.genres-note { margin: 4px 0 0 8px; font-size: 24px; color: var(--blue); rotate: -3deg; }
.pins { list-style: none; margin: 0; padding: 6px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 4px; }
.pin {
  flex: none; width: var(--s); height: var(--s); border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 10px; background: var(--grain), var(--bg); color: var(--fg);
  border: 2.5px solid var(--line); box-shadow: 4px 4px 0 var(--shade); rotate: var(--r); transition: rotate .35s var(--spring), scale .25s var(--spring);
}
.pin b { font-weight: 800; font-size: 15px; line-height: 1.05; letter-spacing: -.01em; }
.pin span { font: 700 8.5px/1.25 "Space Mono", monospace; margin-top: 5px; opacity: .85; }
.pins li:nth-child(2) { margin-top: 26px; }
.pins li:nth-child(4) { margin-top: -18px; }
@media (hover: hover) { .pin:hover { rotate: 0deg; scale: 1.06; } }
@media (min-width: 980px) {
  .genres { max-width: 460px; }
  .pins li:nth-child(2) { margin-top: 20px; }
}
@media (max-width: 979px) {
  .pins { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 10px 16px 14px; gap: 12px; }
  .pins::-webkit-scrollbar { display: none; }
  .pins li:nth-child(n) { margin-top: 0; }
  .pin { width: 96px; height: 96px; padding: 8px; }
  .pin b { font-size: 12.5px; }
  .pin span { font-size: 7.5px; }
  .genres-note { font-size: 20px; }
}
.hero-side { display: flex; flex-direction: column; gap: 14px; min-width: 0; }

/* ================= dark: warm night paper, soft cream ink, nothing pure white or pure black ================= */
html[data-theme="dark"] {
  --paper: #191816; --ink: #DCD4C3; --white: #24221F; --parch: #2C2822; --cream: #EAE3D4;
  --navy: #1C2547; --gold: #C79D48; --blue: #A7B5EE; --orange: #E57A40;
  --shade: #0B0A09; --sticker: #E1D7C2; --line: rgb(220 212 195 / .36);
  --pencil: rgb(220 212 195 / .22); --rule: rgb(220 212 195 / .25); --hover: rgb(199 157 72 / .12);
  --drum-a: rgb(199 157 72 / .16); --drum-b: rgb(199 157 72 / .28);
  color-scheme: dark;
}
html[data-theme="dark"] body { background: var(--grain), var(--paper); }
html[data-theme="dark"] img { filter: brightness(.9) saturate(.95); }
html[data-theme="dark"] .sticker-round { background: var(--sticker); }
html[data-theme="dark"] .cassette { background: #0F0E0D; }
html[data-theme="dark"] .reel { background: radial-gradient(circle, #0F0E0D 0 22%, transparent 23%), conic-gradient(#E1D7C2 0 20%, #B9AE97 0 25%, #E1D7C2 0 45%, #B9AE97 0 50%, #E1D7C2 0 70%, #B9AE97 0 75%, #E1D7C2 0 95%, #B9AE97 0); }
html[data-theme="dark"] .vinyl { box-shadow: 5px 4px 0 var(--gold), 0 0 0 1.5px rgb(220 212 195 / .18); }
html[data-theme="dark"] .tagline .hl { background: linear-gradient(transparent 52%, rgb(199 157 72 / .38) 52% 94%, transparent 94%); }
html[data-theme="dark"] .mis { text-shadow: .05em .04em 0 rgb(199 157 72 / .75); }
html[data-theme="dark"] .sheet::backdrop { background: rgb(8 8 10 / .6); }
html[data-theme="dark"] .wk-play, html[data-theme="dark"] .btn-navy { color: var(--cream); }
html.theme-anim, html.theme-anim body, html.theme-anim * { transition: background-color .35s ease, color .35s ease, border-color .35s ease, box-shadow .35s ease !important; }

/* theme switch: a small round sticker in the masthead */
.mast-right { display: flex; align-items: center; gap: 14px; }
.theme-btn { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--line); background: var(--grain), var(--white); box-shadow: 2px 2px 0 var(--shade); rotate: -6deg; transition: rotate .35s var(--spring), translate .08s; }
.theme-btn:active { translate: 2px 2px; box-shadow: none; }
.theme-btn svg { width: 16px; height: 16px; }
.theme-btn .sun { display: none; }
html[data-theme="dark"] .theme-btn .sun { display: block; }
html[data-theme="dark"] .theme-btn .moon { display: none; }
html[data-theme="dark"] .theme-btn { rotate: 12deg; }

/* phones: lowercase poster + tags (desktop keeps the caps) */
@media (max-width: 639px) {
  .poster-top, .poster-name, .intro-sleeve .mono, .sleeve-name,
  .proof, .case-t .mono, .wk-side, .sheet-kind, .sheet-top .mono, #sheet-body .chips li { text-transform: lowercase; }
  .poster-name { letter-spacing: -.035em; }
}

/* ---------- polaroid (hero): tap to flip ---------- */
.poster { container-type: inline-size; }
.poster-name { font-size: clamp(48px, 18cqi, 150px); }
.polaroid { position: absolute; z-index: 3; top: -26px; right: 22px; width: 170px; rotate: 5deg; perspective: 900px; transition: rotate .35s var(--spring); }
.pol-face { display: block; position: relative; padding: 8px 8px 30px; background: var(--grain), var(--sticker); border: 1.5px solid var(--line); box-shadow: 4px 5px 0 var(--shade); backface-visibility: hidden; transition: transform .6s var(--spring); }
.pol-face img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.pol-back { position: absolute; inset: 0; transform: rotateY(180deg); }
.polaroid.flipped .pol-front { transform: rotateY(-180deg); }
.polaroid.flipped .pol-back { transform: rotateY(0); }
.pol-cap { position: absolute; left: 0; right: 0; bottom: 3px; text-align: center; font-size: 20px; color: var(--on-light); line-height: 1.1; }
.pol-date { position: absolute; right: 16px; bottom: 38px; font-size: 10px; font-weight: 700; color: #FF8C3A; text-shadow: 0 0 4px rgb(255 120 40 / .7); letter-spacing: .08em; }
.pol-tape { top: -12px; left: 50%; width: 76px; height: 24px; translate: -50% 0; rotate: -5deg; }
@media (hover: hover) { .polaroid:hover { rotate: 1deg; } }
@media (max-width: 639px) {
  .polaroid { width: 100px; top: -18px; right: -8px; }
  .pol-face { padding: 5px 5px 20px; box-shadow: 3px 3px 0 var(--shade); }
  .pol-cap { font-size: 13px; bottom: 2px; }
  .pol-date { font-size: 7px; right: 9px; bottom: 25px; }
  .pol-tape { width: 50px; height: 16px; top: -8px; }
}

/* Side B: three wide cards that fill the row on laptops; GovTech tag */
@media (min-width: 900px) { .stickers { grid-template-columns: repeat(3, 1fr); gap: 36px; } .cap b { font-size: 22px; } .cap span { font-size: 15px; } }
.cap-tag { align-self: flex-start; font-style: normal; font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; background: var(--navy); color: var(--cream); padding: 2px 7px; margin-bottom: 5px; rotate: -2deg; }

/* bookmark ribbons sticking out from the left edge of Side B cards */
.sticker-card { position: relative; }
.bookmark {
  position: absolute; z-index: 2; top: 20px; left: -12px; height: 30px; padding: 0 22px 0 14px;
  display: flex; align-items: center; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  background: var(--grain), var(--navy); color: var(--cream); border: 2px solid var(--line); border-right: 0;
  clip-path: polygon(0 0, 100% 0, calc(100% - 11px) 50%, 100% 100%, 0 100%);
  transition: translate .3s var(--spring);
}
.bookmark.bm-gold { background: var(--grain), var(--gold); color: var(--on-light); }
@media (hover: hover) { .sticker-card:hover .bookmark { translate: 6px 0; } }
@media (max-width: 639px) { .bookmark { top: 14px; left: -9px; height: 24px; font-size: 9px; padding: 0 16px 0 10px; } }

/* ---------- tech logos ---------- */
.logos { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
.lg { width: 24px; height: 24px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--sticker); border: 1.5px solid var(--line); }
.lg svg { width: 13px; height: 13px; }
.lg.txt { width: auto; padding: 0 7px; border-radius: 999px; font: 700 9px "Space Mono", monospace; color: var(--on-light); }
.tech {
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px 6px 8px; border-radius: 999px; white-space: nowrap;
  background: var(--grain), var(--sticker); color: var(--on-light); border: 1.5px solid var(--line); box-shadow: 3px 3px 0 var(--shade);
  font-weight: 700; font-size: 13px; rotate: var(--r, 0deg);
}
.tech svg { width: 17px; height: 17px; flex: none; }
.tech.txt { padding-left: 12px; }
.belt { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 7px; margin: 6px 0 0; padding: 0; }
.belt-chip { font-size: 12px; padding: 4px 10px 4px 6px; box-shadow: 2px 2px 0 var(--shade); }
.belt-chip svg { width: 15px; height: 15px; }
.toolbelt { min-width: 0; }
@media (min-width: 980px) { .toolbelt { grid-column: 1 / -1; margin-top: 8px; } .toolbelt .belt { gap: 10px 9px; } }

/* project page: stack pills float in the space beside the cover */
.sheet-stage { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; margin: 18px 0 22px; }
.sheet-stage .sheet-cover { width: 290px; margin: 0; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.stack-l { align-items: flex-end; }
.stack-r { align-items: flex-start; }
.stack .tech { animation: floaty 4.2s ease-in-out infinite; animation-delay: calc(var(--d) * -.75s); }
.stack-l .tech:nth-child(even) { margin-right: 22px; }
.stack-r .tech:nth-child(odd) { margin-left: 22px; }
@keyframes floaty { 50% { translate: 0 -6px; } }
@media (max-width: 699px) {
  .sheet-stage { grid-template-columns: 1fr; gap: 12px; }
  .sheet-stage .sheet-cover { order: -1; width: min(62%, 240px); margin: 0 auto; }
  .stack { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 8px; }
  .stack .tech { animation: none; margin: 0 !important; font-size: 12px; padding: 4px 10px 4px 6px; }
  .stack .tech svg { width: 15px; height: 15px; }
}
@media (max-width: 639px) {
  .track-btn .logos { grid-column: 3 / 5; }
  .lg { width: 21px; height: 21px; } .lg svg { width: 11px; height: 11px; }
  .belt-chip { font-size: 11px; }
}

@media (min-width: 900px) { .cap .logos, .case-t .logos { gap: 6px; } .cap .lg, .case-t .lg { width: 28px; height: 28px; } .cap .lg svg, .case-t .lg svg { width: 15px; height: 15px; } }
.toolbelt .genres-note { position: relative; z-index: 1; display: inline-block; margin: 0 0 10px 6px; }
.toolbelt .belt { margin-top: 0; }

/* ---------- project sheet: make prev / next obvious ---------- */
.sheet-pager { display: flex; align-items: center; gap: 8px; }
.pager-btn { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--line); background: var(--grain), var(--white); box-shadow: 2px 2px 0 var(--shade); }
.pager-btn svg { width: 12px; height: 12px; }
.pager-btn:active { translate: 2px 2px; box-shadow: none; }
.swipe-hint { margin: -8px 0 14px; text-align: center; font-size: 22px; color: var(--blue); }
.sheet.nudge .sheet-paper { animation: nudge .9s var(--out); }
@keyframes nudge { 25% { translate: -16px 0; } 55% { translate: 10px 0; } 80% { translate: -4px 0; } }

.peek { display: none; }
@media (min-width: 1100px) {
  .peek {
    position: fixed; top: 50%; z-index: 2; translate: 0 -50%; display: flex; align-items: center; gap: 10px;
    padding: 8px 14px 8px 8px; border-radius: 999px; background: var(--grain), var(--white); color: var(--ink);
    border: 2px solid var(--line); box-shadow: 4px 4px 0 var(--shade); font-weight: 800; font-size: 15px;
    transition: translate .25s var(--spring), rotate .25s var(--spring);
  }
  .peek img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 1.5px solid var(--line); }
  .peek-arrow { font: 700 22px "Caveat", cursive; color: var(--blue); }
  .peek-l { left: calc(50% - 380px - 250px); rotate: -3deg; }
  .peek-r { right: calc(50% - 380px - 250px); rotate: 3deg; padding: 8px 8px 8px 14px; }
  .peek-l:hover { translate: -6px -50%; rotate: 0deg; }
  .peek-r:hover { translate: 6px -50%; rotate: 0deg; }
  .peek:active { box-shadow: 0 0 0 var(--shade); }
}
@media (min-width: 1100px) and (max-width: 1299px) { .peek-l { left: 16px; } .peek-r { right: 16px; } .peek-name { display: none; } }

/* pager: slides in on open, arrows keep flowing in their direction */
.sheet[open] .sheet-pager > * { animation: pager-in .55s var(--spring) both; }
.sheet[open] .sheet-pager > :nth-child(1) { animation-delay: .18s; }
.sheet[open] .sheet-pager > :nth-child(2) { animation-delay: .26s; }
.sheet[open] .sheet-pager > :nth-child(3) { animation-delay: .34s; }
@keyframes pager-in { from { translate: 28px 0; opacity: 0; } }
#pager-next svg { animation: flow-r 2.4s ease-in-out 1s infinite; }
#pager-prev svg { animation: flow-l 2.4s ease-in-out 1.2s infinite; }
@keyframes flow-r { 0%, 55%, 100% { translate: 0 0; } 25% { translate: 4px 0; } 40% { translate: 1px 0; } }
@keyframes flow-l { 0%, 55%, 100% { translate: 0 0; } 25% { translate: -4px 0; } 40% { translate: -1px 0; } }
.pager-btn:hover svg { animation-duration: .9s; }
.sheet.flip-r #sheet-pos { animation: pos-r .4s var(--spring); }
.sheet.flip-l #sheet-pos { animation: pos-l .4s var(--spring); }
@keyframes pos-r { from { translate: 14px 0; opacity: 0; } }
@keyframes pos-l { from { translate: -14px 0; opacity: 0; } }
html[data-theme="dark"] #sheet-body .novel b { color: var(--gold); }
