
:root {
  --bg: #090909;
  --bg-soft: #111111;
  --paper: #f4efe6;
  --paper-deep: #e6ddcf;
  --ink: #131313;
  --ink-soft: #2b2b2b;
  --ink-faded: #67615a;
  --gold: #d0aa68;
  --gold-strong: #b7883e;
  --gold-deep: #785626;
  --red: #5a1616;
  --red-soft: #7a2a2a;
  --cream: #fffaf1;
  --white: #f8f8f8;
  --line: rgba(255,255,255,0.08);
  --line-dark: rgba(0,0,0,0.08);
  --shadow: 0 40px 110px rgba(0,0,0,0.48);
  --shadow-soft: 0 24px 50px rgba(0,0,0,0.25);
  --radius-xl: 32px;
  --radius-lg: 26px;
  --radius-md: 20px;
  --radius-sm: 16px;
  --ease-out: cubic-bezier(.18,.84,.28,1);
  --ease-smooth: cubic-bezier(.22,.61,.36,1);
  --topbar-h: 78px;
  --control-h: 88px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html, body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  background:
    radial-gradient(circle at 18% 18%, rgba(208,170,104,0.14), transparent 30%),
    radial-gradient(circle at 82% 22%, rgba(122,42,42,0.18), transparent 26%),
    radial-gradient(circle at 50% 70%, rgba(255,255,255,0.05), transparent 33%),
    linear-gradient(180deg, #0b0b0c 0%, #060606 100%);
  color: var(--white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow: hidden;
}

body {
  position: relative;
  cursor: default;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.02) 0 1px, transparent 1px 100%),
    linear-gradient(0deg, rgba(255,255,255,0.02) 0 1px, transparent 1px 100%);
  background-size: 72px 72px;
  opacity: 0.12;
  pointer-events: none;
  mix-blend-mode: soft-light;
}

.site-noise {
  position: fixed;
  inset: 0;
  background: url("assets/textures/grain.png") center / 240px 240px repeat;
  opacity: 0.1;
  pointer-events: none;
  mix-blend-mode: screen;
}

#cursorGlow {
  position: fixed;
  width: 420px;
  height: 420px;
  left: -210px;
  top: -210px;
  pointer-events: none;
  border-radius: 50%;
  opacity: 0.28;
  background: radial-gradient(circle, rgba(208,170,104,0.32) 0%, rgba(208,170,104,0.10) 38%, transparent 70%);
  filter: blur(14px);
  transform: translate3d(-100vw, -100vh, 0);
  transition: opacity .4s ease;
  z-index: 50;
}

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

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease-smooth), filter 1.2s var(--ease-smooth);
}

button {
  font: inherit;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0,0,0,0);
  border: 0;
}

.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(18px, 3vw, 34px);
  z-index: 40;
  pointer-events: none;
}

.brand-block,
.topbar-actions {
  pointer-events: auto;
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 12px 8px 8px;
  border-radius: 999px;
  background: rgba(10,10,10,0.45);
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(14px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.24);
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold) 0%, #7a592d 100%);
  color: #111;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-kicker {
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.62);
}

.brand-text strong {
  font-size: 0.98rem;
  letter-spacing: 0.02em;
}

.icon-btn {
  width: 52px;
  height: 52px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 50%;
  background: rgba(10,10,10,0.54);
  color: var(--white);
  display: grid;
  place-items: center;
  gap: 4px;
  cursor: pointer;
  backdrop-filter: blur(14px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.24);
  transition: transform .3s ease, border-color .3s ease, background .3s ease;
}

.icon-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(208,170,104,0.5);
}

.icon-btn span:not(.sr-only) {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 10px;
  background: currentColor;
}

.toc-panel {
  position: fixed;
  top: 90px;
  right: clamp(12px, 2vw, 22px);
  width: min(430px, calc(100vw - 24px));
  height: min(76vh, 760px);
  padding: 24px;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(22,22,24,0.95) 0%, rgba(14,14,16,0.98) 100%);
  border: 1px solid rgba(255,255,255,0.09);
  box-shadow: 0 24px 80px rgba(0,0,0,0.44);
  backdrop-filter: blur(18px);
  z-index: 45;
  transform: translateY(-10px) scale(.98);
  opacity: 0;
  pointer-events: none;
  transition: transform .45s var(--ease-out), opacity .32s ease;
  overflow: hidden;
}

