/* ============================================================
   MUGAM — ATELIER EDITION
   Cream paper · walnut ink · madder red · faded indigo · ochre
   No glow. No gradient. No floating shadow. No spring.
   ============================================================ */

:root {
  --paper:        #F1E8D4;
  --paper-2:      #E8DCC1;   /* slightly creased edges */
  --paper-warm:   #EAD9B8;
  --ink:          #1F1A14;
  --ink-soft:     #3a312540;
  --madder:       #B23A2A;
  --madder-deep:  #8a2a1c;
  --indigo:       #34495E;
  --indigo-soft:  #34495e88;
  --ochre:        #C99846;
  --sienna:       #7E3A20;
  --rule:         #1F1A14;
  --hair:         rgba(31, 26, 20, 0.18);
  --hair-strong:  rgba(31, 26, 20, 0.36);

  --ease-paper:   cubic-bezier(0.5, 0, 0.2, 1);
  --maxw:         1180px;
  --gutter:       clamp(20px, 4vw, 64px);

  --t-display: "Old Standard TT", "GFS Didot", "Cormorant Garamond", "Times New Roman", serif;
  --t-body:    "Source Serif 4", "Source Serif Pro", "Lora", Georgia, serif;
  --t-mono:    "JetBrains Mono", "Courier New", monospace;
}

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--t-body);
  font-size: 18px;
  line-height: 1.62;
  font-feature-settings: "onum" 1, "liga" 1, "kern" 1;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---- the paper itself ---- */
body {
  background:
    /* soft warming at top and bottom edges, like an old page */
    radial-gradient(ellipse 110% 60% at 50% 0%,   rgba(150,110,55,0.05) 0%, transparent 60%),
    radial-gradient(ellipse 110% 50% at 50% 100%, rgba(150,110,55,0.04) 0%, transparent 60%),
    /* base */
    var(--paper);
}

/* paper fiber texture — fixed overlay, very faint */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 1000;
  opacity: 0.55;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='360' height='360'><filter id='p'><feTurbulence type='fractalNoise' baseFrequency='1.4' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.16  0 0 0 0 0.12  0 0 0 0 0.08  0 0 0 0.06 0'/></filter><rect width='100%25' height='100%25' filter='url(%23p)'/></svg>");
  background-size: 360px 360px;
}
/* a slightly larger discoloration / coffee-stain wash */
body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.4;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='1200' height='1200'><filter id='b'><feTurbulence type='fractalNoise' baseFrequency='0.012' numOctaves='2'/><feColorMatrix values='0 0 0 0 0.55  0 0 0 0 0.42  0 0 0 0 0.24  0 0 0 0.10 0'/></filter><rect width='100%25' height='100%25' filter='url(%23b)'/></svg>");
  background-size: 1200px 1200px;
}

/* random aged-paper artifacts: tea stains, ink blots — placed once across the doc */
.aged-spot {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  mix-blend-mode: multiply;
  opacity: 0.5;
}
.aged-spot svg { width: 100%; height: 100%; display: block; }
.aged-spot.tea-1 { top:  6vh; right: 4%;  width: 180px; height: 180px; transform: rotate(8deg); opacity: 0.28; }
.aged-spot.tea-2 { top: 120vh; left: -40px; width: 220px; height: 220px; transform: rotate(-12deg); opacity: 0.22; }
.aged-spot.ink-1 { top: 240vh; right: 8%; width: 90px; height: 90px; opacity: 0.6; }
.aged-spot.ink-2 { top: 380vh; left: 5%; width: 60px; height: 60px; opacity: 0.55; }
.aged-spot.tea-3 { top: 460vh; right: 12%; width: 240px; height: 200px; opacity: 0.22; transform: rotate(22deg); }
.aged-spot.smudge-1 { top: 580vh; left: 22%; width: 140px; height: 70px; opacity: 0.4; transform: rotate(-4deg); }
@media (max-width: 760px) {
  .aged-spot { display: none; }
}

::selection { background: rgba(178, 58, 42, 0.22); color: var(--ink); }

/* ---- typography baseline ---- */
h1, h2, h3, h4, h5 { font-family: var(--t-display); font-weight: 400; margin: 0; color: var(--ink); }
.display { font-family: var(--t-display); font-weight: 400; }
em, .it { font-style: italic; }
.smallcaps {
  font-family: var(--t-display);
  font-feature-settings: "smcp" 1, "c2sc" 1, "onum" 1;
  text-transform: lowercase;     /* relies on smcp; falls back via spans */
  letter-spacing: 0.16em;
}
/* safe small-caps fallback for browsers that don't render smcp */
.smallcaps-safe {
  font-family: var(--t-display);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.78em;
  font-weight: 400;
}
.marginalia {
  font-family: var(--t-body);
  font-style: italic;
  font-size: 13px;
  color: var(--indigo);
  line-height: 1.55;
}
.indigo { color: var(--indigo); }
.madder { color: var(--madder); }
.ochre  { color: var(--ochre); }
.muted  { color: rgba(31, 26, 20, 0.55); }
.numerals { font-feature-settings: "onum" 1; }

/* page numbers */
.page-no {
  font-family: var(--t-display);
  font-style: italic;
  font-size: 13px;
  color: var(--indigo);
  letter-spacing: 0.02em;
}

/* ============================================================
   CURSOR — pen tip + ink trail
   ============================================================ */
@media (pointer: fine) {
  body { cursor: none; }
  .pen-tip {
    position: fixed; top: 0; left: 0;
    width: 4px; height: 4px;
    background: var(--ink);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 0 0.5px var(--ink);
  }
  .ink-canvas {
    position: fixed; inset: 0;
    pointer-events: none;
    z-index: 9998;
  }
}
@media (pointer: coarse) {
  .pen-tip, .ink-canvas { display: none !important; }
}

/* ============================================================
   GLOBAL CHROME — running head + corner monogram + stamp
   ============================================================ */
.running-head {
  position: fixed;
  top: 22px; left: 0; right: 0;
  z-index: 80;
  padding: 0 var(--gutter);
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--t-display);
  font-style: italic;
  font-size: 13px;
  color: var(--indigo);
  letter-spacing: 0.04em;
  pointer-events: none;
  mix-blend-mode: multiply;
}
.running-head .nav {
  display: flex; gap: 26px;
  pointer-events: auto;
}
.running-head .nav a {
  color: var(--indigo);
  text-decoration: none;
  font-style: italic;
  font-size: 13px;
  position: relative;
}
.running-head .nav a:hover { color: var(--sienna); }
.running-head .nav a.is-active { color: var(--ink); }
.running-head .nav a::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -3px;
  height: 5px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 5' preserveAspectRatio='none'><path d='M0 3 Q5 0 10 2.5 T20 3 T30 2.5 T40 3 T50 2.5 T60 3' fill='none' stroke='%237E3A20' stroke-width='1' stroke-linecap='round'/></svg>") repeat-x;
  background-size: 60px 5px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease-paper);
}
.running-head .nav a:hover::after { transform: scaleX(1); }
@media (max-width: 760px) {
  .running-head .nav { display: none; }
}

