:root {
  /* DESIGN FONT TOKEN: IBM Plex Mono** */
  --navy: #071326;
  --black: #020712;
  --silver: #C7CCD8;
  --pewter: #7C8494;
  --magenta: #D84FD6;
  --cyan: #55DDEB;
  --cream: #E7DDC8;
  --violet: #3D2E72;
  --display: 'Cormorant Garamond', Georgia, serif;
  --serif: 'Libre Baskerville', Georgia, serif;
  --mono: 'IBM Plex Mono', 'Courier New', monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--cream);
  background: linear-gradient(135deg, #071326 0%, #020712 58%, #3D2E72 100%);
  font-family: var(--serif);
}

body.opened .cover-photo { transform: translateX(0) rotate(-1.2deg); opacity: 1; }

.ambient, .scanlines {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

.ambient {
  background:
    radial-gradient(circle at 18% 22%, rgba(216,79,214,.22), transparent 34%),
    radial-gradient(circle at 82% 64%, rgba(85,221,235,.18), transparent 34%),
    linear-gradient(90deg, transparent 49.9%, rgba(199,204,216,.26) 50%, transparent 50.1%);
  mix-blend-mode: screen;
  animation: bloom 9s ease-in-out infinite alternate;
}

.scanlines {
  opacity: .16;
  background: repeating-linear-gradient(0deg, rgba(199,204,216,.16) 0 1px, transparent 1px 5px);
}

.running-header {
  position: fixed;
  top: 22px;
  left: 24px;
  right: 24px;
  z-index: 8;
  display: flex;
  justify-content: space-between;
  font: 500 11px/1 var(--mono);
  letter-spacing: .18em;
  text-transform: lowercase;
  color: var(--pewter);
}

.nav-mark {
  color: var(--pewter);
  text-decoration: none;
  padding-bottom: 7px;
  border-bottom: 1px solid rgba(199,204,216,.2);
  transition: color .35s ease, border-color .35s ease, text-shadow .35s ease;
}

.nav-mark.active, .nav-mark:hover {
  color: var(--cyan);
  border-color: var(--magenta);
  text-shadow: 0 0 18px rgba(85,221,235,.48);
}

.monograph { width: 100%; }

.spread {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 1px minmax(0, 1fr);
  padding: 74px 56px 46px;
  isolation: isolate;
  overflow: hidden;
  border-bottom: 1px solid rgba(199,204,216,.16);
}

.spread::before {
  content: attr(data-folio);
  position: absolute;
  right: 42px;
  bottom: 30px;
  font: 11px var(--mono);
  letter-spacing: .28em;
  color: var(--pewter);
}

.page {
  position: relative;
  min-height: calc(100vh - 120px);
  padding: clamp(24px, 4vw, 58px);
}

.fold-line {
  width: 1px;
  min-height: calc(100vh - 120px);
  background: linear-gradient(180deg, transparent, #C7CCD8 12%, #55DDEB 48%, #D84FD6 53%, #C7CCD8 88%, transparent);
  box-shadow: 0 0 28px rgba(199,204,216,.3);
  transform-origin: center;
}

.cover-left { display: flex; flex-direction: column; justify-content: center; }

.catalogue-code, .edge-note, .folio, .section-kicker, .footnote-river, .signature-map, dt, .folio-indicator {
  font-family: var(--mono);
  letter-spacing: .16em;
  text-transform: uppercase;
}

.blink { animation: scannerBlink 1.6s steps(2, end) 1; color: var(--cyan); }

h1, h2 {
  font-family: var(--display);
  font-weight: 600;
  margin: 0;
  letter-spacing: -.045em;
}

h1 {
  font-size: clamp(88px, 16vw, 245px);
  line-height: .78;
  color: var(--cream);
  text-shadow: 0 0 34px rgba(216,79,214,.24);
}

h2 { font-size: clamp(46px, 7vw, 112px); line-height: .86; color: var(--cream); }

p { font-size: clamp(14px, 1.35vw, 18px); line-height: 1.85; color: var(--silver); }

.cover-subtitle { max-width: 520px; margin-top: 34px; }

.scholarly-control {
  width: fit-content;
  margin-top: 30px;
  padding: 12px 18px;
  border: 1px solid rgba(199,204,216,.5);
  background: rgba(2,7,18,.46);
  color: var(--cream);
  font: 500 11px var(--mono);
  letter-spacing: .18em;
  text-transform: lowercase;
  cursor: pointer;
  box-shadow: inset 0 0 22px rgba(85,221,235,.08);
  transition: transform .35s ease, border-color .35s ease, color .35s ease;
}

.scholarly-control:hover { transform: translateX(8px); border-color: var(--cyan); color: var(--cyan); }

.photo-plate {
  position: relative;
  margin: 0;
  border: 1px solid rgba(199,204,216,.42);
  background: rgba(231,221,200,.08);
  box-shadow: 0 28px 70px rgba(0,0,0,.42), inset 0 0 0 12px rgba(231,221,200,.03);
  overflow: hidden;
}

.photo-plate::after, .archive-sleeve::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(231,221,200,.16), transparent 25%, rgba(85,221,235,.09) 60%, rgba(216,79,214,.12));
  mix-blend-mode: screen;
  pointer-events: none;
}

