/* ============================================================
   DER IMAGINEER — Clive Barker × Fable 5
   Design & Code: Claude Fable 5 (Anthropic)
   ============================================================ */

:root {
  --ink: #0b0908;
  --ink-2: #14100e;
  --bone: #e9e1d2;
  --bone-dim: #aca08c;
  --blood: #a01c24;
  --blood-bright: #d43a3a;
  --gold: #c9a45c;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", monospace;
  --gutter: clamp(1.25rem, 4vw, 4rem);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: auto; }

body {
  background: var(--ink);
  color: var(--bone);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--blood); color: var(--bone); }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.mono {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 300;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bone-dim);
}

em { font-style: italic; }

/* ---------- Loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 200;
  background: var(--ink);
  display: flex; align-items: center; justify-content: center;
}
.loader__inner {
  display: flex; flex-direction: column; align-items: center; gap: 1rem;
}
.loader__word {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.3rem, 3.2vw, 2.4rem);
  letter-spacing: 0.08em;
  color: var(--bone);
  opacity: 0;
  text-align: center;
  max-width: 90vw;
  line-height: 1.3;
}
.loader__credit {
  font-size: 0.6rem;
  color: var(--bone-dim);
  opacity: 0;
}
.loader__count {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--blood-bright);
}

/* ---------- Fixed stage & grain ---------- */
#stage {
  position: fixed; inset: 0;
  width: 100vw; height: 100vh;
  z-index: 0;
  pointer-events: none;
}
.grain {
  position: fixed; inset: -50%;
  z-index: 90;
  pointer-events: none;
  opacity: 0.055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  animation: grainShift 0.9s steps(4) infinite;
}
@keyframes grainShift {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-2%, 3%); }
  50% { transform: translate(3%, -2%); }
  75% { transform: translate(-3%, -3%); }
  100% { transform: translate(2%, 2%); }
}

/* ---------- Cursor ---------- */
.cursor {
  position: fixed; top: 0; left: 0;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--blood-bright);
  z-index: 300;
  pointer-events: none;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
  display: flex; align-items: center; justify-content: center;
  transition: width 0.25s ease, height 0.25s ease, background 0.25s ease;
}
.cursor.is-hover { width: 56px; height: 56px; background: var(--bone); }
.cursor__label {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0;
}
.cursor.is-hover .cursor__label { opacity: 1; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.4rem var(--gutter);
  mix-blend-mode: difference;
}
.nav__logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 0.18em;
  color: var(--bone);
}
.nav__links { display: flex; gap: clamp(1rem, 2.5vw, 2.4rem); }
.nav__links a {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bone);
  position: relative;
  padding-bottom: 3px;
}
.nav__links a::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s cubic-bezier(0.65, 0, 0.35, 1);
}
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__fable { color: var(--blood-bright) !important; }
.nav__lang {
  background: none;
  border: 1px solid rgba(233, 225, 210, 0.4);
  color: var(--bone);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  padding: 0.35rem 0.7rem;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease;
}
.nav__lang:hover { background: var(--bone); color: var(--ink); }
.nav__links a.is-active { color: var(--gold); }
.nav__links a.is-active::after { transform: scaleX(1); background: var(--gold); }
@media (max-width: 720px) {
  .nav__links a:nth-child(-n+3) { display: none; }
}

/* ---------- Layout base ---------- */
main { position: relative; z-index: 10; }

.section {
  position: relative;
  padding: clamp(6rem, 14vh, 11rem) var(--gutter);
  max-width: 1500px;
  margin: 0 auto;
}
.section__head {
  display: flex; align-items: baseline; gap: 1.6rem;
  margin-bottom: clamp(2.5rem, 6vh, 4.5rem);
}
.section__num {
  color: var(--blood-bright);
  font-size: 0.8rem;
}
.section__num::after {
  content: "";
  display: inline-block;
  width: 3.5rem; height: 1px;
  background: var(--blood);
  vertical-align: middle;
  margin-left: 1rem;
  opacity: 0.6;
}
.section__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: 0.01em;
}
.section__title em { color: var(--gold); font-weight: 300; }
.section__intro {
  max-width: 46ch;
  color: var(--bone-dim);
  margin-bottom: clamp(2rem, 5vh, 3.5rem);
  font-size: 1.02rem;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 0 var(--gutter);
  max-width: 1500px;
  margin: 0 auto;
}
.hero__eyebrow { margin-bottom: clamp(1.5rem, 4vh, 3rem); color: var(--bone-dim); }
.hero__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.6rem, 11vw, 9.5rem);
  line-height: 0.94;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
