/* K. — Interactive Poetry Book
   Type: Source Serif 4 (display) + Inter (UI)
   Palette: warm cream paper, deep ink, clay accent */

:root {
  --paper: oklch(0.97 0.012 80);
  --paper-deep: oklch(0.93 0.018 75);
  --ink: oklch(0.18 0.012 60);
  --ink-soft: oklch(0.32 0.012 60);
  --ink-faint: oklch(0.55 0.010 60);
  --rule: oklch(0.85 0.012 70);
  --accent: oklch(0.62 0.13 42);
  --accent-deep: oklch(0.52 0.14 40);

  --serif: "Source Serif 4", "Source Serif Pro", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* subtle paper grain */
  background-image:
    radial-gradient(circle at 20% 10%, oklch(0 0 0 / 0.012) 0, transparent 40%),
    radial-gradient(circle at 80% 70%, oklch(0 0 0 / 0.015) 0, transparent 50%);
}

/* Subtle film grain layer, page-wide */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.06;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.7 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

::selection { background: var(--accent); color: var(--paper); }

a { color: inherit; text-decoration: none; }

/* —— Top nav —— */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 36px;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--paper);
  mix-blend-mode: difference;
  transition: color 0.4s ease;
}
.nav.is-light { color: var(--ink); mix-blend-mode: normal; }
.nav-mark {
  display: flex;
  align-items: center;
  mix-blend-mode: normal;
}
.nav-logo {
  display: block;
  height: 36px;
  width: auto;
  filter: brightness(0) invert(1);
  transition: filter 0.4s ease;
}
.nav.is-light .nav-logo {
  filter: brightness(0);
}
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a { opacity: 0.85; transition: opacity 0.2s; }
.nav-links a:hover { opacity: 1; }

/* —— Hero —— */
.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px 36px 96px;
}

.hero-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero-video::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, oklch(0.10 0.02 50 / 0.69) 0%, oklch(0.10 0.02 50 / 0.24) 35%, oklch(0.10 0.02 50 / 0.99) 100%);
  z-index: 2;
}
.hero-video-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 48px;
  width: 100%;
}

.hero-eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.hero-eyebrow::before {
  content: "";
  width: 36px;
  height: 1px;
  background: currentColor;
}

.hero-title {
  font-family: var(--sans);
  font-weight: 200;
  font-size: clamp(72px, 16vw, 280px);
  line-height: 0.88;
  letter-spacing: -0.04em;
  margin: 0 0 32px;
}
.hero-title em {
  font-style: normal;
  font-weight: 300;
  display: block;
  font-size: 0.42em;
  letter-spacing: 0;
  margin-top: 0.35em;
  opacity: 0.85;
}
.hero-title .char {
  display: inline-block;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.6s;
}

.hero-meta {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.7;
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: right;
}
.hero-meta b { font-weight: 500; opacity: 1; }

.hero-fragment {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.35;
  max-width: 540px;
  opacity: 0.92;
}