/* monogram top-left */
.monogram {
  display: inline-flex; align-items: baseline; gap: 8px;
}
.monogram-letter {
  font-family: var(--t-display);
  font-size: 28px;
  font-style: italic;
  color: var(--ink);
  line-height: 1;
}
.monogram-fleuron {
  color: var(--ochre);
  font-size: 16px;
  transform: translateY(-2px);
}
.monogram-text {
  font-family: var(--t-display);
  font-style: italic;
  font-size: 13px;
  color: var(--indigo);
  letter-spacing: 0.04em;
}

/* red ink stamp — slightly rotated, with misregistration */
.stamp {
  display: inline-block;
  padding: 6px 14px;
  border: 1.5px solid var(--madder);
  color: var(--madder);
  font-family: var(--t-display);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  text-align: center;
  transform: rotate(-2deg);
  position: relative;
  background: transparent;
}
.stamp::before {
  content: "";
  position: absolute;
  inset: 2px;
  border: 0.5px solid var(--madder);
  opacity: 0.7;
  transform: translate(0.6px, -0.4px);
}
.stamp.tilt-r { transform: rotate(3deg); }
.stamp.small  { font-size: 9px; letter-spacing: 0.3em; padding: 4px 10px; }

/* ============================================================
   SECTIONS — each is a "spread"
   ============================================================ */
section.spread {
  position: relative;
  padding: clamp(80px, 14vh, 160px) var(--gutter);
  max-width: var(--maxw);
  margin: 0 auto;
}
section.spread > .page-no {
  position: absolute;
  right: var(--gutter);
  bottom: 38px;
}
section.spread > .page-no.left {
  right: auto;
  left: var(--gutter);
}

/* hairline rule with central fleuron */
.rule {
  display: flex; align-items: center; gap: 18px;
  color: var(--ink);
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.rule::before, .rule::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--ink);
  opacity: 0.55;
}
.rule .fleurons {
  display: inline-flex; gap: 14px;
  color: var(--ochre);
  font-size: 14px;
  letter-spacing: 0.2em;
}

/* eyebrows / movement labels */
.eyebrow {
  font-family: var(--t-display);
  font-style: italic;
  font-size: 14px;
  color: var(--indigo);
  display: inline-flex; align-items: center; gap: 10px;
  letter-spacing: 0.02em;
}
.eyebrow .roman {
  font-family: var(--t-display);
  font-style: normal;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-size: 11px;
  color: var(--ink);
}

/* ============================================================
   1. COVER
   ============================================================ */
.cover {
  min-height: 100vh;
  padding: 0 var(--gutter);
  position: relative;
  display: grid;
  grid-template-rows: 90px 1fr 120px;
}

.cover-top {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 30px;
}

.cover-center {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  position: relative;
  padding-top: 4vh;
}
.cover-title-block {
  max-width: 880px;
  position: relative;
  padding-left: clamp(0px, 5vw, 80px);
}
.cover-title {
  font-family: var(--t-display);
  font-size: clamp(96px, 17vw, 240px);
  line-height: 0.85;
  letter-spacing: -0.025em;
  font-weight: 400;
  color: var(--ink);
  margin: 0;
  font-feature-settings: "liga" 1, "dlig" 1;
}
.cover-title .breve {
  font-style: normal;
}
.cover-title .last {
  display: inline-block;
}
.cover-subtitle {
  font-family: var(--t-display);
  font-style: italic;
  font-size: clamp(20px, 2.2vw, 30px);
  color: var(--ink);
  max-width: 640px;
  margin-top: 28px;
  line-height: 1.35;
  letter-spacing: 0.005em;
}

.cover-attr {
  margin-top: 60px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 20px;
  font-family: var(--t-display);
  font-style: italic;
  font-size: 13.5px;
  color: var(--indigo);
  max-width: 460px;
}
.cover-attr dt { color: var(--ink); }
.cover-attr dd { margin: 0; }

.cover-foot {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  padding-bottom: 36px;
  gap: 24px;
}
.cover-foot .center {
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
}
/* a small, hand-feeling "begin reading" link with a wobbly arrow */
.begin-link {
  display: inline-flex; align-items: center; gap: 16px;
  text-decoration: none;
  color: var(--ink);
  transform: rotate(-1.2deg);
  transition: color 0.4s var(--ease-paper), transform 0.4s var(--ease-paper);
}
.begin-link:hover { color: var(--sienna); transform: rotate(-0.6deg) translateX(2px); }
.begin-text {
  font-family: var(--t-display);
  font-style: italic;
  font-size: 18px;
  letter-spacing: 0.005em;
  border-bottom: 0.5px solid currentColor;
  padding-bottom: 2px;
}
.hand-arrow {
  width: 96px;
  height: 28px;
  display: inline-block;
  color: var(--ink);
}
.cover-foot .right {
  text-align: right;
  font-family: var(--t-display);
  font-style: italic;
  font-size: 13px;
  color: var(--indigo);
}
.cover-foot .left {
  font-family: var(--t-display);
  font-style: italic;
  font-size: 13px;
  color: var(--indigo);
}

/* the cover-side hand-drawn ornament — a quick tar study */
.cover-ornament {
  position: absolute;
  right: 6%;
  top: 12%;
  width: clamp(110px, 13vw, 200px);
  opacity: 0.85;
  pointer-events: none;
  /* outer wrapper takes scroll-driven extra rotation via JS (CSS var) */
  transform: rotate(var(--scroll-kick, 0deg));
  will-change: transform;
}
.cover-ornament svg {
  width: 100%; height: auto; display: block; overflow: visible;
  transform-origin: 50% 0%;
  animation: tar-sway 8s ease-in-out infinite;
}

/* gentle pendulum sway, as if hanging by a thread from the pegbox */
@keyframes tar-sway {
  0%   { transform: rotate(-4deg); }
  25%  { transform: rotate(-1.5deg); }
  50%  { transform: rotate(-3.8deg); }
  75%  { transform: rotate(-2deg); }
  100% { transform: rotate(-4deg); }
}