.hero__line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.hero__word { display: inline-block; }
.hero__word .char { display: inline-block; transform: translateY(115%); }
@media (max-width: 720px) {
  .hero__title { font-size: clamp(2.1rem, 11.5vw, 3.4rem); }
}
.hero__subtitle {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  color: var(--gold);
  font-size: clamp(1.1rem, 2.2vw, 1.6rem);
  margin-top: clamp(0.6rem, 1.6vh, 1.1rem);
}
.hero__sub {
  display: flex; flex-wrap: wrap; align-items: flex-end;
  justify-content: space-between; gap: 1.5rem;
  margin-top: clamp(2rem, 6vh, 4rem);
}
.hero__lede {
  max-width: 40ch;
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  color: var(--bone);
}
.hero__meta { color: var(--bone-dim); }
.hero__scrollhint {
  position: absolute;
  bottom: 2.2rem; left: var(--gutter);
  display: flex; align-items: center; gap: 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bone-dim);
}
.hero__scrollline {
  width: 5rem; height: 1px;
  background: var(--bone-dim);
  transform-origin: left;
  animation: scrollPulse 2.2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0% { transform: scaleX(0); opacity: 0; }
  40% { transform: scaleX(1); opacity: 1; }
  100% { transform: scaleX(1) translateX(20%); opacity: 0; }
}

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden;
  border-top: 1px solid rgba(233, 225, 210, 0.12);
  border-bottom: 1px solid rgba(233, 225, 210, 0.12);
  padding: 0.85rem 0;
  background: rgba(11, 9, 8, 0.4);
  backdrop-filter: blur(2px);
}
.marquee__track {
  display: flex;
  white-space: nowrap;
  animation: marquee 28s linear infinite;
}
.marquee__track span {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--bone-dim);
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Bio ---------- */
.bio__grid {
  display: grid;
  grid-template-columns: minmax(260px, 5fr) 7fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}
.bio__figure { position: sticky; top: 12vh; }
.bio__imgwrap {
  overflow: hidden;
  border: 1px solid rgba(233, 225, 210, 0.14);
}
.bio__imgwrap img {
  width: 100%;
  transform: scale(1.12);
  filter: saturate(0.9) contrast(1.05);
}
.bio__figure figcaption { margin-top: 0.8rem; font-size: 0.62rem; }
.bio__lead {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  font-weight: 400;
  line-height: 1.32;
  margin-bottom: 2rem;
}
.bio__text p:not(.bio__lead) {
  color: var(--bone-dim);
  max-width: 58ch;
  margin-bottom: 1.4rem;
  font-size: 1rem;
}
.bio__text em { color: var(--bone); }
.bio__facts {
  margin-top: 3rem;
  border-top: 1px solid rgba(233, 225, 210, 0.14);
}
.bio__facts li {
  display: flex; gap: 2rem;
  padding: 0.95rem 0;
  border-bottom: 1px solid rgba(233, 225, 210, 0.14);
  font-size: 0.72rem;
}
.bio__facts li span { color: var(--blood-bright); min-width: 3.2rem; }
@media (max-width: 900px) {
  .bio__grid { grid-template-columns: 1fr; }
  .bio__figure { position: relative; top: 0; max-width: 420px; }
}