.toc-panel.open {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}

.toc-header {
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.toc-header h2 {
  margin: 8px 0 10px;
  font-size: clamp(1.6rem, 2vw, 2rem);
  line-height: 1;
}

.toc-header p {
  margin: 0;
  color: rgba(255,255,255,0.68);
  line-height: 1.55;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(255,255,255,0.66);
}

.section-label::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
}

.toc-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  padding-right: 4px;
  max-height: calc(100% - 110px);
  overflow: auto;
}

.toc-item {
  display: grid;
  grid-template-columns: 82px 1fr auto;
  gap: 14px;
  align-items: center;
  width: 100%;
  padding: 10px;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 22px;
  background: rgba(255,255,255,0.03);
  color: var(--white);
  cursor: pointer;
  transition: transform .28s ease, border-color .28s ease, background .28s ease;
}

.toc-item:hover,
.toc-item.is-active {
  transform: translateY(-2px);
  border-color: rgba(208,170,104,0.42);
  background: rgba(255,255,255,0.055);
}

.toc-thumb {
  aspect-ratio: 4 / 3;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.toc-text strong {
  display: block;
  font-size: 1rem;
  letter-spacing: 0.01em;
}

.toc-text span {
  display: block;
  margin-top: 4px;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.62);
  line-height: 1.35;
}

.toc-number {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.62);
  letter-spacing: 0.18em;
}

.stage {
  position: fixed;
  inset: var(--topbar-h) 0 var(--control-h) 0;
  display: grid;
  place-items: center;
  perspective: 2600px;
  overflow: hidden;
  padding: 10px clamp(14px, 2vw, 26px) 12px;
}

.ambient {
  position: absolute;
  inset: auto auto 3% auto;
  width: 48vw;
  height: 48vw;
  max-width: 720px;
  max-height: 720px;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.22;
  pointer-events: none;
}

.ambient-left {
  left: -14vw;
  bottom: -16vw;
  background: radial-gradient(circle, rgba(208,170,104,0.9) 0%, rgba(208,170,104,0.18) 35%, transparent 70%);
}

.ambient-right {
  right: -12vw;
  top: -18vw;
  background: radial-gradient(circle, rgba(122,42,42,0.9) 0%, rgba(122,42,42,0.18) 30%, transparent 70%);
}

.book {
  position: relative;
  width: min(1500px, 95vw);
  height: min(900px, 100%);
  transform-style: preserve-3d;
  isolation: isolate;
}

.book::before,
.book::after {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 34px;
  pointer-events: none;
}

.book::before {
  background: linear-gradient(90deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  transform: translateZ(-40px) scale(0.985);
  filter: blur(2px);
}

.book::after {
  inset: 20px;
  border-left: 1px solid rgba(255,255,255,0.12);
  border-right: 1px solid rgba(255,255,255,0.04);
  opacity: 0.2;
}

.flip-hotspot {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 12%;
  z-index: 35;
  cursor: pointer;
  opacity: 0;
  transition: opacity .24s ease;
}

.hotspot-prev { left: 0; }
.hotspot-next { right: 0; }

.book:hover .flip-hotspot {
  opacity: 1;
}

.flip-hotspot::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(var(--dir, 90deg), rgba(255,255,255,0.05), transparent 50%);
}

.hotspot-prev::after { --dir: 90deg; }
.hotspot-next::after { --dir: -90deg; }

.spread {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-xl);
  transform-origin: left center;
  transform-style: preserve-3d;
  transition:
    transform 1.05s var(--ease-out),
    filter .8s ease,
    opacity .55s ease;
  will-change: transform;
  backface-visibility: hidden;
  opacity: 1;
  pointer-events: none;
}

.spread.active {
  pointer-events: auto;
}

.spread::before,
.spread::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
}

.spread::before {
  inset: 0 0 0 -1px;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.10), transparent 3% 98%, rgba(0,0,0,0.10)),
    linear-gradient(180deg, rgba(255,255,255,0.05), transparent 18%, rgba(0,0,0,0.12));
  opacity: 0.9;
  z-index: 2;
}