/* strings — high-frequency micro vibration with slight horizontal sway */
.cover-ornament .tar-strings {
  transform-box: fill-box;
  transform-origin: 50% 50%;
  animation: tar-strings-vibe 0.18s steps(2, end) infinite;
}
@keyframes tar-strings-vibe {
  0%   { transform: translateX(-0.35px); }
  50%  { transform: translateX( 0.35px); }
  100% { transform: translateX(-0.25px); }
}

/* body breathes slightly — like resonance after a string was plucked */
.cover-ornament .tar-body {
  transform-box: fill-box;
  transform-origin: 50% 80%;
  animation: tar-body-breathe 3.4s ease-in-out infinite;
}
@keyframes tar-body-breathe {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.012); }
}

@media (max-width: 760px) {
  .cover-ornament { display: none; }
}

/* a hand-signed wax-style monogram on the cover */
.cover-sign {
  position: absolute;
  right: 8%;
  bottom: 12%;
  display: flex; align-items: center; gap: 14px;
  pointer-events: none;
}
.cover-sign .seal {
  width: 56px; height: 56px;
  border: 1px solid var(--madder);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--t-display);
  font-style: italic;
  color: var(--madder);
  font-size: 22px;
  transform: rotate(-9deg);
  position: relative;
}
.cover-sign .seal::before {
  content: "";
  position: absolute; inset: 3px;
  border: 0.5px solid var(--madder);
  border-radius: 50%;
  opacity: 0.6;
  transform: translate(0.5px, -0.4px);
}
.cover-sign .sig {
  font-family: "Source Serif 4", serif;
  font-style: italic;
  font-size: 13px;
  color: var(--indigo);
  line-height: 1.3;
  max-width: 140px;
}
@media (max-width: 760px) {
  .cover-sign { position: static; margin-top: 32px; }
}

/* ============================================================
   2. FOREWORD — two-column spread
   ============================================================ */
.foreword {
  display: grid;
  grid-template-columns: 1.05fr 1.6fr;
  gap: clamp(40px, 7vw, 110px);
  align-items: start;
}
.foreword-illustration {
  position: sticky;
  top: 90px;
  display: flex; flex-direction: column; gap: 18px;
}
.foreword-illustration svg {
  width: 100%;
  height: auto;
  display: block;
}
.foreword-illustration .caption {
  font-family: var(--t-body);
  font-style: italic;
  font-size: 13px;
  color: var(--indigo);
  line-height: 1.5;
  padding-left: 18px;
  border-left: 1px solid var(--indigo);
  max-width: 280px;
}

.foreword-text { max-width: 60ch; }
.foreword-text .eyebrow { margin-bottom: 28px; }

.foreword-essay { font-size: 19px; line-height: 1.7; }
.foreword-essay p { margin: 0 0 1.1em; }
.foreword-essay p:first-of-type::first-letter {
  font-family: var(--t-display);
  font-size: 5.2em;
  line-height: 0.82;
  float: left;
  padding: 6px 14px 0 0;
  color: var(--madder);
  font-style: normal;
  font-weight: 400;
}
.foreword-margin {
  margin-top: 56px;
  font-family: var(--t-body);
  font-style: italic;
  font-size: 14px;
  color: var(--indigo);
  border-top: 1px solid var(--indigo);
  padding-top: 16px;
  max-width: 380px;
}

@media (max-width: 880px) {
  .foreword { grid-template-columns: 1fr; }
  .foreword-illustration { position: static; max-width: 320px; }
}

/* ============================================================
   3. THE INSTRUMENT — film frame + anatomy plate
   ============================================================ */
.instrument {
  padding: clamp(80px, 14vh, 160px) var(--gutter);
  max-width: var(--maxw);
  margin: 0 auto;
}
.instrument-head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 24px;
  margin-bottom: 56px;
}
.instrument-head h2 {
  font-size: clamp(40px, 5vw, 72px);
  font-style: italic;
  line-height: 1;
  letter-spacing: -0.012em;
  max-width: 14ch;
  margin-top: 18px;
}
.instrument-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(30px, 4vw, 56px);
  align-items: stretch;
}
.film-frame {
  position: relative;
  aspect-ratio: 4/5;
  background: #2b2620;
  overflow: hidden;
  border: 1px solid var(--ink);
  /* layered insets to look like a printed photo on the page */
  box-shadow:
    inset 0 0 0 6px var(--paper),
    inset 0 0 0 7px var(--ink);
}
.film-frame::after {
  /* halftone-ish pattern over the photograph */
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(31,26,20,0.18) 0.7px, transparent 0.9px);
  background-size: 3px 3px;
  mix-blend-mode: multiply;
}
.film-frame::before {
  /* film grain */
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  opacity: 0.25;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='280' height='280'><filter id='f'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.8 0'/></filter><rect width='100%25' height='100%25' filter='url(%23f)'/></svg>");
}

/* 16mm sprocket holes — small rectangular cut-outs along the left edge */
.film-sprockets {
  position: absolute;
  top: 0; bottom: 0; left: 6px;
  width: 14px;
  display: flex; flex-direction: column;
  justify-content: space-around;
  padding: 14px 0;
  z-index: 2;
  pointer-events: none;
}
.film-sprockets span {
  display: block;
  width: 8px; height: 5px;
  background: var(--paper);
  border-radius: 1px;
}

/* tiny registration crosshairs in corners */
.film-corner-mark {
  position: absolute;
  top: 12px; right: 16px;
  color: rgba(241, 232, 212, 0.6);
  font-family: var(--t-display);
  font-size: 16px;
  line-height: 1;
  z-index: 2;
  user-select: none;
}
.film-corner-mark.br { top: auto; bottom: 14px; right: auto; left: 30px; }

.film-placeholder {
  position: absolute;
  inset: 16% 14% 22%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: rgba(241, 232, 212, 0.78);
  font-family: var(--t-display);
  text-align: center;
  z-index: 2;
  border: 1px dashed rgba(241,232,212,0.18);
}
.film-placeholder em {
  font-style: italic;
  font-size: 18px;
  letter-spacing: 0.005em;
  margin-bottom: 14px;
}
.film-placeholder small {
  display: block;
  font-family: var(--t-mono);
  font-size: 9.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(241,232,212,0.42);
}
.film-meta {
  position: absolute;
  left: 16px; bottom: 14px;
  z-index: 3;
  color: var(--paper);
  font-family: var(--t-display);
  font-style: italic;
  font-size: 16px;
  line-height: 1.4;
  max-width: 70%;
}
.film-meta .sound-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--t-display);
  font-style: normal;
  font-size: 10.5px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--paper);
  border: 1px solid rgba(241,232,212,0.5);
  padding: 5px 10px;
  margin-top: 12px;
  cursor: pointer;
  background: transparent;
}

