/* =========================================================
   Alpika — intro site
   minimal · playful · a bit organic
   ========================================================= */

:root {
  --paper:   #faf7f1;
  --ink:     #2b2a26;
  --muted:   #6f6b62;
  --faint:   #9a958b;
  --accent:  #c9462f;   /* warm red, echoes the Polish posters */
  --tape:    rgba(226, 214, 184, 0.62);
  --card:    #fffdf8;
  --line:    rgba(43, 42, 38, 0.12);

  --maxw: 940px;
  --readw: 620px;

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background-color: var(--paper);
  /* dot grid — 6% black */
  background-image: radial-gradient(rgba(0, 0, 0, 0.06) 1.4px, transparent 1.5px);
  background-size: 22px 22px;
  background-position: -11px -11px;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  font-size: 18px;
  overflow-x: hidden;
}

.svg-defs { position: absolute; }

p { margin: 0 0 1.1em; }
strong { font-weight: 600; }
em { font-style: italic; }

/* ---------- shared section rhythm ---------- */
section { padding: 11vh 24px; max-width: var(--maxw); margin: 0 auto; }

.section-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.9rem, 4.6vw, 3rem);
  letter-spacing: -0.015em;
  line-height: 1.05;
  margin: 0 0 2.4rem;
}
.section-title--sm { font-size: clamp(1.4rem, 3vw, 1.9rem); margin-bottom: 1.4rem; }

/* =========================================================
   1 · HERO
   ========================================================= */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8vh 24px 6vh;
  position: relative;
}
.hero__inner { max-width: 720px; }
.hero__owls { margin-bottom: 1.4rem; }
.hero__owls svg { width: min(320px, 70vw); height: auto; }

.hero__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.7rem, 9vw, 5.4rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin: 0 0 1.3rem;
}
.hero__title span {
  font-style: italic;
  font-weight: 600;
  color: var(--accent);
}
.hero__body {
  font-size: clamp(1.05rem, 2.4vw, 1.3rem);
  color: var(--muted);
  max-width: 540px;
  margin: 0 auto;
}
.hero__scroll {
  position: absolute;
  bottom: 3vh;
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--faint);
  animation: bob 2.4s ease-in-out infinite;
}
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

/* =========================================================
   TAPED PAPER COMPONENT  (logos, posters, films, books)
   .pin  = positioned wrapper
   .paper = white torn backing (carries the torn filter + shadow)
   .img-slot / .logo-slot = labeled placeholder
   .tape = washi tape strip
   ========================================================= */
.pin {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: none;          /* no tilt on any asset */
  transition: transform 0.35s cubic-bezier(.2,.8,.2,1);
  margin: 0;
  padding: 14px;            /* white border peeks around the content */
}
.pin:hover { transform: rotate(0deg) translateY(-3px) scale(1.015); z-index: 3; }

