/* ==========================================================================
   THE OBSIDIAN ASSEMBLY (018) — 1:1 Tactile Museum Monograph & Folio (RTL)
   Palette: #F2ECE1 parchment · #1A1612 espresso · #C86432 burnt terracotta
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --paper: #F2ECE1;
  --paper-hi: #F8F4EC;
  --ink: #1A1612;
  --dark-foot: #1E1914;
  --muted: rgba(26, 22, 18, 0.64);
  --terra: #C86432;
  --line: rgba(26, 22, 18, 0.12);
  --grid-line: rgba(26, 22, 18, 0.055);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html { background: var(--paper); color: var(--ink); scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  background-color: var(--paper);
  background-image: linear-gradient(to left, var(--grid-line) 1px, transparent 1px);
  background-size: calc(100% / 6) 100%;
  color: var(--ink);
  font-family: 'IBM Plex Sans Arabic', system-ui, sans-serif;
  line-height: 1.72;
  overflow-x: clip;
  letter-spacing: 0 !important;
}
h1, h2, h3, h4, p, a, button, span, blockquote { letter-spacing: 0; }
[dir="ltr"], [lang="en"] { font-family: 'JetBrains Mono', monospace; letter-spacing: 0.09em; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

.obs-wrap {
  width: 100%;
  max-width: 1340px;
  margin-inline: auto;
  padding-inline: clamp(18px, 3.5vw, 52px);
}

/* Fixed Museum Folio Perimeter HUD */
.obs-hud-top {
  position: fixed;
  top: 18px; right: 24px; left: 24px;
  z-index: 75;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
}
.obs-hud-top a, .obs-hud-top span {
  pointer-events: auto;
  padding: 6px 13px;
  border-radius: 999px;
  background: rgba(242, 236, 225, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  font-size: 0.76rem;
}
.obs-hud-bot {
  position: fixed;
  bottom: 18px; right: 24px;
  z-index: 75;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(242, 236, 225, 0.88);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  font-size: 0.74rem;
  pointer-events: none;
}
.obs-rail {
  position: fixed;
  top: 90px; bottom: 90px; left: 16px;
  width: 24px;
  z-index: 70;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  color: var(--muted);
  pointer-events: none;
}
.obs-rail-bar {
  width: 1px;
  flex: 1;
  background: var(--line);
  position: relative;
}
.obs-rail-bar i {
  position: absolute;
  top: 0; left: -1px;
  width: 3px;
  height: 0%;
  background: var(--terra);
}
@media (max-width: 860px) { .obs-rail, .obs-hud-bot { display: none; } }
html.cfx-embed-preview .obs-rail,
html.cfx-embed-preview .obs-hud-bot,
html.cfx-embed-preview .obs-dir-link { display: none !important; }

/* 1. Hero Overture + Fanned 4-Card Archival Stack */
.obs-hero {
  position: relative;
  min-height: 94vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 96px 20px 56px;
}
.obs-hero::before {
  content: '';
  position: absolute;
  top: 50%; left: 0; right: 0;
  height: 1px;
  background: var(--line);
  z-index: 0;
}
.obs-hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.obs-est {
  font-size: 0.74rem;
  color: var(--muted);
  background: var(--paper);
  padding: 2px 12px;
}
.obs-hero h1 {
  font-family: 'Amiri', Georgia, serif;
  font-weight: 400;
  font-size: clamp(3rem, 6.8vw, 6.2rem);
  line-height: 1.05;
  background: var(--paper);
  padding: 0 18px;
}
.obs-hero h1 em {
  font-style: italic;
  color: var(--terra);
}
.obs-fan {
  margin-top: 22px;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 175px;
}
.obs-fan-card {
  width: 118px; height: 156px;
  border-radius: 6px;
  overflow: hidden;
  border: 3px solid var(--paper-hi);
  box-shadow: 0 16px 34px rgba(26, 22, 18, 0.18);
  margin-inline: -16px;
  transition: transform 0.45s var(--ease);
}
.obs-fan-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.obs-fan-card:nth-child(1) { transform: rotate(9deg) translateY(10px); }
.obs-fan-card:nth-child(2) { transform: rotate(3deg); z-index: 2; }
.obs-fan-card:nth-child(3) { transform: rotate(-4deg); z-index: 3; }
.obs-fan-card:nth-child(4) { transform: rotate(-10deg) translateY(12px); }
.obs-fan:hover .obs-fan-card:nth-child(1) { transform: rotate(13deg) translateX(14px); }
.obs-fan:hover .obs-fan-card:nth-child(4) { transform: rotate(-14deg) translateX(-14px); }

/* 2. 3-Column Asymmetric Archive Deck (01/07 .. 07/07) */
.obs-sec {
  padding: clamp(68px, 8.5vw, 118px) 0;
  border-top: 1px solid var(--line);
}
.obs-deck {
  display: grid;
  grid-template-columns: 1fr 0.92fr 1fr;
  gap: clamp(22px, 3.2vw, 44px);
  align-items: center;
}
@media (max-width: 780px) { .obs-deck { grid-template-columns: 1fr; } }

.obs-roman {
  font-family: 'Amiri', Georgia, serif;
  font-style: italic;
  font-size: 2.2rem;
  color: var(--terra);
  display: block;
}
.obs-deck-title {
  font-family: 'Amiri', Georgia, serif;
  font-size: clamp(1.85rem, 2.8vw, 2.5rem);
  line-height: 1.2;
  margin: 6px 0 14px;
}
.obs-plate-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 20px;
}
.obs-p-btn {
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--paper-hi);
  font-size: 0.76rem;
  cursor: pointer;
}
.obs-p-btn.is-active {
  background: var(--terra);
  color: #fff;
  border-color: var(--terra);
}