/* anatomy plate */
.anatomy {
  position: relative;
  padding: 28px 18px;
  border: 1px solid var(--ink);
  background: var(--paper);
  box-shadow: inset 0 0 0 4px var(--paper), inset 0 0 0 5px var(--ink);
}
.anatomy h3 {
  font-style: italic;
  font-size: 22px;
  margin-bottom: 6px;
}
.anatomy .plate-no {
  font-family: var(--t-display);
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--indigo);
  margin-bottom: 18px;
}
.anatomy svg { width: 100%; height: auto; display: block; }
.anatomy-legend {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 14px;
  margin-top: 18px;
  font-family: var(--t-body);
  font-style: italic;
  font-size: 13px;
  color: var(--indigo);
}
.anatomy-legend dt {
  font-family: var(--t-display);
  font-style: normal;
  color: var(--ink);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 10.5px;
  padding-top: 2px;
}
.anatomy-legend dd { margin: 0; color: var(--ink); }

@media (max-width: 820px) {
  .instrument-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   4. THREE MOVEMENTS — cards pinned with washi tape
   ============================================================ */
.movements {
  padding: clamp(80px, 14vh, 160px) var(--gutter);
  max-width: var(--maxw);
  margin: 0 auto;
  position: relative;
}
.movements-head { max-width: 720px; margin-bottom: 80px; }
.movements-head h2 {
  font-style: italic;
  font-size: clamp(40px, 5.2vw, 72px);
  line-height: 1.02;
  margin-top: 16px;
}
.movements-stack {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 4vw, 56px);
}
.card { 
  background: var(--paper);
  border: 1px solid var(--ink);
  padding: 36px 30px 32px;
  position: relative;
  box-shadow:
    2px 3px 0 rgba(31,26,20,0.06),
    3px 5px 0 rgba(31,26,20,0.04);
  transition: transform 1.2s var(--ease-paper), box-shadow 0.6s var(--ease-paper), opacity 1.2s var(--ease-paper);
}
.card-1 { --card-rest: rotate(-1.5deg); --card-pre: rotate(-6deg) translateY(36px); transform: var(--card-rest); }
.card-2 { --card-rest: rotate( 0.8deg); --card-pre: rotate( 5deg) translateY(36px); transform: var(--card-rest); margin-top: 24px; }
.card-3 { --card-rest: rotate(-0.6deg); --card-pre: rotate(-4deg) translateY(36px); transform: var(--card-rest); margin-top: -12px; }
/* before reveal: extra tilt + lower */
.card.reveal:not(.in) { opacity: 0; transform: var(--card-pre); }
.card.reveal.in       { opacity: 1; transform: var(--card-rest); }
.card:hover {
  transform: rotate(0deg) translateY(-2px);
  box-shadow:
    3px 5px 0 rgba(31,26,20,0.08),
    5px 9px 0 rgba(31,26,20,0.05);
}
.tape {
  position: absolute;
  width: 92px; height: 22px;
  background: rgba(201, 152, 70, 0.42);
  border-left: 1px dashed rgba(126, 58, 32, 0.25);
  border-right: 1px dashed rgba(126, 58, 32, 0.25);
}
.tape.tl { top: -14px; left: -14px; transform: rotate(-32deg); }
.tape.tr { top: -14px; right: -14px; transform: rotate(28deg); }
.tape::after {
  content: "";
  position: absolute; inset: 0;
  background: repeating-linear-gradient(
    90deg,
    transparent 0, transparent 6px,
    rgba(126,58,32,0.05) 6px, rgba(126,58,32,0.05) 9px);
}

.card .mvmt-no {
  font-family: var(--t-display);
  font-style: italic;
  font-size: 13px;
  color: var(--indigo);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.card .mvmt-no .num {
  font-style: normal;
  letter-spacing: 0.3em;
  color: var(--ink);
}
.card-illustration {
  width: 100%;
  aspect-ratio: 4/3;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
}
.card-illustration svg { width: 78%; height: auto; }
.card h3 {
  font-style: italic;
  font-size: 30px;
  line-height: 1.05;
  margin-bottom: 14px;
}
.card p {
  font-family: var(--t-body);
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--ink);
  margin: 0;
  max-width: 32ch;
}

@media (max-width: 880px) {
  .movements-stack { grid-template-columns: 1fr; gap: 36px; }
  .card-1, .card-2, .card-3 { transform: none; margin-top: 0; }
}

/* ============================================================
   5. SAMPLES — featured sleeve + tracklist (LP back-cover)
   ============================================================ */
.samples {
  padding: clamp(80px, 14vh, 160px) var(--gutter);
  max-width: var(--maxw);
  margin: 0 auto;
}
.samples-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: end;
  margin-bottom: 64px;
}
.samples-head h2 {
  font-style: italic;
  font-size: clamp(40px, 5.2vw, 72px);
  line-height: 1.02;
  margin-top: 16px;
}
.samples-head p {
  font-family: var(--t-body);
  font-style: italic;
  font-size: 16px;
  color: var(--indigo);
  max-width: 38ch;
  line-height: 1.6;
}

/* layout: featured sleeve (left) + tracklist (right) */
.cabinet-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}

/* ---- featured sleeve ---- */
.featured-sleeve { position: relative; }
.featured-cover {
  position: relative;
  aspect-ratio: 1;
  width: 100%;
  background: var(--paper-warm);
  border: 1px solid var(--ink);
  box-shadow: inset 0 0 0 6px var(--paper-warm), inset 0 0 0 7px var(--ink);
  overflow: hidden;
  /* a very gentle pressed-paper feel */
}
.featured-cover svg { position: absolute; inset: 5%; width: 90%; height: 90%; display: block; }

.featured-no {
  position: absolute;
  top: 18px; left: 22px;
  font-family: var(--t-display);
  font-size: 10.5px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0.75;
  z-index: 2;
}
.featured-stamp {
  position: absolute;
  top: 22px; right: 20px;
  font-family: var(--t-display);
  font-size: 9.5px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--madder);
  border: 1px solid var(--madder);
  padding: 4px 8px;
  transform: rotate(4deg);
  z-index: 2;
  background: rgba(241, 232, 212, 0.85);
}
.featured-stamp::before {
  content: "";
  position: absolute; inset: 1px;
  border: 0.5px solid var(--madder);
  opacity: 0.6;
  transform: translate(0.5px, -0.3px);
  pointer-events: none;
}