.photo-image {
  min-height: 420px;
  filter: grayscale(.95) contrast(1.15) sepia(.18) hue-rotate(178deg);
  background-size: cover;
  background-position: center;
}

.image-one { background-image: linear-gradient(140deg, rgba(2,7,18,.78), rgba(61,46,114,.28)), radial-gradient(circle at 62% 35%, rgba(231,221,200,.55), transparent 12%), linear-gradient(90deg, transparent 0 18%, rgba(199,204,216,.3) 18% 20%, transparent 20% 58%, rgba(231,221,200,.22) 58% 61%, transparent 61%), repeating-linear-gradient(90deg, #121722 0 28px, #283044 28px 31px, #090e18 31px 55px); }
.image-two { background-image: radial-gradient(ellipse at 36% 34%, rgba(231,221,200,.5), transparent 14%), linear-gradient(132deg, rgba(216,79,214,.24), transparent 42%), repeating-linear-gradient(24deg, #111824 0 18px, #273043 18px 21px, #071326 21px 48px); }
.image-three { background-image: radial-gradient(circle at 44% 45%, rgba(231,221,200,.52), transparent 18%), linear-gradient(130deg, #020712, #3D2E72); }
.image-four { background-image: linear-gradient(90deg, rgba(199,204,216,.42), transparent 18% 82%, rgba(199,204,216,.32)), repeating-linear-gradient(0deg, #071326 0 22px, #1e2740 22px 25px); }
.image-five { background-image: radial-gradient(ellipse at 68% 30%, rgba(85,221,235,.33), transparent 18%), repeating-linear-gradient(130deg, #020712 0 20px, #29324a 20px 24px, #071326 24px 52px); }
.image-six { background-image: linear-gradient(120deg, rgba(216,79,214,.18), transparent 36%, rgba(85,221,235,.18)), radial-gradient(circle at 50% 46%, transparent 0 20%, rgba(231,221,200,.34) 21% 23%, transparent 24%), repeating-linear-gradient(90deg, #071326 0 36px, #202941 36px 39px); }

figcaption { padding: 14px 16px 16px; font: 12px/1.65 var(--serif); color: var(--silver); background: rgba(2,7,18,.62); }

.cover-photo { width: min(520px, 78%); margin: 12vh auto 0; transform: translateX(-34%) rotate(-3deg); opacity: .68; transition: transform 1s cubic-bezier(.2,.8,.2,1), opacity 1s ease; }
.cover-photo .photo-image { min-height: 58vh; }
.edge-note { position: absolute; right: 3vw; top: 14vh; color: var(--pewter); font-size: 10px; writing-mode: vertical-rl; }

.large-plate { height: calc(100vh - 190px); }
.large-plate .photo-image { min-height: calc(100vh - 260px); }
.folio { color: var(--cyan); margin-bottom: 20px; font-size: 11px; }

.text-column { display: flex; flex-direction: column; justify-content: center; max-width: 560px; }
.section-kicker { color: var(--magenta); font-size: 11px; margin: 0 0 22px; }
.pull-quote { font-family: var(--display); font-style: italic; font-size: clamp(25px, 3vw, 42px); line-height: 1.12; color: var(--cream); }

.crop { position: absolute; width: 34px; height: 34px; border-color: var(--cyan); opacity: .8; }
.c1 { top: 14px; left: 14px; border-top: 1px solid; border-left: 1px solid; }
.c2 { top: 14px; right: 14px; border-top: 1px solid; border-right: 1px solid; }
.c3 { bottom: 70px; left: 14px; border-bottom: 1px solid; border-left: 1px solid; }
.c4 { bottom: 70px; right: 14px; border-bottom: 1px solid; border-right: 1px solid; }

.contact-page { display: flex; flex-direction: column; justify-content: center; gap: 38px; }
.contact-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.contact-frame { margin: 0; border: 1px solid rgba(199,204,216,.35); background: rgba(231,221,200,.06); padding: 10px; transform: translateY(28px); transition: transform .8s ease; }
.contact-frame .photo-image { min-height: 250px; }
.spread.in-view .contact-frame { transform: translateY(0); }
.footnote-river { display: grid; gap: 12px; color: var(--pewter); font-size: 10px; line-height: 1.8; border-top: 1px solid rgba(199,204,216,.28); padding-top: 22px; }
.timeline-fold { box-shadow: 0 0 46px rgba(85,221,235,.48); }
.note-card { margin-top: 26px; border-left: 1px solid var(--magenta); padding: 18px 22px; background: rgba(2,7,18,.45); color: var(--silver); font-family: var(--serif); cursor: pointer; max-height: 63px; overflow: hidden; transition: max-height .5s ease, background .5s ease; }
.note-card strong { display: block; color: var(--cyan); font: 11px var(--mono); letter-spacing: .15em; text-transform: uppercase; margin-bottom: 12px; }
.note-card.expanded { max-height: 180px; background: rgba(61,46,114,.42); }

.archive-column { display: flex; flex-direction: column; justify-content: center; }
.sleeve-page { display: grid; place-items: center; }
.archive-sleeve { position: relative; width: min(560px, 90%); min-height: 70vh; border: 1px solid rgba(199,204,216,.38); background: linear-gradient(140deg, rgba(199,204,216,.13), rgba(2,7,18,.46)); padding: 48px 36px; box-shadow: inset 0 0 80px rgba(85,221,235,.08); }
.seal { position: absolute; top: 22px; right: 22px; width: 94px; height: 94px; border: 1px solid var(--magenta); border-radius: 50%; display: grid; place-items: center; text-align: center; color: var(--magenta); font: 11px/1.35 var(--mono); letter-spacing: .14em; transform: rotate(9deg); }
.sleeve-photo { margin-top: 80px; transform: rotate(2deg); }
.signature-map { position: absolute; left: 30px; bottom: 24px; color: var(--pewter); font-size: 10px; }

.colophon-title, .colophon-details { display: flex; flex-direction: column; justify-content: center; }
.colophon-details dl { border-top: 1px solid rgba(199,204,216,.32); }
dt { color: var(--cyan); font-size: 11px; margin-top: 28px; }
dd { margin: 10px 0 0; color: var(--silver); line-height: 1.7; }

.reveal-plate { clip-path: inset(0 100% 0 0); transition: clip-path 1.1s cubic-bezier(.18,.72,.18,1), transform 1s ease, opacity 1s ease; }
.spread.in-view .reveal-plate, .cover-spread.current .reveal-plate { clip-path: inset(0 0 0 0); }
.spread .page > * { opacity: .35; transform: translateY(34px); transition: opacity .9s ease, transform .9s ease; }
.spread.in-view .page > *, .spread.current .page > * { opacity: 1; transform: translateY(0); }

.folio-indicator { position: fixed; right: 24px; top: 50%; z-index: 8; transform: translateY(-50%) rotate(90deg); color: var(--pewter); font-size: 10px; }

@keyframes bloom { from { filter: hue-rotate(0deg) saturate(1); opacity: .72; } to { filter: hue-rotate(22deg) saturate(1.35); opacity: .95; } }
@keyframes scannerBlink { 0%, 18%, 34% { opacity: 0; } 10%, 26%, 100% { opacity: 1; } }

@media (max-width: 820px) {
  .running-header { gap: 14px; overflow: auto; justify-content: flex-start; }
  .spread { grid-template-columns: 1fr; padding: 70px 20px 42px; }
  .fold-line { min-height: 1px; width: 100%; height: 1px; }
  .page { min-height: auto; padding: 28px 8px; }
  .contact-strip { grid-template-columns: 1fr; }
  .cover-photo { width: 96%; }
  .folio-indicator { display: none; }
}