/* ---------- Werke ---------- */
.werke { position: relative; }
.worklist { border-top: 1px solid rgba(233, 225, 210, 0.16); }
.workrow { border-bottom: 1px solid rgba(233, 225, 210, 0.16); }
.workrow__inner {
  display: grid;
  grid-template-columns: 5rem 1fr auto;
  align-items: baseline;
  gap: 1.5rem;
  padding: clamp(1.2rem, 3vh, 2rem) 0.5rem;
  cursor: pointer;
  transition: padding-left 0.4s cubic-bezier(0.65, 0, 0.35, 1);
}
.workrow:hover .workrow__inner { padding-left: 1.6rem; }
.workrow__num { color: var(--blood-bright); font-size: 0.65rem; }
.workrow__title {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 4.2vw, 3.4rem);
  font-weight: 400;
  line-height: 1.05;
  transition: color 0.3s ease, font-style 0.3s ease;
}
.workrow:hover .workrow__title { color: var(--gold); font-style: italic; }
.workrow__meta { font-size: 0.65rem; }
.workrow__meta--own { color: var(--gold); }
/* ---------- Film ---------- */
.film__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1px;
  background: rgba(233, 225, 210, 0.14);
  border: 1px solid rgba(233, 225, 210, 0.14);
}
.filmcard {
  background: var(--ink);
  padding: clamp(1.6rem, 3vw, 2.6rem);
  position: relative;
  transition: background 0.4s ease;
}
.filmcard:hover { background: var(--ink-2); }
.filmcard::before {
  content: "";
  position: absolute; top: 0; left: 0;
  width: 100%; height: 2px;
  background: var(--blood);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s cubic-bezier(0.65, 0, 0.35, 1);
}
.filmcard:hover::before { transform: scaleX(1); }
.filmcard__year { color: var(--blood-bright); }
.filmcard__title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
  font-weight: 500;
  margin: 0.7rem 0 0.9rem;
}
.filmcard__text {
  font-size: 0.92rem;
  color: var(--bone-dim);
  margin-bottom: 1.6rem;
  min-height: 4.2em;
}
.filmcard__text em { color: var(--bone); }
.filmcard__role { font-size: 0.6rem; color: var(--gold); }

/* ---------- Gallery (horizontal scroll) ---------- */
.gallery { position: relative; }
.gallery__pin {
  height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  overflow: hidden;
  padding: clamp(4rem, 10vh, 6rem) 0 0;
}
.gallery__head {
  display: flex; align-items: baseline; gap: 1.6rem;
  padding: 0 var(--gutter);
  margin-bottom: clamp(1.5rem, 4vh, 3rem);
  flex-wrap: wrap;
}
.gallery__hint { margin-left: auto; font-size: 0.6rem; }
.gallery__track {
  display: flex; align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  padding: 0 var(--gutter);
  will-change: transform;
  width: max-content;
}
.artitem { flex: 0 0 auto; cursor: pointer; }
.artitem__frame {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(233, 225, 210, 0.16);
  background: var(--ink-2);
}
.artitem img {
  height: clamp(300px, 52vh, 520px);
  width: auto;
  filter: saturate(0.92);
  transform: scale(1.06);
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1), filter 0.8s ease;
}
.artitem:hover img { transform: scale(1.01); filter: saturate(1.05); }
.artitem__caption {
  display: flex; justify-content: space-between; gap: 1rem;
  margin-top: 0.8rem;
}
.artitem__title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-style: italic;
}
.artitem__meta { font-size: 0.56rem; text-align: right; }
.artitem__idx {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--blood-bright);
  letter-spacing: 0.18em;
  display: block;
  margin-bottom: 0.5rem;
}
.gallery__end {
  flex: 0 0 auto;
  padding-right: 10vw;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  font-style: italic;
  color: var(--bone-dim);
  max-width: 30ch;
  line-height: 1.3;
}

