/* ==========================================================================
   ATTILAS · PREMIUM LAYER (2026-11-18)
   Loaded last on every page. Three jobs:
   1. Ambient canvas (assets/js/ambient.js) layering.
   2. .vhero — the Pell-showcase pattern (looping muted video + frosted veil +
      centred editorial title + CTA row) generalised for any page.
   3. .dl-* — offline download promotion (homepage band + downloads hub),
      plus quiet craft polish (header on scroll, focus rings, nav accent).
   Palette stays on base.css tokens: walnut black, antique bronze, crimson.
   ========================================================================== */

/* ---- 1. Ambient layer ---------------------------------------------------- */
#ambient-layer {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 88;               /* above content, below sticky header (90) */
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0.9;
}
#ambient-layer[data-variant="vellum"] { mix-blend-mode: multiply; opacity: 0.75; }
@media (prefers-reduced-motion: reduce) {
  #ambient-layer { opacity: 0.45; }
}

/* ---- Header refinement --------------------------------------------------- */
.site-header {
  transition: background 0.45s cubic-bezier(0.22, 1, 0.36, 1),
              border-color 0.45s ease, box-shadow 0.45s ease;
}
.site-header.is-scrolled {
  background: rgba(9, 9, 11, 0.78);
  border-bottom-color: rgba(200, 168, 107, 0.16);
  box-shadow: 0 10px 40px -18px rgba(0, 0, 0, 0.8);
}
.site-nav__link--dl {
  position: relative;
  color: var(--accent-gold-bright, #e2c48c) !important;
}
.site-nav__link--dl::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 7px;
  border-radius: 50%;
  vertical-align: middle;
  background: var(--accent-crimson, #9e343e);
  box-shadow: 0 0 0 3px rgba(158, 52, 62, 0.22);
  animation: dl-pulse 2.6s ease-in-out infinite;
}
@keyframes dl-pulse {
  0%, 100% { box-shadow: 0 0 0 2px rgba(158, 52, 62, 0.28); }
  50%      { box-shadow: 0 0 0 5px rgba(158, 52, 62, 0.06); }
}

:where(a, button, [tabindex]):focus-visible {
  outline: 1px solid var(--accent-gold-bright, #e2c48c);
  outline-offset: 3px;
}

/* ---- 2. Video hero (Pell-showcase pattern) -------------------------------- */
.vhero {
  --vh-gold: #c8a670;
  --vh-ivory: #f6efe4;
  --vh-muted: rgba(246, 239, 228, 0.74);
  position: relative;
  isolation: isolate;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  min-height: clamp(460px, 68vh, 720px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  background: #0a0b0f center / cover no-repeat;
  color: var(--vh-ivory);
  border-bottom: 1px solid rgba(200, 166, 112, 0.24);
}
.vhero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  /* Soft focus: hides low-bitrate macroblocks of the 720p loop, reads as depth of field */
  filter: blur(1.2px) saturate(110%) brightness(0.9);
  transform: scale(1.1);
  transition: transform 9s cubic-bezier(0.22, 1, 0.36, 1);
}
.vhero__video.is-playing { transform: scale(1.06); }
.vhero__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(58% 46% at 50% 56%, rgba(8, 8, 10, 0.5), transparent 78%),
    linear-gradient(180deg, rgba(8, 9, 12, 0.55) 0%, rgba(8, 9, 12, 0.08) 34%, rgba(8, 9, 12, 0.35) 62%, rgba(9, 8, 7, 0.96) 100%),
    radial-gradient(120% 80% at 50% 110%, rgba(158, 52, 62, 0.22), transparent 60%);
}
.vhero__inner {
  position: relative;
  z-index: 2;
  width: min(1180px, 100% - 48px);
  margin: 0 auto;
  padding: 120px 0 54px;
  text-align: center;
}
.vhero__kicker {
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--vh-gold);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.6);
}
.vhero__title {
  margin: 16px auto 14px;
  max-width: 22ch;
  font-family: var(--font-serif, serif);
  font-weight: 600;
  font-size: clamp(30px, 4.4vw, 60px);
  line-height: 1.14;
  letter-spacing: 0.02em;
  text-shadow: 0 4px 36px rgba(0, 0, 0, 0.75);
  text-wrap: balance;
}
.vhero__title em {
  display: block;
  margin-top: 10px;
  font-family: var(--font-display, serif);
  font-style: italic;
  font-weight: 400;
  font-size: 0.42em;
  letter-spacing: 0.08em;
  color: var(--vh-gold);
}
.vhero__quote {
  margin: 0 auto 12px;
  max-width: 46ch;
  font-family: var(--font-serif, serif);
  font-size: clamp(15px, 1.4vw, 18px);
  color: rgba(246, 239, 228, 0.9);
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.7);
}
.vhero__lead {
  margin: 0 auto;
  max-width: 68ch;
  font-size: 15px;
  line-height: 1.85;
  color: var(--vh-muted);
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.7);
}
.vhero__ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
}
.vhero__facts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
  margin: 34px auto 0;
  padding-top: 18px;
  max-width: 760px;
  border-top: 1px solid rgba(200, 166, 112, 0.22);
  font-family: var(--font-mono, monospace);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: rgba(246, 239, 228, 0.66);
}
.vhero__facts span { padding: 0 18px; }
.vhero__facts span + span { border-left: 1px solid rgba(200, 166, 112, 0.26); }
.vhero__facts strong { color: var(--vh-ivory); font-weight: 500; margin-right: 6px; }