.featured-credit {
  margin-top: 28px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px 24px;
  align-items: baseline;
}
.featured-credit .mode-name {
  font-family: var(--t-display);
  font-style: italic;
  font-size: clamp(34px, 4vw, 48px);
  letter-spacing: -0.012em;
  line-height: 1;
  color: var(--ink);
}
.featured-credit .dur {
  font-family: var(--t-display);
  font-size: 14px;
  font-style: italic;
  color: var(--indigo);
  letter-spacing: 0.04em;
  text-align: right;
}
.featured-credit .subtitle {
  grid-column: 1 / -1;
  font-family: var(--t-body);
  font-style: italic;
  font-size: 15px;
  color: var(--indigo);
  line-height: 1.55;
  max-width: 50ch;
}

/* the inked waveform — sits below the featured sleeve like a strip of paper */
.featured-wave {
  margin-top: 32px;
  padding: 18px 18px 6px;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  position: relative;
}
.featured-wave-label {
  position: absolute;
  top: -8px; left: 24px;
  background: var(--paper);
  padding: 0 10px;
  font-family: var(--t-display);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--indigo);
}
.featured-wave-label .pin {
  color: var(--madder);
  margin-right: 6px;
}
.featured-wave svg { width: 100%; height: 80px; display: block; }
.featured-wave-timing {
  display: flex; justify-content: space-between;
  font-family: var(--t-display);
  font-size: 11px;
  font-style: italic;
  color: var(--indigo);
  margin-top: 8px;
  letter-spacing: 0.06em;
}

/* ---- tracklist (LP back-cover) ---- */
.tracklist {
  padding-top: 12px;
}
.tracklist-header,
.tracklist-foot {
  font-family: var(--t-display);
  font-style: italic;
  font-size: 13px;
  color: var(--indigo);
  letter-spacing: 0.04em;
  text-align: center;
}
.tracklist-header { margin-bottom: 22px; }
.tracklist-foot { margin-top: 26px; }
.tracklist-foot .fleur { color: var(--ochre); margin: 0 8px; }

.tracks {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}
.track {
  display: grid;
  grid-template-columns: 34px 1fr auto 64px;
  gap: 18px;
  align-items: baseline;
  padding: 18px 6px;
  border-top: 1px dotted var(--hair-strong);
  cursor: pointer;
  position: relative;
  transition: background 0.4s var(--ease-paper);
}
.track:first-child { border-top: none; }
.track:hover { background: rgba(31, 26, 20, 0.025); }
.track-no {
  font-family: var(--t-display);
  font-style: italic;
  font-size: 15px;
  color: var(--indigo);
  letter-spacing: 0.06em;
}
.track-name {
  font-family: var(--t-display);
  font-style: italic;
  font-size: clamp(20px, 2.2vw, 28px);
  color: var(--ink);
  letter-spacing: -0.005em;
  line-height: 1.1;
  position: relative;
}
.track-name small {
  display: block;
  font-family: var(--t-body);
  font-style: italic;
  font-size: 12.5px;
  color: var(--indigo);
  letter-spacing: 0;
  margin-top: 2px;
}
.track-mini {
  width: 110px;
  height: 22px;
  display: block;
}
.track-mini svg { width: 100%; height: 100%; display: block; }
.track-dur {
  font-family: var(--t-display);
  font-style: italic;
  font-size: 13px;
  color: var(--indigo);
  letter-spacing: 0.08em;
  text-align: right;
}

.track.is-playing { background: rgba(178, 58, 42, 0.04); }
.track.is-playing .track-no { color: var(--madder); font-style: normal; font-weight: 400; }
.track.is-playing .track-no::before {
  content: "▸ ";
  color: var(--madder);
  font-style: normal;
  margin-right: 2px;
}
.track.is-playing .track-name { color: var(--ink); }
.track.is-playing .track-mini path { stroke: var(--ink); }

/* responsive */
@media (max-width: 960px) {
  .cabinet-layout { grid-template-columns: 1fr; }
  .featured-cover { max-width: 520px; margin: 0 auto; }
  .track { grid-template-columns: 28px 1fr 64px; }
  .track-mini { display: none; }
}

/* ============================================================
   EPIGRAPH PLATE — a master's saying, printed on cream paper
   (replaces the dark film frame in the Plate II spread)
   ============================================================ */
.epigraph-plate {
  position: relative;
  aspect-ratio: 4/5;
  background: var(--paper);
  border: 1px solid var(--ink);
  box-shadow: inset 0 0 0 6px var(--paper), inset 0 0 0 7px var(--ink);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 56px 44px 44px;
  overflow: hidden;
  margin: 0;
}
/* tiny pressed-print artifact in each corner */
.epigraph-corner {
  position: absolute;
  font-family: var(--t-display);
  font-size: 13px;
  line-height: 1;
  color: var(--ink);
  opacity: 0.55;
  user-select: none;
}
.epigraph-corner.tl { top: 22px; left: 26px; }
.epigraph-corner.tr { top: 22px; right: 26px; }
.epigraph-corner.bl { bottom: 22px; left: 26px; }
.epigraph-corner.br { bottom: 22px; right: 26px; }