.pin .paper {
  position: absolute;
  inset: 0;
  background: var(--card);
  z-index: 0;
}
.pin .paper[data-torn="1"] { filter: url(#torn); }
.pin .paper[data-torn="2"] { filter: url(#torn2); }
.pin .paper[data-torn="3"] { filter: url(#torn3); }

/* placeholder slot */
.img-slot, .logo-slot {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--faint);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  border: 1.5px dashed rgba(43,42,38,0.22);
  background: rgba(43,42,38,0.015);
  padding: 8px;
  border-radius: 2px;
}
.img-slot::before, .logo-slot::before {
  content: attr(data-label);
}
.img-slot[hidden], .logo-slot[hidden] { display: none; }

/* real images sit on top of the torn paper */
.art-img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* tape strips */
.tape {
  position: absolute;
  z-index: 2;
  background: var(--tape);
  mix-blend-mode: multiply;
  box-shadow: inset 0 0 0 0.5px rgba(255,255,255,0.4),
              0 1px 2px rgba(0,0,0,0.06);
}
.tape::after { /* faint paper-fibre lines */
  content: "";
  position: absolute; inset: 0;
  background: repeating-linear-gradient(90deg,
    rgba(255,255,255,0.18) 0 2px, rgba(0,0,0,0.03) 2px 4px);
  opacity: 0.5;
}
.tape--top {
  top: -13px; left: 50%;
  width: 92px; height: 26px;
  transform: translateX(-50%) rotate(-3deg);
  clip-path: polygon(4% 12%,96% 0,100% 86%,0 100%); /* torn-ish ends */
}
.tape--corner {
  top: -11px; left: -10px;
  width: 64px; height: 22px;
  transform: rotate(-42deg);
  clip-path: polygon(6% 10%,95% 2%,98% 88%,2% 96%);
}

/* =========================================================
   2 · WORK
   ========================================================= */
.work { }
.chapter {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(28px, 5vw, 60px);
  align-items: start;
  margin-bottom: clamp(48px, 8vw, 86px);
}
.chapter--rev { grid-template-columns: 1fr auto; }
.chapter--rev .pin { order: 2; }
.chapter__text { max-width: var(--readw); }
.chapter__text p { font-size: 1.06rem; color: #46443e; }
.chapter--lead .chapter__text p:first-child { font-size: 1.14rem; color: var(--ink); }

/* logo placeholder + real-logo sizes — shrink down the page */
.logo-img { position: relative; z-index: 1; object-fit: contain; padding: 6px; }
.pin--lg .logo-slot, .pin--lg .logo-img { width: 188px; height: 132px; }
.pin--lg .logo-slot { font-size: 0.95rem; }
.pin--md .logo-slot, .pin--md .logo-img { width: 150px; height: 104px; }
.pin--sm .logo-slot, .pin--sm .logo-img { width: 100px; height: 70px; }
.pin--sm .logo-slot { font-size: 0.68rem; }

.chapter--row { grid-template-columns: 1fr; gap: 30px; }
.logo-row {
  display: flex;
  flex-wrap: wrap;
  gap: 26px 30px;
  align-items: center;
}
.education {
  font-size: 0.95rem;
  color: var(--muted);
  margin-top: 8px;
  padding-left: 2px;
}

/* =========================================================
   3 · ART
   ========================================================= */
.lead-line {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2.6vw, 1.5rem);
  font-weight: 400;
  color: var(--ink);
  max-width: 560px;
  margin: 0 0 2rem;
}
.lead-line--mt { margin-top: clamp(56px, 9vw, 96px); }

.poster-wall {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(20px, 4vw, 44px);
  justify-content: center;
}
.pin--poster { width: clamp(160px, 26vw, 220px); }
.pin--poster .img-slot { width: 100%; aspect-ratio: 2 / 3; }

.feature-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 1fr;
  gap: clamp(30px, 6vw, 64px);
  align-items: center;
}
.pin--feature { width: 100%; }
.pin--feature .art-img,
.pin--feature .img-slot { width: 100%; aspect-ratio: 3 / 4; border-radius: 2px; }
.feature-cap {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  line-height: 1.3;
  font-weight: 400;
}

.thumb-row {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(20px, 4vw, 40px);
  justify-content: flex-start;
}
.pin--thumb { width: clamp(150px, 24vw, 200px); }
.pin--thumb .art-img,
.pin--thumb .img-slot { width: 100%; aspect-ratio: 1 / 1; }

/* =========================================================
   4 · FILMS
   ========================================================= */
.film-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: clamp(22px, 4vw, 42px);
  justify-items: center;
}
.pin--film { width: 100%; max-width: 210px; flex-direction: column; }
.pin--film .art-img,
.pin--film .img-slot { width: 100%; aspect-ratio: 2 / 3; }
.pin--film figcaption {
  position: relative; z-index: 1;
  margin-top: 12px;
  font-family: var(--serif);
  font-size: 0.92rem;
  text-align: center;
  color: var(--ink);
}

/* =========================================================
   5 · MUSIC — LP player
   ========================================================= */
.music { text-align: center; position: relative; }
.music .section-title { text-align: left; }
.lp-rack {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(30px, 6vw, 70px);
  margin-top: 1rem;
}
.lp { display: flex; flex-direction: column; align-items: center; gap: 16px; }

.lp__disc {
  --size: clamp(150px, 22vw, 196px);
  position: relative;
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  border: none;
  padding: 0;
  cursor: pointer;
  transform: rotate(var(--rot, 0deg));
  background:
    radial-gradient(circle at 50% 50%, #2a2a2c 0 14%, transparent 14.4%),
    repeating-radial-gradient(circle at 50% 50%,
       #16161a 0 2px, #202024 2px 3px) ,
    radial-gradient(circle at 38% 32%, rgba(255,255,255,0.16), transparent 42%),
    #111114;
  box-shadow: 0 10px 26px rgba(0,0,0,0.32), inset 0 0 0 1px rgba(255,255,255,0.04);
  display: grid;
  place-items: center;
  /* rotation, paused until playing — physical resume on pause */
  animation: spin 3.6s linear infinite;
  animation-play-state: paused;
}
.lp.playing .lp__disc { animation-play-state: running; }
@keyframes spin { to { transform: rotate(calc(var(--rot, 0deg) + 360deg)); } }

.lp__grooves {
  position: absolute; inset: 8%;
  border-radius: 50%;
  background: repeating-radial-gradient(circle at 50% 50%,
     rgba(255,255,255,0.05) 0 1px, transparent 1px 4px);
  pointer-events: none;
}
.lp__center {
  position: relative;
  width: 41%; height: 41%;
  border-radius: 50%;
  background: var(--label, #c9462f);
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.25), inset 0 0 8px rgba(0,0,0,0.18);
}
.lp__title {
  font-family: var(--serif);
  font-size: 0.62rem;
  color: #fff;
  letter-spacing: 0.02em;
  text-align: center;
  padding: 0 6px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.35);
}
.lp__hole {
  position: absolute; width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--paper);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.3);
}
/* play / pause button — counter-rotates so it stays upright & clickable feel */
.lp__btn {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 54px; height: 54px;
  border-radius: 50%;
  background: rgba(250,247,241,0.92);
  display: grid;
  place-items: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  opacity: 0;
  transition: opacity 0.22s ease;
  z-index: 2;
}
.lp__disc:hover .lp__btn,
.lp.playing .lp__btn { opacity: 1; }
.lp.playing .lp__btn { background: rgba(250,247,241,0.8); }

.ico-play, .ico-pause { display: block; }
.ico-play {
  width: 0; height: 0;
  border-left: 16px solid var(--ink);
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  margin-left: 4px;
}
.ico-pause { display: none; width: 16px; height: 18px; position: relative; }
.ico-pause::before, .ico-pause::after {
  content: ""; position: absolute; top: 0; width: 5px; height: 18px;
  background: var(--ink); border-radius: 1px;
}
.ico-pause::before { left: 1px; }
.ico-pause::after  { right: 1px; }
.lp.playing .ico-play  { display: none; }
.lp.playing .ico-pause { display: block; }

.lp__name {
  font-family: var(--serif);
  font-size: 1.05rem;
  margin: 0;
}
/* Spotify control iframe is kept in the DOM (the records need it to drive
   playback) but hidden from view and removed from the layout flow. */
.spotify-bar {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 540px;
  height: 152px;
  opacity: 0;
  pointer-events: none;
  z-index: -1;
}
.spotify-bar iframe {
  border-radius: 12px;
  display: block;
}
.music-note {
  margin-top: 1.2rem;
  font-size: 0.82rem;
  color: var(--faint);
  text-align: center;
}
.music-note code {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 0.78rem;
  background: rgba(43,42,38,0.06);
  padding: 1px 5px; border-radius: 3px;
}

/* =========================================================
   6 · LATELY
   ========================================================= */
.lately { padding-bottom: 14vh; }
.lately__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(24px, 5vw, 56px);
  margin-bottom: clamp(40px, 7vw, 72px);
}
.lately__col h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.15rem;
  margin: 0 0 0.5rem;
}
.lately__col p { color: #46443e; margin: 0; }

.book-row {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(18px, 3.5vw, 36px);
  justify-content: center;
}
.pin--book { width: clamp(120px, 20vw, 156px); }
.pin--book .img-slot { width: 100%; aspect-ratio: 2 / 3; }

.sign-off {
  text-align: center;
  margin-top: clamp(50px, 9vw, 90px);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--muted);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 720px) {
  body { font-size: 17px; }
  .chapter,
  .chapter--rev { grid-template-columns: 1fr; gap: 22px; }
  .chapter--rev .pin { order: 0; }
  .pin { justify-self: start; }
  .feature-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__scroll { animation: none; }
  .lp__disc { animation: none !important; }
}