/* Shared premium buttons */
.pbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid rgba(200, 166, 112, 0.5);
  background: rgba(12, 12, 14, 0.42);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #f6efe4;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), background 0.3s ease,
              border-color 0.3s ease, box-shadow 0.35s ease;
}
.pbtn:hover {
  transform: translateY(-2px);
  border-color: #e2c48c;
  background: rgba(200, 166, 112, 0.18);
}
.pbtn--gold {
  border-color: transparent;
  background: linear-gradient(135deg, #c8a670 0%, #ecd09a 52%, #c8a670 100%);
  background-size: 200% 100%;
  color: #1b150e;
  font-weight: 600;
  box-shadow: 0 14px 34px -12px rgba(200, 166, 112, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.pbtn--gold:hover {
  background: linear-gradient(135deg, #c8a670 0%, #ecd09a 52%, #c8a670 100%);
  background-size: 200% 100%;
  background-position: 100% 0;
  box-shadow: 0 18px 40px -12px rgba(200, 166, 112, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.pbtn--crimson {
  border-color: rgba(214, 110, 120, 0.4);
  background: linear-gradient(135deg, #8a232d, #a63442);
  color: #fff6f0;
  box-shadow: 0 14px 34px -14px rgba(158, 52, 62, 0.7);
}
.pbtn--crimson:hover { background: linear-gradient(135deg, #a63442, #b9404e); border-color: rgba(236, 160, 168, 0.6); }
.pbtn svg { width: 15px; height: 15px; flex: none; }
.pbtn small {
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  opacity: 0.72;
  font-weight: 400;
}

/* Staggered entrance for hero content */
.vhero__inner > *,
.dl-stage__inner > * {
  animation: vh-rise 1.1s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.vhero__inner > *:nth-child(2), .dl-stage__inner > *:nth-child(2) { animation-delay: 0.08s; }
.vhero__inner > *:nth-child(3), .dl-stage__inner > *:nth-child(3) { animation-delay: 0.16s; }
.vhero__inner > *:nth-child(4), .dl-stage__inner > *:nth-child(4) { animation-delay: 0.24s; }
.vhero__inner > *:nth-child(5), .dl-stage__inner > *:nth-child(5) { animation-delay: 0.32s; }
.vhero__inner > *:nth-child(6), .dl-stage__inner > *:nth-child(6) { animation-delay: 0.4s; }
@keyframes vh-rise {
  from { opacity: 0; transform: translateY(16px); filter: blur(6px); }
  to   { opacity: 1; transform: none; filter: none; }
}
@media (prefers-reduced-motion: reduce) {
  .vhero__inner > *, .dl-stage__inner > * { animation: none; }
  .vhero__video { transform: none; transition: none; }
  .site-nav__link--dl::before { animation: none; }
}

/* ---- 3. Download promotion ------------------------------------------------ */
.dl-band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(64px, 9vw, 120px) 0;
  border-top: 1px solid rgba(200, 166, 112, 0.18);
  border-bottom: 1px solid rgba(200, 166, 112, 0.18);
  background: #0a0a0c;
}
.dl-band__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  filter: saturate(92%) brightness(0.55);
}
.dl-band::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(9, 8, 7, 0.94) 0%, rgba(9, 8, 7, 0.72) 46%, rgba(9, 8, 7, 0.35) 100%),
    linear-gradient(180deg, rgba(9, 8, 7, 0.6), transparent 30%, transparent 70%, rgba(9, 8, 7, 0.8));
}
.dl-band__grid {
  width: min(1240px, 100% - 48px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}
.dl-eyebrow {
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent-gold, #c8a86b);
}
.dl-band h2 {
  margin: 14px 0 16px;
  font-family: var(--font-serif, serif);
  font-weight: 600;
  font-size: clamp(26px, 3vw, 42px);
  line-height: 1.2;
  color: #f3eadc;
  text-wrap: balance;
}
.dl-band h2 em {
  font-family: var(--font-display, serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent-gold-bright, #e2c48c);
}
.dl-band p { margin: 0; max-width: 46ch; color: rgba(237, 230, 218, 0.72); line-height: 1.9; font-size: 15px; }
.dl-band__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.dl-cards { display: grid; grid-template-columns: 1.25fr 1fr; gap: 16px; }
.dl-tile {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(200, 166, 112, 0.24);
  background: #111;
  color: #f3eadc;
  text-decoration: none;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.9);
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.4s ease, box-shadow 0.6s ease;
}
.dl-tile:hover {
  transform: translateY(-4px);
  border-color: rgba(226, 196, 140, 0.6);
  box-shadow: 0 40px 70px -30px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(226, 196, 140, 0.12);
}
.dl-tile img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1); }
.dl-tile:hover img { transform: scale(1.05); }
.dl-tile--feature img { aspect-ratio: 4 / 5; }
.dl-tile__cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 60px 18px 18px;
  background: linear-gradient(180deg, transparent, rgba(6, 6, 7, 0.92));
}
.dl-tile__tag {
  display: inline-block;
  margin-bottom: 8px;
  padding: 3px 9px;
  border-radius: 999px;
  font-family: var(--font-mono, monospace);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: #1b150e;
  background: var(--accent-gold-bright, #e2c48c);
}
.dl-tile__tag--muted { color: #f3eadc; background: rgba(243, 234, 220, 0.14); }
.dl-tile__name { display: block; font-family: var(--font-serif, serif); font-size: 18px; line-height: 1.35; }
.dl-tile__meta { display: block; margin-top: 6px; font-family: var(--font-mono, monospace); font-size: 11px; color: rgba(243, 234, 220, 0.62); }

@media (max-width: 900px) {
  .dl-band__grid { grid-template-columns: 1fr; }
  .dl-band::after { background: linear-gradient(180deg, rgba(9, 8, 7, 0.88), rgba(9, 8, 7, 0.7)); }
}
@media (max-width: 560px) {
  .dl-cards { grid-template-columns: 1fr; }
  .vhero__facts span { padding: 4px 10px; }
  .vhero__facts span + span { border-left: 0; }
}

/* CJK emphasis: no synthetic italic on Chinese glyphs */
.dl-band h2 em, .dl-stage h1 em { font-style: normal; font-family: var(--font-serif, serif); font-weight: 600; }


/* ==========================================================================
   4. DESIGN SYSTEM PASS (2026-11-18 · "Museum Theatre")
   One grid, one button language, one radius scale, one section rhythm.
   - Grid: every band aligns to the header gutter (no 16–32px hero override,
     no hairline side borders).
   - Radius: 12px cards · 8px media · 999px controls · arch untouched.
   - Buttons: btn-archival / portal-pill re-cut to the .pbtn pill language.
   - Rhythm: bands breathe at clamp(72px, 9vw, 128px).
   ========================================================================== */
:root {
  --r-card: 12px;
  --r-media: 8px;
  --band-pad: clamp(72px, 9vw, 128px);
  --hair-gold: rgba(200, 168, 107, 0.2);
  --ease-out-quint: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---- Grid ---- */
#stage-root .archival-wrap { padding-inline: var(--gutter); }
.hero-fusion .archival-wrap { border-left: 0; border-right: 0; }

/* ---- Section rhythm & headings ---- */
.prism-band,
.obsidian-bento-band,
.statement-band { padding-block: var(--band-pad); }
.obsidian-bento-band { background: linear-gradient(180deg, #0b0b0e 0%, #0e0d0c 100%); border-bottom-color: var(--hair-gold); }
.statement-band { background: #0a0909; border-bottom: 0; }

.band-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent-gold, #c8a86b);
}
.band-eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}
.bento-head { margin-bottom: clamp(28px, 3.5vw, 44px); padding-bottom: 22px; border-bottom: 1px solid var(--hair-gold); }
.bento-head__title { font-family: var(--font-serif); font-size: clamp(26px, 2.9vw, 40px); letter-spacing: 0.02em; }

/* ---- Buttons: one pill language ---- */
.btn-archival {
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  letter-spacing: 0.04em;
  font-size: 14px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform 0.35s var(--ease-out-quint), background 0.3s ease, border-color 0.3s ease, box-shadow 0.35s ease;
}
.btn-archival:hover { transform: translateY(-2px); }
.btn-archival--solid {
  border-color: transparent;
  background: linear-gradient(135deg, #c8a670 0%, #ecd09a 52%, #c8a670 100%);
  background-size: 200% 100%;
  box-shadow: 0 14px 34px -14px rgba(200, 166, 112, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.btn-archival--solid:hover {
  background: linear-gradient(135deg, #c8a670 0%, #ecd09a 52%, #c8a670 100%);
  background-size: 200% 100%;
  background-position: 100% 0;
  border-color: transparent;
}

.portal-subpills { gap: 8px; }
.portal-pill {
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border-color: rgba(242, 234, 220, 0.16);
  background: rgba(255, 255, 255, 0.03);
  font-size: 13px;
  letter-spacing: 0.02em;
  transition: transform 0.3s var(--ease-out-quint), border-color 0.25s ease, background 0.25s ease, color 0.25s ease;
}
.portal-pill:hover { transform: translateY(-1px); border-color: rgba(226, 196, 140, 0.7); background: rgba(200, 168, 107, 0.12); }
.portal-pill--crimson {
  border-color: rgba(214, 110, 120, 0.42);
  background: linear-gradient(135deg, rgba(138, 35, 45, 0.55), rgba(166, 52, 66, 0.42));
  color: #fff4ee;
}
.portal-pill--crimson:hover { background: linear-gradient(135deg, rgba(166, 52, 66, 0.8), rgba(185, 64, 78, 0.7)); border-color: rgba(236, 160, 168, 0.7); }

/* ---- Hero: unframed triptych, refined filmstrip ---- */
.triptych-stage {
  padding: 0;
  background: none;
  border: 0;
  box-shadow: none;
  gap: 14px;
}
.triptych-stage::before {
  content: "";
  position: absolute;
  inset: -12% -8%;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(200, 160, 96, 0.16), transparent 70%);
  pointer-events: none;
}
.triptych-wing { border-radius: var(--r-media); border-color: rgba(200, 168, 107, 0.22); }
.triptych-arch { box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.9), 0 0 0 6px rgba(200, 168, 107, 0.06); }
.triptych-cap { padding: 40px 12px 12px; font-size: 13px; }
.triptych-cap small { margin-top: 2px; font-size: 10.5px; letter-spacing: 0.08em; }

.hero-filmstrip { gap: 12px; }
.filmstrip-tile {
  border-radius: var(--r-media);
  border-color: rgba(242, 234, 220, 0.1);
  background: #0c0c0e;
  box-shadow: 0 18px 40px -24px rgba(0, 0, 0, 0.9);
  transition: transform 0.5s var(--ease-out-quint), border-color 0.3s ease, box-shadow 0.5s ease;
}
.filmstrip-tile img { transition: transform 0.9s var(--ease-out-quint), filter 0.5s ease; filter: saturate(0.92) brightness(0.92); }
.filmstrip-tile:hover { transform: translateY(-4px); border-color: rgba(226, 196, 140, 0.55); box-shadow: 0 26px 50px -24px rgba(0, 0, 0, 0.95); }
.filmstrip-tile:hover img { transform: scale(1.05); filter: none; }
.filmstrip-tile span {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 28px 12px 10px;
  border-top: 0;
  font-size: 13px;
  background: linear-gradient(180deg, transparent, rgba(6, 6, 7, 0.88));
}

/* ---- Bento: balanced columns, image-led side cards ---- */
.bento-matrix { gap: 20px; align-items: stretch; }
.bento-stack { gap: 20px; }
.bento-stack .bento-card { flex: 1; }
.bento-card {
  border-radius: var(--r-card);
  border-color: rgba(242, 234, 220, 0.1);
  background:
    radial-gradient(420px circle at var(--mx) var(--my), rgba(200, 160, 96, 0.1), transparent 60%),
    linear-gradient(180deg, #141312 0%, #0f0e0d 100%);
  box-shadow: inset 0 1px 0 rgba(255, 246, 230, 0.06), 0 30px 60px -40px rgba(0, 0, 0, 0.9);
}
.bento-card--anchor {
  background:
    radial-gradient(520px circle at var(--mx) var(--my), rgba(226, 194, 133, 0.14), transparent 62%),
    linear-gradient(160deg, rgba(126, 30, 38, 0.22) 0%, #141210 50%, #0e0d0c 100%);
  border-color: rgba(200, 168, 107, 0.32);
}
.bento-card__media { border-radius: var(--r-media); border-color: rgba(200, 168, 107, 0.18); }
.bento-card__media img { transition: transform 1.2s var(--ease-out-quint); }
.bento-card:hover .bento-card__media img { transform: scale(1.04); }
.bento-card__thumb {
  position: relative;
  aspect-ratio: 21 / 9;
  margin: -6px -6px 18px;
  overflow: hidden;
  border-radius: var(--r-media);
}
.bento-card__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(0.9); transition: transform 1.2s var(--ease-out-quint); }
.bento-card__thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(15, 14, 13, 0.85)); }
.bento-card:hover .bento-card__thumb img { transform: scale(1.05); }
.bento-card .portal-sublink {
  border-radius: 10px;
  border-color: rgba(200, 168, 107, 0.16);
  background: rgba(255, 255, 255, 0.02);
}
.sub-branches { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ---- Statement: editorial closer ---- */
.statement-display { font-family: var(--font-display); font-weight: 500; letter-spacing: 0.01em; }
.statement-desk {
  border-radius: var(--r-card);
  border-color: rgba(200, 168, 107, 0.24);
  background: linear-gradient(160deg, #15130f, #0e0d0b);
  box-shadow: inset 0 1px 0 rgba(255, 246, 230, 0.07);
}

@media (max-width: 900px) {
  .sub-branches { grid-template-columns: 1fr; }
}

/* Warm the remaining cold-navy surfaces into the walnut scale */
.prism-band { background: linear-gradient(180deg, #0e0d0c 0%, #0b0a09 100%); border-bottom-color: var(--hair-gold); }
.prism-readout { border-radius: var(--r-card); border-color: rgba(200, 168, 107, 0.2); background: linear-gradient(160deg, #15130f, #0e0d0b); }
/* Anchor card: image grows to meet the sub-branches, no dead gap */
.bento-card--anchor > div:first-child { display: flex; flex-direction: column; flex: 1; }
.bento-card--anchor .bento-card__media { flex: 1; aspect-ratio: auto; min-height: 260px; }
.bento-card--anchor .sub-branches { margin-top: 4px; }

/* ==========================================================================
   5. SUBPAGE & READING SYSTEM POLISH (2026-11-18 · Cold-Slate Purge & Craft)
   Eliminates cool slate #131620 / #161922 remnants across reading & showcase
   pages, standardizes banners, pill switches, marginalia TOC & figures,
   and fixes atlas.html night-mode visibility.
   ========================================================================== */

/* ---- Active nav hairline indicator & Prism alignment ---- */
.site-nav__link.is-active::after {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 2px;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, var(--accent-gold-bright, #e2c48c), transparent);
}
.site-nav__link--dl::before { margin-right: 6px; }
.prism-band .archival-wrap { border-left: 0; border-right: 0; }
.scrub-directory { border-top-color: rgba(200, 168, 107, 0.22); }
.scrub-row {
  border-bottom-color: rgba(200, 168, 107, 0.14);
  border-left: 2px solid transparent;
  transition: background-color 0.25s var(--ease-out-quint), border-color 0.25s ease, padding-left 0.25s var(--ease-out-quint);
}
.scrub-row:hover,
.scrub-row.is-active {
  background: linear-gradient(90deg, rgba(158, 52, 62, 0.22), rgba(200, 168, 107, 0.04) 75%, transparent);
  border-left-color: var(--accent-gold-bright, #e2c48c);
}
.prism-action {
  border-radius: 999px;
  transition: transform 0.25s var(--ease-out-quint), border-color 0.25s ease, background 0.25s ease;
}
.prism-action:hover { transform: translateY(-1px); }

/* ---- Nested Breadcrumb Ribbon & Subnav Pills ---- */
.hierarchy-bar {
  background: #0d0c0b;
  border-bottom: 1px solid rgba(200, 168, 107, 0.2);
}
.breadcrumb-trail {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
}
.subnav-pill {
  min-height: 34px;
  padding: 0 15px;
  border-radius: 999px;
  border-color: rgba(200, 168, 107, 0.22);
  background: rgba(255, 255, 255, 0.03);
  font-size: 13px;
  transition: transform 0.28s var(--ease-out-quint), border-color 0.25s ease, background 0.25s ease;
}
.subnav-pill:hover {
  transform: translateY(-1px);
  border-color: var(--accent-gold-bright, #e2c48c);
  background: rgba(200, 168, 107, 0.14);
}
.subnav-pill.is-active {
  border-color: rgba(226, 196, 140, 0.72);
  background: rgba(200, 168, 107, 0.18);
  color: #f3eadc;
}

/* ---- Atmospheric Codex Banners (Atlas Codex / Destiny 2 / Novels) ---- */
.codex-banner {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #0b0a09;
  border-bottom: 1px solid rgba(200, 168, 107, 0.24);
  padding: clamp(54px, 7vw, 96px) 0 clamp(44px, 5vw, 72px);
}
.codex-banner--art .codex-banner__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--banner-pos, 50% 35%);
  opacity: 0.34;
  filter: blur(1.5px) saturate(0.95);
  transform: scale(1.03);
  pointer-events: none;
}
.codex-banner--art::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(85% 90% at 18% 55%, rgba(9, 8, 7, 0.92), rgba(9, 8, 7, 0.42) 65%, rgba(9, 8, 7, 0.78)),
    linear-gradient(180deg, rgba(9, 8, 7, 0.65) 0%, rgba(9, 8, 7, 0.25) 45%, #090807 100%);
}
.codex-banner__meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-gold, #c8a86b);
}
.codex-banner__meta::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
  opacity: 0.65;
}
.codex-banner__title {
  font-size: clamp(28px, 3.6vw, 48px);
  line-height: 1.18;
  letter-spacing: 0.02em;
  text-wrap: balance;
}
.codex-banner__title em {
  display: block;
  margin-top: 8px;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 0.44em;
  letter-spacing: 0.08em;
  color: var(--accent-gold, #c8a86b);
}
.codex-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
.codex-banner__actions .pbtn.is-active {
  border-color: transparent;
  background: linear-gradient(135deg, #c8a670 0%, #ecd09a 52%, #c8a670 100%);
  color: #1b150e;
  font-weight: 600;
}
.codex-banner .archival-wrap > * {
  animation: vh-rise 0.95s var(--ease-out-quint) both;
}
.codex-banner .archival-wrap > *:nth-child(2) { animation-delay: 0.07s; }
.codex-banner .archival-wrap > *:nth-child(3) { animation-delay: 0.14s; }
.codex-banner .archival-wrap > *:nth-child(4) { animation-delay: 0.21s; }
.codex-banner .archival-wrap > *:nth-child(5) { animation-delay: 0.28s; }
@media (prefers-reduced-motion: reduce) {
  .codex-banner .archival-wrap > * { animation: none; }
}

/* ---- Warm Obsidian Night Reading Theme & Editorial Typography ---- */
.codex-page {
  background: #f4ede0;
  transition: background-color 0.35s ease, color 0.35s ease;
}
.codex-page[data-theme="night"] {
  background: #0b0a09;
  color: #ede6da;
}
.codex-toolbar {
  border-bottom: 1px solid rgba(135, 107, 68, 0.22);
  background: rgba(244, 237, 224, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 13px var(--gutter);
}
.codex-page[data-theme="night"] .codex-toolbar {
  background: rgba(18, 16, 14, 0.92);
  border-bottom-color: rgba(200, 168, 107, 0.2);
  color: #b5ab9b;
}

.btn-vellum {
  min-height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  border-color: rgba(135, 107, 68, 0.32);
  background: rgba(255, 252, 245, 0.65);
  font-size: 13px;
  transition: transform 0.25s var(--ease-out-quint), background-color 0.22s ease, border-color 0.22s ease, color 0.22s ease;
}
.btn-vellum:hover { transform: translateY(-1px); }
.codex-page[data-theme="night"] .btn-vellum {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(200, 168, 107, 0.26);
  color: #ede6da;
}
.codex-page[data-theme="night"] .btn-vellum:hover,
.codex-page[data-theme="night"] .btn-vellum.is-active {
  background: #9e343e;
  border-color: #c85c66;
  color: #fff6f0;
}

/* Open editorial marginalia TOC instead of heavy enclosed box */
.codex-toc {
  background: transparent;
  border: 0;
  border-left: 1px solid rgba(135, 107, 68, 0.24);
  padding: 4px 0 6px 18px;
}
.codex-page[data-theme="night"] .codex-toc {
  background: transparent;
  border: 0;
  border-left: 1px solid rgba(200, 168, 107, 0.22);
}
.codex-toc__label {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.codex-toc__link {
  border-bottom: 0;
  border-left: 2px solid transparent;
  margin-left: -19px;
  padding: 7px 10px 7px 17px;
  border-radius: 0 8px 8px 0;
}
.codex-toc__link:hover,
.codex-toc__link.is-active {
  border-left-color: #9e343e;
  background: rgba(130, 32, 41, 0.07);
}
.codex-page[data-theme="night"] .codex-toc__link:hover,
.codex-page[data-theme="night"] .codex-toc__link.is-active {
  border-left-color: #e2c48c;
  background: rgba(200, 168, 107, 0.08);
  color: #f3eadc;
}

.codex-section {
  border-bottom-color: rgba(135, 107, 68, 0.22);
}
.codex-page[data-theme="night"] .codex-section {
  border-bottom-color: rgba(200, 168, 107, 0.16);
}
.codex-section__vol {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.18em;
}
.codex-section__vol::before {
  content: "";
  width: 18px;
  height: 1px;
  background: currentColor;
  opacity: 0.65;
}
.codex-prose p { line-height: 1.94; font-size: 16px; }
.codex-prose blockquote {
  margin: 22px 0;
  padding: 14px 20px;
  border-left: 2px solid #9e343e;
  background: rgba(130, 32, 41, 0.04);
  border-radius: 0 8px 8px 0;
  font-family: var(--font-serif);
}
.codex-page[data-theme="night"] .codex-prose blockquote {
  border-left-color: #c8a86b;
  background: rgba(200, 168, 107, 0.06);
}

.codex-figure {
  border-radius: var(--r-card);
  overflow: hidden;
  border-color: rgba(135, 107, 68, 0.24);
  box-shadow: 0 18px 44px -26px rgba(32, 24, 16, 0.35);
}
.codex-figure__frame { background: #141210; }
.codex-page[data-theme="night"] .codex-figure {
  background: #141210;
  border-color: rgba(200, 168, 107, 0.2);
  box-shadow: 0 24px 54px -28px rgba(0, 0, 0, 0.85);
}
.codex-page[data-theme="night"] .codex-table-wrap {
  background: #141210;
  border-color: rgba(200, 168, 107, 0.2);
}
.codex-page[data-theme="night"] .codex-table th {
  background: #1a1714;
  color: #e2c48c;
}
.codex-page[data-theme="night"] .artifact-card {
  background: #141210;
  border-color: rgba(200, 168, 107, 0.2);
  border-radius: var(--r-card);
}

/* ---- Novels Tab Bar ---- */
.novel-tab {
  min-height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  border-color: rgba(135, 107, 68, 0.28);
  font-size: 14px;
}
.novel-tab:hover { transform: translateY(-1px); }
.codex-page[data-theme="night"] .novel-tab {
  background: #151310;
  border-color: rgba(200, 168, 107, 0.22);
  color: #dcd3c4;
}
.codex-page[data-theme="night"] .novel-tab.is-active {
  background: #9e343e;
  border-color: #c85c66;
  color: #fff6f0;
}

/* ---- Atlas Page: Showcase Buttons, Index Dock & Review Night Mode Fix ---- */
.ps-card { border: 1px solid rgba(200, 166, 112, 0.28); }
.ps-foot__actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.ps-dock {
  background: rgba(244, 237, 224, 0.96) !important;
  border-bottom: 1px solid rgba(135, 107, 68, 0.22) !important;
  transition: background-color 0.35s ease, color 0.35s ease, border-color 0.35s ease;
}
.ps-dock__cta { border-radius: 999px !important; padding: 10px 20px !important; }
.ps-dock__theme { border-radius: 999px !important; }
.codex-page[data-theme="night"] .ps-dock {
  background: #13110f !important;
  border-bottom-color: rgba(200, 168, 107, 0.2) !important;
  color: #ede6da !important;
}
.codex-page[data-theme="night"] .ps-dock__lead p { color: #a99f8c; }
.codex-page[data-theme="night"] .ps-chip {
  background: #1b1814;
  border-color: rgba(200, 168, 107, 0.26);
  color: #ede6da;
}
.codex-page[data-theme="night"] .ps-chip.is-active {
  background: #9e343e;
  border-color: #c85c66;
  color: #fff;
}
.codex-page[data-theme="night"] .ps-dock__cta {
  background: linear-gradient(135deg, #c8a670, #e2c48c);
  color: #1b150e;
  font-weight: 600;
}
.codex-page[data-theme="night"] .ps-dock__theme {
  background: #1b1814;
  border-color: rgba(200, 168, 107, 0.26);
}
.codex-page[data-theme="night"] .ps-theme { color: #b5ab9b; }
.codex-page[data-theme="night"] .ps-theme.is-active { background: #c8a670; color: #1b150e; }

.rev-wrap {
  background: #f4ede0 !important;
  transition: background-color 0.35s ease;
}
.codex-page[data-theme="night"] .rev-wrap {
  background: #0b0a09 !important;
  border-top-color: rgba(200, 168, 107, 0.18) !important;
}
.codex-page[data-theme="night"] .rev-head__title { color: #f3eadc; }
.codex-page[data-theme="night"] .rev-head__sub { color: #a99f8c; }

/* ---- Saintess Game Theater & Cinema Room Harmony ---- */
.cinema-theater {
  background: radial-gradient(circle at 50% 10%, rgba(158, 52, 62, 0.12) 0%, #090807 68%);
}
.vn-bridge-dock,
.cinema-frame {
  border-radius: var(--r-card);
  overflow: hidden;
  border-color: rgba(200, 168, 107, 0.28);
  background: #0d0c0b;
  box-shadow: 0 36px 80px -36px rgba(0, 0, 0, 0.92), inset 0 1px 0 rgba(255, 246, 230, 0.06);
}
.vn-bridge-btn,
.vn-jump-chip {
  border-radius: 999px;
}
.cinema-chapter-btn { background: #12100e; }
.exhibition-card {
  border-radius: var(--r-card);
  overflow: hidden;
  border-color: rgba(200, 168, 107, 0.2);
  background: #12100e;
}

/* Homepage cover and selected works */
.portfolio-home {
  --home-canvas: #0e0f11;
  --home-surface: #131619;
  --home-rule: rgba(197, 162, 103, 0.24);
  background: var(--home-canvas);
  color: var(--theatre-ivory);
}

.portfolio-home :is(h1, h2, h3) { text-wrap: balance; }
.portfolio-home p { text-wrap: pretty; }
.portfolio-home :is(a, summary):focus-visible {
  outline: 2px solid var(--theatre-gold-bright);
  outline-offset: 3px;
}

body:has(.portfolio-home) #ambient-layer { display: none; }

body:has(.portfolio-home) .site-header {
  background: #0e0f11;
  border-color: rgba(197, 162, 103, 0.16);
}

body:has(.portfolio-home) .brand-mark { padding: 0; border: 0; }
body:has(.portfolio-home) .brand-mark__title { display: inline; color: #f3eadc; }
body:has(.portfolio-home) .brand-mark__folio { display: none; }
body:has(.portfolio-home) .site-nav { justify-content: center; }

.home-cover { padding-block: clamp(42px, 6vw, 86px) clamp(34px, 4.5vw, 72px); }

.home-cover__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: center;
  gap: clamp(32px, 5vw, 76px);
}

.home-cover__byline {
  margin: 0 0 12px;
  color: var(--theatre-gold-bright);
  font-size: 13px;
}

.home-cover h1 {
  color: var(--theatre-ivory);
  font: 500 clamp(42px, 5vw, 56px)/1.13 var(--font-serif);
  margin: 0;
}

.home-cover__discipline {
  margin: 8px 0 0;
  color: var(--theatre-gold-bright);
  font: 500 clamp(21px, 2.1vw, 28px)/1.4 var(--font-serif);
}

.home-cover__lead {
  max-width: 30em;
  margin: 34px 0 0;
  color: var(--theatre-muted);
  font-size: 16px;
  line-height: 1.85;
}

.home-cover__lead::before {
  content: "";
  display: block;
  width: 64px;
  height: 1px;
  margin-bottom: 24px;
  background: var(--home-rule);
}

.home-cover .hero-ctas { gap: 14px; margin-top: 30px; }

.home-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 9px 20px;
  border: 1px solid var(--home-rule);
  color: var(--theatre-ivory);
  font-size: 13px;
  font-weight: 600;
  transition: border-color 140ms ease-out, background-color 140ms ease-out;
}
.home-action:hover { border-color: var(--theatre-gold); background-color: rgba(197, 162, 103, 0.08); }
.home-action--primary { background-color: #ad382b; border-color: #ad382b; color: #fff4e5; }
.home-action--primary:hover { background-color: #a43529; border-color: #a43529; }

.home-cover__art { margin: 0; }
.home-cover__triptych {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  align-items: end;
  gap: clamp(5px, 0.7vw, 10px);
  padding: clamp(7px, 0.9vw, 13px);
  background: var(--home-surface);
  border: 1px solid var(--home-rule);
  box-shadow: 0 24px 48px -27px rgba(0, 0, 0, 0.9);
}
.home-cover__triptych img {
  display: block;
  inline-size: 100%;
  block-size: clamp(260px, 35.5vw, 520px);
  object-fit: cover;
}
.home-cover__triptych .home-cover__wing { block-size: clamp(218px, 30vw, 440px); }
.home-cover__center { object-position: 53% 50%; }

.home-cover__caption {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 5px 12px;
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--theatre-gold-bright);
}
.home-cover__caption span:first-child { color: var(--theatre-ivory); }

.home-works,
.home-archive { padding-block: clamp(32px, 4.8vw, 70px); }

.home-section-title {
  color: var(--theatre-ivory);
  font: 500 clamp(25px, 3vw, 36px)/1.25 var(--font-serif);
  margin: 0 0 clamp(24px, 3vw, 42px);
}

.home-works__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 2.8vw, 38px);
}

.home-work {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: clamp(14px, 2.2vw, 28px);
  border: 1px solid var(--home-rule);
  background: var(--home-surface);
  box-shadow: 0 16px 34px -22px rgba(0, 0, 0, 0.88);
}
.home-work--feature { grid-column: 1 / -1; }
.home-work__meta { margin: 0 0 13px; color: var(--theatre-gold-bright); font-size: 13px; }
.home-work__visual { position: relative; margin: 0 0 17px; }
.home-work__visual img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 8.6;
  height: auto;
  object-fit: cover;
  filter: saturate(0.82);
}
.home-work--feature .home-work__visual img { aspect-ratio: 2.36; object-position: 50% 46%; }
.home-work__visual figcaption {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 5px 9px;
  background: #0e0f11;
  color: var(--theatre-ivory);
  font-size: 12px;
}
.home-work__feature-info {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(164px, 1fr);
  gap: clamp(18px, 3vw, 42px);
  align-items: start;
}
.home-work h3,
.home-archive h3,
.home-about h3,
.home-about__name {
  margin: 0;
  color: var(--theatre-ivory);
  font: 500 20px/1.42 var(--font-serif);
}
.home-work--feature h3 { font-size: clamp(23px, 2.8vw, 34px); }
.home-work__summary,
.home-archive p,
.home-about p:not(.home-about__name) { margin: 10px 0 16px; color: var(--theatre-muted); font-size: 16px; line-height: 1.75; }
.home-work__links { display: flex; flex-wrap: wrap; gap: 5px 18px; margin-top: auto; }
.home-work__evidence {
  max-width: 360px;
  padding: clamp(12px, 1.1vw, 16px);
  background: var(--home-canvas);
  border: 1px solid var(--home-rule);
}
.home-work__evidence h4 { margin: 0 0 9px; font-size: 13px; color: var(--theatre-gold-bright); }
.home-work__evidence img { display: block; width: 100%; height: auto; }
.home-work__evidence p { margin: 6px 0 0; font-size: 13px; color: var(--theatre-muted); }

.home-text-link {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  width: fit-content;
  font-size: 13px;
  color: var(--theatre-ivory);
  text-decoration: underline;
  text-decoration-color: var(--theatre-gold);
  text-underline-offset: 5px;
}
.home-text-link:hover { color: var(--theatre-gold-bright); }
.home-archive__rows { border-top: 1px solid var(--home-rule); }
.home-archive__rows article {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(0, 1.65fr) minmax(0, 1fr);
  gap: 14px 24px;
  align-items: center;
  padding-block: 16px;
  border-bottom: 1px solid var(--home-rule);
}
.home-archive__rows p { margin: 0; }
.home-archive__links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0 13px; }

.home-prism { margin: 0 var(--gutter) clamp(30px, 5vw, 70px); border-bottom: 1px solid var(--home-rule); }
.home-prism > summary { width: fit-content; min-height: 40px; cursor: pointer; color: var(--theatre-gold-bright); }
.home-prism > .prism-band { margin-top: 12px; }
.home-about { padding-block: clamp(30px, 5vw, 64px); background: #111317; border-block: 1px solid var(--home-rule); }
.home-about__grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); align-items: end; gap: 24px 54px; }
.home-about h2 { margin-bottom: 12px; }
.home-about p:not(.home-about__name) { max-width: 39em; margin-bottom: 0; }
.home-about h3 { margin-bottom: 6px; }
.home-about a { overflow-wrap: anywhere; }
.home-footer .archival-wrap { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-block: 20px; }
.home-footer p { margin: 0; font-size: 13px; color: var(--theatre-muted); }

@media (max-width: 900px) {
  .home-cover__grid { grid-template-columns: minmax(0, 1fr); }
  .home-cover__triptych img { block-size: clamp(240px, 56vw, 450px); }
  .home-cover__triptych .home-cover__wing { block-size: clamp(184px, 47vw, 375px); }
}

@media (max-width: 680px) {
  html:has(.portfolio-home) { --header-h: 86px; }
  body:has(.portfolio-home) .site-header {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: 46px 40px;
    gap: 0;
  }
  body:has(.portfolio-home) .site-nav { grid-area: 2 / 1 / 3 / 3; justify-content: space-between; gap: 0; }
  body:has(.portfolio-home) .site-nav__link { padding: 8px 5px; font-size: 13px; }
  body:has(.portfolio-home) .header-audio { grid-area: 1 / 2; }
  .home-works__grid,
  .home-work__feature-info,
  .home-archive__rows article,
  .home-about__grid { grid-template-columns: minmax(0, 1fr); }
  .home-archive__links { justify-content: flex-start; }
  .home-archive__rows article { gap: 6px; }
  .home-work--feature .home-work__visual img { aspect-ratio: 16 / 9; }
  .home-work__evidence { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .portfolio-home .home-action { transition: none; }
}

/* ==========================================================================
   5B. HIGH-KEY ALABASTER PAPER, PURE TYPOGRAPHIC HEADER & SYSTEMIC DE-SLOP
   Inspired by Granblue Relink (/world), Reverse: 1999 & Terra Historicus
   ========================================================================== */
:root {
  --bg-abyss: #1c1815;
  --bg-canvas: #221d19;
  --bg-panel: #2a241f;
  --bg-elevated: #332c26;
  --paper-base: #f7f5f0;
  --paper-ivory: #fbf9f5;
  --paper-stone: #efebe2;
  --paper-ink: #1b1917;
  --paper-body: #4a433b;
  --paper-muted: #787065;
  --cinnabar: #9e2a22;
  --cinnabar-deep: #822019;
  --hairline: rgba(122, 98, 60, 0.22);
  --hairline-strong: rgba(27, 25, 23, 0.24);
  --r-pill: 2px;
  --r-card: 2px;
}

html, body {
  background-color: var(--paper-base);
  color: var(--paper-ink);
}

/* ---- Pure Architectural Header (Zero Pills, Zero Badge Circles) ---- */
.site-header {
  background: rgba(30, 25, 21, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.site-header.is-scrolled {
  background: rgba(28, 23, 19, 0.95);
  border-bottom-color: rgba(200, 168, 107, 0.22);
  box-shadow: none;
}

html[data-ambient="vellum"] .site-header,
body:has(.codex-home, .st-home, .design-archive, .dl-page, [data-codex-page][data-theme="vellum"]) .site-header {
  background: rgba(247, 245, 240, 0.93);
  border-bottom: 1px solid var(--hairline);
  box-shadow: none;
}
html[data-ambient="vellum"] .site-header.is-scrolled,
body:has(.codex-home, .st-home, .design-archive, .dl-page, [data-codex-page][data-theme="vellum"]) .site-header.is-scrolled {
  background: rgba(251, 249, 245, 0.96);
  border-bottom-color: rgba(122, 98, 60, 0.3);
  box-shadow: 0 1px 0 rgba(27, 25, 23, 0.04);
}

.brand-mark::before {
  content: none !important;
  display: none !important;
}
.brand-mark {
  gap: 12px !important;
  border-right: 0 !important;
  padding-right: 0 !important;
}
.brand-mark__folio {
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  font-family: "CinzelDisplay", var(--font-display) !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  letter-spacing: 0.18em !important;
}
.brand-mark__title {
  position: relative;
  padding-left: 12px;
  font-family: var(--font-serif);
  font-size: 14.5px;
  font-weight: 600;
}
.brand-mark__title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 13px;
  background: currentColor;
  opacity: 0.28;
}

html[data-ambient="vellum"] .brand-mark__folio,
body:has(.codex-home, .st-home, .design-archive, .dl-page, [data-codex-page][data-theme="vellum"]) .brand-mark__folio {
  color: #845f2a !important;
}
html[data-ambient="vellum"] .brand-mark__title,
body:has(.codex-home, .st-home, .design-archive, .dl-page, [data-codex-page][data-theme="vellum"]) .brand-mark__title {
  color: var(--paper-ink);
}

html[data-ambient="vellum"] .site-nav__link,
body:has(.codex-home, .st-home, .design-archive, .dl-page, [data-codex-page][data-theme="vellum"]) .site-nav__link {
  color: #524a40;
  font-size: 14px;
  font-weight: 500;
  border-radius: 0;
}
html[data-ambient="vellum"] .site-nav__link:hover,
html[data-ambient="vellum"] .site-nav__link.is-active,
body:has(.codex-home, .st-home, .design-archive, .dl-page, [data-codex-page][data-theme="vellum"]) .site-nav__link:hover,
body:has(.codex-home, .st-home, .design-archive, .dl-page, [data-codex-page][data-theme="vellum"]) .site-nav__link.is-active {
  color: var(--cinnabar);
  background: transparent;
}
html[data-ambient="vellum"] .site-nav__link.is-active::after,
body:has(.codex-home, .st-home, .design-archive, .dl-page, [data-codex-page][data-theme="vellum"]) .site-nav__link.is-active::after {
  height: 1.5px;
  background: var(--cinnabar);
}

/* Granblue Relink Double-Hairline Rectangular Download Seal */
.site-nav__link--dl::before {
  content: none !important;
  display: none !important;
}
.site-nav__link--dl {
  margin-left: 8px;
  padding: 6px 14px !important;
  border-radius: 2px !important;
  background: var(--cinnabar) !important;
  color: #fff9f4 !important;
  border: 1px solid var(--cinnabar) !important;
  box-shadow: inset 0 0 0 2px var(--cinnabar), inset 0 0 0 3px rgba(255, 248, 240, 0.34) !important;
}
.site-nav__link--dl:hover {
  background: var(--cinnabar-deep) !important;
  border-color: var(--cinnabar-deep) !important;
  color: #ffffff !important;
}
.site-nav__link--dl.is-active::after { display: none !important; }

/* Flat Understated Audio Control */
.header-audio,
html[data-ambient="vellum"] .header-audio,
body:has(.codex-home, .st-home, .design-archive, .dl-page, [data-codex-page][data-theme="vellum"]) .header-audio {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  gap: 8px !important;
}
.audio-toggle {
  border-radius: 2px !important;
  padding: 5px 10px !important;
  font-size: 12.5px !important;
}
html[data-ambient="vellum"] .audio-toggle,
body:has(.codex-home, .st-home, .design-archive, .dl-page, [data-codex-page][data-theme="vellum"]) .audio-toggle {
  background: transparent;
  border: 1px solid var(--hairline-strong);
  color: var(--paper-ink);
}
html[data-ambient="vellum"] .audio-toggle:hover,
body:has(.codex-home, .st-home, .design-archive, .dl-page, [data-codex-page][data-theme="vellum"]) .audio-toggle:hover {
  border-color: var(--cinnabar);
  color: var(--cinnabar);
}
html[data-ambient="vellum"] .audio-vol-text,
body:has(.codex-home, .st-home, .design-archive, .dl-page, [data-codex-page][data-theme="vellum"]) .audio-vol-text {
  color: var(--paper-muted);
  font-size: 12px;
}

/* ---- Systemic De-Slop Across Inner Codex, Design & Download Pages ---- */
/* Kill redundant uppercase VOLUME // CHAPTER eyebrows above Chinese h2 titles */
.codex-section__vol,
.ps-kicker,
.ps-ribbon__hint,
.rev-head__kicker {
  display: none !important;
}

/* Flat TOC Active Hairline (No Pink Pill Background) */
.codex-toc__link {
  border-radius: 0 !important;
}
.codex-toc__link.is-active {
  background: transparent !important;
  color: var(--cinnabar) !important;
  font-weight: 600 !important;
}
[data-codex-page][data-theme="night"] .codex-toc__link.is-active {
  background: transparent !important;
  color: #e6c68a !important;
}

/* Brighten Codex Banners & Video Hero on Vellum Pages (Zero Pitch-Black Slab) */
[data-codex-page][data-theme="vellum"] .codex-banner {
  background: #f2ede3 !important;
  border-bottom: 1px solid var(--hairline) !important;
  color: var(--paper-ink) !important;
}
[data-codex-page][data-theme="vellum"] .codex-banner--art::after {
  background: linear-gradient(180deg, rgba(247, 245, 240, 0.86) 0%, rgba(242, 237, 227, 0.78) 48%, rgba(242, 237, 227, 0.95) 100%) !important;
}
[data-codex-page][data-theme="vellum"] .codex-banner__bg {
  opacity: 0.24 !important;
  filter: saturate(85%) brightness(1.06) !important;
}
[data-codex-page][data-theme="vellum"] .codex-banner__meta {
  color: #845f2a !important;
}
[data-codex-page][data-theme="vellum"] .codex-banner__meta::before {
  background: #845f2a !important;
}
[data-codex-page][data-theme="vellum"] .codex-banner__title {
  color: var(--paper-ink) !important;
  text-shadow: none !important;
}
[data-codex-page][data-theme="vellum"] .codex-banner__quote {
  color: var(--cinnabar) !important;
  text-shadow: none !important;
}
[data-codex-page][data-theme="vellum"] .codex-banner__lead {
  color: var(--paper-body) !important;
  text-shadow: none !important;
}
[data-codex-page][data-theme="vellum"] .codex-banner .pbtn:not(.pbtn--gold):not(.pbtn--crimson):not(.is-active) {
  background: var(--paper-ivory) !important;
  border: 1px solid var(--hairline-strong) !important;
  color: var(--paper-ink) !important;
  backdrop-filter: none !important;
}
[data-codex-page][data-theme="vellum"] .codex-banner .pbtn.is-active,
[data-codex-page][data-theme="vellum"] .codex-banner .pbtn--crimson,
[data-codex-page][data-theme="vellum"] .codex-banner .pbtn--gold {
  background: var(--cinnabar) !important;
  border-color: var(--cinnabar) !important;
  color: #fff9f4 !important;
  box-shadow: inset 0 0 0 2px var(--cinnabar), inset 0 0 0 3px rgba(255, 248, 240, 0.34) !important;
}
[data-codex-page][data-theme="vellum"] .codex-banner .pbtn:hover {
  border-color: var(--cinnabar) !important;
}

/* Crisp Warm Sunlit Cover Treatment for Saintess Subpage Hero */
.vhero--vellum-cover {
  background-size: cover !important;
  background-position: 50% 34% !important;
}
.vhero--vellum-cover .vhero__veil {
  background: linear-gradient(180deg, rgba(28, 22, 17, 0.36) 0%, rgba(28, 22, 17, 0.56) 55%, rgba(28, 22, 17, 0.72) 100%) !important;
}

/* Rectangular Book Buttons Instead of 999px SaaS Pills */
.pbtn,
.portal-pill,
.subnav-pill,
.btn-vellum,
.novel-tab,
.ps-btn,
.ps-dock__cta,
.ps-dock__theme,
.ps-chip,
.vn-bridge-btn,
.vn-jump-chip,
.design-jump > a {
  border-radius: 2px !important;
}
.pbtn--gold::after,
.pbtn--crimson::after {
  content: none !important;
}

/* Brighten Hierarchy Breadcrumb Bar on Vellum Pages */
[data-codex-page][data-theme="vellum"] {
  --codex-bg: #f7f5f0 !important;
  --codex-paper: #fbf9f5 !important;
  --codex-ink: #1b1917 !important;
  --codex-muted: #6e665c !important;
}
[data-codex-page][data-theme="vellum"] .hierarchy-bar {
  background: #efebe2 !important;
  border-bottom: 1px solid var(--hairline) !important;
  color: var(--paper-body) !important;
}
[data-codex-page][data-theme="vellum"] .hierarchy-bar .breadcrumb-trail a {
  color: #7c5823 !important;
}
[data-codex-page][data-theme="vellum"] .hierarchy-bar .breadcrumb-trail strong {
  color: var(--paper-ink) !important;
}
[data-codex-page][data-theme="vellum"] .subnav-pill {
  background: transparent !important;
  border: 1px solid rgba(122, 98, 60, 0.28) !important;
  color: var(--paper-body) !important;
}
[data-codex-page][data-theme="vellum"] .subnav-pill:hover,
[data-codex-page][data-theme="vellum"] .subnav-pill.is-active {
  background: var(--cinnabar) !important;
  border-color: var(--cinnabar) !important;
  color: #fff9f4 !important;
}

/* Brighten Atlas Showcase (.ps-showcase) in Vellum Mode */
[data-codex-page][data-theme="vellum"] .ps-showcase {
  background: #f3efe6 !important;
  color: var(--paper-ink) !important;
  border-bottom: 1px solid var(--hairline) !important;
}
[data-codex-page][data-theme="vellum"] .ps-showcase .ps-video {
  opacity: 0.22;
  filter: saturate(85%) brightness(1.08);
}
[data-codex-page][data-theme="vellum"] .ps-showcase .ps-frost {
  background:
    linear-gradient(180deg, rgba(247, 245, 240, 0.88) 0%, rgba(247, 245, 240, 0.74) 48%, rgba(243, 239, 230, 0.94) 100%) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
}
[data-codex-page][data-theme="vellum"] .ps-ribbon {
  background: rgba(239, 235, 226, 0.86) !important;
  border-bottom-color: var(--hairline) !important;
}
[data-codex-page][data-theme="vellum"] .ps-ribbon .breadcrumb-trail,
[data-codex-page][data-theme="vellum"] .ps-ribbon__hint { color: var(--paper-muted) !important; }
[data-codex-page][data-theme="vellum"] .ps-ribbon .breadcrumb-trail a { color: #7c5823 !important; }
[data-codex-page][data-theme="vellum"] .ps-ribbon .breadcrumb-trail strong { color: var(--paper-ink) !important; }
[data-codex-page][data-theme="vellum"] .ps-hero :is(.codex-banner__meta, .codex-banner__title, .codex-banner__quote, .codex-banner__lead),
[data-codex-page][data-theme="vellum"] .ps-title,
[data-codex-page][data-theme="vellum"] .ps-kicker {
  text-shadow: none !important;
}
[data-codex-page][data-theme="vellum"] .ps-hero .codex-banner__meta,
[data-codex-page][data-theme="vellum"] .ps-kicker { color: #845f2a !important; }
[data-codex-page][data-theme="vellum"] .ps-hero .codex-banner__title,
[data-codex-page][data-theme="vellum"] .ps-title { color: var(--paper-ink) !important; }
[data-codex-page][data-theme="vellum"] .ps-hero .codex-banner__quote { color: var(--cinnabar) !important; }
[data-codex-page][data-theme="vellum"] .ps-hero .codex-banner__lead,
[data-codex-page][data-theme="vellum"] .ps-note { color: var(--paper-body) !important; }
[data-codex-page][data-theme="vellum"] .ps-badge {
  background: var(--paper-ivory) !important;
  border-color: var(--hairline) !important;
  border-radius: 2px !important;
  color: var(--paper-muted) !important;
}
.ps-card { border-radius: 2px !important; }
.ps-arrow { border-radius: 2px !important; }
[data-codex-page][data-theme="vellum"] .ps-btn:not(.ps-btn--primary) {
  background: var(--paper-ivory) !important;
  border-color: var(--hairline-strong) !important;
  color: var(--paper-ink) !important;
}
[data-codex-page][data-theme="vellum"] .ps-btn--primary {
  background: var(--cinnabar) !important;
  color: #fff9f4 !important;
  box-shadow: none !important;
}

/* Warm Lift for Night Reading & Cinema Screening (Never Pitch Black) */
[data-codex-page][data-theme="night"] {
  --codex-bg: #1e1a17 !important;
  --codex-paper: #26211d !important;
  --codex-ink: #efe7da !important;
  --codex-muted: #b8ae9f !important;
}
main:has(.mv-showcase),
.cinema-theater {
  background: radial-gradient(circle at 50% 0%, rgba(184, 140, 74, 0.1) 0%, #211c18 62%, #1b1714 100%) !important;
}
body:has(.mv-showcase) .hierarchy-bar {
  background: #25201b;
  border-bottom-color: rgba(200, 168, 107, 0.22);
}

/* ---- Clean Architectural Design Archive (atlas-design.html) ---- */
.design-archive {
  --design-rule: rgba(122, 98, 60, 0.22);
  background: var(--paper-base);
  color: var(--paper-ink);
  padding-top: var(--header-h);
}
.design-archive .hierarchy-bar {
  background: var(--paper-stone);
  border-bottom: 1px solid var(--design-rule);
  color: var(--paper-body);
}
.design-archive .hierarchy-bar .breadcrumb-trail a { color: #7c5823 !important; }
.design-archive .hierarchy-bar .breadcrumb-trail strong { color: var(--paper-ink) !important; }
.design-archive .hierarchy-bar .breadcrumb-trail span { color: var(--paper-muted) !important; }
.design-archive :is(h1, h2, h3, h4) { text-wrap: balance; color: var(--paper-ink); }
.design-archive p { text-wrap: pretty; }
.design-archive__cover,
.design-section { padding-block: clamp(36px, 5vw, 72px); border-bottom: 1px solid var(--design-rule); }
.design-archive__cover { background: var(--paper-ivory); }
.design-archive__cover h1 { margin: 0; font: 600 clamp(34px, 4vw, 48px)/1.16 var(--font-serif); }
.design-archive__cover p,
.design-section__head p { margin: 12px 0 0; max-width: 44em; color: var(--paper-body); font-size: 16px; line-height: 1.82; }
.design-archive__cover .design-jump { margin-top: 22px; }
.design-jump { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.design-jump > a:not(.pbtn) {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding-inline: 16px;
  border: 1px solid var(--hairline-strong);
  background: var(--paper-base);
  color: var(--paper-ink);
  font-size: 14px;
  font-weight: 500;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.design-jump > a:not(.pbtn):hover { border-color: var(--cinnabar); color: var(--cinnabar); background: #ffffff; }
.design-archive .pbtn:not(.pbtn--gold):not(.pbtn--crimson) {
  background: var(--paper-ivory);
  border-color: var(--hairline-strong);
  color: var(--paper-ink);
  backdrop-filter: none;
}
.design-section__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 24px; }
.design-section h2 { margin: 0; font: 600 clamp(24px, 2.6vw, 32px)/1.28 var(--font-serif); }
.design-section h3,
.design-section h4 { margin: 0; font: 600 18px/1.45 var(--font-serif); }

/* Flat Hairline Mindmap (Zero Nested Rounded Boxes) */
.design-map {
  max-width: 66rem;
  margin-inline: auto;
  padding: 24px 0 0;
  border-top: 1px solid var(--design-rule);
  background: transparent;
  box-shadow: none;
}
.design-map h3 { color: #7c5823; }
.design-map p,
.design-reading p { margin: 8px 0 12px; color: var(--paper-body); font-size: 16px; line-height: 1.82; overflow-wrap: anywhere; }
.design-map ul { list-style: none; padding-left: 0; margin: 10px 0 0; }
.design-map > ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 0 36px; margin-top: 20px; border-top: 1px solid var(--design-rule); }
.design-map > ul > li { padding: 4px 0; border-bottom: 1px solid var(--design-rule); background: transparent; border-radius: 0; }
.design-map li li { margin-bottom: 10px; }
.design-map li ul { padding-inline-start: 14px; border-inline-start: 1px solid rgba(122, 98, 60, 0.32); }
.design-map summary,
.design-reading summary { padding: 13px 0; cursor: pointer; font-size: 16px; font-weight: 600; color: var(--paper-ink); }
.design-map summary::marker,
.design-reading summary::marker { color: var(--cinnabar); }
.design-map details[open] > summary,
.design-reading details[open] > summary { color: var(--cinnabar); }
.design-map li strong { font-size: 15.5px; font-weight: 600; color: var(--paper-ink); }

.design-reading { display: grid; gap: 0; border-top: 1px solid var(--design-rule); min-width: 0; }
.design-reading > details { min-width: 0; padding-inline: 4px; border-bottom: 1px solid var(--design-rule); background: transparent; border-radius: 0; box-shadow: none; }
.design-reading > details > summary { padding-block: 16px; }
.design-reading__inside { display: flow-root; padding-bottom: 22px; }
.design-reading__inside h4 { margin: 20px 0 10px; color: #7c5823; }
.design-reading__inside p:first-child { margin-top: 0; }

.design-table {
  width: 100%;
  max-width: 100%;
  margin: 12px 0 20px;
  overflow-x: auto;
  border-radius: 2px;
  border: 1px solid var(--design-rule);
  background: var(--paper-ivory);
}
.design-table table { width: 100%; border-collapse: collapse; font-size: 14px; }
.design-table :is(th, td) { min-width: 9rem; padding: 11px 14px; border-bottom: 1px solid rgba(122, 98, 60, 0.16); vertical-align: top; text-align: left; line-height: 1.72; color: var(--paper-ink); overflow-wrap: anywhere; }
.design-table th { background: #ebe5d8; color: #5c3e14; font-weight: 600; }
.design-table tbody tr:last-child td { border-bottom: none; }

.design-flow { display: grid; gap: 10px; list-style: none; margin: 16px auto 22px; padding: 0; max-width: 56rem; }
.design-flow li { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 10px; }
.design-flow li + li { padding-top: 10px; border-top: 1px solid var(--design-rule); }
.design-flow li > div { padding: 12px 14px; border-radius: 2px; border: 1px solid var(--design-rule); background: var(--paper-ivory); text-align: center; color: var(--paper-ink); }
.design-flow p { margin: 4px 0 0; }

.design-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 14px; }
.design-gallery figure { margin: 0; border-radius: 2px; overflow: hidden; border: 1px solid var(--design-rule); background: var(--paper-ivory); }
.design-gallery a { display: block; }
.design-gallery img { display: block; width: 100%; height: auto; }
.design-gallery figcaption { padding: 10px 14px; color: var(--paper-body); font-size: 13px; border-top: 1px solid rgba(122, 98, 60, 0.14); }

@media (max-width: 680px) {
  .design-map > ul,
  .design-gallery { grid-template-columns: minmax(0, 1fr); }
  .design-flow li { grid-auto-flow: row; grid-auto-columns: auto; }
}

.offline-download-status { align-self: center; color: var(--paper-muted); font-size: 13px; }
.offline-download-status a { text-decoration: underline; color: var(--cinnabar); }


/* ==========================================================================
   6. WORLDBUILDING & NARRATIVE ARCHIVE HOMEPAGE (.codex-home)
   Open Paper × Architectural Cut Plates × Roman Index × Feathered Spreads
   ========================================================================== */
@keyframes cx-meridian-spin {
  from { transform: translate3d(calc(var(--cx-px, 0px) * -0.4), calc(var(--cx-py, 0px) * -0.4), 0) rotate(0deg); }
  to   { transform: translate3d(calc(var(--cx-px, 0px) * -0.4), calc(var(--cx-py, 0px) * -0.4), 0) rotate(360deg); }
}
@keyframes cx-tab-progress {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}
@keyframes cx-shutter-wipe {
  0%   { clip-path: inset(0 0 0 100%); transform: scale(1.045); }
  100% { clip-path: inset(0 0 0 0);    transform: scale(1); }
}

[data-reveal] {
  opacity: 0;
  transform: translate3d(0, 16px, 0);
  transition:
    opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1) calc(var(--i, 0) * 80ms),
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1) calc(var(--i, 0) * 80ms);
}
[data-reveal].is-revealed {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

.codex-home {
  padding-top: var(--header-h);
  background: var(--paper-base);
  color: var(--paper-ink);
}
.codex-home :is(h1, h2, h3) {
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--paper-ink);
  text-wrap: balance;
}
.codex-home p { text-wrap: pretty; }

/* ---- Classical Double-Hairline Rectangular Buttons (.cx-btn) ---- */
.cx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 2px;
  border: 1px solid var(--hairline-strong);
  background: transparent;
  color: var(--paper-ink);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.cx-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.cx-btn:hover {
  border-color: var(--cinnabar);
  color: var(--cinnabar);
  background: rgba(158, 42, 34, 0.04);
}
.cx-btn--primary {
  background: var(--cinnabar);
  border-color: var(--cinnabar);
  color: #fff9f4;
  box-shadow: inset 0 0 0 2px var(--cinnabar), inset 0 0 0 3px rgba(255, 248, 240, 0.32);
}
.cx-btn--primary:hover {
  background: var(--cinnabar-deep);
  border-color: var(--cinnabar-deep);
  color: #ffffff;
  box-shadow: inset 0 0 0 2px var(--cinnabar-deep), inset 0 0 0 3px rgba(255, 248, 240, 0.45);
}
.cx-btn.is-copied {
  background: #2b5b44;
  border-color: #2b5b44;
  color: #ffffff;
}

.cx-text-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  font-size: 14px;
  font-weight: 500;
  color: var(--paper-body);
  text-decoration: underline;
  text-decoration-color: rgba(122, 98, 60, 0.45);
  text-underline-offset: 5px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}
.cx-text-link:hover {
  color: var(--cinnabar);
  text-decoration-color: var(--cinnabar);
}
.cx-inline-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
}

/* ---- I. Chronicle Stage Hero ---- */
.cx-hero {
  --cx-px: 0px;
  --cx-py: 0px;
  position: relative;
  min-height: calc(100svh - var(--header-h));
  display: flex;
  align-items: center;
  padding: clamp(32px, 4.5vw, 64px) 0 clamp(44px, 5.5vw, 76px);
  border-bottom: 1px solid var(--hairline);
  overflow: hidden;
}
.cx-hero__meridian {
  position: absolute;
  right: -120px;
  top: 50%;
  width: min(780px, 68vw);
  height: min(780px, 68vw);
  margin-top: min(-390px, -34vw);
  color: rgba(132, 98, 48, 0.11);
  pointer-events: none;
  animation: cx-meridian-spin 160s linear infinite;
}
@media (prefers-reduced-motion: reduce) {
  .cx-hero__meridian { animation: none; }
}

.cx-hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 4.5vw, 68px);
  align-items: center;
}

.cx-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  font-size: 13px;
  color: var(--paper-muted);
  letter-spacing: 0.04em;
}
.cx-kicker::before {
  content: "";
  width: 24px;
  height: 1px;
  background: #8c642b;
}

.cx-hero__text-stage {
  transition: opacity 0.22s ease, transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}
.cx-hero__text-stage.is-leaving {
  opacity: 0;
  transform: translateY(6px);
}
.cx-hero__text-stage.is-entering {
  opacity: 1;
  transform: translateY(0);
}

.cx-hero__title {
  margin: 0 0 16px;
  font-size: clamp(23px, 2.5vw, 36px);
  line-height: 1.24;
  letter-spacing: 0.01em;
}
.cx-hero__quote {
  margin: 0 0 16px;
  padding: 2px 0 2px 14px;
  border-left: 2px solid var(--cinnabar);
  font-family: var(--font-serif);
  font-size: 16px;
  line-height: 1.7;
  color: #63241f;
}
.cx-hero__desc {
  margin: 0 0 18px;
  font-size: 16px;
  line-height: 1.85;
  color: var(--paper-body);
}
.cx-hero__meta {
  margin: 0 0 22px;
  padding-top: 12px;
  border-top: 1px solid var(--hairline);
  font-size: 13px;
  color: var(--paper-muted);
  font-variant-numeric: tabular-nums;
}
.cx-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Reverse: 1999 Roman Numeral Switcher Strip */
.cx-index {
  margin-top: clamp(26px, 3.4vw, 40px);
  padding-top: 16px;
  border-top: 1px solid var(--hairline);
  display: flex;
  align-items: center;
  gap: 12px;
}
.cx-index__step {
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--hairline-strong);
  background: transparent;
  color: var(--paper-ink);
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}
.cx-index__step svg { width: 15px; height: 15px; }
.cx-index__step:hover {
  border-color: var(--cinnabar);
  color: var(--cinnabar);
  background: rgba(158, 42, 34, 0.05);
}

.cx-index__list {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.cx-index__item {
  position: relative;
  padding: 6px 4px 10px;
  border: 0;
  border-bottom: 1px solid rgba(122, 98, 60, 0.24);
  background: transparent;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: var(--paper-muted);
  transition: color 0.2s ease;
}
.cx-index__item::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--cinnabar);
  transform: scaleX(0);
  transform-origin: left center;
}
.cx-index__item.is-active::after {
  animation: cx-tab-progress 6.2s linear forwards;
}
.cx-hero.is-paused .cx-index__item.is-active::after {
  animation: none;
  transform: scaleX(1);
}
.cx-index__roman {
  font-family: "CinzelDisplay", var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
}
.cx-index__name {
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cx-index__item:hover,
.cx-index__item.is-active {
  color: var(--paper-ink);
}
.cx-index__item.is-active .cx-index__roman {
  color: var(--cinnabar);
}

/* Right Architectural Cut Plate (Reverse: 1999 Single Swept Corner) */
.cx-hero__visual {
  position: relative;
}
.cx-plate {
  display: block;
  position: relative;
  text-decoration: none;
}
.cx-plate::before {
  content: "";
  position: absolute;
  inset: -8px -8px 8px 8px;
  border: 1px solid rgba(132, 98, 48, 0.26);
  border-radius: 0 56px 0 0;
  pointer-events: none;
  transform: translate3d(calc(var(--cx-px, 0px) * -0.35), calc(var(--cx-py, 0px) * -0.35), 0);
  transition: transform 0.35s ease;
}
.cx-plate__frame {
  position: relative;
  aspect-ratio: 16 / 9.4;
  overflow: hidden;
  border-radius: 0 52px 0 0;
  border: 1px solid rgba(27, 25, 23, 0.22);
  background: #1c1815;
  transform: translate3d(calc(var(--cx-px, 0px) * 0.35), calc(var(--cx-py, 0px) * 0.35), 0);
  transition: transform 0.35s ease;
}
.cx-plate__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cx-plate__img.is-base {
  z-index: 1;
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.cx-plate:hover .cx-plate__img.is-base {
  transform: scale(1.025);
}
.cx-plate__img.is-wipe {
  z-index: 2;
  opacity: 0;
  pointer-events: none;
}
.cx-plate__img.is-wipe.is-animating {
  opacity: 1;
  animation: cx-shutter-wipe 0.66s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.cx-plate__caption {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--hairline);
  font-size: 13px;
  color: var(--paper-muted);
}
.cx-plate__counter {
  font-family: "CinzelDisplay", var(--font-display);
  font-size: 13px;
  letter-spacing: 0.12em;
  color: #845f2a;
  flex-shrink: 0;
}

/* ---- II. Open-Paper Worldbuilding Spreads (Granblue Relink /world) ---- */
.cx-world {
  position: relative;
  padding: clamp(64px, 8vw, 112px) 0;
  background: var(--paper-ivory);
  border-bottom: 1px solid var(--hairline);
  overflow: hidden;
}
.cx-world__intro {
  position: relative;
  max-width: 760px;
  margin: 0 auto clamp(52px, 6.5vw, 88px);
  text-align: center;
}
.cx-world__watermark {
  display: block;
  margin-bottom: -14px;
  font-family: "CinzelDisplay", var(--font-display);
  font-size: clamp(44px, 7vw, 92px);
  font-weight: 500;
  letter-spacing: 0.14em;
  line-height: 1;
  color: rgba(132, 98, 48, 0.08);
  user-select: none;
  pointer-events: none;
}
.cx-sec-title {
  margin: 0;
  font-size: clamp(26px, 2.8vw, 34px);
  line-height: 1.25;
}
.cx-world__epigraph {
  margin: 14px 0 16px;
  font-family: var(--font-serif);
  font-size: 16px;
  color: #7c5823;
  letter-spacing: 0.04em;
}
.cx-world__lead {
  margin: 0 auto;
  max-width: 56ch;
  font-size: 16px;
  line-height: 1.88;
  color: var(--paper-body);
}

.cx-spread {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(28px, 4.5vw, 64px);
  align-items: center;
}
.cx-spread + .cx-spread {
  margin-top: clamp(56px, 7vw, 96px);
  padding-top: clamp(56px, 7vw, 96px);
  border-top: 1px solid var(--hairline);
}
.cx-spread--reverse {
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
}
.cx-spread__text h3 {
  margin: 0 0 14px;
  font-size: clamp(22px, 2.2vw, 28px);
  line-height: 1.3;
}
.cx-spread__quote {
  margin: 0 0 14px;
  padding-left: 14px;
  border-left: 2px solid var(--cinnabar);
  font-family: var(--font-serif);
  font-size: 16px;
  line-height: 1.75;
  color: #63241f;
}
.cx-spread__text p {
  margin: 0 0 22px;
  font-size: 16px;
  line-height: 1.86;
  color: var(--paper-body);
}

.cx-vol-index {
  list-style: none;
  margin: 0 0 26px;
  padding: 0;
  border-top: 1px solid var(--hairline);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 24px;
}
.cx-vol-index li {
  border-bottom: 1px solid var(--hairline);
}
.cx-vol-index a {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 10px 2px;
  font-size: 14px;
  color: var(--paper-ink);
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}
.cx-vol-index a span {
  font-family: var(--font-serif);
  font-size: 13px;
  color: #845f2a;
  flex-shrink: 0;
}
.cx-vol-index a:hover {
  color: var(--cinnabar);
  transform: translateX(4px);
}

/* Feathered Paper-Dissolve Artwork Spreads (Relink / Meng To Craft) */
.cx-spread__art {
  margin: 0;
}
.cx-spread__art a {
  display: block;
  overflow: hidden;
  background: var(--paper-ivory);
}
.cx-spread__art img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9.2;
  object-fit: cover;
  transition: transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}
.cx-spread__art a:hover img {
  transform: scale(1.025);
}
.cx-spread__art--right img {
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.55) 7%, #000 18%, #000 100%);
  mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.55) 7%, #000 18%, #000 100%);
}
.cx-spread__art--left img {
  -webkit-mask-image: linear-gradient(to left, transparent 0%, rgba(0,0,0,0.55) 7%, #000 18%, #000 100%);
  mask-image: linear-gradient(to left, transparent 0%, rgba(0,0,0,0.55) 7%, #000 18%, #000 100%);
}
.cx-spread__art figcaption {
  margin-top: 10px;
  font-size: 13px;
  color: var(--paper-muted);
  text-align: right;
}
.cx-spread__art--left figcaption {
  text-align: left;
}

/* ---- III. Playable Builds Section ---- */
.cx-builds {
  padding: clamp(60px, 7.5vw, 104px) 0;
  background: var(--paper-stone);
  border-bottom: 1px solid var(--hairline);
}
.cx-sec-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px 28px;
  padding-bottom: 20px;
  margin-bottom: clamp(32px, 4.2vw, 52px);
  border-bottom: 1px solid var(--hairline-strong);
}
.cx-sec-note {
  margin: 0;
  font-size: 15px;
  color: var(--paper-muted);
}

.cx-flagship {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
  padding-bottom: clamp(40px, 5vw, 64px);
  border-bottom: 1px solid var(--hairline);
}
.cx-flagship__screen {
  display: block;
  overflow: hidden;
  border: 1px solid rgba(27, 25, 23, 0.2);
  background: #1c1815;
}
.cx-flagship__screen img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: opacity 0.16s ease, transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}
.cx-flagship__screen img.is-fading { opacity: 0.35; }
.cx-flagship__screen:hover img { transform: scale(1.02); }

.cx-flagship__tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-inline: 1px solid rgba(27, 25, 23, 0.16);
  border-bottom: 1px solid rgba(27, 25, 23, 0.16);
  background: var(--paper-ivory);
}
.cx-flagship__tabs button {
  padding: 10px 8px;
  border: 0;
  border-top: 2px solid transparent;
  background: transparent;
  font-size: 13px;
  color: var(--paper-muted);
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}
.cx-flagship__tabs button + button {
  border-left: 1px solid rgba(27, 25, 23, 0.12);
}
.cx-flagship__tabs button:hover,
.cx-flagship__tabs button.is-active {
  color: var(--paper-ink);
  background: #ffffff;
  border-top-color: var(--cinnabar);
  font-weight: 500;
}

.cx-flagship__body h3,
.cx-duo__col h3,
.cx-journal__entry h3 {
  margin: 0 0 8px;
  font-size: clamp(21px, 2.1vw, 26px);
  line-height: 1.3;
}
.cx-flagship__body h3 a,
.cx-duo__col h3 a,
.cx-journal__entry h3 a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}
.cx-flagship__body h3 a:hover,
.cx-duo__col h3 a:hover,
.cx-journal__entry h3 a:hover {
  color: var(--cinnabar);
}

.cx-meta-line {
  margin: 0 0 14px;
  font-size: 13px;
  color: #7c5823;
  font-variant-numeric: tabular-nums;
}
.cx-body-copy {
  margin: 0 0 18px;
  font-size: 16px;
  line-height: 1.84;
  color: var(--paper-body);
}
.cx-run-note {
  margin: 0 0 22px;
  padding-top: 12px;
  border-top: 1px solid var(--hairline);
  font-size: 13.5px;
  color: var(--paper-muted);
}
.cx-run-note code {
  padding: 1px 6px;
  border-radius: 2px;
  background: rgba(122, 98, 60, 0.12);
  color: var(--paper-ink);
  font-family: var(--font-mono);
  font-size: 13px;
}

.cx-duo {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 4.5vw, 64px);
  padding-top: clamp(36px, 4.5vw, 56px);
}
.cx-duo__col {
  display: flex;
  flex-direction: column;
}
.cx-duo__col + .cx-duo__col {
  padding-left: clamp(28px, 4.5vw, 64px);
  border-left: 1px solid var(--hairline);
}
.cx-duo__screen {
  display: block;
  margin-bottom: 18px;
  overflow: hidden;
  border: 1px solid rgba(27, 25, 23, 0.2);
  background: #1c1815;
  aspect-ratio: 16 / 9;
}
.cx-duo__screen video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}
.cx-duo__screen:hover video {
  transform: scale(1.025);
}
.cx-duo__col .cx-inline-actions {
  margin-top: auto;
  padding-top: 6px;
}

/* ---- IV. Essays & Literary Anthology ---- */
.cx-journal {
  padding: clamp(60px, 7.5vw, 100px) 0;
  background: var(--paper-base);
  border-bottom: 1px solid var(--hairline);
}
.cx-journal__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 4.5vw, 64px);
}
.cx-journal__entry {
  display: flex;
  flex-direction: column;
}
.cx-journal__entry + .cx-journal__entry {
  padding-left: clamp(28px, 4.5vw, 64px);
  border-left: 1px solid var(--hairline);
}
.cx-journal__entry .cx-inline-actions {
  margin-top: auto;
}

/* ---- V. Author Colophon & Paper Footer ---- */
.cx-colophon {
  padding: clamp(52px, 6.5vw, 84px) 0;
  background: var(--paper-ivory);
  border-bottom: 1px solid var(--hairline);
}
.cx-colophon__grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: end;
}
.cx-colophon__name {
  margin: 0 0 6px;
  font-size: clamp(26px, 2.8vw, 34px);
}
.cx-colophon__role {
  margin: 0 0 16px;
  font-size: 14px;
  color: #7c5823;
}
.cx-colophon .cx-body-copy {
  margin-bottom: 0;
  max-width: 54ch;
}
.cx-colophon__contact {
  padding-left: clamp(24px, 4vw, 48px);
  border-left: 1px solid var(--hairline);
}
.cx-colophon__mail {
  display: inline-block;
  margin: 0 0 18px;
  font-family: var(--font-serif);
  font-size: clamp(20px, 2vw, 24px);
  font-weight: 600;
  color: var(--paper-ink);
  text-decoration: none;
}
.cx-colophon__mail:hover { color: var(--cinnabar); }

.cx-footer {
  padding: 22px 0 28px;
  background: var(--paper-stone);
  font-size: 13px;
  color: var(--paper-muted);
}
.cx-footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px 24px;
}
.cx-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.cx-footer__links a {
  color: var(--paper-body);
  text-decoration: none;
  transition: color 0.2s ease;
}
.cx-footer__links a:hover { color: var(--cinnabar); }

@media (max-width: 1024px) {
  .cx-hero { min-height: auto; }
  .cx-hero__grid,
  .cx-spread,
  .cx-spread--reverse,
  .cx-flagship,
  .cx-colophon__grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .cx-spread--reverse .cx-spread__art { order: 2; }
  .cx-spread__art--right img,
  .cx-spread__art--left img {
    -webkit-mask-image: none;
    mask-image: none;
  }
  .cx-colophon__contact {
    padding-left: 0;
    padding-top: 24px;
    border-left: 0;
    border-top: 1px solid var(--hairline);
  }
}

@media (max-width: 720px) {
  :root { --header-h: 86px; }
  .site-header {
    grid-template-columns: minmax(0, 1fr) auto !important;
    grid-template-rows: 46px 40px;
    gap: 0 10px !important;
  }
  .site-nav { grid-area: 2 / 1 / 3 / 3; justify-content: flex-start; gap: 2px; overflow-x: auto; }
  .site-nav__link { padding: 6px 8px; font-size: 13px; white-space: nowrap; }
  .header-audio { grid-area: 1 / 2; }
  .audio-slider, .audio-vol-text { display: none; }
  .cx-index__step { display: none; }
  .cx-index__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; }
  .cx-plate__frame { border-radius: 0 28px 0 0; }
  .cx-plate::before { display: none; }
  .cx-vol-index,
  .cx-duo,
  .cx-journal__grid { grid-template-columns: minmax(0, 1fr); }
  .cx-duo__col + .cx-duo__col,
  .cx-journal__entry + .cx-journal__entry {
    padding-left: 0;
    padding-top: 32px;
    border-left: 0;
    border-top: 1px solid var(--hairline);
  }
  .cx-flagship__tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .cx-flagship__tabs button {
    font-size: 12px;
    padding: 9px 6px;
    border-bottom: 1px solid rgba(204, 161, 86, 0.22);
  }
}


/* ==========================================================================
   7. FLAT RELIC CATALOG ENTRIES, CODEX PLATES & MOBILE TOC DRAWER
   ========================================================================== */
.codex-banner__bg {
  transition: opacity 0.32s ease, transform 8s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Flat Hairline Relic Catalog Entries (Zero Nested Pills or Cards) */
.relic-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  margin: 22px 0 32px;
  border-top: 1px solid var(--hairline);
}
.relic-card {
  display: grid;
  grid-template-columns: 156px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  padding: 24px 0;
  border-radius: 0;
  border: 0;
  border-bottom: 1px solid var(--hairline);
  background: transparent;
  box-shadow: none;
}
[data-codex-page][data-theme="night"] .relic-card {
  background: transparent;
  border-bottom-color: rgba(200, 168, 107, 0.2);
  box-shadow: none;
}
.relic-card__icon {
  position: relative;
  width: 156px;
  aspect-ratio: 1 / 1;
  border-radius: 2px;
  overflow: hidden;
  border: 1px solid rgba(132, 98, 48, 0.45);
  background: #141210;
  cursor: zoom-in;
}
.relic-card__icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.relic-card:hover .relic-card__icon img { transform: scale(1.04); }
.relic-card__zoom {
  position: absolute;
  right: 6px;
  bottom: 6px;
  padding: 2px 6px;
  border-radius: 2px;
  background: rgba(20, 18, 16, 0.84);
  border: 1px solid rgba(228, 196, 136, 0.35);
  font-size: 12px;
  color: #f0d7a4;
}
.relic-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 14px;
  margin-bottom: 4px;
}
.relic-card__title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 600;
  color: inherit;
}
.relic-card__en {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 14px;
  color: #845f2a;
}
[data-codex-page][data-theme="night"] .relic-card__en { color: #deb978; }
.relic-card__cat {
  display: block;
  margin-bottom: 12px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: 13px;
  color: var(--cinnabar);
}
[data-codex-page][data-theme="night"] .relic-card__cat {
  background: transparent;
  color: #e89b94;
}
.relic-card__lore,
.codex-prose blockquote.relic-card__lore {
  margin: 0 0 12px;
  padding: 2px 0 2px 14px;
  border: 0;
  border-left: 2px solid rgba(132, 98, 48, 0.55);
  background: transparent !important;
  border-radius: 0 !important;
  font-family: var(--font-serif);
  font-size: 15px;
  line-height: 1.84;
}
.relic-card__meta {
  margin: 6px 0 0;
  font-size: 14.5px;
  line-height: 1.8;
}
.relic-card__meta strong {
  color: #7c5219;
  font-weight: 600;
}
[data-codex-page][data-theme="night"] .relic-card__meta strong { color: #e4c488; }

@media (max-width: 680px) {
  .relic-card { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .relic-card__icon { width: 136px; }
}

/* Text-only Archival Reference Note (Destiny 2 non-image PDF callouts) */
.codex-callout-note {
  margin: 20px 0;
  padding: 12px 16px;
  border-radius: 2px;
  border: 1px solid rgba(122, 98, 60, 0.24);
  border-left: 2px solid #845f2a;
  background: rgba(122, 98, 60, 0.04);
  font-size: 14px;
  line-height: 1.8;
}
.codex-callout-note strong {
  display: block;
  margin-bottom: 3px;
  font-family: var(--font-serif);
  font-weight: 600;
}

/* Mobile Floating TOC Button & Slide-Up Drawer (<= 1024px) */
.codex-toc-fab { display: none; }
.codex-toc-backdrop { display: none; }
@media (max-width: 1024px) {
  .codex-toc-fab:not([hidden]) {
    position: fixed;
    right: 16px;
    bottom: 18px;
    z-index: 94;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    border-radius: 2px;
    background: var(--cinnabar);
    border: 1px solid var(--cinnabar);
    box-shadow: inset 0 0 0 2px var(--cinnabar), inset 0 0 0 3px rgba(255, 248, 240, 0.34), 0 10px 24px -8px rgba(27, 25, 23, 0.45);
    color: #fff9f4;
    font-family: var(--font-serif);
    font-size: 13.5px;
    font-weight: 600;
  }
  #stage-root:has(.codex-toc.is-drawer-open) {
    z-index: 97 !important;
  }
  .codex-toc-backdrop.is-open {
    position: fixed;
    inset: 0;
    z-index: 95;
    display: block;
    background: rgba(24, 19, 15, 0.48);
    backdrop-filter: blur(4px);
  }
  .codex-layout > .codex-toc.is-drawer-open {
    display: block !important;
    position: fixed !important;
    left: 14px;
    right: 14px;
    bottom: 70px;
    top: auto;
    max-height: 64vh;
    overflow-y: auto;
    z-index: 98;
    padding: 18px 20px;
    border-radius: 2px;
    background: var(--paper-ivory);
    color: var(--paper-ink);
    border: 1px solid rgba(122, 98, 60, 0.38);
    box-shadow: 0 20px 48px rgba(18, 14, 10, 0.38);
  }
}

/* ==========================================================================
   8. INTERACTIVE AURORA CONTINENT LORE MAP, BESPOKE CRESTS & TACTILE DETAILS
   ========================================================================== */
@keyframes cx-reticle-rotate {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes cx-pin-pulse {
  0%, 100% { transform: scale(1); opacity: 0.48; }
  50%      { transform: scale(1.36); opacity: 0; }
}
@keyframes cx-dash-flow {
  from { stroke-dashoffset: 44; }
  to   { stroke-dashoffset: 0; }
}

/* Subtle Handmade Cotton-Rag Paper Fiber Grain Overlay */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.024;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
}

/* Header Lyre Icon & Volume Sigils */
.audio-lyre {
  width: 15px;
  height: 15px;
  color: #845f2a;
  flex-shrink: 0;
}
.audio-toggle[aria-pressed="true"] .audio-lyre {
  color: var(--cinnabar);
}
.audio-toggle:not([aria-pressed="true"]) .audio-bars {
  display: none;
}

.cx-index__step svg {
  width: 22px;
  height: 22px;
}

.cx-vol-sigil {
  width: 15px;
  height: 15px;
  color: #8c642b;
  flex-shrink: 0;
  align-self: center;
  transition: color 0.2s ease, transform 0.25s ease;
}
.cx-vol-index a:hover .cx-vol-sigil {
  color: var(--cinnabar);
  transform: scale(1.12);
}

/* Classical Astrolabe-Diamond Section Ornament */
.cx-ornament {
  display: flex;
  justify-content: center;
  margin: clamp(44px, 5.5vw, 76px) 0;
  color: #8c642b;
}
.cx-ornament svg {
  width: 220px;
  height: 18px;
}

/* Corner Brass Photo-Mount Ticks on Key Plates */
.corner-mounts {
  position: relative;
}
.corner-mounts::before,
.corner-mounts::after {
  content: "";
  position: absolute;
  inset: 6px;
  pointer-events: none;
  z-index: 3;
}
.corner-mounts::before {
  background:
    linear-gradient(90deg, rgba(236, 208, 154, 0.85) 10px, transparent 10px) 0 0 / 100% 1px no-repeat,
    linear-gradient(180deg, rgba(236, 208, 154, 0.85) 10px, transparent 10px) 0 0 / 1px 100% no-repeat,
    linear-gradient(270deg, rgba(236, 208, 154, 0.85) 10px, transparent 10px) 100% 0 / 100% 1px no-repeat,
    linear-gradient(180deg, rgba(236, 208, 154, 0.85) 10px, transparent 10px) 100% 0 / 1px 100% no-repeat;
}
.corner-mounts::after {
  background:
    linear-gradient(90deg, rgba(236, 208, 154, 0.85) 10px, transparent 10px) 0 100% / 100% 1px no-repeat,
    linear-gradient(0deg, rgba(236, 208, 154, 0.85) 10px, transparent 10px) 0 100% / 1px 100% no-repeat,
    linear-gradient(270deg, rgba(236, 208, 154, 0.85) 10px, transparent 10px) 100% 100% / 100% 1px no-repeat,
    linear-gradient(0deg, rgba(236, 208, 154, 0.85) 10px, transparent 10px) 100% 100% / 1px 100% no-repeat;
}

.cx-duo__cover {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}
.cx-duo__screen:hover .cx-duo__cover {
  transform: scale(1.03);
}

/* ---- Interactive Aurora Continent Lore Map (.cx-atlas) ---- */
.cx-atlas {
  border: 1px solid rgba(116, 90, 52, 0.34);
  background: var(--paper-base);
  box-shadow: inset 0 0 0 3px var(--paper-ivory), inset 0 0 0 4px rgba(116, 90, 52, 0.16);
}

.cx-atlas__topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 20px;
  padding: 10px 18px;
  border-bottom: 1px solid rgba(116, 90, 52, 0.26);
  background: #f1ede4;
}
.cx-atlas__title-group {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-serif);
  font-size: 13.5px;
  font-weight: 600;
  color: #5c4626;
}
.cx-atlas__compass-ico {
  width: 17px;
  height: 17px;
  color: #8c642b;
}

.cx-atlas__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.cx-atlas__tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 2px;
  border: 1px solid rgba(116, 90, 52, 0.24);
  background: var(--paper-ivory);
  color: var(--paper-body);
  font-family: var(--font-serif);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}
.cx-atlas__tab svg {
  width: 17px;
  height: 17px;
  color: #845f2a;
  transition: color 0.2s ease;
}
.cx-atlas__tab:hover {
  border-color: var(--cinnabar);
  color: var(--paper-ink);
}
.cx-atlas__tab.is-active {
  background: var(--cinnabar);
  border-color: var(--cinnabar);
  color: #fff9f4;
}
.cx-atlas__tab.is-active svg {
  color: #fdebd6;
}

.cx-atlas__body {
  display: grid;
  grid-template-columns: minmax(0, 7.3fr) minmax(320px, 4.7fr);
  align-items: stretch;
}

/* Cartographic Degree Border Frame */
.cx-atlas__stage {
  padding: 14px;
  background: #f4f0e6;
  display: flex;
  align-items: center;
}
.cx-atlas__degree-frame {
  position: relative;
  width: 100%;
  padding: 18px 18px;
  border: 1px solid rgba(102, 78, 44, 0.42);
  background:
    repeating-linear-gradient(90deg, rgba(102, 78, 44, 0.34) 0 14px, transparent 14px 28px) 0 0 / 100% 3px no-repeat,
    repeating-linear-gradient(90deg, rgba(102, 78, 44, 0.34) 0 14px, transparent 14px 28px) 0 100% / 100% 3px no-repeat,
    repeating-linear-gradient(180deg, rgba(102, 78, 44, 0.34) 0 14px, transparent 14px 28px) 0 0 / 3px 100% no-repeat,
    repeating-linear-gradient(180deg, rgba(102, 78, 44, 0.34) 0 14px, transparent 14px 28px) 100% 0 / 3px 100% no-repeat,
    #faf6ec;
}
.cx-deg {
  position: absolute;
  z-index: 3;
  padding: 0 5px;
  background: #faf6ec;
  font-family: var(--font-serif);
  font-size: 12px;
  color: #7b6340;
  font-variant-numeric: tabular-nums;
  pointer-events: none;
}
.cx-deg--tl { top: 2px; left: 16px; }
.cx-deg--tr { top: 2px; right: 16px; }
.cx-deg--bl { bottom: 2px; left: 16px; }
.cx-deg--br { bottom: 2px; right: 16px; }

.cx-atlas__canvas {
  position: relative;
  width: 100%;
  aspect-ratio: 1376 / 768;
  overflow: hidden;
  border: 1px solid rgba(102, 78, 44, 0.35);
  background: #f6f2e8;
}
.cx-atlas__bg {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
}
.cx-atlas__svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}
.cx-atlas__route-main {
  animation: cx-dash-flow 3.2s linear infinite;
}
.cx-reticle-spin {
  transform-box: fill-box;
  transform-origin: center;
  animation: cx-reticle-rotate 24s linear infinite;
}
@media (prefers-reduced-motion: reduce) {
  .cx-atlas__route-main,
  .cx-reticle-spin { animation: none; }
}

/* Secondary Regional Labels Etched on Map */
.cx-map-region {
  position: absolute;
  z-index: 2;
  transform: translate(-50%, -50%);
  padding: 1px 6px;
  background: rgba(248, 244, 234, 0.72);
  border-radius: 2px;
  font-family: var(--font-serif);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: #6b5638;
  white-space: nowrap;
  pointer-events: none;
}
.cx-map-region--plain,
.cx-map-region--ridge {
  background: transparent;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: rgba(94, 71, 38, 0.72);
  text-shadow: 0 0 8px #faf6ec, 0 0 4px #faf6ec;
}

/* 4 Bespoke Multi-Layered Heraldic City Medallions */
.cx-pin {
  position: absolute;
  z-index: 4;
  transform: translate(-50%, -50%);
  padding: 0;
  border: 0;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}
.cx-pin__halo {
  position: absolute;
  top: 0;
  left: 50%;
  width: 44px;
  height: 44px;
  margin-left: -22px;
  border-radius: 50%;
  border: 1.5px solid var(--cinnabar);
  opacity: 0;
  pointer-events: none;
}
.cx-pin.is-active .cx-pin__halo {
  animation: cx-pin-pulse 2.6s ease-out infinite;
}

.cx-pin__medallion {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fbf9f5;
  border: 1.5px solid #6f5228;
  box-shadow:
    0 6px 16px rgba(34, 24, 14, 0.22),
    inset 0 0 0 2px #fbf9f5,
    inset 0 0 0 3px rgba(132, 98, 48, 0.36);
  color: #5b411d;
  display: grid;
  place-items: center;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.22s ease, border-color 0.22s ease, color 0.22s ease;
}
.cx-pin__medallion svg {
  width: 34px;
  height: 34px;
}
.cx-pin:hover .cx-pin__medallion {
  transform: scale(1.1);
  border-color: var(--cinnabar);
  color: var(--cinnabar);
}
.cx-pin.is-active .cx-pin__medallion {
  transform: scale(1.14);
  background: var(--cinnabar);
  border-color: #6d1812;
  color: #fff6ea;
  box-shadow:
    0 8px 22px rgba(130, 32, 25, 0.38),
    inset 0 0 0 2px var(--cinnabar),
    inset 0 0 0 3px rgba(255, 236, 206, 0.55);
}

.cx-pin__label {
  padding: 2px 8px;
  border-radius: 2px;
  background: rgba(251, 249, 245, 0.94);
  border: 1px solid rgba(116, 90, 52, 0.38);
  font-family: var(--font-serif);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--paper-ink);
  white-space: nowrap;
  box-shadow: 0 3px 10px rgba(27, 25, 23, 0.12);
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}
.cx-pin.is-active .cx-pin__label {
  background: #fffdf9;
  border-color: var(--cinnabar);
  color: var(--cinnabar);
}

/* Right City Dossier Folio Card */
.cx-map-card {
  padding: clamp(20px, 2.4vw, 28px);
  border-left: 1px solid rgba(116, 90, 52, 0.28);
  background: var(--paper-ivory);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: opacity 0.18s ease, transform 0.22s ease;
}
.cx-map-card.is-switching {
  opacity: 0.28;
  transform: translateY(4px);
}

.cx-map-card__head {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--hairline);
}
.cx-map-card__seal {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(132, 98, 48, 0.45);
  background: #f5f0e5;
  box-shadow: inset 0 0 0 2px var(--paper-ivory), inset 0 0 0 3px rgba(158, 42, 34, 0.24);
  color: var(--cinnabar);
  display: grid;
  place-items: center;
}
.cx-map-card__seal svg {
  width: 36px;
  height: 36px;
}
.cx-map-card__coord {
  margin: 0 0 2px;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: #845f2a;
  font-variant-numeric: tabular-nums;
}
.cx-map-card__name {
  margin: 0;
  font-size: 21px;
  line-height: 1.25;
}
.cx-map-card__sub {
  margin: 3px 0 0;
  font-size: 13px;
  color: var(--paper-muted);
}

.cx-map-card__art {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid rgba(27, 25, 23, 0.22);
  background: #1c1815;
  cursor: zoom-in;
}
.cx-map-card__art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}
.cx-map-card__art:hover img {
  transform: scale(1.04);
}
.cx-map-card__zoom {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 4;
  padding: 2px 8px;
  border-radius: 2px;
  background: rgba(24, 20, 16, 0.82);
  border: 1px solid rgba(236, 208, 154, 0.42);
  font-size: 12px;
  color: #f4dfc0;
}

.cx-map-card__specs {
  margin: 0;
  border-top: 1px solid var(--hairline);
}
.cx-map-card__specs > div {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid var(--hairline);
  font-size: 13px;
  line-height: 1.55;
}
.cx-map-card__specs dt {
  color: #845f2a;
  font-weight: 600;
}
.cx-map-card__specs dd {
  margin: 0;
  color: var(--paper-ink);
}

.cx-map-card__desc {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.78;
  color: var(--paper-body);
}

.cx-map-card__actions {
  margin-top: auto;
  padding-top: 6px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}
.cx-map-card__actions .cx-btn {
  min-height: 40px;
  padding: 0 14px;
  font-size: 13.5px;
}

@media (max-width: 1080px) {
  .cx-atlas__body {
    grid-template-columns: minmax(0, 1fr);
  }
  .cx-atlas__beam-group line,
  .cx-atlas__beam-group > circle {
    display: none;
  }
  .cx-map-card {
    border-left: 0;
    border-top: 1px solid rgba(116, 90, 52, 0.28);
  }
}

@media (max-width: 720px) {
  .cx-atlas__stage { padding: 8px; }
  .cx-atlas__degree-frame { padding: 14px 8px; }
  .cx-map-region { display: none; }
  .cx-pin.is-active { z-index: 6; }
  .cx-pin:not(.is-active) .cx-pin__label { display: none; }
  .cx-pin__medallion { width: 32px; height: 32px; }
  .cx-pin__medallion svg { width: 24px; height: 24px; }
  .cx-pin__halo { width: 32px; height: 32px; margin-left: -16px; }
  .cx-pin__label { font-size: 11.5px; padding: 1px 6px; }
  .cx-atlas__tabs { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ==========================================================================
   9. ARCHITECTURAL EDITORIAL BUTTONS & CONTROLS (v11 SITE-WIDE)
   Clean Serif Typography × Crisp 1px Hairline × Prism Refraction Sweep
   (Diamond clasps permanently removed in v11)
   ========================================================================== */
.cx-btn,
.pbtn,
.btn-vellum,
.novel-tab,
.subnav-pill,
.design-jump > a:not(.pbtn) {
  position: relative;
  font-family: var(--font-serif) !important;
  font-weight: 600 !important;
  letter-spacing: 0.06em;
  border-radius: 1px !important;
  overflow: hidden !important;
  transition:
    background 0.24s ease,
    border-color 0.24s ease,
    color 0.22s ease,
    box-shadow 0.26s ease,
    transform 0.22s cubic-bezier(0.22, 1, 0.36, 1) !important;
}

.cx-btn,
.pbtn {
  padding-inline: 18px !important;
}
.btn-vellum,
.novel-tab,
.subnav-pill,
.design-jump > a:not(.pbtn) {
  padding-inline: 16px !important;
}
.site-nav__link--dl {
  position: relative;
  padding: 6px 14px !important;
  font-family: var(--font-serif) !important;
  font-weight: 600 !important;
  letter-spacing: 0.06em;
}

/* Remove all legacy diamond finials */
.cx-btn::before,
.pbtn::before,
.novel-tab::before,
.novel-tab::after,
.design-jump > a:not(.pbtn)::before,
.design-jump > a:not(.pbtn)::after,
.site-nav__link--dl::before,
.site-nav__link--dl::after {
  content: none !important;
  display: none !important;
}

/* Human-Prism Light-Refraction Bottom Hairline on Hover (#C4A0E0 -> #E0C8A0) */
.cx-btn::after,
.pbtn::after {
  content: "" !important;
  display: block !important;
  position: absolute !important;
  left: 0;
  right: 0;
  bottom: 0;
  top: auto !important;
  width: 100% !important;
  height: 1.5px !important;
  border: 0 !important;
  border-radius: 0 !important;
  margin: 0 !important;
  background: linear-gradient(90deg, #c4a0e0 0%, #e0c8a0 55%, rgba(224, 200, 160, 0.15) 100%) !important;
  transform: scaleX(0) !important;
  transform-origin: left center;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.36s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.26s ease !important;
}
.cx-btn:hover::after,
.pbtn:hover::after {
  transform: scaleX(1) !important;
  opacity: 0.95;
}

/* Secondary Architectural Alabaster Button (Light Vellum Ground) */
.cx-btn:not(.cx-btn--primary),
[data-codex-page][data-theme="vellum"] .pbtn:not(.pbtn--crimson):not(.pbtn--gold):not(.is-active),
.dl-page .pbtn:not(.pbtn--crimson):not(.pbtn--gold):not(.is-active),
.design-archive .pbtn:not(.pbtn--crimson):not(.pbtn--gold):not(.is-active),
.design-jump > a:not(.pbtn),
[data-codex-page][data-theme="vellum"] .novel-tab:not(.is-active),
[data-codex-page][data-theme="vellum"] .btn-vellum:not(.is-active),
[data-codex-page][data-theme="vellum"] .subnav-pill:not(.is-active) {
  background: rgba(251, 249, 245, 0.72) !important;
  border: 1px solid rgba(27, 25, 23, 0.28) !important;
  color: #1f1b17 !important;
  box-shadow: none !important;
}

.cx-btn:not(.cx-btn--primary):hover,
[data-codex-page][data-theme="vellum"] .pbtn:not(.pbtn--crimson):not(.pbtn--gold):not(.is-active):hover,
.dl-page .pbtn:not(.pbtn--crimson):not(.pbtn--gold):not(.is-active):hover,
.design-archive .pbtn:not(.pbtn--crimson):not(.pbtn--gold):not(.is-active):hover,
.design-jump > a:not(.pbtn):hover,
[data-codex-page][data-theme="vellum"] .novel-tab:not(.is-active):hover,
[data-codex-page][data-theme="vellum"] .btn-vellum:not(.is-active):hover,
[data-codex-page][data-theme="vellum"] .subnav-pill:not(.is-active):hover {
  background: #ffffff !important;
  border-color: var(--cinnabar) !important;
  color: var(--cinnabar) !important;
  box-shadow: 0 6px 18px -12px rgba(27, 25, 23, 0.28) !important;
  transform: translateY(-1px);
}

/* Primary Matte Lacquer Cinnabar Button (Active & CTA) */
.cx-btn--primary,
.site-nav__link--dl,
[data-codex-page][data-theme="vellum"] .pbtn--crimson,
[data-codex-page][data-theme="vellum"] .pbtn--gold,
[data-codex-page][data-theme="vellum"] .pbtn.is-active,
.dl-page .pbtn--crimson,
.dl-page .pbtn--gold,
[data-codex-page][data-theme="vellum"] .novel-tab.is-active,
[data-codex-page][data-theme="vellum"] .btn-vellum.is-active,
[data-codex-page][data-theme="vellum"] .subnav-pill.is-active {
  background: #9e2a22 !important;
  border: 1px solid #821f18 !important;
  color: #fff9f2 !important;
  box-shadow: inset 0 0 0 1px rgba(255, 245, 230, 0.14) !important;
}

.cx-btn--primary:hover,
.site-nav__link--dl:hover,
[data-codex-page][data-theme="vellum"] .pbtn--crimson:hover,
[data-codex-page][data-theme="vellum"] .pbtn--gold:hover,
.dl-page .pbtn--crimson:hover,
.dl-page .pbtn--gold:hover {
  background: #872019 !important;
  border-color: #6e1711 !important;
  color: #ffffff !important;
  box-shadow: inset 0 0 0 1px rgba(250, 226, 178, 0.28), 0 8px 20px -10px rgba(102, 22, 16, 0.44) !important;
  transform: translateY(-1px);
}

/* Dark Hero (.vhero) & Night Reading Mode Hairline Bronze Buttons */
.vhero .pbtn:not(.pbtn--gold):not(.pbtn--crimson),
[data-codex-page][data-theme="night"] .pbtn:not(.pbtn--gold):not(.pbtn--crimson):not(.is-active),
[data-codex-page][data-theme="night"] .novel-tab:not(.is-active) {
  background: rgba(24, 19, 15, 0.62) !important;
  border: 1px solid rgba(214, 182, 124, 0.42) !important;
  color: #f4ece0 !important;
  box-shadow: none !important;
}
.vhero .pbtn--gold {
  background: #c8a25e !important;
  border: 1px solid #9d7939 !important;
  color: #1f170e !important;
  box-shadow: none !important;
}
.cx-btn--primary.is-copied,
.cx-btn.is-copied {
  background: #285c44 !important;
  border-color: #1d4633 !important;
  color: #ffffff !important;
  box-shadow: none !important;
}

/* ==========================================================================
   10. CHIAROSCURO COLOR COLLISION, GOLDEN BRIAR FILIGREE & CHOREOGRAPHY (v9)
   ========================================================================== */

/* 10A. Hero Asymmetric Crimson Reliquary Contrast Strip & Sub Rosa Pendant */
.reading-progress {
  height: 2px !important;
  background: linear-gradient(90deg, #e7e1d3 0%, #d98c36 28%, #2a6d82 54%, #c59b52 78%, #9e2620 100%) !important;
}
.cx-hero {
  position: relative;
}
.cx-hero::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 40%;
  background:
    radial-gradient(ellipse 85% 65% at 70% 35%, rgba(214, 172, 93, 0.16), transparent 74%),
    linear-gradient(180deg, #3b0f13 0%, #22080a 100%);
  border-left: 1px solid rgba(214, 172, 93, 0.42);
  pointer-events: none;
  z-index: 0;
}
.cx-sub-rosa-pendant {
  position: absolute;
  top: calc(var(--header-h, 66px) - 2px);
  right: 4.5%;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  pointer-events: none;
  opacity: 0.78;
}
.cx-sub-rosa-pendant svg {
  width: 58px;
  height: 72px;
}
.cx-sub-rosa-pendant span {
  font-family: var(--font-display);
  font-size: 9.5px;
  letter-spacing: 0.28em;
  color: rgba(240, 210, 140, 0.72);
}
.cx-hero .cx-hero__grid {
  position: relative;
  z-index: 2;
}
.cx-hero__meridian {
  z-index: 1;
}
.cx-plate-mat {
  position: relative;
  padding: 12px 12px 10px;
  background: var(--paper-ivory);
  border: 1px solid rgba(199, 154, 74, 0.48);
  border-radius: 0 56px 0 0;
  box-shadow: 0 24px 48px -24px rgba(15, 8, 8, 0.46);
}
.cx-plate-mat .cx-plate {
  position: relative;
  display: block;
}
.cx-plate-mat .cx-plate__frame {
  border-radius: 0 46px 0 0;
  border: 1px solid rgba(140, 102, 41, 0.24);
}
.cx-plate__folio {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 4;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(252, 249, 243, 0.94);
  border: 1px solid #c79a4a;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--cinnabar);
  pointer-events: none;
}
.cx-plate-mat .cx-plate__caption {
  margin-top: 10px;
  padding: 2px 4px 0;
  color: var(--paper-muted);
}
.cx-plate-mat .cx-plate__counter {
  color: var(--cinnabar);
  font-weight: 600;
}

/* Double-Intertwined Golden Briar Corner Clasps */
.cx-briar-corner {
  position: absolute;
  width: 92px;
  height: 92px;
  pointer-events: none;
  z-index: 5;
  overflow: visible;
}
.cx-briar-corner--sm {
  width: 68px;
  height: 68px;
}
.cx-briar-corner--bl {
  bottom: -14px;
  left: -14px;
}
.cx-briar-corner--tr {
  top: -10px;
  right: -10px;
  transform: rotate(180deg);
}

/* Horizontal Golden Briar Filigree Divider */
.cx-ornament--briar {
  margin: clamp(36px, 4.5vw, 62px) 0;
}
.cx-ornament--briar svg {
  width: min(620px, 92%);
  height: 34px;
  overflow: visible;
}
.cx-ornament--compact {
  margin: 12px 0 32px;
}

/* Pen-Drawn Brass Hairline Scroll Reveal */
.cx-pen-rule {
  height: 1px;
  margin: 12px 0 18px;
  background: linear-gradient(90deg, #c79a4a 0%, rgba(199, 154, 74, 0.45) 55%, transparent 100%);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.95s cubic-bezier(0.22, 1, 0.36, 1);
}
.cx-pen-rule.is-drawn {
  transform: scaleX(1);
}

/* 10B. Vermilion Hardcover Spine & Hover-to-Switch 6-Volume Codex Spread */
.cx-spread__art--spine {
  position: relative;
  padding: 14px 14px 14px 18px;
  background: var(--paper-base);
  border: 1px solid rgba(140, 102, 41, 0.28);
  border-left: 4px solid var(--cinnabar);
}
.cx-spread__stage {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #1a1614;
}
.cx-spread__stage img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  -webkit-mask-image: none !important;
  mask-image: none !important;
}
.cx-spread__wipe {
  clip-path: inset(0 100% 0 0);
  opacity: 0;
  pointer-events: none;
}
.cx-spread__wipe.is-wiping {
  animation: cx-codex-wipe 0.52s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes cx-codex-wipe {
  0% {
    clip-path: inset(0 100% 0 0);
    opacity: 1;
    transform: scale(1.045);
    filter: blur(2px);
  }
  100% {
    clip-path: inset(0 0% 0 0);
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
  }
}
.cx-spread__meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-top: 10px !important;
  font-family: var(--font-serif);
  font-size: 13px;
  color: var(--paper-muted);
}
.cx-spread__meta strong {
  font-family: var(--font-display);
  color: var(--cinnabar);
  letter-spacing: 0.14em;
  flex-shrink: 0;
}
.cx-vol-sigil {
  width: 22px;
  height: 22px;
}
.cx-vol-index a {
  transition: background-color 0.22s ease, padding-left 0.24s cubic-bezier(0.22, 1, 0.36, 1), color 0.2s ease;
}
.cx-vol-index a.is-previewing,
.cx-vol-index a:hover {
  background: rgba(199, 154, 74, 0.10);
  padding-left: 10px;
  color: var(--cinnabar);
}
.cx-vol-index a.is-previewing span {
  color: var(--cinnabar);
}

/* 10B-2. Sub Rosa Crimson Reliquary Band — 《少女的反叛》撞色独立展厅 */
.cx-saintess-band {
  position: relative;
  padding: clamp(64px, 7vw, 96px) 0;
  background:
    radial-gradient(ellipse 66% 58% at 24% 38%, rgba(214, 172, 93, 0.14), transparent 72%),
    linear-gradient(180deg, #350d11 0%, #4b141a 52%, #2c0a0d 100%);
  color: #f8f1e6;
  border-top: 2px solid #c89e52;
  border-bottom: 2px solid #c89e52;
  overflow: hidden;
}
.cx-sub-rosa-crest {
  position: absolute;
  top: -2px;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
  opacity: 0.78;
}
.cx-sub-rosa-crest svg {
  width: 58px;
  height: 72px;
  display: block;
}
.cx-spread--crimson {
  margin-top: 0 !important;
  padding-top: 10px !important;
  border-top: 0 !important;
}
.cx-spread__art--crimson {
  background: rgba(255, 255, 255, 0.03) !important;
  border-color: rgba(214, 172, 93, 0.38) !important;
  border-left: 4px solid #e2bc72 !important;
}
.cx-spread__art--crimson .cx-spread__meta {
  color: #d6c3bb !important;
}
.cx-lore-stamp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  font-family: var(--font-serif);
  font-size: 13px;
  letter-spacing: 0.14em;
  color: #f0d28c !important;
}
.cx-lore-stamp svg {
  width: 20px;
  height: 20px;
}
.cx-saintess-band h3 {
  color: #fcf7ee !important;
}
.cx-saintess-band .cx-spread__quote {
  color: #f5e6d2 !important;
  border-left-color: #e2bc72 !important;
}
.cx-saintess-band .cx-spread__text p:not(.cx-lore-stamp) {
  color: #dccac2 !important;
}
.cx-saintess-band .cx-btn:not(.cx-btn--primary) {
  background: rgba(255, 248, 236, 0.04) !important;
  color: #f3dfb4 !important;
  border-color: rgba(226, 188, 114, 0.44) !important;
  box-shadow: none !important;
}
.cx-saintess-band .cx-btn:not(.cx-btn--primary):hover {
  background: rgba(226, 188, 114, 0.14) !important;
  border-color: #f0d28c !important;
  color: #fff9ee !important;
}
.cx-saintess-band .cx-text-link {
  color: #f0d28c !important;
  border-bottom-color: rgba(240, 210, 140, 0.45) !important;
}

/* 10C. Playable Builds — Ragusa Abyssal Bronze-Teal Dark Theatre Band */
.cx-builds--theatre {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 68% 55% at 78% 18%, rgba(204, 161, 86, 0.16), transparent 72%),
    linear-gradient(180deg, #0e1d23 0%, #152b33 100%) !important;
  color: #f5efe4 !important;
  border-top: 0 !important;
  border-bottom: 2px solid #c89e52 !important;
}
.cx-theatre-gear {
  position: absolute;
  width: 340px;
  height: 340px;
  pointer-events: none;
  opacity: 0.14;
  z-index: 0;
}
.cx-theatre-gear--left { top: -80px; left: -110px; }
.cx-theatre-gear--right { bottom: -90px; right: -100px; }
.cx-builds--theatre .archival-wrap {
  position: relative;
  z-index: 2;
}
.cx-builds--theatre .cx-sec-head {
  border-bottom-color: rgba(204, 161, 86, 0.24);
}
.cx-builds--theatre .cx-sec-title,
.cx-builds--theatre h3,
.cx-builds--theatre h3 a {
  color: #f7f1e6 !important;
}
.cx-builds--theatre .cx-sec-note,
.cx-builds--theatre .cx-meta-line,
.cx-builds--theatre .cx-body-copy,
.cx-builds--theatre .cx-run-note {
  color: #b7c8cc !important;
}
.cx-builds--theatre .cx-run-note code {
  background: rgba(255, 255, 255, 0.08);
  color: #f0d28c;
  border: 1px solid rgba(204, 161, 86, 0.32);
  padding: 1px 6px;
}
.cx-builds--theatre .cx-flagship {
  padding: 20px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(204, 161, 86, 0.32);
}
.cx-builds--theatre .cx-flagship__media {
  position: relative;
}
.cx-builds--theatre .cx-flagship__screen,
.cx-builds--theatre .cx-duo__screen {
  border-color: rgba(204, 161, 86, 0.36);
  background: #0a1418;
}
.cx-builds--theatre .cx-flagship__tabs {
  background: #0c181d;
  border-color: rgba(204, 161, 86, 0.32);
}
.cx-builds--theatre .cx-flagship__tabs button {
  color: #a9bec2;
}
.cx-builds--theatre .cx-flagship__tabs button + button {
  border-left-color: rgba(204, 161, 86, 0.22);
}
.cx-builds--theatre .cx-flagship__tabs button:hover,
.cx-builds--theatre .cx-flagship__tabs button.is-active {
  background: rgba(204, 161, 86, 0.14);
  color: #f4d898;
  border-top-color: #e2bc72;
}
.cx-builds--theatre .cx-duo {
  border-top-color: rgba(204, 161, 86, 0.26);
}
.cx-builds--theatre .cx-duo__col + .cx-duo__col {
  border-left-color: rgba(204, 161, 86, 0.24);
}
.cx-builds--theatre .cx-btn:not(.cx-btn--primary) {
  background: rgba(255, 250, 240, 0.04) !important;
  color: #f0d69b !important;
  border-color: rgba(214, 178, 108, 0.44) !important;
  box-shadow: none !important;
}
.cx-builds--theatre .cx-btn:not(.cx-btn--primary):hover {
  background: rgba(204, 161, 86, 0.14) !important;
  color: #fff8eb !important;
  border-color: #f0d28c !important;
}
.cx-builds--theatre .cx-text-link {
  color: #e5c17b !important;
  border-bottom-color: rgba(229, 193, 123, 0.45) !important;
}
.cx-builds--theatre .cx-text-link:hover {
  color: #fff6e2 !important;
  border-bottom-color: #f0d28c !important;
}

/* 10D. Author Colophon Vermilion Chop Seal */
.cx-colophon__author {
  display: flex;
  align-items: flex-start;
  gap: 22px;
}
.cx-chop-seal {
  width: 58px;
  height: 58px;
  flex-shrink: 0;
  margin-top: 4px;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.cx-chop-seal:hover {
  transform: rotate(-3deg) scale(1.04);
}

.cx-journal .cx-sec-head {
  border-bottom: 0 !important;
  padding-bottom: 0 !important;
  margin-bottom: 6px !important;
}

/* 10E. Right-Edge Slim Classical Folio Diamond Rail (Zero Overlap at 1440px) */
.cx-folio-rail {
  position: fixed;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 70;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 12px 7px;
  background: rgba(246, 243, 236, 0.88);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(140, 102, 41, 0.30);
  border-right: 2px solid #c79a4a;
}
.cx-folio-rail a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  text-decoration: none;
  color: #4d453d;
  font-family: var(--font-serif);
  font-size: 12px;
  letter-spacing: 0.08em;
}
.cx-folio-rail a span {
  position: absolute;
  right: 26px;
  padding: 3px 9px;
  background: rgba(252, 249, 243, 0.96);
  border: 1px solid rgba(199, 154, 74, 0.48);
  color: #1b1917;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(6px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}
.cx-folio-rail a:hover span,
.cx-folio-rail a:focus-visible span {
  opacity: 1;
  transform: translateX(0);
}
.cx-folio-rail a i {
  display: inline-block;
  width: 7px;
  height: 7px;
  transform: rotate(45deg);
  border: 1px solid #8c6629;
  transition: transform 0.22s ease, background-color 0.22s ease, border-color 0.22s ease;
}
.cx-folio-rail a:hover i,
.cx-folio-rail a.is-active i {
  background: var(--cinnabar);
  border-color: var(--cinnabar);
  transform: rotate(45deg) scale(1.25);
}

/* 10F. Ambient Sunlight Wash, Museum Reticle Cursor & PJAX Folio Curtain */
.cx-sunlight-wash {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(520px circle at var(--mx, 50%) var(--my, 28%), rgba(212, 170, 91, 0.095), transparent 68%);
}
.cx-museum-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 64px;
  height: 64px;
  margin: -32px 0 0 -32px;
  border-radius: 50%;
  border: 1px solid #e5c17b;
  background: rgba(20, 16, 15, 0.66);
  backdrop-filter: blur(4px);
  color: #faf4e8;
  font-family: var(--font-serif);
  font-size: 12px;
  letter-spacing: 0.16em;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 985;
  opacity: 0;
  transform: translate3d(var(--cx, -120px), var(--cy, -120px), 0) scale(0.62);
  transition: opacity 0.2s cubic-bezier(0.22, 1, 0.36, 1), transform 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}
.cx-museum-cursor::before {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  border: 1px dashed rgba(240, 210, 140, 0.48);
  animation: cx-reticle-rotate 15s linear infinite;
}
.cx-museum-cursor.is-visible {
  opacity: 1;
  transform: translate3d(var(--cx, -120px), var(--cy, -120px), 0) scale(1);
}

.cx-folio-curtain {
  position: fixed;
  inset: 0;
  z-index: 995;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background:
    radial-gradient(circle at 50% 48%, rgba(158, 38, 32, 0.24), transparent 56%),
    linear-gradient(180deg, #280a0d 0%, #130607 100%);
  color: #e5c17b;
  font-family: var(--font-serif);
  font-size: 13px;
  letter-spacing: 0.28em;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.32s cubic-bezier(0.76, 0, 0.24, 1);
}
.cx-folio-curtain.is-covering {
  clip-path: inset(0 0 0% 0);
}
.cx-folio-curtain.is-revealing {
  clip-path: inset(100% 0 0 0);
}
.cx-subrosa-foot {
  font-style: normal;
  font-family: var(--font-serif);
  color: #9e2a22;
  letter-spacing: 0.14em;
}

@media (max-width: 1360px) {
  .cx-folio-rail { display: none; }
}
@media (max-width: 1024px) {
  .cx-hero::before,
  .cx-sub-rosa-pendant { display: none; }
  .cx-hero__visual {
    margin-inline: calc(50% - 50vw);
    padding: 26px 20px 28px;
    background:
      radial-gradient(ellipse 80% 70% at 50% 25%, rgba(214, 172, 93, 0.16), transparent 72%),
      linear-gradient(180deg, #3a0e12 0%, #22080a 100%);
    border-top: 2px solid #c89e52;
    border-bottom: 2px solid #c89e52;
  }
}
@media (max-width: 720px) {
  .cx-plate-mat { padding: 8px; border-radius: 0 32px 0 0; }
  .cx-plate-mat .cx-plate__frame { border-radius: 0 26px 0 0; }
  .cx-briar-corner { width: 64px; height: 64px; }
  .cx-builds--theatre .cx-flagship { padding: 14px; }
  .cx-builds--theatre .cx-duo__col + .cx-duo__col {
    border-left: 0;
    border-top: 1px solid rgba(204, 161, 86, 0.24);
  }
  .cx-colophon__author { gap: 14px; }
  .cx-chop-seal { width: 48px; height: 48px; }
}
@media (pointer: coarse), (prefers-reduced-motion: reduce) {
  .cx-sunlight-wash,
  .cx-museum-cursor { display: none !important; }
  .cx-pen-rule { transform: scaleX(1) !important; transition: none !important; }
}

/* ==========================================================================
   11. v11 ARCHAEOLOGIST'S DESK × POSTMODERN EDITORIAL ARCHITECTURE
   - Eliminates double header-offset bug & all template ornaments
   - 35/65 Expansive Hero Plate + WebGL Alabaster Marble Fracture Shader
   - Archaeologist Field-Note Floating Overlay on Full-Width Aurora Atlas
   - Kintsugi Fracture Dividers & Hidden-Until-Hover Damask Rose (0.08)
   - Full-Bleed Frameless Soteria Flagship + Ragusa CSS Caustics Shimmer
   - 0.5px Right-Edge Vermilion Dagger Scar (短剑痕) & 55/45 Editorial Journal
   ========================================================================== */

/* 11A. Fix Double Header Padding & Footer Flush Bottom */
body:has(.codex-home) {
  padding-bottom: 0 !important;
}
.codex-home {
  padding-top: 0 !important;
}
body:has(.codex-home) .reading-progress {
  display: none !important;
}

/* 11B. Right-Edge 0.5px Vermilion Dagger Scar Progress Rail (短剑痕) */
.cx-folio-rail.cx-dagger-rail {
  position: fixed;
  top: var(--header-h, 60px);
  bottom: 0;
  right: 8px;
  transform: none;
  width: 22px;
  padding: 0;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  gap: 24px;
  z-index: 75;
  pointer-events: none;
  opacity: 0.58;
  transition: opacity 0.28s ease;
}
.cx-folio-rail.cx-dagger-rail:hover,
body.is-palimpsest .cx-folio-rail.cx-dagger-rail {
  opacity: 1;
}
.cx-dagger-track {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 4px;
  width: 1px;
  transform: scaleX(0.5);
  transform-origin: right center;
  background: rgba(186, 138, 86, 0.28);
  pointer-events: none;
}
.cx-dagger-fill {
  position: relative;
  display: block;
  width: 100%;
  height: 0%;
  background: linear-gradient(180deg, #b53228 0%, #cf3b30 100%);
  box-shadow: 0 0 6px rgba(180, 44, 34, 0.25);
  transition: height 0.08s linear;
}
.cx-dagger-fill::after {
  content: "";
  position: absolute;
  left: -2px;
  bottom: -5px;
  width: 5px;
  height: 7px;
  background: #cf3b30;
  clip-path: polygon(50% 100%, 0 0, 100% 0);
}
.cx-folio-rail.cx-dagger-rail a {
  pointer-events: auto;
  width: 24px;
  height: 18px;
  justify-content: flex-end;
  padding-right: 4px;
}
.cx-folio-rail.cx-dagger-rail a i {
  width: 8px;
  height: 1px;
  border: 0;
  border-radius: 0;
  transform: none;
  background: rgba(158, 126, 78, 0.52);
  transition: width 0.26s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.22s ease;
}
.cx-folio-rail.cx-dagger-rail a:hover i,
.cx-folio-rail.cx-dagger-rail a.is-active i {
  width: 18px;
  height: 1.5px;
  transform: none;
  background: #9e2a22;
}
.cx-folio-rail.cx-dagger-rail a span {
  right: 30px;
  padding: 3px 10px;
  font-size: 12px;
  background: rgba(251, 249, 245, 0.96);
  border: 1px solid rgba(158, 42, 34, 0.28);
  color: #1b1917;
  box-shadow: 0 8px 20px -12px rgba(20, 14, 10, 0.28);
}

/* 11C. Hero — 35% Alabaster Marble Shader Copy × 65% Expansive Chiaroscuro Plate */
.cx-hero {
  min-height: min(calc(100svh - var(--header-h, 60px)), 760px);
  display: flex;
  align-items: center;
  padding: clamp(36px, 5vh, 56px) 0 clamp(42px, 5.5vh, 62px);
  background: var(--paper-base);
}
.cx-hero__marble {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 38.2%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.stage-gl-marble {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}
.cx-hero::before {
  width: 61.8%;
  background:
    radial-gradient(ellipse 72% 62% at 72% 28%, rgba(206, 166, 94, 0.13), transparent 72%),
    linear-gradient(180deg, #320c10 0%, #200709 100%);
  border-left: 1px solid rgba(206, 168, 96, 0.34);
  z-index: 0;
}
.cx-hero__meridian {
  opacity: 0.42;
  right: -140px;
  z-index: 1;
}
.cx-hero .cx-sub-rosa-pendant {
  display: none;
}

.cx-hero__grid {
  grid-template-columns: minmax(340px, 36fr) minmax(0, 64fr);
  gap: clamp(28px, 3.6vw, 52px);
  align-items: center;
}
.cx-hero__copy {
  padding-top: 0;
}
.cx-hero__text-stage::before {
  content: "";
  display: block;
  width: 30px;
  height: 1.5px;
  margin-bottom: 18px;
  background: var(--cinnabar);
}
.cx-hero__title {
  margin: 0 0 18px;
  font-size: clamp(25px, 2.22vw, 31.5px);
  line-height: 1.28;
  letter-spacing: 0.01em;
  text-wrap: pretty;
}
.cx-hero__quote {
  margin: 0 0 16px;
  font-size: 15.5px;
  line-height: 1.72;
}
.cx-hero__desc {
  margin: 0 0 18px;
  font-size: 15.5px;
  line-height: 1.84;
}
.cx-hero__meta {
  margin: 0 0 22px;
  padding-top: 12px;
  font-size: 13px;
}
.cx-index {
  margin-top: clamp(32px, 5.2vh, 56px);
  padding-top: 16px;
}

/* Strip white mat card & golden briar stickers; expand plate to 64%+ with 24px cantilever */
.cx-plate-mat {
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.cx-plate-mat .cx-plate {
  margin-left: -24px;
}
.cx-plate::before {
  inset: -9px -9px 9px 9px;
  border: 1px solid rgba(226, 188, 114, 0.22);
  border-radius: 0 50px 0 0;
}
.cx-plate-mat .cx-plate__frame {
  aspect-ratio: 16 / 10.3;
  border-radius: 0 44px 0 0;
  border: 1px solid rgba(226, 188, 114, 0.28);
  box-shadow: 0 32px 68px -28px rgba(8, 2, 3, 0.72);
}
.cx-plate__folio {
  top: 16px;
  left: 16px;
  width: 32px;
  height: 32px;
  font-size: 13px;
  background: rgba(247, 245, 240, 0.92);
  border: 1px solid rgba(184, 139, 66, 0.56);
}
.cx-plate-mat .cx-plate__caption {
  margin-left: 0;
  margin-top: 14px;
  padding: 12px 2px 0;
  border-top: 1px solid rgba(226, 188, 114, 0.22);
  color: rgba(238, 224, 206, 0.88);
  font-size: 13px;
}
.cx-plate-mat .cx-plate__counter {
  color: #e5c17b;
  font-weight: 500;
}

/* 11D. Aurora Continent Map — Full-Width Map × Archaeologist Field-Note Overlay */
.cx-world {
  padding: clamp(52px, 6.2vw, 88px) 0;
}
.cx-world__intro {
  margin: 0 auto clamp(30px, 3.8vw, 48px);
}
.cx-world__epigraph {
  margin: 10px 0 0;
}
.cx-atlas {
  position: relative;
  border: 1px solid rgba(116, 90, 52, 0.28);
  background: var(--paper-base);
  box-shadow: none;
  overflow: visible;
}
.cx-atlas__topbar {
  padding: 11px 18px;
  border-bottom: 1px solid rgba(116, 90, 52, 0.22);
  background: #f2eee4;
}
.cx-atlas__body {
  position: relative;
  display: block;
}
.cx-atlas__stage {
  width: 100%;
  padding: 16px;
  background: #f4f0e6;
}
.cx-atlas__degree-frame {
  padding: 16px 16px;
}
.cx-map-card {
  position: absolute;
  top: 50%;
  right: -14px;
  transform: translateY(-50%);
  width: clamp(336px, 31.2%, 404px);
  z-index: 12;
  padding: 16px 20px;
  gap: 9px;
  background: #fcf9f2;
  border: 1px solid rgba(116, 90, 52, 0.34);
  border-left: 1px solid rgba(116, 90, 52, 0.34);
  border-top: 2px solid var(--cinnabar);
  box-shadow:
    -14px 24px 52px -22px rgba(27, 20, 14, 0.30),
    0 4px 12px -4px rgba(27, 20, 14, 0.12);
}
.cx-map-region--east {
  opacity: 0;
}
.cx-map-card.is-switching {
  opacity: 0.28;
  transform: translateY(calc(-50% + 4px));
}
.cx-map-card__pin {
  position: absolute;
  top: -7px;
  left: 50%;
  transform: translateX(-50%);
  width: 34px;
  height: 12px;
  border-top: 1.5px solid #9a7234;
  border-left: 1px solid rgba(154, 114, 52, 0.65);
  border-right: 1px solid rgba(154, 114, 52, 0.65);
  background: linear-gradient(180deg, rgba(232, 206, 142, 0.42), rgba(252, 249, 242, 0.92));
  pointer-events: none;
}
.cx-map-card__head {
  padding-bottom: 9px;
  gap: 11px;
}
.cx-map-card__name {
  font-size: 19px;
}
.cx-map-card__art {
  aspect-ratio: 16 / 8.2;
  border: 1px solid rgba(27, 25, 23, 0.18);
}
.cx-map-card__specs > div {
  grid-template-columns: 56px minmax(0, 1fr);
  padding: 5.5px 0;
  font-size: 12.5px;
  line-height: 1.48;
}
.cx-map-card__desc {
  font-size: 13.5px;
  line-height: 1.72;
}
.cx-map-card__actions {
  gap: 8px 10px;
  padding-top: 4px;
}
.cx-map-card__actions .cx-btn {
  min-height: 36px;
  padding-inline: 13px !important;
  font-size: 13px;
}

/* 11E. Kintsugi Gold Fracture Section Dividers */
.cx-ornament--kintsugi {
  display: block;
  width: 100%;
  margin: clamp(44px, 5.5vw, 72px) 0;
}
.cx-ornament--kintsugi svg {
  width: 100%;
  height: 28px;
  display: block;
  overflow: visible;
}
.cx-ornament--kintsugi.cx-ornament--compact {
  margin: 14px 0 36px;
}

/* 11F. Hidden-Until-Hover Damask Rose Watermark (opacity: 0.08 on hover) */
.cx-spread__text,
.cx-journal__entry {
  position: relative;
}
.cx-damask-rose {
  position: absolute;
  pointer-events: none;
  opacity: 0;
  transform: scale(0.96) rotate(-4deg);
  transition: opacity 0.72s cubic-bezier(0.22, 1, 0.36, 1), transform 0.95s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 0;
}
.cx-damask-rose--codex {
  right: -12px;
  bottom: -18px;
  width: 210px;
  height: 210px;
  color: #7c5823;
}
.cx-spread:hover .cx-damask-rose--codex {
  opacity: 0.08;
  transform: scale(1) rotate(0deg);
}
.cx-damask-rose--crimson {
  right: 4%;
  bottom: -26px;
  width: 260px;
  height: 260px;
  color: #e8ce8e;
}
.cx-saintess-band:hover .cx-damask-rose--crimson {
  opacity: 0.08;
  transform: scale(1) rotate(0deg);
}
.cx-damask-rose--journal {
  right: -18px;
  bottom: -24px;
  width: 196px;
  height: 196px;
  color: #7c5823;
}
.cx-journal__entry:hover .cx-damask-rose--journal {
  opacity: 0.08;
  transform: scale(1) rotate(0deg);
}
.cx-spread__text > *:not(.cx-damask-rose),
.cx-journal__entry > *:not(.cx-damask-rose) {
  position: relative;
  z-index: 1;
}

/* 11G. Six-Volume Codex & Saintess Crimson Band Framing Cleanup */
.cx-spread__art--spine {
  padding: 0 0 0 18px;
  background: transparent;
  border: 0;
  border-left: 3px solid var(--cinnabar);
}
.cx-vol-index a {
  position: relative;
  display: grid;
  grid-template-columns: 20px 44px minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  line-height: 1.5;
}
.cx-vol-index a .cx-vol-sigil {
  width: 19px;
  height: 19px;
  margin-top: 1px;
}
.cx-vol-index a span {
  padding-top: 1px;
}
.cx-vol-index a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, #c4a0e0 0%, #e0c8a0 65%, transparent 100%);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}
.cx-vol-index a:hover::after,
.cx-vol-index a.is-previewing::after {
  transform: scaleX(1);
}

.cx-saintess-band {
  border-top: 1px solid rgba(206, 168, 96, 0.34);
  border-bottom: 1px solid rgba(206, 168, 96, 0.34);
  padding: clamp(64px, 7vw, 96px) 0;
}
.cx-saintess-band .cx-spread--reverse {
  grid-template-columns: minmax(0, 62fr) minmax(0, 38fr);
  gap: clamp(32px, 4.6vw, 68px);
}
.cx-spread__art--crimson {
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-left: 0 !important;
}
.cx-spread__art--crimson .cx-spread__stage {
  border: 1px solid rgba(226, 188, 114, 0.28);
  box-shadow: 0 28px 60px -28px rgba(10, 2, 3, 0.72);
}

/* 11H. Playable Builds — Full-Bleed Frameless Flagship Soteria + Ragusa CSS Caustics */
.cx-builds--theatre {
  padding-bottom: clamp(88px, 9.5vw, 132px);
  border-bottom: 1px solid rgba(206, 168, 96, 0.32) !important;
}
.cx-builds--theatre .cx-sec-head {
  border-bottom: 0;
  padding-bottom: 0;
  margin-bottom: 8px;
}
.cx-theatre-gear {
  opacity: 0.08;
}
.cx-builds--theatre .cx-flagship.cx-flagship--bleed {
  display: block;
  padding: 0 0 clamp(44px, 5vw, 68px);
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(204, 161, 86, 0.22);
}
.cx-flagship--bleed .cx-flagship__media {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  position: relative;
}
.cx-flagship--bleed .cx-flagship__screen {
  border: 0 !important;
  background: #081216;
  height: clamp(380px, 54vh, 580px);
}
.cx-flagship--bleed .cx-flagship__screen img {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: 50% 44%;
}
.cx-flagship--bleed .cx-flagship__tabs {
  position: relative;
  border: 0;
  border-top: 1px solid rgba(214, 178, 108, 0.24);
  border-bottom: 1px solid rgba(214, 178, 108, 0.16);
  background: rgba(10, 22, 28, 0.92);
  padding-inline: max(var(--gutter), calc((100vw - var(--max-w)) / 2 + var(--gutter)));
}
.cx-flagship--bleed .cx-flagship__tabs button {
  padding: 13px 12px;
  font-family: var(--font-serif);
  font-size: 13.5px;
  letter-spacing: 0.06em;
}
.cx-flagship--bleed .cx-flagship__body {
  margin-top: clamp(28px, 3.2vw, 42px);
  display: grid;
  grid-template-columns: minmax(0, 44fr) minmax(0, 56fr);
  gap: clamp(24px, 4.2vw, 68px);
  align-items: start;
}
.cx-flagship--bleed .cx-flagship__heading h3 {
  font-size: clamp(24px, 2.4vw, 31px);
  margin-bottom: 8px;
}
.cx-flagship--bleed .cx-run-note {
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px solid rgba(204, 161, 86, 0.2);
}
.cx-flagship--bleed .cx-flagship__detail .cx-body-copy {
  margin: 0 0 22px;
}

/* Two-Column Build Plates: Clean Hairline + Prism Refraction Top Edge on Hover */
.cx-duo__screen {
  position: relative;
}
.cx-duo__screen::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1.5px;
  background: linear-gradient(90deg, #c4a0e0 0%, #e0c8a0 100%);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 3;
}
.cx-duo__screen:hover::after {
  transform: scaleX(1);
}

/* Ragusa Water Fortress Subtle CSS Caustics Reflection Band */
@keyframes cx-caustics-drift-a {
  0%   { transform: translate3d(-4%, 0, 0) scale(1.04); }
  50%  { transform: translate3d(3%, -4px, 0) scale(1.08); }
  100% { transform: translate3d(-4%, 0, 0) scale(1.04); }
}
@keyframes cx-caustics-drift-b {
  0%   { transform: translate3d(4%, 2px, 0) scale(1.06); }
  50%  { transform: translate3d(-3%, -3px, 0) scale(1.02); }
  100% { transform: translate3d(4%, 2px, 0) scale(1.06); }
}
.cx-caustics {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 210px;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.38) 45%, transparent 100%);
  mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.38) 45%, transparent 100%);
}
.cx-caustics::before,
.cx-caustics::after {
  content: "";
  position: absolute;
  inset: -40px -10%;
  mix-blend-mode: screen;
  filter: blur(1.4px);
}
.cx-caustics::before {
  opacity: 0.24;
  background-image:
    radial-gradient(ellipse 38% 42% at 22% 96%, rgba(164, 214, 222, 0.32), transparent 70%),
    radial-gradient(ellipse 42% 38% at 74% 94%, rgba(226, 198, 138, 0.28), transparent 72%),
    repeating-radial-gradient(ellipse 170px 24px at 18% 78%, rgba(224, 198, 140, 0.42) 0 1px, transparent 2px 38px),
    repeating-radial-gradient(ellipse 210px 28px at 66% 84%, rgba(154, 206, 214, 0.38) 0 1px, transparent 2px 44px);
  animation: cx-caustics-drift-a 24s ease-in-out infinite;
}
.cx-caustics::after {
  opacity: 0.18;
  background-image:
    repeating-radial-gradient(ellipse 185px 22px at 42% 86%, rgba(232, 208, 152, 0.38) 0 1px, transparent 2px 42px),
    repeating-radial-gradient(ellipse 150px 20px at 86% 74%, rgba(164, 210, 216, 0.34) 0 1px, transparent 2px 36px),
    repeating-linear-gradient(84deg, rgba(214, 196, 152, 0.12) 0 1px, transparent 2px 58px);
  animation: cx-caustics-drift-b 31s ease-in-out infinite;
}

/* 11I. Journal Section — Asymmetric 55/45 Postmodern Editorial Split */
.cx-journal__grid {
  grid-template-columns: minmax(0, 55fr) minmax(0, 45fr);
  gap: clamp(32px, 5vw, 76px);
  align-items: start;
}
.cx-journal__entry--lead h3 {
  font-size: clamp(23px, 2.35vw, 29px);
}
.cx-journal__entry--side {
  padding-top: clamp(10px, 1.8vw, 22px);
}
.cx-journal__entry {
  overflow: hidden;
  padding-bottom: 6px;
}

/* 11J. Responsive Breakpoints for v11 Architecture */
@media (max-width: 1280px) {
  .cx-folio-rail.cx-dagger-rail {
    right: 8px;
  }
}
@media (max-width: 1180px) {
  .cx-folio-rail.cx-dagger-rail {
    display: none;
  }
}
@media (max-width: 1080px) {
  .cx-map-region--east {
    opacity: 1;
  }
  .cx-map-card {
    position: static;
    top: auto;
    right: auto;
    transform: none;
    width: auto;
    box-shadow: none;
    border: 0;
    border-top: 1px solid rgba(116, 90, 52, 0.28);
  }
  .cx-map-card.is-switching {
    transform: translateY(4px);
  }
  .cx-map-card__pin {
    display: none;
  }
}
@media (max-width: 1024px) {
  .cx-hero__marble {
    width: 100%;
    height: 55%;
  }
  .cx-hero__grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .cx-plate-mat .cx-plate {
    margin-left: 0;
  }
  .cx-plate-mat .cx-plate__caption {
    color: rgba(238, 224, 206, 0.88);
  }
  .cx-saintess-band .cx-spread--reverse {
    grid-template-columns: minmax(0, 1fr);
  }
  .cx-flagship--bleed .cx-flagship__body {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }
}
@media (max-width: 720px) {
  .site-nav {
    -webkit-mask-image: linear-gradient(90deg, #000 86%, transparent 100%);
    mask-image: linear-gradient(90deg, #000 86%, transparent 100%);
    padding-right: 28px;
  }
  .cx-hero {
    padding: 24px 0 32px;
  }
  .cx-hero__visual {
    padding: 22px 16px 24px;
  }
  .cx-plate-mat .cx-plate__frame {
    aspect-ratio: 16 / 10;
    border-radius: 0 26px 0 0;
  }
  .cx-flagship--bleed .cx-flagship__screen {
    height: clamp(220px, 54vw, 320px);
  }
  .cx-flagship--bleed .cx-flagship__tabs {
    padding-inline: 0;
  }
  .cx-journal__grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .cx-journal__entry--side {
    padding-top: 28px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .cx-caustics::before,
  .cx-caustics::after {
    animation: none !important;
  }
  .cx-damask-rose {
    transition: opacity 0.2s ease;
    transform: none;
  }
}

/* ==========================================================================
   12. v12 《表里白垩 · PALIMPSEST OF CHALK & PRISM》 — AVANT-GARDE MONOGRAPH
   Audacious Asymmetric Bleed Choreography:
   Right-Bleed Hero Mural -> Unboxed Tilted Map Desk -> Inverted Monograph Ledger
   -> Left-Bleed Saintess & Cross-Plane Quote -> 100vw Cinema Soteria & Staggered Duo
   -> 60/40 Broadsheet & Secret Sub Rosa Palimpsest Mode
   ========================================================================== */
.codex-home {
  overflow-x: clip;
}
.cx-nowrap {
  white-space: nowrap;
}

/* Dim Audio Volume Slider When Music Is OFF (No Contradictory Crimson Dot) */
.header-audio:has(#audio-toggle[aria-pressed="false"]) .audio-slider,
.header-audio:has(#audio-toggle[aria-pressed="false"]) .audio-vol-text {
  opacity: 0.34;
  filter: grayscale(1);
  transition: opacity 0.25s ease, filter 0.25s ease;
}

/* Unified Site-Wide Tertiary Link Language (Crisp Across Light, Dark & Tilted Surfaces) */
.cx-text-link {
  border-bottom: 0 !important;
  text-decoration: underline !important;
  text-decoration-thickness: 1px !important;
  text-underline-offset: 5px !important;
  text-decoration-color: rgba(122, 98, 60, 0.76) !important;
}
.cx-saintess-band .cx-text-link,
.cx-builds--theatre .cx-text-link {
  color: #f0d69b !important;
  text-decoration-color: rgba(240, 214, 155, 0.78) !important;
}
.cx-saintess-band .cx-text-link:hover,
.cx-builds--theatre .cx-text-link:hover {
  color: #fff8eb !important;
  text-decoration-color: #fff8eb !important;
}

/* Vertical Classical Woodblock Book-Spine Margin Tags (Accessible Contrast) */
.cx-spine-tag {
  position: absolute;
  left: 14px;
  top: 42px;
  writing-mode: vertical-rl;
  text-orientation: upright;
  font-family: var(--font-serif);
  font-size: 11px;
  letter-spacing: 0.34em;
  color: rgba(110, 76, 30, 0.72);
  pointer-events: none;
  user-select: none;
  z-index: 4;
}
.cx-spine-tag::before {
  content: "";
  display: block;
  width: 1px;
  height: 24px;
  margin: 0 auto 10px;
  background: currentColor;
  opacity: 0.72;
}
.cx-spine-tag--crimson {
  color: rgba(238, 214, 158, 0.70);
  left: auto;
  right: 34px;
  top: 46px;
}
.cx-spine-tag--codex {
  left: -38px;
  top: 6px;
}
.cx-spine-tag--journal {
  top: 64px;
}

/* Subtle GPU Scroll Parallax on Monumental Bleeding Plates */
[data-parallax-img] {
  transform: scale(1.06) translate3d(0, var(--plx-y, 0px), 0);
  will-change: transform;
  transition: transform 0.14s linear;
}
.cx-plate:hover [data-parallax-img] {
  transform: scale(1.085) translate3d(0, var(--plx-y, 0px), 0);
}

/* Secret "Sub Rosa / 表里白垩" Palimpsest Red-Ink Archivist Marginalia */
.cx-marginalia {
  position: absolute;
  z-index: 9;
  max-width: 210px;
  padding: 8px 12px;
  border-left: 1.5px solid #9e2a22;
  background: rgba(251, 249, 245, 0.90);
  backdrop-filter: blur(6px);
  font-family: var(--font-serif);
  font-size: 12px;
  line-height: 1.55;
  color: #8c221b;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1), transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.cx-marginalia span {
  display: block;
  margin-bottom: 2px;
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.78;
}
.cx-marginalia em {
  font-style: normal;
}
.cx-marginalia--hero {
  left: max(var(--gutter), calc((100vw - var(--max-w)) / 2 + var(--gutter)));
  bottom: 92px;
}
.cx-marginalia--map {
  left: 22px;
  bottom: 36px;
}
.cx-marginalia--codex {
  right: 12px;
  top: -12px;
}
.cx-marginalia--crimson {
  position: relative;
  margin-top: 22px;
  background: rgba(24, 5, 8, 0.72);
  border-left-color: #e6c987;
  color: #f0d69b;
}
body.is-palimpsest .cx-marginalia {
  opacity: 1;
  transform: translateY(0);
  border: 1px solid rgba(158, 42, 34, 0.34);
  border-left: 3px solid #9e2a22;
  background: rgba(251, 245, 236, 0.96);
  box-shadow: 0 12px 28px -18px rgba(158, 42, 34, 0.36);
}
body.is-palimpsest .cx-marginalia--hero {
  max-width: 268px;
  padding: 10px 15px;
  font-size: 12.8px;
}
body.is-palimpsest .cx-marginalia--crimson {
  border-color: rgba(230, 201, 135, 0.36);
  border-left: 3px solid #e6c987;
  background: rgba(24, 5, 8, 0.86);
  box-shadow: none;
}
body.is-palimpsest .cx-hero__ghost-roman {
  -webkit-text-stroke: 1.5px rgba(236, 178, 98, 0.56);
  filter: drop-shadow(0 0 18px rgba(158, 42, 34, 0.42));
}
body.is-palimpsest .cx-spine-tag {
  color: #9e2a22;
  border-right-color: rgba(158, 42, 34, 0.62);
}
body.is-palimpsest .cx-spine-tag--crimson {
  color: #f4d692;
  border-left-color: rgba(244, 214, 146, 0.65);
}
body.is-palimpsest .cx-hero--monograph .cx-plate-mat .cx-plate__frame {
  border-color: rgba(226, 118, 84, 0.56);
}
body.is-palimpsest .cx-hero--monograph .cx-hero__copy::before {
  content: "里 · 档案裂隙已显";
  position: absolute;
  top: 22px;
  right: 42px;
  padding: 3px 9px;
  border: 1px solid rgba(158, 42, 34, 0.48);
  color: #9e2a22;
  font-family: var(--font-serif);
  font-size: 11px;
  letter-spacing: 0.2em;
  background: rgba(251, 245, 236, 0.88);
  pointer-events: none;
}

/* Secret Seal Button on Dagger Rail & Footer */
.cx-dagger-seal {
  pointer-events: auto;
  position: relative;
  margin-top: 12px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 1px;
  cursor: pointer;
}
.cx-dagger-seal i {
  display: block;
  width: 7px;
  height: 7px;
  border: 1px solid #9e2a22;
  background: transparent;
  transition: background-color 0.25s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.cx-dagger-seal:hover i,
.cx-dagger-seal.is-active i {
  background: #9e2a22;
  transform: rotate(45deg);
  box-shadow: 0 0 0 3px rgba(158, 42, 34, 0.22);
}
.cx-dagger-seal span {
  position: absolute;
  right: 30px;
  padding: 3px 10px;
  background: rgba(251, 249, 245, 0.96);
  border: 1px solid rgba(158, 42, 34, 0.34);
  color: #9e2a22;
  font-family: var(--font-serif);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(6px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.cx-dagger-seal:hover span,
.cx-dagger-seal:focus-visible span {
  opacity: 1;
  transform: translateX(0);
}
.cx-palimpsest-btn {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border: 1px solid rgba(158, 42, 34, 0.28);
  border-radius: 1px;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.cx-palimpsest-btn:hover,
.cx-palimpsest-btn.is-active {
  background: #9e2a22;
  border-color: #9e2a22;
  color: #fff8f0 !important;
}

/* --------------------------------------------------------------------------
   ACT I: MONUMENTAL HERO — RIGHT-BLEEDING 60vw MURAL × BOTTOM PROJECTION DOCK
   -------------------------------------------------------------------------- */
.cx-hero.cx-hero--monograph {
  min-height: calc(100svh - var(--header-h, 60px));
  display: grid;
  grid-template-rows: 1fr auto;
  align-items: stretch;
  padding: 0;
  border-bottom: 0;
}
.cx-hero--monograph .cx-hero__marble {
  width: 40%;
}
.cx-hero--monograph::before {
  width: 60%;
  background:
    radial-gradient(ellipse 70% 65% at 75% 24%, rgba(214, 172, 93, 0.14), transparent 72%),
    linear-gradient(180deg, #310b0f 0%, #1d0608 100%);
  border-left: 1px solid rgba(214, 172, 93, 0.30);
}
.cx-hero__ghost-roman {
  position: absolute;
  right: clamp(28px, 4vw, 72px);
  top: -12px;
  z-index: 1;
  font-family: "CormorantEditorial", var(--font-display);
  font-size: clamp(138px, 15vw, 220px);
  font-weight: 400;
  line-height: 0.85;
  color: transparent;
  -webkit-text-stroke: 1px rgba(232, 206, 142, 0.18);
  pointer-events: none;
  user-select: none;
  transition: opacity 0.35s ease;
}
.cx-hero__stage-body {
  position: relative;
  z-index: 2;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(380px, 40%) minmax(0, 60%);
  align-items: center;
}
.cx-hero--monograph .cx-hero__copy {
  position: relative;
  padding: clamp(32px, 4.5vh, 56px) clamp(44px, 4.4vw, 68px) clamp(28px, 4vh, 48px) max(var(--gutter), calc((100vw - var(--max-w)) / 2 + var(--gutter)));
}
.cx-hero--monograph .cx-hero__title {
  margin: 0 0 20px;
  font-size: clamp(32px, 3.05vw, 44px);
  line-height: 1.22;
  letter-spacing: 0.015em;
  text-indent: -0.46em;
  padding-left: 0;
  max-width: none;
  text-wrap: pretty;
}
.cx-hero--monograph .cx-hero__quote {
  margin: 0 0 18px;
  font-size: 15.5px;
  line-height: 1.72;
  max-width: 24em;
}
.cx-hero--monograph .cx-hero__desc {
  margin: 0 0 20px;
  font-size: 15.5px;
  line-height: 1.84;
  max-width: 36ch;
}
.cx-hero--monograph .cx-hero__meta {
  margin: 0 0 24px;
}

/* Right-Bleeding Edge-to-Edge Architectural Mural with Crisp Seam (Zero Fuzzy Bleed Shadow) */
.cx-hero--monograph .cx-hero__visual {
  padding: clamp(36px, 5vh, 60px) 0 clamp(20px, 3vh, 34px) 0;
}
.cx-hero--monograph .cx-plate-mat .cx-plate {
  margin-left: -34px;
}
.cx-hero--monograph .cx-plate::before {
  inset: -11px 0 11px 11px;
  border: 1px solid rgba(226, 188, 114, 0.24);
  border-right: 0;
  border-radius: 74px 0 0 0;
}
.cx-hero--monograph .cx-plate-mat .cx-plate__frame {
  aspect-ratio: auto;
  height: clamp(440px, 60vh, 610px);
  border-radius: 64px 0 0 0;
  border: 1px solid rgba(226, 188, 114, 0.34);
  border-right: 0;
  box-shadow: -1px 0 0 rgba(184, 139, 66, 0.28), 0 24px 48px -32px rgba(6, 1, 2, 0.52);
}
.cx-hero--monograph .cx-plate__folio {
  top: auto;
  bottom: 18px;
  left: 18px;
  width: 34px;
  height: 34px;
  font-size: 14px;
  background: rgba(247, 245, 240, 0.94);
  border: 1px solid rgba(184, 139, 66, 0.62);
}
.cx-hero--monograph .cx-plate-mat .cx-plate__caption {
  margin: 14px 0 0 0;
  padding: 12px max(var(--gutter), 44px) 0 16px;
  border-top: 1px solid rgba(226, 188, 114, 0.22);
}

/* Full-Width Bottom Cinema Projection Ledger Bar */
.cx-index.cx-index--dock {
  position: relative;
  z-index: 4;
  margin-top: 0;
  padding: 0 max(var(--gutter), calc((100vw - var(--max-w)) / 2 + var(--gutter)));
  gap: 0;
  border-top: 1px solid rgba(154, 118, 66, 0.30);
  border-bottom: 1px solid var(--hairline);
  background: rgba(247, 245, 240, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.cx-index--dock .cx-index__step {
  width: 46px;
  height: 64px;
  border-radius: 0;
  border: 0;
  border-right: 1px solid var(--hairline);
  color: var(--paper-muted);
}
.cx-index--dock .cx-index__step[data-cx-next] {
  border-right: 0;
  border-left: 1px solid var(--hairline);
}
.cx-index--dock .cx-index__step:hover {
  background: rgba(158, 42, 34, 0.05);
  color: var(--cinnabar);
}
.cx-index--dock .cx-index__list {
  gap: 0;
}
.cx-index--dock .cx-index__item {
  flex-direction: row;
  align-items: baseline;
  gap: 12px;
  padding: 19px 22px;
  border-bottom: 0;
  border-right: 1px solid var(--hairline);
  transition: background-color 0.22s ease, color 0.22s ease;
}
.cx-index--dock .cx-index__item:last-child {
  border-right: 0;
}
.cx-index--dock .cx-index__item::after {
  top: -1px;
  bottom: auto;
  height: 2px;
}
.cx-index--dock .cx-index__item:hover {
  background: rgba(132, 98, 48, 0.05);
}
.cx-index--dock .cx-index__item.is-active {
  background: #ffffff;
}
.cx-index--dock .cx-index__roman {
  font-family: "CormorantEditorial", var(--font-display);
  font-style: italic;
  font-size: 17px;
  font-weight: 500;
}
.cx-index--dock .cx-index__name {
  font-family: var(--font-serif);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* --------------------------------------------------------------------------
   ACT II-A: UNBOXED ARCHAEOLOGIST'S MAP DESK × TILTED FIELD DOSSIER
   -------------------------------------------------------------------------- */
.cx-sec-title--monument {
  font-size: clamp(36px, 3.8vw, 52px) !important;
  line-height: 1.12 !important;
  letter-spacing: 0.02em;
}
.cx-atlas.cx-atlas--unboxed {
  border: 0;
  background: transparent;
}
.cx-atlas__horizon {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px 32px;
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(116, 90, 52, 0.26);
}
.cx-atlas__heading-block .cx-world__epigraph {
  margin: 8px 0 0;
  font-size: 14.5px;
  letter-spacing: 0.08em;
}
.cx-atlas--unboxed .cx-atlas__stage {
  padding: 0;
  background: transparent;
}
.cx-atlas--unboxed .cx-atlas__degree-frame {
  padding: 20px 0;
  border-left: 0;
  border-right: 0;
  border-top: 1px solid rgba(102, 78, 44, 0.42);
  border-bottom: 1px solid rgba(102, 78, 44, 0.42);
  background:
    repeating-linear-gradient(90deg, rgba(102, 78, 44, 0.34) 0 14px, transparent 14px 28px) 0 0 / 100% 3px no-repeat,
    repeating-linear-gradient(90deg, rgba(102, 78, 44, 0.34) 0 14px, transparent 14px 28px) 0 100% / 100% 3px no-repeat,
    transparent;
}
.cx-atlas--unboxed .cx-deg {
  background: var(--paper-ivory);
}
.cx-atlas--unboxed .cx-deg--bl {
  color: var(--cinnabar);
  font-weight: 600;
}
.cx-atlas--unboxed .cx-atlas__canvas {
  border-color: rgba(102, 78, 44, 0.28);
}
.cx-map-region--plain,
.cx-map-region--ridge {
  color: #4f3a1c;
  text-shadow: 0 0 10px #faf6ec, 0 0 6px #faf6ec, 0 0 3px #faf6ec;
}
.cx-map-card__zoom {
  background: rgba(14, 11, 9, 0.90);
  border-color: rgba(236, 208, 154, 0.62);
  color: #faf2e2;
}

/* Physical Tilted Field-Note Dossier Strictly Bounded Inside Map Frame */
.cx-atlas--unboxed .cx-map-card {
  right: 32px;
  width: clamp(314px, 29%, 374px);
  padding: 14px 18px;
  gap: 7px;
  transform: translateY(-50%) rotate(-0.95deg);
  transition:
    opacity 0.18s ease,
    transform 0.48s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.48s ease;
  box-shadow:
    -14px 22px 46px -20px rgba(27, 20, 14, 0.30),
    0 5px 14px -6px rgba(27, 20, 14, 0.14);
}
.cx-atlas--unboxed .cx-map-card__art {
  aspect-ratio: 16 / 7.6;
}
.cx-atlas--unboxed .cx-map-card__specs > div {
  padding: 4.5px 0;
  font-size: 12px;
  line-height: 1.44;
}
.cx-atlas--unboxed .cx-map-card__desc {
  font-size: 12.8px;
  line-height: 1.62;
}
.cx-atlas--unboxed .cx-map-card:hover {
  transform: translateY(-50%) rotate(0deg) scale(1.005);
  box-shadow:
    -18px 28px 54px -22px rgba(27, 20, 14, 0.36),
    0 8px 18px -6px rgba(27, 20, 14, 0.16);
}
.cx-atlas--unboxed .cx-map-card.is-switching {
  opacity: 0.28;
  transform: translateY(calc(-50% + 5px)) rotate(-1.05deg);
}
/* Vermilion Archival Tape & Brass Pin Fastener */
.cx-atlas--unboxed .cx-map-card__pin {
  top: -11px;
  width: 68px;
  height: 18px;
  border: 1px solid rgba(158, 42, 34, 0.32);
  background: rgba(158, 42, 34, 0.16);
  backdrop-filter: blur(2px);
  transform: translateX(-50%) rotate(1.8deg);
}
.cx-atlas--unboxed .cx-map-card__pin::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  border-radius: 50%;
  background: #b88b42;
  box-shadow: 0 1px 2px rgba(27, 20, 14, 0.45);
}

/* --------------------------------------------------------------------------
   ACT II-B: MONUMENTAL SIX-VOLUME EXHIBITION LEDGER × OVERHANGING PLATE
   -------------------------------------------------------------------------- */
.cx-spread.cx-spread--monograph {
  position: relative;
  grid-template-columns: minmax(0, 44fr) minmax(0, 56fr);
  gap: clamp(32px, 4.6vw, 72px);
  align-items: center;
}
.cx-spread__monument {
  font-size: clamp(28px, 2.9vw, 40px) !important;
  line-height: 1.2 !important;
  margin-bottom: 12px !important;
  text-indent: -0.44em;
}
.cx-vol-index.cx-vol-index--ledger {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  margin: 0 0 24px;
  border-top: 1px solid rgba(27, 25, 23, 0.22);
}
.cx-vol-index--ledger li {
  border-bottom: 1px solid var(--hairline);
}
.cx-vol-index--ledger a {
  display: grid;
  grid-template-columns: 36px 22px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 11px 10px;
  transition:
    background-color 0.24s ease,
    color 0.22s ease,
    padding-left 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}
.cx-vol-roman {
  font-family: "CormorantEditorial", var(--font-display);
  font-style: italic;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: #8c642b;
  transition: color 0.22s ease;
}
.cx-vol-roman--zh {
  font-family: var(--font-serif);
  font-style: normal;
  font-size: 15px;
  font-weight: 600;
}
.cx-vol-label {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 15px;
  line-height: 1.45;
  color: var(--paper-ink);
  transition: color 0.22s ease;
}
.cx-vol-label b {
  font-weight: 600;
  font-size: 13px;
  color: #845f2a;
  flex-shrink: 0;
  transition: color 0.22s ease;
}
.cx-vol-index--ledger a:hover,
.cx-vol-index--ledger a.is-previewing {
  background: #1b1917;
  padding-left: 16px;
  transform: none;
}
.cx-vol-index--ledger a:hover .cx-vol-roman,
.cx-vol-index--ledger a.is-previewing .cx-vol-roman,
.cx-vol-index--ledger a:hover .cx-vol-label b,
.cx-vol-index--ledger a.is-previewing .cx-vol-label b {
  color: #e6c987;
}
.cx-vol-index--ledger a:hover .cx-vol-label,
.cx-vol-index--ledger a.is-previewing .cx-vol-label {
  color: #faf6ee;
}

/* Tall Overhanging Monograph Plate + Giant Editorial Roman Counter */
.cx-spread__art--overhang {
  position: relative;
  margin-right: -36px;
  padding-left: 20px;
  border-left: 3px solid var(--cinnabar);
}
.cx-spread__art--overhang .cx-spread__stage {
  aspect-ratio: 4 / 3.05;
  box-shadow: 0 28px 60px -30px rgba(27, 20, 14, 0.34);
}
.cx-spread__giant-num {
  position: absolute;
  right: 14px;
  bottom: 34px;
  z-index: 4;
  font-family: "CormorantEditorial", var(--font-display);
  font-size: clamp(64px, 6.2vw, 94px);
  font-weight: 400;
  line-height: 0.8;
  color: rgba(251, 249, 245, 0.88);
  text-shadow: 0 8px 28px rgba(14, 10, 8, 0.65);
  letter-spacing: 0.04em;
  pointer-events: none;
  user-select: none;
}

/* --------------------------------------------------------------------------
   ACT II-C: LEFT-BLEEDING SAINTESS MURAL × SEAMLESS FEATHERED VIGNETTE
   -------------------------------------------------------------------------- */
.cx-saintess-band {
  position: relative;
  padding: clamp(72px, 8vw, 114px) 0;
}
.cx-saintess-band .cx-sub-rosa-crest {
  top: 14px;
  opacity: 0.65;
}
.cx-saintess-band .cx-spread--bleed-left {
  grid-template-columns: minmax(0, 60fr) minmax(0, 40fr);
  gap: clamp(32px, 4.4vw, 64px);
  align-items: center;
}
.cx-spread--bleed-left .cx-spread__art--crimson {
  --bleed-l: max(var(--gutter), calc((100vw - var(--max-w)) / 2 + var(--gutter)));
  margin-left: calc(var(--bleed-l) * -1);
  width: calc(100% + var(--bleed-l));
}
.cx-spread--bleed-left .cx-spread__art--crimson .cx-spread__stage {
  aspect-ratio: 16 / 10.6;
  border: 0 !important;
  box-shadow: none !important;
  background: transparent;
  -webkit-mask-image: linear-gradient(to right, #000 0%, #000 76%, transparent 100%);
  mask-image: linear-gradient(to right, #000 0%, #000 76%, transparent 100%);
}
.cx-spread--bleed-left .cx-spread__art--crimson .cx-spread__meta {
  padding-left: var(--bleed-l);
  padding-right: 12%;
  margin-top: 14px;
}
.cx-spread__text--overlap {
  position: relative;
  z-index: 4;
}
.cx-spread__text--overlap h3 {
  font-size: clamp(30px, 3.2vw, 44px) !important;
  line-height: 1.16 !important;
  margin-bottom: 20px !important;
  text-indent: -0.44em;
}
.cx-spread__quote.cx-spread__quote--bridge {
  position: relative;
  margin: 0 0 22px -68px;
  padding: 16px 24px;
  background: rgba(36, 9, 13, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 0;
  border-left: 2px solid #e6c987 !important;
  font-size: clamp(18px, 1.55vw, 21.5px) !important;
  line-height: 1.66 !important;
  color: #fcf5e8 !important;
  box-shadow: none;
}

/* --------------------------------------------------------------------------
   ACT III: 100vw CINEMA FULL-BLEED SOTERIA + STAGGERED 56/44 DUO + CAUSTICS
   -------------------------------------------------------------------------- */
.cx-builds--theatre .cx-sec-title {
  font-size: clamp(34px, 3.6vw, 50px) !important;
  line-height: 1.12 !important;
}
.cx-flagship--bleed .cx-flagship__screen {
  position: relative;
  height: clamp(460px, 64vh, 660px);
}
.cx-flagship--bleed .cx-flagship__screen::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(8, 17, 22, 0.08) 0%,
    transparent 38%,
    rgba(8, 17, 22, 0.42) 72%,
    rgba(8, 17, 22, 0.90) 100%
  );
  pointer-events: none;
  z-index: 1;
}
.cx-flagship__cinema-title {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 28px max(var(--gutter), calc((100vw - var(--max-w)) / 2 + var(--gutter))) 26px;
  pointer-events: none;
}
.cx-flagship__cinema-meta {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-serif);
  font-size: 13px;
  letter-spacing: 0.14em;
  color: #e6c987;
}
.cx-flagship__cinema-title h3 {
  margin: 0 !important;
  font-size: clamp(28px, 3.2vw, 44px) !important;
  line-height: 1.16 !important;
  color: #fbf7ee !important;
  text-indent: -0.44em;
  text-shadow: 0 6px 28px rgba(4, 10, 14, 0.72);
}
.cx-flagship--bleed .cx-flagship__body {
  margin-top: clamp(26px, 3vw, 38px);
  grid-template-columns: minmax(0, 54fr) minmax(0, 46fr);
  align-items: center;
}
.cx-flagship--bleed .cx-flagship__detail {
  display: flex;
  justify-content: flex-end;
}

/* Aligned Precision Gallery Duo (Matched Horizon & CTA Baseline) */
.cx-duo.cx-duo--stagger {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(32px, 4.8vw, 72px);
  align-items: stretch;
  padding-top: clamp(44px, 5vw, 68px);
}
.cx-duo--stagger .cx-duo__col:nth-child(2) {
  margin-top: 0;
}
.cx-duo--stagger .cx-duo__col:first-child .cx-duo__screen {
  aspect-ratio: 16 / 9;
}

/* Upgraded Organic Ragusa Canal Water Caustics (SVG Wave Mesh + Layered Light) */
.cx-caustics {
  height: 250px;
}
.cx-caustics::before {
  opacity: 0.28;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='140' viewBox='0 0 320 140'%3E%3Cg fill='none' stroke='%23e2c48c' stroke-width='0.75' opacity='0.55'%3E%3Cpath d='M0 32 Q45 12 92 34 T186 30 T280 38 T320 32'/%3E%3Cpath d='M0 68 Q60 44 122 70 T242 62 T320 68' stroke='%239ecfd6'/%3E%3Cpath d='M0 104 Q52 84 114 108 T232 98 T320 104'/%3E%3Cpath d='M18 18 Q84 48 154 22 T296 42' stroke-width='0.55' opacity='0.7'/%3E%3Cpath d='M-12 88 Q74 118 166 84 T320 112' stroke='%239ecfd6' stroke-width='0.6' opacity='0.65'/%3E%3C/g%3E%3C/svg%3E"),
    radial-gradient(ellipse 42% 48% at 22% 96%, rgba(154, 210, 218, 0.34), transparent 72%),
    radial-gradient(ellipse 44% 44% at 76% 94%, rgba(226, 198, 138, 0.30), transparent 72%);
  background-size: 460px 180px, 100% 100%, 100% 100%;
  filter: blur(0.8px);
}

/* --------------------------------------------------------------------------
   ACT IV & V: 60/40 POSTMODERN BROADSHEET + SCULPTURAL SEAL COLOPHON
   -------------------------------------------------------------------------- */
.cx-journal {
  position: relative;
  padding: clamp(68px, 8vw, 112px) 0;
}
.cx-journal__grid {
  grid-template-columns: minmax(0, 60fr) minmax(0, 40fr);
  gap: clamp(36px, 5.5vw, 84px);
}
.cx-journal__entry--lead h3 {
  font-size: clamp(26px, 2.8vw, 36px) !important;
  line-height: 1.24 !important;
  margin-bottom: 14px !important;
}
.cx-journal__entry--side {
  padding-top: 0;
}
.cx-journal__toc {
  list-style: none;
  margin: 4px 0 26px;
  padding: 0;
  border-top: 1px solid rgba(27, 25, 23, 0.18);
}
.cx-journal__toc li {
  border-bottom: 1px solid var(--hairline);
}
.cx-journal__toc a {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: baseline;
  gap: 10px;
  padding: 10px 4px;
  font-family: var(--font-serif);
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--paper-ink);
  transition: color 0.2s ease, padding-left 0.24s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.2s ease;
}
.cx-journal__toc--novels a {
  grid-template-columns: 30px minmax(0, 1fr) auto;
}
.cx-journal__toc em {
  font-family: "CormorantEditorial", var(--font-display);
  font-style: italic;
  font-size: 15px;
  color: #8c642b;
}
.cx-journal__toc b {
  font-weight: 400;
  font-size: 12.5px;
  color: var(--paper-muted);
  white-space: nowrap;
}
.cx-journal__toc a:hover {
  color: var(--cinnabar);
  background: rgba(158, 42, 34, 0.04);
  padding-left: 10px;
}
.cx-colophon {
  padding: clamp(60px, 7.5vw, 96px) 0;
}
.cx-chop-seal {
  width: 76px;
  height: 76px;
  transform: rotate(-2deg);
}
.cx-colophon__name {
  font-size: clamp(32px, 3.4vw, 44px) !important;
  line-height: 1.15;
}
.cx-colophon__mail {
  font-size: clamp(22px, 2.3vw, 28px) !important;
}

/* --------------------------------------------------------------------------
   v12 RESPONSIVE SAFETY GUARDS (ZERO OVERFLOW AT 1280 / 1024 / 720 / 390)
   -------------------------------------------------------------------------- */
@media (max-width: 1380px) {
  .cx-spread__art--overhang {
    margin-right: 0;
  }
}
@media (max-width: 1220px) {
  .cx-spine-tag {
    display: none;
  }
}
@media (max-width: 1080px) {
  .cx-atlas--unboxed .cx-map-card,
  .cx-atlas--unboxed .cx-map-card:hover {
    right: auto;
    width: auto;
    transform: none;
    box-shadow: none;
  }
  .cx-atlas--unboxed .cx-map-card__pin {
    display: none;
  }
  .cx-spread__quote.cx-spread__quote--bridge {
    margin-left: 0;
  }
  .cx-spread--bleed-left .cx-spread__art--crimson .cx-spread__stage {
    -webkit-mask-image: none;
    mask-image: none;
  }
}
@media (max-width: 1024px) {
  .cx-hero.cx-hero--monograph {
    min-height: auto;
    display: block;
  }
  .cx-hero__stage-body {
    grid-template-columns: minmax(0, 1fr);
  }
  .cx-hero--monograph .cx-hero__copy {
    padding: 32px var(--gutter) 28px;
  }
  .cx-hero--monograph .cx-hero__visual {
    padding: 24px 0 28px;
  }
  .cx-hero--monograph .cx-plate-mat .cx-plate {
    margin-left: 0;
    padding-inline: var(--gutter);
  }
  .cx-hero--monograph .cx-plate-mat .cx-plate__frame {
    height: auto;
    aspect-ratio: 16 / 10;
    border-radius: 36px 0 0 0;
    border-right: 1px solid rgba(226, 188, 114, 0.30);
  }
  .cx-hero--monograph .cx-plate::before {
    display: none;
  }
  .cx-hero--monograph .cx-plate-mat .cx-plate__caption {
    padding-inline: var(--gutter);
  }
  .cx-hero__ghost-roman {
    display: none;
  }
  .cx-index.cx-index--dock {
    padding: 0;
  }
  .cx-index--dock .cx-index__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .cx-index--dock .cx-index__item {
    padding: 14px 16px;
    border-bottom: 1px solid var(--hairline);
  }
  .cx-spread.cx-spread--monograph,
  .cx-saintess-band .cx-spread--bleed-left,
  .cx-flagship--bleed .cx-flagship__body,
  .cx-duo.cx-duo--stagger,
  .cx-journal__grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .cx-spread--bleed-left .cx-spread__art--crimson {
    margin-left: 0;
    width: 100%;
  }
  .cx-spread--bleed-left .cx-spread__art--crimson .cx-spread__meta {
    padding-left: 0;
    padding-right: 0;
  }
  .cx-flagship--bleed .cx-flagship__detail {
    justify-content: flex-start;
  }
  .cx-duo--stagger .cx-duo__col:nth-child(2) {
    margin-top: 0;
  }
}
@media (max-width: 720px) {
  :root {
    --header-h: 108px;
  }
  .site-header {
    height: auto !important;
    min-height: var(--header-h);
    grid-template-rows: 44px auto !important;
    padding-block: 6px 8px !important;
  }
  .site-nav {
    display: flex !important;
    flex-wrap: wrap !important;
    overflow: visible !important;
    -webkit-mask-image: none !important;
    mask-image: none !important;
    padding-right: 0 !important;
    gap: 2px 6px !important;
    align-items: center;
  }
  .site-nav__link {
    padding: 4px 6px !important;
    font-size: 12.5px !important;
  }
  .site-nav__link--dl {
    margin-left: 2px !important;
    padding: 3px 10px !important;
    font-size: 12px !important;
  }
  .cx-hero--monograph .cx-hero__copy {
    padding: 20px var(--gutter) 18px;
  }
  .cx-hero--monograph .cx-hero__title {
    font-size: 27px;
    text-indent: -0.40em;
    max-width: none;
  }
  .cx-hero--monograph .cx-hero__quote {
    margin-bottom: 12px;
    font-size: 14.5px;
  }
  .cx-hero--monograph .cx-hero__desc {
    margin-bottom: 14px;
    font-size: 14.5px;
    line-height: 1.72;
  }
  .cx-hero--monograph .cx-hero__meta {
    margin-bottom: 16px;
  }
  .cx-flagship--bleed .cx-flagship__screen {
    height: clamp(240px, 58vw, 340px);
  }
  .cx-flagship__cinema-title {
    padding: 16px var(--gutter) 14px;
  }
  .cx-flagship__cinema-title h3 {
    font-size: 22px !important;
  }
  .cx-chop-seal {
    width: 56px;
    height: 56px;
  }
  .cx-marginalia {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  [data-parallax-img] {
    transform: none !important;
    transition: none !important;
  }
}