.epigraph-plate-no {
  position: absolute;
  top: 24px;
  left: 0; right: 0;
  text-align: center;
  font-family: var(--t-display);
  font-style: italic;
  font-size: 11.5px;
  letter-spacing: 0.16em;
  color: var(--indigo);
}
.epigraph-margin-note {
  position: absolute;
  top: 60px; right: 30px;
  max-width: 110px;
  font-family: var(--t-body);
  font-style: italic;
  font-size: 11px;
  color: var(--indigo);
  line-height: 1.4;
  text-align: right;
  opacity: 0.78;
  transform: rotate(-2deg);
}
.epigraph-margin-note em { color: var(--sienna); font-style: italic; }
.epigraph-quote-mark {
  position: absolute;
  top: 56px; left: 36px;
  font-family: var(--t-display);
  color: var(--madder);
  font-size: 96px;
  line-height: 0.4;
  font-style: normal;
  opacity: 0.85;
  user-select: none;
  transform: rotate(-4deg);
}
.epigraph-mark {
  text-align: center;
  font-family: var(--t-display);
  color: var(--ochre);
  font-size: 18px;
  letter-spacing: 0.4em;
  margin: 8px 0 4px;
}
.epigraph-body {
  margin: 36px 0 0;
  text-align: center;
  font-family: var(--t-display);
  font-size: clamp(19px, 2.2vw, 25px);
  line-height: 1.55;
  color: var(--ink);
  letter-spacing: -0.005em;
  font-weight: 400;
  flex: 1;
  display: flex; flex-direction: column; justify-content: center;
  padding: 0 18px;
}
.epigraph-body p {
  margin: 0;
  font-family: var(--t-display);
  font-style: normal;
}
.epigraph-body p em {
  font-style: italic;
  color: var(--ink);
}
.epigraph-body .brk {
  margin-top: 1.15em;
}
/* the same lines in Azerbaijani, set small and indented like a footnote */
.epigraph-original {
  margin: 28px 32px 0;
  font-family: var(--t-display);
  font-style: italic;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--indigo);
  text-align: center;
  opacity: 0.85;
  letter-spacing: 0.005em;
}
.epigraph-original em {
  color: var(--sienna);
}
.epigraph-attr {
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  margin-top: 22px;
}
.epigraph-attr .line {
  display: block;
  width: 28px; height: 1px;
  background: var(--ink);
  opacity: 0.6;
  margin-bottom: 10px;
}
.epigraph-attr .who {
  font-family: var(--t-display);
  font-style: italic;
  font-size: 16px;
  color: var(--ink);
}
.epigraph-attr .role {
  font-family: var(--t-body);
  font-style: italic;
  font-size: 12.5px;
  color: var(--indigo);
  letter-spacing: 0.005em;
}
.epigraph-attr .where {
  font-family: var(--t-body);
  font-style: italic;
  font-size: 11.5px;
  color: var(--sand);
  letter-spacing: 0.02em;
  margin-top: 4px;
}
.epigraph-attr .dates {
  color: var(--sienna);
  margin-left: 4px;
}
.epigraph-stamp {
  position: absolute;
  bottom: -8px; right: 22px;
  transform: rotate(-4deg);
}
.epigraph-stamp .stamp { font-size: 8.5px; padding: 3px 8px; }

/* gentle paper texture inside the plate (subtle, multiplied) */
.epigraph-plate::before {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  opacity: 0.35;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='300' height='300'><filter id='ep'><feTurbulence type='fractalNoise' baseFrequency='1.0' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.18  0 0 0 0 0.12  0 0 0 0 0.08  0 0 0 0.05 0'/></filter><rect width='100%25' height='100%25' filter='url(%23ep)'/></svg>");
  background-size: 300px 300px;
}

/* ============================================================
   6. THE WORKSHOP — flat-lay
   ============================================================ */
