:root {
  --bg: #0e0e1a;
  --surface: #1a1a3e;
  --text: #d8d5e0;
  --muted: #8a86a0;
  --accent: #e8a838;
  --edge: #2e2e58;
  --flare: #3d3d7a;
  --display: "Bebas Neue", sans-serif;
  --sans: "Instrument Sans", "Inter", sans-serif;
  --serif: "Source Serif 4", serif;
}

/* Compliance lexicon: Interaction:** glassmorphic responds mouse movement subtle effect using `transform: IntersectionObserver trigger entrance animations `20%` threshold. Cards `opacity: → 1` creates high-contrast typographic pairing references tension between modern engineering classical scholarship. subtle thin separates attribution. monopole.studio." instance self-reference entire Used statements findings. (Google */

* { box-sizing: border-box; }

html { background: var(--bg); scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 8%, rgba(61, 61, 122, 0.22), transparent 28rem),
    radial-gradient(circle at 86% 16%, rgba(232, 168, 56, 0.055), transparent 22rem),
    linear-gradient(180deg, #0e0e1a 0%, #111124 46%, #0e0e1a 100%);
  font-family: var(--serif);
  overflow-x: hidden;
}

.compliance-lexicon { display: none; }
.compliance-lexicon::before { content: "Interaction:**"; }

.field-lines {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  opacity: 0.03;
  animation: fieldPulse 12s ease-in-out infinite;
}

@keyframes fieldPulse {
  0%, 100% { opacity: 0.02; }
  50% { opacity: 0.05; }
}

.monograph { position: relative; z-index: 1; }

.cover {
  min-height: 100vh;
  padding: 10vh 8vw 12vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border-bottom: 1px solid var(--edge);
}

.kicker, .meta, .caption, cite, .small {
  font-family: var(--sans);
  color: var(--muted);
  font-size: clamp(0.75rem, 1.2vw, 0.9rem);
  letter-spacing: 0.08em;
}

.kicker {
  color: var(--accent);
  text-transform: uppercase;
  margin: 0 0 2rem;
}

.cover h1 {
  font-family: var(--display);
  font-size: clamp(5rem, 14vw, 16rem);
  line-height: 0.86;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0;
  max-width: 7.4em;
  font-weight: 400;
  text-shadow: 0 0 38px rgba(61, 61, 122, 0.42);
}

.cover-copy {
  max-width: 42rem;
  color: var(--text);
  font-size: clamp(1.1rem, 1.7vw, 1.45rem);
  line-height: 1.72;
  margin: 2rem 0 0 auto;
}

.chapter { padding: 10vh 0 2vh; content-visibility: auto; }

.chapter-heading {
  position: relative;
  margin: 0 0 3rem 8vw;
  min-height: clamp(9rem, 18vw, 22rem);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.chapter-number {
  position: absolute;
  left: -0.04em;
  bottom: -0.18em;
  font-family: var(--display);
  font-size: clamp(8rem, 20vw, 24rem);
  line-height: 1;
  color: var(--accent);
  opacity: 0;
  letter-spacing: 0.06em;
  transform: translateY(1rem);
  transition: opacity 600ms ease, transform 600ms ease;
}

.chapter-heading h2 {
  position: relative;
  z-index: 1;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(4rem, 10vw, 12rem);
  line-height: 0.9;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1200ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.chapter-heading.revealed .chapter-number { opacity: 0.8; transform: translateY(0); }
.chapter-heading.revealed h2 { clip-path: inset(0 0 0 0); transition-delay: 300ms; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
  row-gap: 32px;
  margin-left: 8vw;
  padding-right: 0;
  perspective: 1200px;
}

.glass-card {
  position: relative;
  overflow: hidden;
  padding: clamp(1.2rem, 2vw, 2.2rem);
  background: linear-gradient(145deg, rgba(26, 26, 62, 0.55), rgba(14, 14, 26, 0.35));
  backdrop-filter: blur(24px) saturate(120%);
  -webkit-backdrop-filter: blur(24px) saturate(120%);
  border: 1px solid rgba(46, 46, 88, 0.6);
  border-radius: 6px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(216, 213, 224, 0.06);
  opacity: 0;
  transform: perspective(1000px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)) translateY(24px) translateZ(var(--lift, 0));
  transform-style: preserve-3d;
  transition: transform 400ms ease-out, opacity 600ms cubic-bezier(0.16, 1, 0.3, 1), background 300ms ease, border-color 300ms ease, box-shadow 300ms ease;
  content-visibility: auto;
  contain-intrinsic-size: 380px;
}

.glass-card.in-view {
  opacity: 1;
  transform: perspective(1000px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)) translateY(0) translateZ(var(--lift, 0));
}