/* ---------- Fable ---------- */
.fable {
  border-top: 1px solid rgba(233, 225, 210, 0.12);
}
.fable__grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}
.fable__text p:not(.bio__lead) {
  color: var(--bone-dim);
  max-width: 56ch;
  margin-bottom: 1.4rem;
}
.fable__text strong { font-weight: 500; color: var(--blood-bright); }
.fable__stack {
  margin-top: 2.6rem;
  border-top: 1px solid rgba(233, 225, 210, 0.14);
}
.fable__stack li {
  display: flex; gap: 2rem;
  padding: 0.95rem 0;
  border-bottom: 1px solid rgba(233, 225, 210, 0.14);
  font-size: 0.72rem;
}
.fable__stack li span { color: var(--gold); min-width: 5.5rem; }
.fable__mark { text-align: center; }
.fable__sigil {
  position: relative;
  width: clamp(200px, 22vw, 300px);
  aspect-ratio: 1;
  margin: 0 auto 1.4rem;
  border: 1px solid rgba(233, 225, 210, 0.2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  animation: sigilSpin 40s linear infinite;
}
.fable__sigil::before {
  content: "";
  position: absolute; inset: 12%;
  border: 1px dashed rgba(212, 58, 58, 0.4);
  border-radius: 50%;
}
.fable__f, .fable__five {
  font-family: var(--font-display);
  font-size: clamp(4rem, 7vw, 6.5rem);
  line-height: 1;
}
.fable__f { font-style: italic; color: var(--bone); }
.fable__five { color: var(--blood-bright); margin-left: 0.1em; }
@keyframes sigilSpin { to { transform: rotate(360deg); } }
@media (max-width: 900px) {
  .fable__grid { grid-template-columns: 1fr; }
}

/* ---------- Footer ---------- */
.footer {
  padding: clamp(5rem, 12vh, 9rem) var(--gutter) 3rem;
  border-top: 1px solid rgba(233, 225, 210, 0.12);
  text-align: center;
}
.footer__big {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 8vw, 7rem);
  line-height: 1.02;
  margin-bottom: 3.5rem;
}
.footer__big em { color: var(--blood-bright); }
.footer__meta p { margin-bottom: 0.5rem; font-size: 0.62rem; }

/* ---------- News page ---------- */
.newshero {
  min-height: 52vh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: clamp(7rem, 18vh, 11rem) var(--gutter) clamp(2.5rem, 6vh, 4rem);
  max-width: 1500px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}
.newshero__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(3rem, 10vw, 8.5rem);
  line-height: 0.94;
  text-transform: uppercase;
  margin-top: clamp(1rem, 3vh, 2rem);
}
.newshero__title em { color: var(--blood-bright); font-style: italic; font-weight: 300; }
.newshero__sub {
  display: flex; flex-wrap: wrap; align-items: flex-end;
  justify-content: space-between; gap: 1.5rem;
  margin-top: clamp(1.5rem, 4vh, 2.5rem);
}
.newshero__lede { max-width: 52ch; color: var(--bone-dim); font-size: 1rem; }
.newshero__range { color: var(--blood-bright); }