.spread::after {
  background:
    linear-gradient(90deg, rgba(0,0,0,0.24), transparent 10%),
    linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.18) 100%);
  mix-blend-mode: multiply;
  opacity: 0.4;
  z-index: 1;
}

.spread-face {
  position: absolute;
  inset: 0;
  padding: clamp(24px, 3vw, 38px);
  border-radius: inherit;
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 18px;
  backface-visibility: hidden;
}

.spread-face::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(255,255,255,0.08), transparent 18%, transparent 82%, rgba(255,255,255,0.04)),
    linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  pointer-events: none;
  z-index: 1;
}

.spread-face > * {
  position: relative;
  z-index: 2;
}

.theme-obsidian .spread-face {
  background:
    radial-gradient(circle at 72% 22%, rgba(208,170,104,0.18), transparent 28%),
    linear-gradient(160deg, #09090a 0%, #121111 48%, #070708 100%);
}

.theme-paper .spread-face {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.65), rgba(255,255,255,0.1)),
    linear-gradient(135deg, #f7f2e8 0%, #ece3d3 100%);
  color: var(--ink);
}

.theme-paper .spread::after,
.theme-paper-dark .spread::after,
.theme-gold .spread::after {
  mix-blend-mode: multiply;
}

.theme-charcoal .spread-face {
  background:
    radial-gradient(circle at 78% 26%, rgba(208,170,104,0.12), transparent 26%),
    linear-gradient(135deg, #141416 0%, #1c1d20 50%, #121214 100%);
}

.theme-night .spread-face {
  background:
    radial-gradient(circle at 72% 25%, rgba(208,170,104,0.14), transparent 26%),
    radial-gradient(circle at 18% 65%, rgba(122,42,42,0.18), transparent 30%),
    linear-gradient(130deg, #0d1016 0%, #121922 100%);
}

.theme-paper-dark .spread-face {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.35), rgba(255,255,255,0.06)),
    linear-gradient(135deg, #ebdfd0 0%, #d8c7b0 100%);
  color: var(--ink);
}

.theme-gold .spread-face {
  background:
    radial-gradient(circle at 84% 20%, rgba(255,255,255,0.35), transparent 22%),
    linear-gradient(135deg, #d7b37a 0%, #bb8c43 52%, #7a5526 100%);
  color: #120f0a;
}

.theme-burgundy .spread-face {
  background:
    radial-gradient(circle at 20% 22%, rgba(255,255,255,0.12), transparent 26%),
    linear-gradient(135deg, #2d0f14 0%, #4d171d 45%, #20080b 100%);
}

.theme-ink .spread-face {
  background:
    radial-gradient(circle at 18% 18%, rgba(122,42,42,0.18), transparent 22%),
    linear-gradient(145deg, #090a0f 0%, #13141a 100%);
}

.page-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.58);
}

.theme-paper .page-meta,
.theme-paper-dark .page-meta,
.theme-gold .page-meta {
  color: rgba(19,19,19,0.52);
}

.spread-number {
  position: absolute;
  right: clamp(22px, 2vw, 28px);
  bottom: clamp(20px, 2vw, 28px);
  font-size: clamp(3.2rem, 8vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  color: rgba(255,255,255,0.08);
  line-height: 1;
  pointer-events: none;
}

.theme-paper .spread-number,
.theme-paper-dark .spread-number,
.theme-gold .spread-number {
  color: rgba(0,0,0,0.08);
}

.eyebrow {
  margin: 0 0 14px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

.theme-paper .eyebrow,
.theme-paper-dark .eyebrow,
.theme-gold .eyebrow {
  color: var(--gold-deep);
}

h1, h2, h3 {
  margin: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.display-title {
  font-size: clamp(3.6rem, 8vw, 7rem);
  line-height: 0.92;
}

h2 {
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  line-height: 0.98;
}

h3 {
  font-size: clamp(1.1rem, 1.5vw, 1.4rem);
}

p {
  margin: 0;
}

.body-copy,
.lede,
.cover-subtitle {
  line-height: 1.68;
  text-wrap: pretty;
}

.body-copy {
  font-size: clamp(0.98rem, 1.12vw, 1.08rem);
  color: rgba(255,255,255,0.82);
}

.body-copy.light,
.theme-burgundy .body-copy,
.theme-night .body-copy,
.theme-ink .body-copy {
  color: rgba(255,255,255,0.84);
}

.theme-paper .body-copy,
.theme-paper-dark .body-copy,
.theme-gold .body-copy {
  color: rgba(19,19,19,0.78);
}

.lede {
  font-size: clamp(1rem, 1.18vw, 1.16rem);
  color: rgba(255,255,255,0.8);
  max-width: 64ch;
}

.cover-subtitle {
  margin: 16px 0 12px;
  font-size: clamp(1.1rem, 1.55vw, 1.44rem);
  color: rgba(255,255,255,0.86);
  max-width: 24ch;
}

.cover-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(0, 1.15fr);
  gap: clamp(24px, 3vw, 42px);
  height: 100%;
  min-height: 0;
}

.cover-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
  padding: clamp(12px, 1vw, 18px) 0;
}

.hero-portrait {
  min-height: 0;
  align-self: stretch;
}

.image-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  background: rgba(255,255,255,0.05);
  isolation: isolate;
}

.image-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,0.18) 100%);
  pointer-events: none;
}