/* =========================================================
   SECTION DOODLES (woodpecker, calla lily) + heading
   ========================================================= */
.section-head {
  display: flex;
  flex-direction: column;
  align-items: center;       /* centered heading + doodle, per Figma */
  text-align: center;
  gap: 4px;
  margin-bottom: 2.4rem;
}
.section-head .section-title { margin: 0; }
.doodle { display: block; height: auto; }

/* =========================================================
   EDUCATION with school logos
   ========================================================= */
.education-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.education-row .education { margin: 0; }
.logo-row--edu { gap: 16px; }
.pin--xs { padding: 9px; }
.pin--xs .logo-slot, .pin--xs .logo-img { width: 64px; height: 48px; }
.pin--xs .logo-slot { font-size: 0.6rem; }
.pin--xs .logo-img { object-fit: contain; padding: 5px; }

/* =========================================================
   BOOKS — doodle bookshelf
   ========================================================= */
.lead-line--narrow { max-width: 660px; }
.bookshelf {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: clamp(20px, 4vw, 42px);
  padding: 16px clamp(34px, 6vw, 70px) 0;
  margin-top: 1.6rem;
}
.bookshelf .pin--book {
  position: relative;
  z-index: 1;
  width: clamp(118px, 17vw, 156px);
  margin-bottom: 31px;          /* rest the books on the plank */
  padding: 0;
}
/* clean book covers — no torn paper edge, just the cover standing on the shelf */
.bookshelf .pin--book .paper { display: none; }
.bookshelf .pin--book .art-img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;                 /* natural cover proportions, varied heights */
  border-radius: 1px;
  box-shadow: 2px 7px 11px rgba(42, 36, 30, 0.26);
}
.bookshelf .pin--book .img-slot { width: 100%; aspect-ratio: 2 / 3; }
.shelf-board {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  width: 100%;
  height: 46px;
  z-index: 0;
  overflow: visible;
}

