@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@500;600&family=DM+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,600&family=Vazirmatn:wght@400;500;600&display=swap');

:root {
  --bg: #101317;
  --panel: #161a20;
  --ivory: #f2ede2;
  --ivory-alt: #eae3d4;
  --ivory-gutter: #ded4bf;
  --gold: #caa56a;
  --gold-bright: #d9b67c;
  --gold-dim: #997c4e;
  --ink: #23201b;
  --ink-secondary: #5a5449;
  --muted: #a19d94;
  --border-light: rgba(255, 255, 255, 0.12);
  --pencil: #48433a;
  --pencil-on-dark: #d5ccbe;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: #f0ebe1;
  background: var(--bg);
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-image:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.08) 0.65px, transparent 0.85px),
    linear-gradient(135deg, #151b22 0%, #0f1216 65%);
  background-size: 20px 20px, 100% 100%;
  min-height: 100vh;
  overflow-x: hidden;
}

button { font: inherit; cursor: pointer; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
a { color: inherit; text-decoration: none; }

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 99;
  opacity: 0.05;
  background-image: url('data:image/svg+xml,%3Csvg viewBox="0 0 130 130" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="n"%3E%3CfeTurbulence type="fractalNoise" baseFrequency=".73" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23n)" opacity=".3"/%3E%3C/svg%3E');
}

/* HEADER & BRAND */
.brandbar {
  min-height: 86px;
  padding: 22px max(5vw, 24px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  border-bottom: 1px solid var(--border-light);
  max-width: 1480px;
  margin: 0 auto;
}

.brand strong {
  font-family: Georgia, serif;
  font-size: 28px;
  letter-spacing: -1.5px;
  color: #fff;
}
.brand strong span { font-weight: 400; color: var(--gold-bright); }
.brand small {
  display: block;
  color: #b2aaa0;
  font-size: 9.5px;
  letter-spacing: 2px;
  margin-top: 3px;
  font-family: 'DM Sans', sans-serif;
}

.micro-head {
  font-size: 9.5px;
  letter-spacing: 2.2px;
  color: #9f9b93;
}
.micro-head b { color: var(--gold); }

.index-btn {
  background: transparent;
  color: var(--ivory);
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 10px 18px;
  letter-spacing: 2px;
  font-size: 10.5px;
  font-weight: 600;
  transition: all 0.25s ease;
}
.index-btn:hover {
  background: rgba(202, 165, 106, 0.12);
  border-color: var(--gold);
}
.index-btn span {
  font-size: 16px;
  vertical-align: middle;
  margin-left: 10px;
}

/* HERO SECTION */
.hero {
  display: grid;
  grid-template-columns: minmax(360px, 0.8fr) minmax(500px, 1.2fr);
  min-height: 680px;
  max-width: 1480px;
  margin: 0 auto;
  padding: 40px max(5vw, 24px) 30px;
  align-items: center;
  position: relative;
}

.hero-copy {
  z-index: 2;
}

.eyebrow, .section-top, .stage-label, .hero-stat {
  font-size: 9.5px;
  letter-spacing: 2.2px;
  color: #bfb8ad;
}
.eyebrow i { color: var(--gold); font-style: normal; }

h1, h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 500;
}

h1 {
  font-size: clamp(3.6rem, 5.2vw, 6.2rem);
  line-height: 1.02;
  letter-spacing: -0.05em;
  margin: 26px 0 20px;
}
h1 em {
  font-weight: 400;
  color: var(--gold-bright);
  font-style: italic;
}

.hero-copy p {
  max-width: 430px;
  color: #b8b4ab;
  font-size: 15px;
  line-height: 1.7;
}

.hero-stat {
  margin-top: 54px;
  border-top: 1px solid rgba(202, 165, 106, 0.25);
  display: inline-block;
  padding-top: 16px;
}
.hero-stat span {
  color: var(--gold);
  padding: 0 16px;
}