.image-frame--tall {
  aspect-ratio: 3 / 4;
  height: 100%;
}

.image-frame--portrait {
  aspect-ratio: 4 / 5;
}

.image-frame--landscape {
  aspect-ratio: 16 / 10;
}

.spread.active img {
  transform: scale(1.02);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 22px;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.76);
  backdrop-filter: blur(10px);
}

.cover-notes {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(160px, 0.8fr);
  gap: 20px;
  margin-top: 18px;
  align-items: end;
}

.mini-note {
  padding: 20px;
  border-radius: 22px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
}

.mini-label {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  color: rgba(255,255,255,0.52);
  text-transform: uppercase;
}

.mini-note strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.12rem;
  font-family: "Iowan Old Style", Georgia, serif;
  letter-spacing: -0.02em;
}

.mini-note p {
  color: rgba(255,255,255,0.74);
  line-height: 1.55;
}

.mini-stack {
  position: relative;
  min-height: 220px;
}

.mini-photo {
  position: absolute;
  width: clamp(150px, 18vw, 220px);
  aspect-ratio: 4 / 5;
  right: 0;
  top: 0;
  transform: rotate(3deg);
  border-radius: 24px;
}

.mini-photo.offset {
  right: 80px;
  top: 54px;
  transform: rotate(-6deg);
}

.open-hint {
  position: absolute;
  left: clamp(24px, 3vw, 38px);
  bottom: clamp(22px, 2vw, 30px);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: rgba(255,255,255,0.62);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.76rem;
}

.hint-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 0 rgba(208,170,104,0.5);
  animation: pulse 2.4s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(208,170,104,0.42); }
  70% { box-shadow: 0 0 0 16px rgba(208,170,104,0); }
  100% { box-shadow: 0 0 0 0 rgba(208,170,104,0); }
}

.editorial-grid {
  display: grid;
  gap: clamp(22px, 2.2vw, 32px);
  min-height: 0;
  height: 100%;
}

.editorial-grid--intro {
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.82fr);
}