/* =========================================================
   WATCHING
   ========================================================= */
.watching .film-grid { justify-content: center; }
.film-grid--watch {
  grid-template-columns: repeat(3, minmax(150px, 200px));
  justify-content: center;
}

/* =========================================================
   CLOSING
   ========================================================= */
.closing { text-align: center; padding-bottom: 15vh; }
.closing-line {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.15rem, 2.6vw, 1.6rem);
  line-height: 1.5;
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto 1.8rem;
}
.closing .sign-off { margin-top: 0; }

@media (max-width: 720px) {
  .education-row { gap: 16px; }
  .bookshelf { gap: 14px; padding: 14px 20px 0; }
  .bookshelf .pin--book { margin-bottom: 26px; }
  .film-grid--watch { grid-template-columns: repeat(3, 1fr); }
}

/* =========================================================
   BATCH EDITS — body type, logo boards, frames, film tape, etc.
   ========================================================= */

/* body copy — consistent colour + size */
.hero__body,
.chapter__text p,
.chapter--lead .chapter__text p:first-child,
.education {
  color: #46443e;
  font-size: 18px;
  line-height: 24px;
}
.hero__body { max-width: 560px; }

/* softer, subtler shadows already reduced in the SVG torn filter */

/* hide the scroll hint once scrolled */
.hero__scroll { transition: opacity 0.4s ease, visibility 0s linear 0.4s; }
.hero__scroll.is-hidden {
  opacity: 0;
  visibility: hidden;
  animation: none;
  pointer-events: none;
  transition: opacity 0.4s ease, visibility 0s linear 0.4s;
}