.hero-scroll {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  opacity: 0.6;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.hero-scroll::after {
  content: "";
  width: 1px;
  height: 36px;
  background: currentColor;
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* —— Mixer (glass morphism) —— */
.mixer {
  width: 340px;
  padding: 16px 16px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  color: var(--paper);
  font-family: var(--sans);
  position: absolute;
  top: -35px;
  right: -4px;
  z-index: 4;
}
.mixer-decks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.deck {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.deck-label {
  font-size: 9px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  opacity: 0.7;
}
.deck-select {
  width: 100%;
  font-family: var(--sans);
  font-size: 11px;
  padding: 6px 8px;
  background: rgba(0, 0, 0, 0.3);
  color: var(--paper);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  appearance: none;
  cursor: pointer;
  outline: none;
}
.deck-select:focus { border-color: rgba(255, 255, 255, 0.3); }
.deck-select option { background: #1a1a1a; color: #f0eee8; }
.deck-transport {
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
}
.deck-play, .deck-cue {
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: var(--paper);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s, transform 0.15s;
}
.deck-play { width: 36px; height: 36px; }
.deck-cue  { width: 28px; height: 28px; }
.deck-play:hover:not(:disabled), .deck-cue:hover:not(:disabled) { background: rgba(255, 255, 255, 0.16); }
.deck-play:disabled, .deck-cue:disabled { opacity: 0.35; cursor: not-allowed; }
.deck-play.is-playing { background: var(--accent, #DA7756); border-color: transparent; }
.deck-play svg { width: 12px; height: 12px; }
.deck-cue svg { width: 10px; height: 10px; }

.deck-seek {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.deck-seek-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 18px;
  background: transparent;
  outline: none;
  cursor: pointer;
  touch-action: none;
  position: relative;
}
.deck-seek-slider::-webkit-slider-runnable-track {
  height: 3px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 2px;
}
.deck-seek-slider::-moz-range-track {
  height: 3px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 2px;
}
.deck-seek-slider:disabled { opacity: 0.4; cursor: not-allowed; }
.deck-seek-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--accent, #DA7756);
  border: 1px solid rgba(0, 0, 0, 0.2);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  margin-top: -5px;
}
.deck-seek-slider::-moz-range-thumb {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--accent, #DA7756);
  border: 1px solid rgba(0, 0, 0, 0.2);
  cursor: pointer;
}
.deck-time {
  display: flex;
  justify-content: space-between;
  font-size: 8px;
  letter-spacing: 0.1em;
  opacity: 0.6;
  font-variant-numeric: tabular-nums;
}
.deck-vol {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.deck-vol-label {
  font-size: 8px;
  letter-spacing: 0.25em;
  opacity: 0.6;
}
.deck-slider, .crossfade-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 22px;
  background: transparent;
  outline: none;
  cursor: pointer;
  touch-action: none;
}
.deck-slider::-webkit-slider-runnable-track,
.crossfade-slider::-webkit-slider-runnable-track {
  height: 3px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 2px;
}
.deck-slider::-moz-range-track,
.crossfade-slider::-moz-range-track {
  height: 3px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 2px;
}
.deck-slider::-webkit-slider-thumb, .crossfade-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid rgba(0, 0, 0, 0.2);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  margin-top: -7px;
}
.deck-slider::-moz-range-thumb, .crossfade-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid rgba(0, 0, 0, 0.2);
  cursor: pointer;
}
.mixer-crossfade {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.crossfade-labels {
  display: flex;
  justify-content: space-between;
  font-size: 8px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  opacity: 0.6;
  margin-bottom: 6px;
}
.crossfade-labels span:nth-child(2) { opacity: 1; letter-spacing: 0.3em; }

/* —— Section: gallery intro —— */
.intro {
  padding: 140px 36px 80px;
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: end;
}
.intro-label {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.intro-label::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--ink-faint);
}
.intro h2 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(40px, 5vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0;
}
.intro h2 em { font-style: italic; font-weight: 300; color: var(--accent); }
.intro p {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 460px;
  margin: 0;
  text-wrap: pretty;
}

/* —— Gallery grid —— */
.gallery {
  padding: 0 36px 140px;
  max-width: 1400px;
  margin: 0 auto;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 32px 24px;
}

.poem-card {
  position: relative;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.poem-card:hover { transform: translateY(-3px); }

/* Mixed sizes for editorial rhythm */
/* All cards uniform: square, 4 per row */
.poem-card.size-lg,
.poem-card.size-md,
.poem-card.size-sm { grid-column: span 3; }

.poem-media {
  position: relative;
  width: 100%;
  border-radius: 2px;
  overflow: hidden;
  background: var(--ink);
  aspect-ratio: 1 / 1;
}
.poem-card.size-lg .poem-media,
.poem-card.size-md .poem-media,
.poem-card.size-sm .poem-media { aspect-ratio: 1 / 1; }

.poem-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.poem-media-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  color: var(--paper);
  background: linear-gradient(180deg, oklch(0.10 0.02 50 / 0.0) 0%, oklch(0.10 0.02 50 / 0.0) 50%, oklch(0.10 0.02 50 / 0.65) 100%);
}
.poem-media-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.poem-num { opacity: 0.85; }
.poem-play {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: oklch(1 0 0 / 0.15);
  backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  transition: background 0.2s;
}
.poem-card:hover .poem-play { background: var(--accent); }
.poem-play svg { width: 10px; height: 10px; fill: var(--paper); }

.poem-fragment-overlay {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(15px, 1.4vw, 20px);
  line-height: 1.35;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.4s, transform 0.4s;
  text-wrap: pretty;
}
.poem-card:hover .poem-fragment-overlay { opacity: 1; transform: translateY(0); }

.poem-mobile-cta {
  display: none;
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--paper);
  opacity: 0.9;
}

.poem-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 0 2px;
}
.poem-card.size-sm .poem-meta {
  flex-direction: row;
  align-items: baseline;
  gap: 16px;
  gap: 8px;
}
.poem-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 20px;
  letter-spacing: -0.005em;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.poem-print-btn {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border: none;
  background: none;
  padding: 6px 0;
  cursor: pointer;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s;
  flex-shrink: 0;
}
.btn-label-mobile { display: none; }
.poem-print-btn::after {
  content: "→";
  display: inline-block;
  transition: transform 0.2s;
}
.poem-print-btn:hover { color: var(--accent); }
.poem-print-btn:hover::after { transform: translateX(3px); }

/* —— Footer —— */
.footer {
  padding: 80px 36px 60px;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.footer-mark {
  font-family: var(--serif);
  font-style: italic;
  font-size: 32px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
}

/* —— Modal —— */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: oklch(0.10 0.012 50 / 0.7);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.modal-backdrop.is-open { opacity: 1; pointer-events: auto; }

.modal {
  background: var(--paper);
  width: min(1200px, 100%);
  max-height: 96vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  border-radius: 2px;
  box-shadow: 0 40px 80px oklch(0 0 0 / 0.3);
  transform: translateY(20px);
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.modal-backdrop.is-open .modal { transform: translateY(0); }

/* Left panel — video with poem overlaid */
.modal-media {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  min-height: 0;
  aspect-ratio: 1 / 1;
}
.modal-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.modal-poem {
  position: relative;
  z-index: 2;
  height: 100%;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 40px 44px 48px;
  color: var(--paper);
  background: linear-gradient(to top, oklch(0.08 0.01 60 / 0.92) 0%, oklch(0.08 0.01 60 / 0.55) 55%, transparent 100%);
}
.modal-poem .modal-eyebrow { color: oklch(0.70 0.01 80); }
.modal-poem .modal-title { color: var(--paper); }
.modal-poem .modal-poem-body { color: oklch(0.88 0.01 80); }

/* Right panel — print image */
.modal-print-image-wrap {
  flex: 1 1 0;
  min-height: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 32px 16px;
}
.modal-print-image {
  max-width: 100%;
  max-height: 100%;
  height: auto;
  display: block;
  border-radius: 2px;
  box-shadow: 0 8px 32px oklch(0 0 0 / 0.18);
}

.modal-print {
  background: var(--paper-deep);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 0 0 28px;
  gap: 0;
  overflow: hidden;
}
.modal-print-info {
  width: 100%;
  padding: 20px 32px 0;
  display: flex;
  justify-content: center;
}

.print-canvas {
  position: relative;
  width: 100%;
  max-width: 380px;
  aspect-ratio: 3 / 4;
  background: var(--paper);
  box-shadow: 0 20px 40px oklch(0 0 0 / 0.18), 0 4px 8px oklch(0 0 0 / 0.08);
  display: flex;
  flex-direction: column;
  padding: 40px 36px;
  font-family: var(--serif);
  color: var(--ink);
  overflow: hidden;
}
.print-frame {
  position: absolute;
  inset: 14px;
  border: 1px solid oklch(0 0 0 / 0.08);
  pointer-events: none;
}
.print-num {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 24px;
}
.print-title {
  font-family: var(--serif);
  font-weight: 300;
  font-style: italic;
  font-size: 28px;
  line-height: 1.05;
  margin: 0 0 28px;
  letter-spacing: -0.01em;
}
.print-body {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.55;
  flex: 1;
  text-wrap: pretty;
}
.print-body p { margin: 0 0 1em; }
.print-body p:last-child { margin: 0; }
.print-foot {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: 20px;
}
.print-mark {
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
}

.modal-info {
  padding: 56px 48px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.modal-eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.modal-eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--ink-faint);
}
.modal-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 52px;
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
}
.modal-poem-body {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 20px;
  line-height: 1.65;
  color: var(--ink);
  margin: 0 0 36px;
  max-width: 380px;
  text-wrap: pretty;
}
.modal-poem-body p {
  margin: 0 0 1.4em;
}
.modal-poem-body p:last-child { margin-bottom: 0; }
.modal-poem-placeholder { color: var(--ink-faint); }
.modal-fragment {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 22px;
  line-height: 1.4;
  color: var(--ink-soft);
  margin: 0 0 36px;
  max-width: 380px;
  text-wrap: pretty;
}
.modal-section-label {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 16px;
}
.modal-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 24px;
  margin-bottom: 36px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--rule);
}
.spec-item label {
  display: block;
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 4px;
}
.spec-item span {
  font-family: var(--serif);
  font-size: 16px;
  color: var(--ink);
}