.intro-copy,
.intro-visuals {
  display: flex;
  flex-direction: column;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.metric-card {
  padding: 18px;
  border-radius: 20px;
  background: rgba(0,0,0,0.04);
  border: 1px solid rgba(0,0,0,0.08);
}

.metric-number {
  display: block;
  font-size: clamp(2rem, 3vw, 2.8rem);
  font-weight: 800;
  line-height: 0.95;
  color: var(--gold-deep);
}

.metric-label {
  display: block;
  margin-top: 8px;
  line-height: 1.5;
  color: rgba(19,19,19,0.74);
}

.intro-visuals {
  gap: 18px;
}

.intro-main-photo {
  flex: 1 1 auto;
  min-height: 0;
}

.fact-sheet {
  padding: 22px;
  border-radius: 24px;
  background: rgba(255,255,255,0.45);
  border: 1px solid rgba(0,0,0,0.07);
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.fact-sheet__header {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.clean-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.clean-list li {
  line-height: 1.58;
  color: inherit;
}

.timeline-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.9fr);
  gap: clamp(20px, 2vw, 30px);
  height: 100%;
  min-height: 0;
}

.timeline-column {
  display: flex;
  flex-direction: column;
}

.timeline-track {
  margin-top: 26px;
  padding-left: 24px;
  border-left: 1px solid rgba(255,255,255,0.12);
  display: grid;
  gap: 18px;
}

.timeline-card {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 16px;
  padding: 18px 18px 18px 12px;
  border-radius: 20px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
}

.timeline-card p {
  color: rgba(255,255,255,0.78);
  line-height: 1.58;
  margin-top: 8px;
}

.timeline-year {
  font-size: 0.84rem;
  letter-spacing: 0.18em;
  color: var(--gold);
  text-transform: uppercase;
  padding-top: 4px;
}

.timeline-visuals {
  display: grid;
  grid-template-rows: 1.1fr 0.8fr auto;
  gap: 18px;
  min-height: 0;
}

.timeline-visuals .overlay-card {
  margin-left: 15%;
}

.route-card {
  padding: 18px 20px 14px;
  border-radius: 24px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
}

.route-points {
  display: flex;
  justify-content: space-between;
  margin-top: 16px;
  font-size: 0.9rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
}

.route-line {
  display: block;
  width: 100%;
  height: 48px;
  margin-top: 8px;
}

.route-line path {
  stroke: rgba(208,170,104,0.8);
  stroke-width: 2;
  fill: none;
  stroke-dasharray: 8 8;
}

.ops-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.75fr);
  gap: clamp(24px, 2.4vw, 34px);
  height: 100%;
  min-height: 0;
}

.ops-left {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.ops-right {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 18px;
  min-height: 0;
}

.step-stack {
  display: grid;
  gap: 14px;
  margin-top: 10px;
}

.step-card {
  display: grid;
  grid-template-columns: 68px 1fr;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 22px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
}

.step-number {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(208,170,104,0.9), rgba(123,86,38,0.9));
  color: #101010;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.step-card p {
  margin-top: 6px;
  color: rgba(255,255,255,0.76);
  line-height: 1.55;
}

.pullquote,
.statement-card {
  padding: 22px 24px;
  border-radius: 24px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.92);
  font-family: "Iowan Old Style", Georgia, serif;
  font-size: clamp(1.2rem, 1.8vw, 1.6rem);
  line-height: 1.36;
  box-shadow: var(--shadow-soft);
}

.pullquote footer,
.statement-card footer {
  display: block;
  margin-top: 14px;
  font-size: 0.88rem;
  font-family: Inter, system-ui, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}

.relationship-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.9fr);
  gap: 24px;
  height: 100%;
}

.relationship-copy {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.relationship-visuals {
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 16px;
  min-height: 0;
}

.relationship-visuals .mini {
  width: 72%;
  justify-self: end;
}

.relationship-cards {
  display: grid;
  gap: 14px;
  margin-top: 4px;
}

.status-card {
  padding: 18px 18px 16px;
  border-radius: 22px;
  border: 1px solid rgba(0,0,0,0.09);
  background: rgba(255,255,255,0.38);
}

.status-card p {
  margin-top: 8px;
  line-height: 1.56;
  color: rgba(19,19,19,0.78);
}

.status-pill {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.verified .status-pill {
  background: rgba(20,100,58,0.12);
  color: #0f6b3f;
}

.self-described .status-pill {
  background: rgba(122,74,12,0.12);
  color: #7a4a0c;
}

.rdm-layout {
  display: flex;
  flex-direction: column;
  gap: 18px;
  height: 100%;
}

.rdm-panels {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 0.75fr) minmax(250px, 0.78fr);
  gap: 18px;
  min-height: 0;
  flex: 1;
}

.glass-panel {
  padding: 22px;
  border-radius: 24px;
  background: rgba(255,250,241,0.26);
  border: 1px solid rgba(18,15,10,0.12);
  box-shadow: 0 18px 60px rgba(26,18,9,0.22);
}

.service-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tag-ribbon {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.tag-ribbon span {
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(18,15,10,0.08);
  color: rgba(18,15,10,0.86);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 700;
}

.photo-column,
.quote-column {
  display: grid;
  gap: 16px;
  min-height: 0;
}

.statement-card {
  background: rgba(18,15,10,0.10);
  border: 1px solid rgba(18,15,10,0.10);
  color: #18120e;
}

.statement-card footer {
  color: rgba(18,15,10,0.62);
}

.music-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(0, 1.15fr);
  gap: clamp(24px, 2.5vw, 34px);
  min-height: 0;
  height: 100%;
}

.music-portrait {
  align-self: stretch;
}

.music-copy {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.track-table {
  display: grid;
  gap: 10px;
  margin-top: 6px;
}

.track-table > div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
}

.track-title {
  font-weight: 700;
  letter-spacing: 0.01em;
}

.track-meta {
  color: rgba(255,255,255,0.62);
  text-align: right;
  font-size: 0.92rem;
}

.aside-card {
  margin-top: 6px;
  padding: 18px 20px;
  border-radius: 22px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
}

.element-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.05fr);
  gap: clamp(22px, 2.4vw, 32px);
  height: 100%;
  min-height: 0;
}