/* ---- Work: all chapters logo-left / body-right ---- */
.chapter--rev { grid-template-columns: auto 1fr; }   /* neutralise old reverse */
.chapter--rev .pin { order: 0; }

/* four / two logos on a single taped paper */
.pin--board { padding: 16px; }
.pin--board-sm { padding: 13px; }
.logo-board {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 20px;
  place-items: center;
}
.logo-board .logo-img { width: 84px; height: 46px; object-fit: contain; padding: 0; }
.logo-board--2 .logo-img { width: 76px; height: 50px; }

/* education: logo paper left, text right — aligned to the chapters above */
.education-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(28px, 5vw, 60px);
  align-items: center;
}
.education-row .education {
  font-size: 18px;
  line-height: 24px;
  color: #46443e;
  padding-left: 0;
}

/* ---- Art: centered Inter subheadings ---- */
.art .lead-line {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 18px;
  line-height: 26px;
  text-align: center;
  color: #46443e;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

/* poster row + painting row — 4 aligned columns */
.poster-wall--row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 2.6vw, 30px);
  justify-items: center;
  align-items: start;
}
.poster-wall--row .pin--poster { width: 100%; }
.poster-wall--row .pin--poster .img-slot,
.poster-wall--row .pin--poster .art-img { width: 100%; aspect-ratio: 2 / 3; }
.paint-row { margin-top: 6px; }

/* ---- gallery frame (paintings) ---- */
.framed {
  padding: 12px;                       /* mat */
  background: #faf5ea;                  /* mat colour */
  border: 8px solid #6e5638;            /* wood frame */
  border-radius: 1px;
  box-shadow: 0 7px 16px rgba(40,32,22,0.24), inset 0 0 0 2px #b9986a;
  overflow: hidden;
}
.framed .paper { display: none; }
.framed .art-img {
  position: relative; z-index: 1;
  width: 100%; height: 100%;
  aspect-ratio: auto;
  object-fit: contain;
}
.pin--paint { width: 100%; aspect-ratio: 3 / 4; }
.pin--feature.framed { width: 100%; aspect-ratio: 1 / 1; }
.pin--feature.framed .art-img { object-fit: cover; }   /* Flaming June fills its frame */

/* ---- Films: 3x2 grid, single top tape ---- */
.film-grid--3x2 { grid-template-columns: repeat(3, 1fr); }

/* ---- Art: spacing between painting row and Flaming June ---- */
.feature-grid--mt { margin-top: clamp(44px, 7vw, 76px); }

/* ---- Music: single row, smaller records aligned to content width ---- */
.lp-rack { flex-wrap: nowrap; gap: clamp(20px, 4vw, 48px); }
.lp__disc { --size: clamp(118px, 16vw, 150px); }

/* ---- Watching: DVD-case treatment ---- */
.dvd-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(150px, 208px));
  justify-content: center;
  gap: clamp(24px, 5vw, 56px);
  margin-top: 0.5rem;
}
.dvd { display: flex; flex-direction: column; align-items: center; gap: 14px; margin: 0; }
.dvd__case {
  position: relative;
  width: 100%;
  aspect-ratio: 0.715;          /* DVD keepcase proportions */
  border-radius: 4px;
  overflow: hidden;
  background: #14141a;
  box-shadow: 0 9px 22px rgba(20,16,12,0.34);
}
.dvd__cover { width: 100%; height: 100%; object-fit: cover; display: block; }
.dvd__spine {
  position: absolute; top: 0; left: 0; height: 100%; width: 12px;
  background: linear-gradient(90deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.18) 55%, rgba(255,255,255,0.06) 100%);
  border-right: 1px solid rgba(255,255,255,0.14);
}
.dvd__case::after {            /* plastic sheen */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, rgba(255,255,255,0.22) 0%, rgba(255,255,255,0.05) 13%,
              transparent 30%, transparent 76%, rgba(255,255,255,0.12) 100%);
}
.dvd figcaption {
  font-family: var(--serif);
  font-size: 0.95rem;
  color: var(--ink);
  text-align: center;
}
@media (max-width: 760px) {
  .lp-rack { flex-wrap: wrap; }
  .poster-wall--row { grid-template-columns: repeat(2, 1fr); }
  .film-grid--3x2 { grid-template-columns: repeat(2, 1fr); }
  .logo-board .logo-img { width: 70px; height: 40px; }
}