/* PENCIL ANNOTATIONS */
.pencil-note {
  font-family: 'Vazirmatn', 'Caveat', cursive;
  font-size: 16.5px;
  font-weight: 500;
  line-height: 1.35;
  user-select: none;
  pointer-events: none;
}

.pencil-note.on-dark {
  color: var(--pencil-on-dark);
  opacity: 0.88;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.6));
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.hero-pencil {
  margin-top: 28px;
  transform: rotate(-3deg);
}

.pencil-arrow {
  position: absolute;
  top: 14%;
  left: 2%;
  z-index: 5;
  transform: rotate(-6deg);
}

.pencil-right {
  position: absolute;
  bottom: 12%;
  right: -8px;
  z-index: 5;
  transform: rotate(4deg);
}

.pencil-arrow-svg {
  flex-shrink: 0;
}

/* HERO STAGE & 3D STACK */
.hero-stage {
  position: relative;
  min-height: 580px;
  display: flex;
  align-items: center;
  justify-content: center;
  isolation: isolate;
}

.photographic-stack {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 1;
  filter: drop-shadow(0 25px 28px rgba(0, 0, 0, 0.75));
  pointer-events: none;
  transition: filter 0.4s ease;
}

.hero-stage:hover .photographic-stack {
  filter: drop-shadow(0 30px 34px rgba(0, 0, 0, 0.88)) brightness(1.05);
}

.diagram {
  position: absolute;
  border: 1px dashed rgba(255, 255, 255, 0.08);
  pointer-events: none;
}
.line-one { width: 85%; height: 75%; transform: rotate(-10deg); }
.line-two { width: 70%; height: 60%; transform: rotate(12deg); }

.stack {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
}

.stack .cover {
  position: absolute;
  display: block;
  left: 17%;
  width: 56%;
  height: 9.8%;
  top: calc(35% + var(--n) * 8.6%);
  opacity: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
  z-index: 5;
  border-radius: 4px;
  transition: opacity 0.25s, transform 0.25s;
}

.stack .cover:hover,
.stack .cover.selected {
  opacity: 0.08;
  outline: 2px solid var(--gold-bright);
  background: var(--gold);
  transform: translateY(-2px);
}

.stage-label {
  position: absolute;
  bottom: 8px;
  left: 14px;
  z-index: 5;
}

/* VOLUME SECTION */
.volume-section {
  max-width: 1420px;
  margin: 30px auto 0;
  padding: 0 max(5vw, 24px);
}

.section-top {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-light);
}

.volume-nav {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-bottom: 1px solid var(--border-light);
}

.volume-tab {
  background: rgba(22, 26, 32, 0.65);
  color: #dbd5c9;
  border: 0;
  border-right: 1px solid var(--border-light);
  padding: 24px 18px;
  text-align: left;
  min-height: 124px;
  transition: all 0.25s ease;
}
.volume-tab:last-child { border-right: 0; }
.volume-tab:hover {
  background: rgba(202, 165, 106, 0.1);
}
.volume-tab.active {
  background: linear-gradient(180deg, rgba(202, 165, 106, 0.16) 0%, rgba(22, 26, 32, 0.85) 100%);
  box-shadow: inset 0 2px var(--gold-bright);
}

.volume-tab .vol-num {
  display: block;
  color: var(--gold-bright);
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 36px;
  line-height: 1;
}
.volume-tab .vol-title {
  display: block;
  font-size: 14.5px;
  font-weight: 600;
  margin-top: 8px;
  letter-spacing: 0.3px;
}
.volume-tab .vol-sub {
  display: block;
  font-size: 9.5px;
  letter-spacing: 1.5px;
  color: #a4a098;
  margin-top: 6px;
}