.element-copy {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.caption-grid {
  display: grid;
  gap: 14px;
}

.caption-card {
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
}

.caption-label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--gold);
}

.element-mosaic {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 16px;
  min-height: 0;
}

.element-mosaic .tall {
  grid-row: 1 / span 2;
}

.gallery-spread {
  display: grid;
  gap: 18px;
  height: 100%;
}

.gallery-copy {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.gallery-grid {
  flex: 1;
  display: grid;
  gap: 16px;
  min-height: 0;
}

.gallery-grid--four {
  grid-template-columns: repeat(4, 1fr);
}

.gallery-grid figure {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.gallery-grid figcaption {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 2;
  padding: 10px 12px;
  border-radius: 14px;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.86);
  background: rgba(0,0,0,0.24);
  backdrop-filter: blur(8px);
}

.contact-sheet-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1.18fr);
  gap: 22px;
  height: 100%;
}

.contact-sheet-copy {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.byline-card {
  padding: 18px 20px;
  border-radius: 22px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
}

.contact-sheet {
  min-height: 0;
  height: 100%;
}

.numbers-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.8fr);
  gap: 22px;
  height: 100%;
  min-height: 0;
}

.numbers-copy {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.big-number-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.big-number-card {
  padding: 18px;
  border-radius: 20px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
}

.big-number {
  display: block;
  font-size: clamp(2rem, 3vw, 2.8rem);
  line-height: 0.95;
  color: var(--gold);
  font-weight: 800;
  letter-spacing: -0.04em;
}

.big-number-card p {
  margin-top: 8px;
  line-height: 1.55;
  color: rgba(255,255,255,0.76);
}

.numbers-photo {
  align-self: stretch;
}

.sources-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(300px, 0.82fr);
  gap: 24px;
  height: 100%;
  min-height: 0;
}

.sources-copy {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.source-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  min-height: 0;
}

.source-group {
  padding: 18px;
  border-radius: 22px;
  background: rgba(255,255,255,0.34);
  border: 1px solid rgba(0,0,0,0.08);
  overflow: auto;
}

.source-list {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.source-list a {
  display: inline-flex;
  align-items: start;
  gap: 10px;
  line-height: 1.45;
  color: rgba(19,19,19,0.84);
  border-bottom: 1px dashed rgba(19,19,19,0.18);
  padding-bottom: 6px;
  transition: color .28s ease, border-color .28s ease;
}

.source-list a::before {
  content: "↗";
  color: var(--gold-deep);
  font-weight: 700;
}

.source-list a:hover {
  color: #000;
  border-color: rgba(19,19,19,0.35);
}

.connect-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: auto;
}

.connect-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(19,19,19,0.9);
  color: var(--cream);
  font-weight: 700;
  letter-spacing: 0.04em;
  border: 1px solid rgba(19,19,19,0.9);
  transition: transform .25s ease, background .25s ease, color .25s ease;
}

.connect-btn:hover {
  transform: translateY(-2px);
}

.connect-btn.secondary {
  background: rgba(255,255,255,0.5);
  color: var(--ink);
  border-color: rgba(0,0,0,0.1);
}