.newslist {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(2rem, 6vh, 4rem) var(--gutter) clamp(4rem, 10vh, 7rem);
}
.newsyear {
  font-family: var(--font-display);
  font-size: clamp(5rem, 14vw, 12rem);
  font-weight: 300;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(233, 225, 210, 0.22);
  user-select: none;
  margin: clamp(2.5rem, 7vh, 5rem) 0 clamp(1rem, 3vh, 2rem);
}
@supports not (-webkit-text-stroke: 1px black) {
  .newsyear { color: rgba(233, 225, 210, 0.14); }
}
.newsgroup {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: clamp(1.2rem, 3vw, 3rem);
  border-top: 1px solid rgba(233, 225, 210, 0.14);
  padding: clamp(1.4rem, 3.5vh, 2.2rem) 0;
}
.newsgroup__month {
  color: var(--blood-bright);
  font-size: 0.72rem;
  position: sticky;
  top: 6.5rem;
  align-self: start;
}
.newsitem { border-bottom: 1px solid rgba(233, 225, 210, 0.09); }
.newsitem:last-child { border-bottom: none; }
.newsitem a {
  display: block;
  padding: 0.9rem 0.4rem;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
  font-weight: 400;
  line-height: 1.35;
  color: var(--bone);
  transition: color 0.3s ease, padding-left 0.35s cubic-bezier(0.65, 0, 0.35, 1);
}
.newsitem a:hover { color: var(--gold); padding-left: 1.1rem; }
.newsitem__ext {
  color: var(--blood-bright);
  font-size: 0.7em;
}
.news-backwrap {
  text-align: center;
  padding: 0 var(--gutter) clamp(3rem, 7vh, 5rem);
}
.news-backlink {
  display: inline-block;
  border: 1px solid rgba(233, 225, 210, 0.3);
  padding: 0.7rem 1.3rem;
  transition: background 0.3s ease, color 0.3s ease;
}
.news-backlink:hover { background: var(--bone); color: var(--ink); }
.reveal-news { opacity: 0; }
@media (max-width: 800px) {
  .newsgroup { grid-template-columns: 1fr; gap: 0.6rem; }
  .newsgroup__month { position: static; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal-news { opacity: 1; }
}

/* ---------- Novels overview ---------- */
.novelsgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: clamp(1.5rem, 3vw, 3rem);
  max-width: 1500px;
  margin: 0 auto;
  padding: clamp(2rem, 6vh, 4rem) var(--gutter) clamp(4rem, 10vh, 7rem);
}
.novelcard {
  display: flex; flex-direction: column;
  gap: 0.55rem;
}
.novelcard__num { color: var(--blood-bright); font-size: 0.62rem; }
.novelcard__coverwrap {
  overflow: hidden;
  border: 1px solid rgba(233, 225, 210, 0.16);
  background: var(--ink-2);
  aspect-ratio: 2 / 3;
  display: flex; align-items: center; justify-content: center;
}
.novelcard__coverwrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.92);
  transform: scale(1.04);
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1), filter 0.7s ease;
}
.novelcard:hover .novelcard__coverwrap img { transform: scale(1.0); filter: saturate(1.05); }
.novelcard__coverwrap--empty span {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(4rem, 8vw, 7rem);
  color: rgba(233, 225, 210, 0.18);
}
.novelcard__title {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 1.7vw, 1.5rem);
  line-height: 1.15;
  transition: color 0.3s ease;
}
.novelcard:hover .novelcard__title { color: var(--gold); font-style: italic; }
.novelcard__sub {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--bone-dim);
}
.novelcard__year { font-size: 0.62rem; }

/* ---------- Novel detail ---------- */
.novelhero { min-height: 42vh; }
.novelhero__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.2rem, 7vw, 6rem);
  line-height: 1.0;
  margin-top: clamp(1rem, 3vh, 2rem);
  max-width: 18ch;
}
.noveldetail {
  max-width: 1500px;
  margin: 0 auto;
  padding: clamp(1rem, 4vh, 3rem) var(--gutter) clamp(3rem, 8vh, 6rem);
}
.noveldetail__grid {
  display: grid;
  grid-template-columns: minmax(220px, 4fr) 8fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
  margin-bottom: clamp(3rem, 8vh, 6rem);
}
.noveldetail__leadwrap { position: sticky; top: 12vh; max-width: 380px; }
.noveldetail__leadwrap figcaption { margin-top: 0.7rem; font-size: 0.58rem; }
.noveldetail__h {
  color: var(--gold);
  font-size: 0.72rem;
  margin: 2.4rem 0 1rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(233, 225, 210, 0.14);
}
.noveldetail__h:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.noveldetail__syn {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.1vw, 1.75rem);
  font-weight: 400;
  line-height: 1.4;
}
.novelnotes { margin-top: 0.4rem; }
.novelnote {
  padding: 1.1rem 0;
  border-bottom: 1px solid rgba(233, 225, 210, 0.1);
}
.novelnote:last-child { border-bottom: none; }
.novelnote p:first-child { color: var(--bone-dim); font-size: 0.98rem; max-width: 62ch; }
.novelnote__src { margin-top: 0.5rem; font-size: 0.58rem; color: var(--blood-bright); }
.coversection { margin-bottom: clamp(2.5rem, 6vh, 4rem); }
.coversection__head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
  margin-bottom: 1.4rem;
}
.section__title--small { font-size: clamp(1.5rem, 3vw, 2.4rem); }
.coversection__hint { font-size: 0.58rem; }
.coverrow {
  display: flex;
  gap: clamp(1rem, 2vw, 1.8rem);
  overflow-x: auto;
  padding-bottom: 1rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(233, 225, 210, 0.25) transparent;
}
.coverfig {
  flex: 0 0 auto;
  width: clamp(130px, 14vw, 190px);
  cursor: pointer;
}
.coverfig img {
  width: 100%;
  border: 1px solid rgba(233, 225, 210, 0.16);
  filter: saturate(0.95);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), filter 0.5s ease;
}
.coverfig:hover img { transform: translateY(-6px); filter: saturate(1.05); }
.coverfig figcaption {
  margin-top: 0.55rem;
  font-size: 0.55rem;
  line-height: 1.5;
  color: var(--bone-dim);
}
.coversection__credit {
  font-size: 0.56rem;
  color: var(--bone-dim);
  margin-bottom: clamp(2rem, 5vh, 3.5rem);
}
.novelpager {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  border-top: 1px solid rgba(233, 225, 210, 0.14);
  padding-top: 1.6rem;
}
.novelpager__link {
  font-size: 0.62rem;
  transition: color 0.3s ease;
}
.novelpager__link:hover { color: var(--gold); }