.obs-plate-frame {
  position: relative;
  padding: 14px 14px 18px;
  background: var(--paper-hi);
  border: 1px solid var(--line);
  box-shadow: 0 28px 56px -26px rgba(26, 22, 18, 0.25);
  text-align: center;
}
.obs-plate-frame img {
  width: 100%;
  aspect-ratio: 3 / 3.8;
  object-fit: cover;
  display: block;
  transition: filter 0.45s var(--ease);
}
.obs-live-tag {
  position: absolute;
  top: 24px; right: 24px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(26, 22, 18, 0.76);
  color: var(--paper);
  font-size: 0.68rem;
}
.obs-plate-cap {
  margin-top: 12px;
  font-family: 'Amiri', serif;
  font-style: italic;
  font-size: 1.05rem;
}

.obs-ledger {
  border-top: 1px solid var(--line);
}
.obs-ledger-row {
  display: flex;
  justify-content: space-between;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.88rem;
}
.obs-ledger-row span { color: var(--muted); }
.obs-dashes {
  display: flex;
  gap: 6px;
  margin-top: 18px;
}
.obs-dashes i {
  flex: 1;
  height: 3px;
  background: var(--line);
  transition: background 0.25s ease;
}
.obs-dashes i.is-on { background: var(--terra); }

/* 3. Article III Manifesto Quote */
.obs-doctrine {
  padding: clamp(80px, 11vw, 138px) 0;
  text-align: center;
  border-top: 1px solid var(--line);
}
.obs-doctrine blockquote {
  font-family: 'Amiri', Georgia, serif;
  font-size: clamp(1.75rem, 3.3vw, 2.85rem);
  line-height: 1.48;
  max-width: 26ch;
  margin: 16px auto 18px;
}
.obs-doctrine blockquote em {
  font-style: italic;
  color: var(--terra);
}

/* 4. Room I Golden-Hour Spatial Gallery (#connection) */
.obs-room {
  position: relative;
  min-height: 560px;
  display: grid;
  place-items: center;
  padding: 64px 20px;
  overflow: hidden;
}
.obs-room-bg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%; object-fit: cover;
}
.obs-room::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(26, 22, 18, 0.36);
}
.obs-room-center {
  position: relative;
  z-index: 3;
  text-align: center;
  color: var(--paper-hi);
}
.obs-room-center h2 {
  font-family: 'Amiri', serif;
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 1;
  margin-bottom: -24px;
}
.obs-inset-card {
  width: 190px;
  margin: 0 auto;
  padding: 10px;
  background: var(--paper-hi);
  color: var(--ink);
  box-shadow: 0 26px 50px rgba(0, 0, 0, 0.45);
}
.obs-inset-card img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; display: block; }
.obs-inset-card small { display: block; margin-top: 6px; font-family: 'Amiri', serif; font-style: italic; }

/* 5. 4x2 Full Catalogue Index Grid */
.obs-index-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
}
@media (max-width: 820px) { .obs-index-grid { grid-template-columns: repeat(2, 1fr); } }
.obs-idx-tile {
  padding: 20px;
  border-left: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: background 0.25s ease;
}
.obs-idx-tile:hover { background: var(--paper-hi); }
.obs-idx-tile img {
  width: 100%;
  aspect-ratio: 4 / 4.4;
  object-fit: cover;
  margin: 10px 0;
  display: block;
}
.obs-idx-tile strong { display: block; font-family: 'Amiri', serif; font-size: 1.12rem; }
.obs-idx-tile small { color: var(--muted); font-size: 0.74rem; }

/* 6. Espresso-Black Colophon Footer + Diamond Marquee */
.obs-footer {
  background: var(--dark-foot);
  color: var(--paper);
}
.obs-marquee {
  padding: 16px 0;
  border-bottom: 1px solid rgba(242, 236, 225, 0.12);
  overflow: hidden;
  white-space: nowrap;
  font-family: 'Amiri', serif;
  font-style: italic;
  font-size: 1.25rem;
}
.obs-marquee b { color: var(--terra); margin-inline: 14px; }
.obs-foot-row {
  padding: 38px 0 44px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  font-size: 0.85rem;
  color: rgba(242, 236, 225, 0.72);
}
.obs-foot-btn {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(242, 236, 225, 0.22);
  color: var(--paper);
  font-size: 0.82rem;
}