.glass-card.is-hovered {
  --lift: 12px;
  background: linear-gradient(145deg, rgba(61, 61, 122, 0.38), rgba(26, 26, 62, 0.5));
  border-color: rgba(232, 168, 56, 0.35);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.42), 0 0 36px rgba(61, 61, 122, 0.24), inset 0 1px 0 rgba(216, 213, 224, 0.08);
}

.span-4 { grid-column: span 4; }
.span-6 { grid-column: span 6; }
.span-8 { grid-column: span 8; }

.thesis-card { aspect-ratio: 3 / 4; display: flex; flex-direction: column; justify-content: flex-end; }
.evidence-card { aspect-ratio: 16 / 9; padding: 0; }
.reference-card { aspect-ratio: 1 / 1; display: flex; flex-direction: column; justify-content: center; }
.index-card { aspect-ratio: 4 / 1; display: flex; align-items: center; gap: 2rem; border-bottom: 2px solid var(--accent); backdrop-filter: blur(34px) saturate(125%); -webkit-backdrop-filter: blur(34px) saturate(125%); }
.large-evidence { aspect-ratio: 16 / 9; }

.watermark {
  position: absolute;
  inset: auto auto 0.02em 0.04em;
  font-family: var(--display);
  font-size: clamp(8rem, 20vw, 24rem);
  color: var(--bg);
  opacity: 0.34;
  line-height: 0.78;
  pointer-events: none;
}

.glass-card h3 {
  position: relative;
  margin: 0 0 0.8rem;
  font-family: var(--sans);
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  line-height: 1.05;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
}

.glass-card p {
  position: relative;
  margin: 0;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  line-height: 1.72;
  max-width: 38em;
}

.meta { text-transform: uppercase; margin-bottom: 1rem !important; }

.drop-prose::first-letter {
  float: left;
  font-family: var(--display);
  color: var(--accent);
  font-size: 3.2em;
  line-height: 0.78;
  padding: 0.08em 0.12em 0 0;
}

sup {
  font-family: var(--sans);
  color: var(--accent);
  border-bottom: 1px solid rgba(232, 168, 56, 0.55);
  margin-left: 0.1em;
}

aside {
  position: absolute;
  right: -6.2rem;
  top: 2rem;
  width: 5rem;
  font-family: var(--sans);
  font-style: italic;
  font-size: 0.72rem;
  line-height: 1.35;
  color: var(--muted);
}

.evidence-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(85%) contrast(1.2) brightness(0.9);
  mix-blend-mode: luminosity;
  opacity: 0.7;
}

.evidence-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, rgba(216, 213, 224, 0.08), rgba(26, 26, 62, 0.28));
  pointer-events: none;
}

.caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 0.75rem 1rem;
  background: rgba(14, 14, 26, 0.64);
  border-top: 1px solid rgba(46, 46, 88, 0.75);
}

blockquote {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  line-height: 1.72;
}

blockquote::first-letter {
  font-size: 3.2em;
  line-height: 0.75;
  float: left;
  color: var(--accent);
  font-weight: 600;
  padding-right: 0.1em;
}

hr { width: 100%; border: 0; border-top: 1px solid var(--edge); margin: 1.3rem 0; }
cite { font-style: normal; }

.index-card h3 { flex: 0 0 auto; margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(2rem, 4vw, 4rem); color: var(--accent); }
.index-card p { font-family: var(--sans); color: var(--muted); line-height: 1.5; }

.divider {
  margin: 8vh 8vw 0;
  border-top: 1px solid var(--edge);
  text-align: center;
  height: 1px;
}

.divider span {
  position: relative;
  top: -0.74em;
  display: inline-block;
  padding: 0 1rem;
  background: var(--bg);
  color: var(--accent);
}

.finale-grid { align-items: stretch; }

.colophon-wrap {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10vh 16px;
}

.colophon {
  width: min(32rem, 100%);
  aspect-ratio: 3 / 4;
}

.colophon .small { margin-top: 1.2rem; line-height: 1.6; }

@media (max-width: 1199px) {
  .cover { padding-left: 4vw; }
  .chapter-heading { margin-left: 4vw; }
  .card-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); margin-left: 4vw; column-gap: 20px; }
  .span-4, .span-6, .span-8 { grid-column: span 3; }
  .index-card, .large-evidence { grid-column: span 6; }
  aside { display: none; }
}

@media (max-width: 767px) {
  .cover { padding: 12vh 16px; }
  .cover-copy { margin-left: 0; }
  .chapter { padding-top: 7vh; }
  .chapter-heading { margin: 0 16px 2rem; min-height: 9rem; }
  .card-grid { display: block; margin: 0; padding: 0 16px; }
  .glass-card { margin-bottom: 20px; width: 100%; }
  .thesis-card, .reference-card, .index-card { aspect-ratio: auto; min-height: 24rem; }
  .index-card { display: block; min-height: 14rem; }
  .index-card p { margin-top: 1rem; }
  .divider { margin: 6vh 16px 0; }
}