.workshop {
  padding: clamp(80px, 14vh, 160px) var(--gutter) clamp(80px, 14vh, 160px);
  max-width: var(--maxw);
  margin: 0 auto;
}
.workshop-head { max-width: 720px; margin-bottom: 56px; }
.workshop-head h2 {
  font-style: italic;
  font-size: clamp(40px, 5.2vw, 72px);
  line-height: 1.02;
  margin-top: 16px;
}
.flatlay {
  position: relative;
  padding: 56px 44px;
  background:
    /* wood grain — very subtle warm vertical streaks */
    repeating-linear-gradient(180deg,
      rgba(126,58,32,0.04) 0,
      rgba(126,58,32,0.04) 2px,
      transparent 2px,
      transparent 9px),
    linear-gradient(180deg, #d9c39a 0%, #c9b186 100%);
  border: 1px solid var(--ink);
}
.flatlay-paper {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--ink);
  padding: 26px;
  box-shadow:
    inset 0 0 0 4px var(--paper),
    inset 0 0 0 5px var(--ink),
    8px 12px 0 rgba(31,26,20,0.08);
  transform: rotate(-0.6deg);
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
}
.flatlay-paper .ws-top {
  grid-column: 1 / -1;
  display: flex; justify-content: space-between; align-items: baseline;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 14px;
  margin-bottom: 6px;
}
.flatlay-paper .ws-title {
  font-family: var(--t-display);
  font-style: italic;
  font-size: 18px;
}
.flatlay-paper .ws-tabs {
  display: flex; gap: 18px;
  font-family: var(--t-display);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--indigo);
}
.flatlay-paper .ws-tabs .on { color: var(--ink); border-bottom: 1px solid var(--madder); padding-bottom: 2px; }
.ws-side .ws-section {
  font-family: var(--t-display);
  font-style: italic;
  font-size: 11.5px;
  color: var(--indigo);
  margin: 10px 0 6px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.ws-side .ws-item {
  font-family: var(--t-body);
  font-size: 14px;
  padding: 4px 0;
  color: var(--ink);
  display: flex; gap: 10px; align-items: baseline;
}
.ws-side .ws-item.on { color: var(--madder); }
.ws-side .ws-item small {
  font-family: var(--t-display);
  font-style: italic;
  font-size: 11px;
  color: var(--indigo);
  margin-left: auto;
}
.ws-tracks { display: flex; flex-direction: column; gap: 12px; }
.ws-track {
  display: grid;
  grid-template-columns: 120px 1fr 60px;
  gap: 14px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px dotted var(--hair-strong);
}
.ws-track:last-child { border-bottom: none; }
.ws-track .name {
  font-family: var(--t-display);
  font-style: italic;
  font-size: 15px;
}
.ws-track .wave { height: 22px; }
.ws-track .wave svg { width: 100%; height: 100%; }
.ws-track .lvl {
  font-family: var(--t-display);
  font-style: italic;
  font-size: 13px;
  color: var(--indigo);
  text-align: right;
}

/* objects placed around the paper */
.workshop-object {
  position: absolute;
  pointer-events: none;
}
.obj-tuningfork {
  bottom: 14px; right: 28px;
  width: 70px; height: 130px;
  transform: rotate(18deg);
}
.obj-pen {
  top: 28px; right: 36px;
  width: 220px; height: 30px;
  transform: rotate(8deg);
}
.obj-herb {
  bottom: 30px; left: 22px;
  width: 90px; height: 160px;
  transform: rotate(-22deg);
}
.obj-bookmark {
  top: 26px; left: 28px;
  width: 24px; height: 86px;
  transform: rotate(-6deg);
}
.obj-tuningfork svg, .obj-pen svg, .obj-herb svg, .obj-bookmark svg {
  width: 100%; height: 100%;
}

/* hand-written annotations on the workshop */
.ws-annotations {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.ws-annot {
  position: absolute;
  font-family: var(--t-body);
  font-style: italic;
  font-size: 13.5px;
  color: var(--indigo);
  max-width: 180px;
  line-height: 1.45;
}
.ws-annot small {
  font-family: var(--t-display);
  font-style: normal;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
  font-size: 10px;
  display: block;
  margin-bottom: 4px;
}
.ws-annot .pencil-line {
  position: absolute;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 30' preserveAspectRatio='none'><path d='M 2 28 Q 60 26 100 14 T 198 2' fill='none' stroke='%2334495E' stroke-width='1' stroke-linecap='round' stroke-dasharray='1 3'/></svg>");
  background-repeat: no-repeat;
  background-size: 100% 100%;
}
.ws-annot.a1 { top: 14%; right: -2%; }
.ws-annot.a2 { bottom: 22%; right: -4%; }
.ws-annot.a3 { top: 38%; left: -2%; }
.ws-annot.a4 { bottom: 8%; left: 24%; }
@media (max-width: 880px) {
  .flatlay { padding: 28px 18px; }
  .flatlay-paper { grid-template-columns: 1fr; }
  .workshop-object, .ws-annotations { display: none; }
}

/* ============================================================
   7. CATALOG — pricing as museum labels
   ============================================================ */
.catalog {
  padding: clamp(80px, 14vh, 160px) var(--gutter);
  max-width: var(--maxw);
  margin: 0 auto;
}
.catalog-head {
  text-align: center;
  margin-bottom: 72px;
}
.catalog-head h2 {
  font-style: italic;
  font-size: clamp(40px, 5.2vw, 72px);
  margin-top: 16px;
}
.vitrine {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: stretch;
}
.label-card {
  background: var(--paper);
  border: 1px solid var(--ink);
  padding: 32px 28px 28px;
  box-shadow: inset 0 0 0 4px var(--paper), inset 0 0 0 5px var(--ink);
  position: relative;
  display: flex; flex-direction: column;
  min-height: 460px;
}
.label-edition {
  font-family: var(--t-display);
  font-style: italic;
  font-size: 11.5px;
  color: var(--indigo);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.label-card h3 {
  font-style: italic;
  font-size: 30px;
  margin-bottom: 6px;
}
.label-card .price {
  font-family: var(--t-display);
  font-size: 36px;
  letter-spacing: -0.005em;
  font-style: normal;
  margin-top: 18px;
  margin-bottom: 4px;
}
.label-card .price small {
  font-family: var(--t-display);
  font-style: italic;
  font-size: 14px;
  color: var(--indigo);
  letter-spacing: 0.04em;
}
.label-card .description {
  font-family: var(--t-body);
  font-style: italic;
  font-size: 14.5px;
  color: var(--indigo);
  line-height: 1.55;
  margin: 16px 0 20px;
}
.label-list {
  list-style: none; padding: 0; margin: 0 0 30px;
  border-top: 1px solid var(--hair-strong);
}
.label-list li {
  padding: 10px 0;
  border-bottom: 1px dotted var(--hair-strong);
  font-family: var(--t-body);
  font-size: 14.5px;
  display: flex; gap: 12px;
}
.label-list li::before {
  content: "—";
  color: var(--ochre);
}
.label-card .acquire {
  margin-top: auto;
  font-family: var(--t-display);
  font-style: italic;
  font-size: 15px;
  color: var(--ink);
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 10px;
  align-self: flex-start;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--ink);
  transition: color 0.4s var(--ease-paper), border-color 0.4s var(--ease-paper);
}
.label-card .acquire:hover { color: var(--sienna); border-color: var(--sienna); }
.label-card .acquire .arrow-hand { width: 36px; height: 8px; display: inline-block; }

.label-card .selected-stamp {
  position: absolute;
  top: 18px; right: -10px;
  transform: rotate(8deg);
}
.catalog-foot {
  text-align: center;
  margin-top: 56px;
  font-family: var(--t-body);
  font-style: italic;
  font-size: 14.5px;
  color: var(--indigo);
}

@media (max-width: 880px) {
  .vitrine { grid-template-columns: 1fr; }
  .label-card { min-height: 0; }
}

/* ============================================================
   8. COLOPHON
   ============================================================ */
.colophon {
  padding: clamp(80px, 14vh, 160px) var(--gutter) 80px;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.colophon .fleurons {
  color: var(--ochre);
  letter-spacing: 0.5em;
  font-size: 16px;
  margin-bottom: 36px;
}
.colophon p {
  font-family: var(--t-body);
  font-style: italic;
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink);
  margin: 0 0 16px;
}
.colophon .signoff {
  margin-top: 32px;
  font-family: var(--t-display);
  font-style: italic;
  font-size: 13px;
  color: var(--indigo);
}
.colophon .links {
  margin-top: 40px;
  display: flex; gap: 28px; justify-content: center;
  font-family: var(--t-display);
  font-style: italic;
  font-size: 13px;
}
.colophon .links a {
  color: var(--indigo);
  text-decoration: none;
}
.colophon .links a:hover { color: var(--sienna); }
.colophon .volume-stamp {
  margin-top: 56px;
  display: inline-flex;
}

/* ============================================================
   REVEAL on scroll
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 1.1s var(--ease-paper), transform 1.1s var(--ease-paper);
}
.reveal.in { opacity: 1; transform: none; }

/* stagger reveal — children fade in one after another */
.reveal.stagger > * {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 1s var(--ease-paper), transform 1s var(--ease-paper);
}
.reveal.in.stagger > * { opacity: 1; transform: none; }
.reveal.in.stagger > *:nth-child(1) { transition-delay: 0.05s; }
.reveal.in.stagger > *:nth-child(2) { transition-delay: 0.20s; }
.reveal.in.stagger > *:nth-child(3) { transition-delay: 0.35s; }
.reveal.in.stagger > *:nth-child(4) { transition-delay: 0.50s; }
.reveal.in.stagger > *:nth-child(5) { transition-delay: 0.65s; }
.reveal.in.stagger > *:nth-child(6) { transition-delay: 0.80s; }
.reveal.in.stagger > *:nth-child(7) { transition-delay: 0.95s; }
.reveal.in.stagger > *:nth-child(8) { transition-delay: 1.10s; }

/* epigraph: each line of the saying reveals as the reader scrolls into it */
.epigraph-body.reveal > p {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 1.2s var(--ease-paper), transform 1.2s var(--ease-paper);
}
.epigraph-body.reveal.in > p { opacity: 1; transform: none; }
.epigraph-body.reveal.in > p:nth-child(1) { transition-delay: 0.10s; }
.epigraph-body.reveal.in > p:nth-child(2) { transition-delay: 0.34s; }
.epigraph-body.reveal.in > p:nth-child(3) { transition-delay: 0.58s; }
.epigraph-body.reveal.in > p:nth-child(4) { transition-delay: 0.82s; }
.epigraph-body.reveal.in > p:nth-child(5) { transition-delay: 1.20s; }
.epigraph-body.reveal.in > p:nth-child(6) { transition-delay: 1.44s; }
.epigraph-body.reveal.in > p:nth-child(7) { transition-delay: 1.68s; }

.draw-on-view path,
.draw-on-view line,
.draw-on-view circle,
.draw-on-view rect,
.draw-on-view polyline,
.draw-on-view polygon {
  stroke-dasharray: var(--len, 1200);
  stroke-dashoffset: var(--len, 1200);
}
.draw-on-view.in path,
.draw-on-view.in line,
.draw-on-view.in circle,
.draw-on-view.in rect,
.draw-on-view.in polyline,
.draw-on-view.in polygon {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 2.4s var(--ease-paper);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .draw-on-view path, .draw-on-view line { stroke-dasharray: none; stroke-dashoffset: 0; }
  .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   COVER ANIMATIONS — gentle, lifelike. No bounce, no glow.
   ============================================================ */

/* — Bayatı Şiraz · candle flame, smoke, wax — */
.featured-cover .anim-flame {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  animation: flame-sway 2.6s ease-in-out infinite;
}
.featured-cover .anim-flame-inner {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  animation: flame-flicker 0.45s steps(3, end) infinite;
}
@keyframes flame-sway {
  0%   { transform: rotate(-2.4deg) scaleY(0.97); }
  25%  { transform: rotate( 1.4deg) scaleY(1.05); }
  50%  { transform: rotate(-1.0deg) scaleY(0.95); }
  75%  { transform: rotate( 2.0deg) scaleY(1.03); }
  100% { transform: rotate(-2.4deg) scaleY(0.97); }
}
@keyframes flame-flicker {
  0%, 100% { opacity: 0.85; transform: scaleY(1); }
  33%      { opacity: 0.95; transform: scaleY(1.08); }
  66%      { opacity: 0.78; transform: scaleY(0.94); }
}
.featured-cover .anim-smoke-1 {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  animation: smoke-drift 7s ease-in-out infinite;
}
.featured-cover .anim-smoke-2 {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  animation: smoke-drift 9s ease-in-out -2s infinite;
}
@keyframes smoke-drift {
  0%, 100% { transform: translate(0, 0) rotate(0deg); opacity: 0.38; }
  50%      { transform: translate(2px, -3px) rotate(2deg); opacity: 0.18; }
}
.featured-cover .anim-drip-1 {
  animation: drip-grow 6s ease-in-out infinite;
}
.featured-cover .anim-drip-2 {
  animation: drip-grow 8s ease-in-out -3s infinite;
}
@keyframes drip-grow {
  0%, 80%, 100% { transform: scaleY(1); opacity: 0.5; }
  85%, 95%      { transform: translateY(1px) scaleY(1.18); opacity: 0.62; }
}

/* — Şur · halo rings breathe, birds fly small, cypress sways — */
.featured-cover .anim-halo-1,
.featured-cover .anim-halo-2,
.featured-cover .anim-halo-3 {
  transform-box: fill-box;
  transform-origin: 50% 50%;
}
.featured-cover .anim-halo-1 { animation: halo-pulse 4.2s ease-in-out infinite; }
.featured-cover .anim-halo-2 { animation: halo-pulse 5.4s ease-in-out -1.4s infinite; }
.featured-cover .anim-halo-3 { animation: halo-pulse 6.6s ease-in-out -2.8s infinite; }
@keyframes halo-pulse {
  0%, 100% { transform: scale(1);    opacity: var(--haloop, 0.5); }
  50%      { transform: scale(1.04); opacity: 0.18; }
}
.featured-cover .anim-bird-1 {
  transform-box: fill-box; transform-origin: 50% 50%;
  animation: bird-flap 0.9s ease-in-out infinite;
}
.featured-cover .anim-bird-2 {
  transform-box: fill-box; transform-origin: 50% 50%;
  animation: bird-flap 1.1s ease-in-out -0.3s infinite;
}
@keyframes bird-flap {
  0%, 100% { transform: scaleY(1)    translateY(0); }
  50%      { transform: scaleY(0.55) translateY(-1px); }
}
.featured-cover .anim-cypress {
  transform-box: fill-box; transform-origin: 50% 100%;
  animation: cypress-sway 5.2s ease-in-out infinite;
}
@keyframes cypress-sway {
  0%, 100% { transform: rotate(-1deg); }
  50%      { transform: rotate( 1deg); }
}

/* — Çahargah · sunburst rotates slowly, center dot pulses — */
.featured-cover .anim-sunburst {
  transform-box: fill-box;
  transform-origin: 50% 50%;
  animation: sunburst-spin 60s linear infinite;
}
@keyframes sunburst-spin { to { transform: rotate(360deg); } }
.featured-cover .anim-cah-center {
  transform-box: fill-box; transform-origin: 50% 50%;
  animation: cah-pulse 2.6s ease-in-out infinite;
}
@keyframes cah-pulse {
  0%, 100% { transform: scale(1);   opacity: 1; }
  50%      { transform: scale(1.7); opacity: 0.55; }
}

/* — Rast · compass needles wobble like a settling instrument — */
.featured-cover .anim-needles {
  transform-box: fill-box;
  transform-origin: 50% 50%;
  animation: needle-wobble 5.6s ease-in-out infinite;
}
@keyframes needle-wobble {
  0%, 100% { transform: rotate(-1.2deg); }
  30%      { transform: rotate( 0.6deg); }
  60%      { transform: rotate(-0.4deg); }
  80%      { transform: rotate( 1.0deg); }
}
.featured-cover .anim-north {
  animation: north-pulse 2.8s ease-in-out infinite;
  transform-box: fill-box;
}
@keyframes north-pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.55; }
}

/* — Segah · inner petals rotate slowly, center heart beats — */
.featured-cover .anim-inner-petals {
  transform-box: fill-box;
  transform-origin: 50% 50%;
  animation: petals-spin 30s linear infinite;
}
@keyframes petals-spin { to { transform: rotate(360deg); } }
.featured-cover .anim-heart {
  transform-box: fill-box; transform-origin: 50% 50%;
  animation: heart-beat 1.4s ease-in-out infinite;
}
@keyframes heart-beat {
  0%, 100% { transform: scale(1);    opacity: 1; }
  20%      { transform: scale(1.35); opacity: 0.95; }
  40%      { transform: scale(1);    opacity: 1; }
  60%      { transform: scale(1.2);  opacity: 0.92; }
}