/* EDITORIAL PREVIEW */
.editorial-preview {
  margin-top: 36px;
  border: 1px solid rgba(227, 212, 177, 0.18);
  display: grid;
  grid-template-columns: 42% 58%;
  align-items: center;
  overflow: hidden;
  min-height: 360px;
  background: #14181c;
  border-radius: 4px;
}
.editorial-preview .preview-text {
  padding: 44px;
}
.editorial-preview .preview-kicker {
  font-size: 9.5px;
  letter-spacing: 2.4px;
  color: var(--gold);
  display: block;
}
.editorial-preview h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.2rem, 3.4vw, 3.6rem);
  line-height: 1.08;
  font-weight: 400;
  margin: 18px 0;
}
.editorial-preview h3 em { color: var(--gold-bright); font-style: italic; }
.editorial-preview p {
  line-height: 1.75;
  color: #c4bfb4;
  max-width: 400px;
  font-size: 14.5px;
  margin-bottom: 24px;
}
.editorial-preview img {
  width: 100%;
  height: 100%;
  max-height: 480px;
  object-fit: cover;
  object-position: center 54%;
  mask-image: linear-gradient(90deg, transparent 0%, #000 20%);
}

.summary {
  display: flex;
  gap: 24px;
  justify-content: space-between;
  align-items: center;
  padding: 38px 0 65px;
}
.summary small {
  letter-spacing: 2.2px;
  font-size: 10px;
  color: var(--gold);
  font-weight: 600;
}
.summary h2 {
  font-size: 42px;
  margin: 8px 0;
  letter-spacing: -0.02em;
}
.summary p {
  color: #b3aea4;
  max-width: 740px;
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
}

.primary-button {
  background: var(--gold-bright);
  color: #14171a;
  border: 0;
  padding: 18px 28px;
  white-space: nowrap;
  letter-spacing: 1.5px;
  font-size: 11.5px;
  font-weight: 700;
  border-radius: 2px;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.primary-button:hover {
  background: #edd5a8;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

.studio-note {
  background: #14181c;
  border-top: 1px solid var(--border-light);
  padding: 60px max(5vw, 24px);
  display: grid;
  grid-template-columns: 1fr 2.2fr auto;
  align-items: center;
  gap: 40px;
}
.studio-note p {
  max-width: 680px;
  color: #bdb7ab;
  font-size: 14.5px;
  line-height: 1.65;
  margin: 0;
}
.studio-note a {
  color: #a49f95;
  font-size: 10px;
  letter-spacing: 2px;
  padding: 12px 18px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* ========================================================
   STPAGEFLIP CORE STYLES (REQUIRED FOR PAGE TURNING)
   ======================================================== */
.stf__parent {
  position: relative;
  display: block;
  box-sizing: border-box;
  transform: translateZ(0);
  -ms-touch-action: pan-y;
  touch-action: pan-y;
  user-select: none;
}
.sft__wrapper {
  position: relative;
  width: 100%;
  box-sizing: border-box;
}
.stf__parent canvas {
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  pointer-events: none;
  z-index: 10;
}
.stf__block {
  position: absolute;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  perspective: 2400px;
}
.stf__item {
  display: none;
  position: absolute;
  transform-style: preserve-3d;
}
.stf__outerShadow,
.stf__innerShadow,
.stf__hardShadow,
.stf__hardInnerShadow {
  position: absolute;
  left: 0;
  top: 0;
  pointer-events: none;
}

/* ========================================================
   INTERACTIVE VOLUME READER
   ======================================================== */
.reader {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: #0d1014;
  background-image:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.05) 0.6px, transparent 0.8px),
    radial-gradient(ellipse at 50% 15%, #212a33 0%, #0d1014 75%);
  background-size: 22px 22px, 100% 100%;
  display: none;
  flex-direction: column;
  overflow: hidden;
  height: 100dvh;
}
.reader.open {
  display: flex;
}

.reader-top {
  flex: 0 0 56px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 max(4vw, 24px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: #c8c0b2;
  font-size: 10.5px;
  letter-spacing: 2px;
  background: rgba(13, 16, 20, 0.85);
  backdrop-filter: blur(10px);
  z-index: 20;
}
#readerName {
  font-weight: 600;
  color: var(--gold-bright);
}

.plain-btn {
  background: none;
  border: 0;
  color: #ddd4c4;
  font-size: 10.5px;
  letter-spacing: 1.8px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 2px;
  transition: all 0.2s ease;
}
.plain-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
}

/* RESPONSIVE READING STAGE (80–85% WIDTH) */
.reading-room {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 8px 3vw;
  overflow: hidden;
  position: relative;
}

.book-stage {
  position: relative;
  /* Occupies 80–85% desktop width, constrained by usable height to preserve natural 1.48 aspect ratio */
  width: min(84vw, calc((100dvh - 175px) * 1.48));
  aspect-ratio: 1.48;
  max-width: 1380px;
  max-height: calc(100dvh - 175px);
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 2400px;
}

/* Realistic hardcover casing & page block thickness under the open pages */
.book-underlay {
  position: absolute;
  inset: -14px -16px -18px -16px;
  background: linear-gradient(135deg, #232a33 0%, #171d24 50%, #10141a 100%);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 40px 65px -15px rgba(0, 0, 0, 0.95),
    0 20px 30px -10px rgba(0, 0, 0, 0.8),
    0 0 0 1px rgba(202, 165, 106, 0.18),
    inset 0 0 20px rgba(0, 0, 0, 0.7);
  pointer-events: none;
  z-index: 0;
}

/* Page edges thickness simulation */
.book-underlay::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 12px;
  right: 12px;
  height: 12px;
  background: repeating-linear-gradient(
    90deg,
    #cfc3ab 0px,
    #b8ab91 1px,
    #ded4be 2px,
    #cfc3ab 3px
  );
  border-radius: 2px 2px 5px 5px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.6);
  opacity: 0.85;
}

.flip-book-container {
  position: relative;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.flip-book {
  width: 100%;
  height: 100%;
}

/* ========================================================
   BOOK PAGE STYLES (BRIGHT IVORY EDITORIAL SPREAD)
   ======================================================== */
.book-page {
  position: absolute;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  background-color: var(--ivory);
  background-image:
    radial-gradient(circle at center, rgba(160, 140, 100, 0.08) 0.75px, transparent 0.75px),
    linear-gradient(135deg, #f7f3ea 0%, #ede6d6 100%);
  background-size: 18px 18px, 100% 100%;
  color: var(--ink);
  overflow: hidden;
  padding: clamp(20px, 2.2vw, 36px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Realistic spine shading & outer corner rounding */
.book-page.--left,
.book-page.page-left {
  background: linear-gradient(to right, #ece5d6 0%, #f6f1e6 10%, #f2ede2 92%, #ded2bd 100%);
  box-shadow: inset -22px 0 26px -14px rgba(65, 52, 35, 0.32);
  border-radius: 4px 0 0 4px;
  border-right: 1px solid rgba(140, 120, 90, 0.2);
}

.book-page.--right,
.book-page.page-right {
  background: linear-gradient(to right, #ded2bd 0%, #f2ede2 8%, #f6f1e6 90%, #ece5d6 100%);
  box-shadow: inset 22px 0 26px -14px rgba(65, 52, 35, 0.34);
  border-radius: 0 4px 4px 0;
  border-left: 1px solid rgba(140, 120, 90, 0.2);
}

/* Page Header & Footer */
.page-header, .page-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: clamp(8px, 0.7vw, 10.5px);
  letter-spacing: 1.8px;
  color: var(--ink-secondary);
  border-bottom: 1px solid rgba(130, 115, 95, 0.3);
  padding-bottom: 8px;
  flex: 0 0 auto;
}
.page-footer {
  border-bottom: 0;
  border-top: 1px solid rgba(130, 115, 95, 0.3);
  padding-top: 8px;
  padding-bottom: 0;
}

/* Page Body Layout */
.page-body {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  position: relative;
  padding: 10px 0 6px;
}

/* Left Page Elements */
.spread-num {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(68px, 7.5vw, 120px);
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: #1f1d19;
  margin: 4px 0 2px;
}
.spread-category {
  font-size: clamp(10px, 0.95vw, 14px);
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold-dim);
  font-weight: 700;
  margin-bottom: 6px;
}

.page-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(22px, 2.2vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 4px 0 10px;
  color: #161411;
  font-weight: 600;
}

.gold-rule {
  width: 48px;
  height: 2.5px;
  background: var(--gold);
  margin-bottom: 12px;
}

.page-subtitle {
  font-size: clamp(9px, 0.8vw, 11.5px);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ink-secondary);
  font-weight: 700;
  margin-bottom: 10px;
}

.page-desc {
  font-family: Georgia, 'Playfair Display', serif;
  font-size: clamp(12px, 1.05vw, 15px);
  line-height: 1.55;
  color: #38342c;
  max-width: 460px;
  margin: 0 0 14px;
}

/* Metadata Grid */
.meta-table {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 16px;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px dashed rgba(130, 115, 95, 0.35);
}
.meta-item label {
  display: block;
  font-size: clamp(7.5px, 0.65vw, 9.5px);
  letter-spacing: 1.6px;
  color: var(--gold-dim);
  font-weight: 700;
}
.meta-item span {
  display: block;
  font-size: clamp(10.5px, 0.85vw, 13px);
  color: #26221c;
  font-weight: 500;
  margin-top: 2px;
  line-height: 1.35;
}

/* Right Page Elements */
.mosaic-wrapper {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 6px 0 10px;
}

.main-photo-frame {
  flex: 1 1 65%;
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(130, 115, 95, 0.35);
  background: #d8d0c2;
  position: relative;
}
.main-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sub-photos {
  flex: 0 0 35%;
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.sub-photo-frame {
  overflow: hidden;
  border: 1px solid rgba(130, 115, 95, 0.35);
  background: #d8d0c2;
}
.sub-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.photo-caption {
  font-size: clamp(10px, 0.82vw, 12px);
  color: #635c50;
  line-height: 1.45;
  margin: 4px 0 0;
  flex: 0 0 auto;
}

/* Natural Pencil Annotations on Ivory Pages */
.page-pencil {
  position: absolute;
  font-family: 'Vazirmatn', 'Caveat', cursive;
  font-size: clamp(13px, 1.1vw, 17px);
  color: var(--pencil);
  mix-blend-mode: multiply;
  filter: url(#pencil-texture) contrast(1.15) drop-shadow(0 0 0.5px rgba(50, 45, 35, 0.35));
  display: inline-flex;
  align-items: center;
  gap: 8px;
  z-index: 5;
  line-height: 1.25;
}

/* Private Pitch Portal Docket Styling */
.private-docket-frame {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  border: 1px solid rgba(130, 115, 95, 0.35);
  background: linear-gradient(145deg, #ede6d6 0%, #dfd5c1 100%);
  border-radius: 3px;
  padding: clamp(20px, 3vw, 40px);
  margin: 12px 0 16px;
  box-shadow: inset 0 0 30px rgba(70, 55, 35, 0.08);
}
.private-seal {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--gold-dim);
}
.private-seal strong {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(14px, 1.3vw, 18px);
  letter-spacing: 1.5px;
  color: #2b2721;
}
.private-seal small {
  font-size: 8.5px;
  letter-spacing: 2px;
  color: #786f63;
  font-weight: 600;
}
.private-docket-text {
  font-family: Georgia, serif;
  font-size: clamp(12px, 1vw, 14px);
  line-height: 1.6;
  color: #453f35;
  max-width: 360px;
  margin: 18px auto;
}
.private-security-notice {
  font-size: 8.5px;
  letter-spacing: 1.8px;
  color: var(--gold-dim);
  font-weight: 700;
  border-top: 1px dashed rgba(130, 115, 95, 0.4);
  padding-top: 12px;
  width: 100%;
}

.pencil-left-top {
  top: 8px;
  right: 12px;
  transform: rotate(-4deg);
}
.pencil-left-bottom {
  bottom: 8px;
  left: 8px;
  transform: rotate(2deg);
}
.pencil-right-side {
  top: 14px;
  right: 8px;
  transform: rotate(-3deg);
}

/* Technical Architectural Accents on Pages */
.tech-mark {
  position: absolute;
  pointer-events: none;
  font-family: 'DM Sans', monospace;
  font-size: 8px;
  color: rgba(130, 115, 95, 0.45);
  letter-spacing: 1px;
}
.tech-cross-tl { top: 6px; left: 6px; }
.tech-cross-tr { top: 6px; right: 6px; }
.tech-cross-bl { bottom: 6px; left: 6px; }
.tech-cross-br { bottom: 6px; right: 6px; }

/* ========================================================
   READER CONTROLS & CHAPTER BAR
   ======================================================== */
.reader-controls {
  flex: 0 0 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(4vw, 24px);
  background: rgba(13, 16, 20, 0.9);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #c9c1b3;
  z-index: 20;
}

.space-instruction {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 10.5px;
  letter-spacing: 2px;
  color: var(--gold);
}

.page-nav-group {
  display: flex;
  align-items: center;
  gap: 16px;
}
.nav-arrow {
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: var(--ivory);
  background: transparent;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: all 0.2s ease;
}
.nav-arrow:hover {
  background: rgba(202, 165, 106, 0.18);
  border-color: var(--gold);
  color: #fff;
}
#pageCounter {
  font-family: Georgia, serif;
  font-size: 13.5px;
  letter-spacing: 2px;
  color: #ded7c8;
}

.library-link {
  font-size: 10px;
  letter-spacing: 2px;
  color: #a49f95;
}
.library-link:hover { color: var(--gold-bright); }

/* CHAPTER BAR / THUMBNAILS */
.chapter-bar {
  flex: 0 0 68px;
  display: flex;
  gap: 12px;
  padding: 8px max(4vw, 24px) 12px;
  margin: 0 auto;
  max-width: 1400px;
  width: 100%;
  overflow-x: auto;
  align-items: center;
  background: #0d1014;
  z-index: 20;
}

.chapter-card {
  flex: 1 1 200px;
  min-width: 170px;
  height: 48px;
  background: #15191f;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 3px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 10px;
  color: #cfc7ba;
  text-align: left;
  transition: all 0.25s ease;
}
.chapter-card:hover {
  border-color: rgba(202, 165, 106, 0.45);
  background: #1b2027;
}
.chapter-card.active {
  border-color: var(--gold-bright);
  background: rgba(202, 165, 106, 0.15);
  box-shadow: 0 0 10px rgba(202, 165, 106, 0.15);
}

.chapter-thumb {
  width: 40px;
  height: 38px;
  object-fit: cover;
  border-radius: 2px;
  background: #2a2d33;
  flex-shrink: 0;
}
.chapter-info strong {
  display: block;
  font-family: Georgia, serif;
  font-size: 13px;
  color: var(--gold-bright);
  line-height: 1.1;
}
.chapter-info span {
  display: block;
  font-size: 10.5px;
  color: #bbb5aa;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 120px;
}

/* TOAST MESSAGE */
.toast {
  position: fixed;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  color: #121417;
  background: #ecdcb9;
  padding: 14px 22px;
  z-index: 999;
  font-size: 12px;
  letter-spacing: 0.5px;
  border-radius: 3px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5);
}
.toast.visible { opacity: 1; }

/* RESPONSIVE BREAKPOINTS */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 40px; min-height: 0; }
  .hero-stage { min-height: 460px; }
  .editorial-preview { grid-template-columns: 1fr; }
  .editorial-preview img { height: 280px; mask-image: none; }
  .studio-note { grid-template-columns: 1fr; }
  .volume-nav { grid-template-columns: repeat(3, 1fr); }
  .book-stage { width: 92vw; aspect-ratio: 1.45; }
}

@media (max-width: 650px) {
  .brandbar { padding: 16px; }
  .micro-head { display: none; }
  .volume-nav { display: flex; overflow-x: auto; }
  .volume-tab { flex: 0 0 140px; }
  .summary { flex-direction: column; align-items: flex-start; }
  .book-stage { width: 96vw; aspect-ratio: 1.4; }
  .space-instruction { display: none; }
  .chapter-bar { padding: 8px 12px; }
  .chapter-card { min-width: 140px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