.download-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: auto;
}
.dl-btn {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 16px 18px;
  border: 1px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.2s;
}
.dl-btn:hover { background: var(--ink); color: var(--paper); }
.dl-btn.primary { background: var(--ink); color: var(--paper); }
.dl-btn.primary:hover { background: var(--accent); border-color: var(--accent); }
.dl-btn svg { width: 12px; height: 12px; }

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--rule);
  cursor: pointer;
  display: grid;
  place-items: center;
  z-index: 10;
  transition: all 0.2s;
}
.modal-close:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.modal-close svg { width: 12px; height: 12px; }

/* —— scroll-driven hero typography —— */
.hero-title .char[data-i="0"] { transform: translateY(var(--scroll-y, 0)); }

/* responsive */
@media (max-width: 900px) {
  .nav { padding: 18px 20px; }
  .nav-links { gap: 18px; }
  .hero { padding: 0 20px 48px; }
  .hero-content { grid-template-columns: 1fr; gap: 24px; }
  .mixer { position: static; width: 100%; max-width: 360px; margin-top: 24px; }
  .hero-meta { text-align: left; }
  .intro { grid-template-columns: 1fr; gap: 32px; padding: 80px 20px 56px; }
  .gallery { padding: 0 20px 80px; }
  .gallery-grid { gap: 24px 16px; }
  .poem-card.size-lg, .poem-card.size-md, .poem-card.size-sm { grid-column: span 12; }
  .poem-mobile-cta { display: none; }
  .poem-fragment-overlay { opacity: 1; transform: translateY(0); font-size: clamp(25px, 5vw, 34px); }
  .poem-meta,
  .poem-card.size-sm .poem-meta,
  .poem-card.size-md .poem-meta,
  .poem-card.size-lg .poem-meta { flex-direction: column; align-items: flex-start; gap: 4px; }
  .poem-print-btn { padding: 2px 0; }
  .btn-label-desktop { display: none; }
  .btn-label-mobile { display: inline; }
  .modal { grid-template-columns: 1fr; max-height: 92vh; overflow-y: auto; overflow-anchor: none; }
  .modal-media { max-height: none; }
  .modal-poem { justify-content: flex-start; overflow-anchor: none; background: linear-gradient(to bottom, oklch(0.08 0.01 60 / 0.92) 0%, oklch(0.08 0.01 60 / 0.55) 55%, transparent 100%); }
  .modal-print { padding: 32px 24px 0; }
  .modal-print-info { padding-bottom: 32px; }
  .footer { flex-direction: column; align-items: flex-start; gap: 24px; padding: 56px 20px; }
}