/* =========================================================
   BATCH EDITS v2 — spacing, widths, slight tilt, CD case
   ========================================================= */

/* heading -> content spacing = 56px (films 48, books 12) */
.section-head { margin-bottom: 56px; }
.section-title { margin-bottom: 56px; }
.films .section-title { margin-bottom: 48px; }
.books .section-title { margin-bottom: 12px; }

/* Art subheadings -> their assets = 48px */
.art .lead-line { margin-bottom: 48px; }
.lead-line--mt { margin-top: clamp(48px, 8vw, 88px); }

/* Books body -> Inter, 18px */
.books .lead-line {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 18px;
  line-height: 24px;
  color: #46443e;
  max-width: 660px;
}

/* Work: three logo papers same width + ever-so-slight tilt */
.tilt { transform: rotate(var(--rot, 0deg)); }
.work .pin--lg .logo-img, .work .pin--lg .logo-slot,
.work .pin--md .logo-img, .work .pin--md .logo-slot { width: 196px; height: 124px; }
.work .pin--board .logo-board { width: 196px; }
.work .pin--board .logo-board .logo-img { width: 100%; max-width: 86px; height: 44px; }

/* =========================================================
   WATCHING — CD jewel case (replaces DVD)
   ========================================================= */
.cd-shelf {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: clamp(22px, 4.5vw, 50px);
  padding: 18px clamp(30px, 6vw, 64px) 0;
  margin-top: 1.6rem;
}
.cd-shelf .cd { width: clamp(140px, 19vw, 186px); margin-bottom: 30px; }   /* stand on the plank */
.cd { display: flex; flex-direction: column; align-items: center; gap: 14px; margin: 0; }
.cd__case {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;                 /* jewel-case front is square */
  border-radius: 3px;
  overflow: hidden;
  background: #131318;
  box-shadow: 0 9px 22px rgba(20,16,12,0.30), inset 0 0 0 1px rgba(255,255,255,0.16);
}
.cd__cover { width: 100%; height: 100%; object-fit: cover; display: block; }

/* hinge teeth down the right edge */
.cd__hinge {
  position: absolute; top: 0; right: 0; width: 11px; height: 100%;
  background: linear-gradient(90deg, rgba(255,255,255,0.06), rgba(0,0,0,0.30));
  border-left: 1px solid rgba(255,255,255,0.14);
}
.cd__hinge::after {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(180deg, rgba(255,255,255,0.20) 0 3px, rgba(0,0,0,0.20) 3px 9px);
  opacity: 0.5;
}
/* plastic highlight + reflection */
.cd__gloss {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(118deg, transparent 30%, rgba(255,255,255,0.52) 44%, rgba(255,255,255,0.13) 48%, transparent 57%),
    linear-gradient(155deg, rgba(255,255,255,0.32) 0%, rgba(255,255,255,0.05) 17%, transparent 34%),
    linear-gradient(0deg, rgba(255,255,255,0.10) 0%, transparent 16%);
}
.cd figcaption { font-family: var(--serif); font-size: 0.95rem; color: var(--ink); text-align: center; }

/* =========================================================
   Centre specific section headings + books body
   ========================================================= */
.films .section-title,
.books .section-title,
.watching .section-title,
.music .section-title { text-align: center; }
.books .lead-line { text-align: center; margin-left: auto; margin-right: auto; }

/* =========================================================
   Doodle-pop layer (click empty space to add doodles)
   ========================================================= */
#doodle-layer {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 0;
  pointer-events: none;
  z-index: 40;
}
.pop-doodle {
  position: absolute;
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  transform-origin: center;
  animation: doodle-pop 0.34s cubic-bezier(.2,1.4,.4,1) both;
}
.pop-doodle svg { display: block; }
@keyframes doodle-pop {
  0%   { transform: scale(0); opacity: 0; }
  60%  { opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .pop-doodle { animation: none; }
}