.section__year {
  font-size: 0.75rem;
  color: var(--blood-bright);
  margin-left: 0.8rem;
  letter-spacing: 0.18em;
}

/* ---------- Poetry page ---------- */
.poemsbib .section__intro { max-width: 52ch; }
.poemlist { border-top: 1px solid rgba(233, 225, 210, 0.16); }
.poemrow {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 1rem 2rem;
  align-items: baseline;
  padding: 1rem 0.4rem;
  border-bottom: 1px solid rgba(233, 225, 210, 0.1);
}
.poemrow__title {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1.8vw, 1.5rem);
  line-height: 1.3;
}
.poemrow__title em { color: var(--bone-dim); font-size: 0.85em; }
.poemrow__where {
  font-size: 0.6rem;
  color: var(--bone-dim);
  text-align: right;
  line-height: 1.7;
}
@media (max-width: 800px) {
  .poemrow { grid-template-columns: 1fr; gap: 0.3rem; }
  .poemrow__where { text-align: left; }
}
.noveldetail__grid--noimg { grid-template-columns: 1fr; }
@media (max-width: 900px) {
  .noveldetail__grid { grid-template-columns: 1fr; }
  .noveldetail__leadwrap { position: relative; top: 0; max-width: 280px; }
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0;
  z-index: 150;
  display: flex; align-items: center; justify-content: center;
  visibility: hidden;
  pointer-events: none;
}
.lightbox.is-open { visibility: visible; pointer-events: auto; }
.lightbox__backdrop {
  position: absolute; inset: 0;
  background: rgba(6, 5, 4, 0.92);
  backdrop-filter: blur(6px);
  opacity: 0;
}
.lightbox__figure {
  position: relative;
  z-index: 2;
  max-width: min(88vw, 900px);
  max-height: 86vh;
  display: flex; flex-direction: column;
  opacity: 0;
}
.lightbox__figure img {
  max-height: 72vh;
  width: auto;
  max-width: 100%;
  margin: 0 auto;
  border: 1px solid rgba(233, 225, 210, 0.22);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.7);
}
.lightbox__figure figcaption {
  display: flex; align-items: baseline; gap: 1.4rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.2rem;
}
.lightbox__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-style: italic;
}
.lightbox__meta { font-size: 0.62rem; }
.lightbox__credit { font-size: 0.62rem; color: var(--blood-bright); }
.lightbox__close {
  position: absolute;
  top: 1.6rem; right: var(--gutter);
  z-index: 3;
  background: none;
  border: 1px solid rgba(233, 225, 210, 0.3);
  color: var(--bone);
  padding: 0.6rem 1.1rem;
  cursor: pointer;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: background 0.3s ease, color 0.3s ease;
}
.lightbox__close:hover { background: var(--bone); color: var(--ink); }

/* ---------- Reveal defaults (JS animates) ---------- */
.reveal, .reveal-line, .reveal-img { opacity: 0; }
.no-js .reveal, .no-js .reveal-line, .no-js .reveal-img { opacity: 1; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
  .reveal, .reveal-line, .reveal-img { opacity: 1; }
}