.controls {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  width: min(820px, calc(100vw - 24px));
  min-height: 68px;
  padding: 10px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border-radius: 999px;
  background: rgba(10,10,10,0.55);
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(18px);
  box-shadow: 0 14px 40px rgba(0,0,0,0.26);
  z-index: 42;
}

.nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 16px;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  color: var(--white);
  cursor: pointer;
  transition: transform .25s ease, background .25s ease, opacity .25s ease;
}

.nav-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  background: rgba(255,255,255,0.10);
}

.nav-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.nav-arrow {
  font-size: 1.1rem;
}

.nav-label {
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.status-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.status-copy {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-size: 0.96rem;
  letter-spacing: 0.02em;
}

#currentIndex,
#totalIndex {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.divider {
  color: rgba(255,255,255,0.38);
}

.current-title {
  margin-left: 8px;
  color: rgba(255,255,255,0.7);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.progress-track {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: rgba(255,255,255,0.07);
  overflow: hidden;
}

.progress-fill {
  width: 8%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold) 0%, #f2d092 100%);
  transition: width .45s ease;
}

.keyboard-hint {
  position: fixed;
  right: 24px;
  bottom: 108px;
  color: rgba(255,255,255,0.42);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  z-index: 35;
}

kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  min-height: 24px;
  margin: 0 3px;
  padding: 0 7px;
  border-radius: 8px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  font-family: inherit;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.74);
}

@media (max-width: 1180px) {
  .cover-grid,
  .editorial-grid--intro,
  .timeline-layout,
  .ops-layout,
  .relationship-layout,
  .music-layout,
  .element-layout,
  .contact-sheet-layout,
  .numbers-layout,
  .sources-layout {
    grid-template-columns: 1fr;
  }

  .rdm-panels,
  .source-columns {
    grid-template-columns: 1fr;
  }

  .timeline-visuals .overlay-card {
    margin-left: 0;
    width: 72%;
  }

  .gallery-grid--four {
    grid-template-columns: repeat(2, 1fr);
  }

  .book {
    width: min(1100px, 96vw);
  }
}

@media (max-width: 900px) {
  html, body {
    overflow: auto;
  }

  body {
    overflow: hidden;
  }

  .stage {
    inset: 0;
    padding: 0;
  }

  .book {
    width: 100vw;
    height: 100vh;
  }

  .book::before,
  .book::after {
    display: none;
  }

  .spread,
  .spread-face {
    border-radius: 0;
  }

  .spread-face {
    padding: calc(var(--topbar-h) + 12px) 18px calc(var(--control-h) + 18px);
  }

  .topbar {
    padding: 14px 14px 0;
  }

  .controls {
    bottom: 12px;
  }

  .cover-grid {
    grid-template-columns: 1fr;
    overflow: auto;
  }

  .hero-portrait {
    max-height: 38vh;
  }

  .display-title {
    font-size: clamp(3rem, 12vw, 4.4rem);
  }

  .cover-notes {
    grid-template-columns: 1fr;
  }

  .mini-stack {
    display: none;
  }

  .metric-grid,
  .big-number-grid {
    grid-template-columns: 1fr;
  }

  .timeline-track {
    padding-left: 14px;
  }

  .timeline-card {
    grid-template-columns: 1fr;
  }

  .gallery-grid--four {
    grid-template-columns: 1fr;
  }

  .contact-sheet-copy,
  .source-columns {
    overflow: auto;
  }

  .keyboard-hint {
    display: none;
  }
}

@media (max-width: 640px) {
  .brand-kicker,
  .brand-text strong {
    display: none;
  }

  .brand-block {
    padding-right: 8px;
  }

  .controls {
    grid-template-columns: auto 1fr auto;
    gap: 8px;
    width: calc(100vw - 16px);
    padding: 8px;
  }

  .nav-btn {
    min-height: 44px;
    padding: 10px 12px;
  }

  .nav-label {
    display: none;
  }

  .current-title {
    display: none;
  }

  .source-columns {
    gap: 12px;
  }

  .relationship-visuals .mini,
  .timeline-visuals .overlay-card {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  #cursorGlow {
    display: none;
  }
}
