/* ==========================================================================
   ATTILAS v18 — MOONLIT BAROQUE OPERA & CONCEPT DESIGN BIBLE
   100% Aspect-Ratio-Locked SVG Proscenium (`cqw`/`cqh` zero-desync geometry)
   Strict `de-slop` compliance:
   - Max 4 font-size tiers (>= 12px minimum)
   - Zero redundant bilingual eyebrows, zero pill badges, zero arrow symbols
   - Color reserved strictly for artwork & primary burgundy action button
   ========================================================================== */

@font-face {
  font-family: "NotoSerifSC";
  src: url("../fonts/NotoSerifSC-Medium.woff2") format("woff2");
  font-weight: 400 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "NotoSerifSC";
  src: url("../fonts/NotoSerifSC-SemiBold.woff2") format("woff2");
  font-weight: 600 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant";
  src: url("../fonts/CormorantGaramond-Medium.woff2") format("woff2");
  font-weight: 400 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant";
  src: url("../fonts/CormorantGaramond-Italic.woff2") format("woff2");
  font-weight: 400 500;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Cinzel";
  src: url("../fonts/Cinzel-SemiBold.woff2") format("woff2");
  font-weight: 500 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --op-night: #0b101a;
  --op-night-deep: #101724;
  --op-velvet-deep: #430811;
  --op-velvet: #68121e;
  --op-velvet-hover: #7f1624;
  --op-champagne: #cbb896;
  --op-champagne-line: rgba(203, 184, 150, 0.22);
  --op-ivory: #f4efe6;
  --op-ivory-soft: rgba(244, 239, 230, 0.84);
  --op-ivory-dim: rgba(244, 239, 230, 0.58);
  --op-paper: #f3eee4;
  --op-ink-dark: #191817;

  --op-serif: "NotoSerifSC", "Songti SC", "STSong", Georgia, serif;
  --op-disp: "Cormorant", "Cinzel", Georgia, serif;
  --op-mono: "Cascadia Mono", Consolas, ui-monospace, monospace;
  --op-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --op-header-h: 58px;

  /* Strict 4-Tier Font Scale (Zero < 12px!) */
  --fs-hero: clamp(32px, 3.6vw, 48px);
  --fs-h2: clamp(22px, 2.3vw, 30px);
  --fs-body: 15px;
  --fs-meta: 12.5px;

  --font-serif: var(--op-serif);
  --font-display: var(--op-disp);
  --font-mono: var(--op-mono);
  --header-h: var(--op-header-h);
}

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

html {
  scroll-behavior: smooth;
  background: var(--op-night) !important;
  overflow-x: clip !important;
  height: auto !important;
}

body.opera-body {
  margin: 0 !important;
  padding: 0 !important;
  height: auto !important;
  min-height: 100% !important;
  background: var(--op-night) !important;
  color: var(--op-ivory);
  font-family: var(--op-serif);
  font-weight: 500;
  font-size: var(--fs-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip !important;
  overflow-y: visible !important;
  caret-color: var(--op-champagne);
}

body.opera-body ::selection {
  background: var(--op-velvet);
  color: var(--op-ivory);
}

body.opera-body::-webkit-scrollbar { width: 8px; }
body.opera-body::-webkit-scrollbar-track { background: var(--op-night); }
body.opera-body::-webkit-scrollbar-thumb { background: rgba(203, 184, 150, 0.28); }
body.opera-body::-webkit-scrollbar-thumb:hover { background: var(--op-velvet); }

:where(body.opera-body a) {
  color: inherit;
  text-decoration: none;
}
:where(body.opera-body button) {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}
body.opera-body :is(a, button):focus-visible {
  outline: 1px solid var(--op-champagne);
  outline-offset: 3px;
}

body.opera-body #ambient-layer,
body.opera-body .art-curtain {
  display: none !important;
}

/* ==========================================================================
   1. UNIFIED FLOATING HEADER (5 Uncrowded Links + Compact Audio Toggle)
   ========================================================================== */
body.opera-body .site-header {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  transform: none !important;
  width: 100% !important;
  height: var(--op-header-h) !important;
  padding: 0 clamp(18px, 3vw, 48px) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px !important;
  z-index: 120 !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: rgba(11, 16, 26, 0.88) !important;
  border-bottom: 1px solid var(--op-champagne-line) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  transition: background 0.35s var(--op-ease), border-color 0.35s var(--op-ease) !important;
}

body.opera-body.is-opera-home:not(.is-scrolled) .site-header {
  background: linear-gradient(180deg, rgba(8, 12, 20, 0.76) 0%, rgba(8, 12, 20, 0) 100%) !important;
  border-bottom-color: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

body.opera-body .brand-mark {
  display: inline-flex !important;
  align-items: baseline !important;
  gap: 10px !important;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.85);
  flex-shrink: 0;
}
body.opera-body .brand-mark__folio {
  font-family: var(--op-disp) !important;
  font-size: 19px !important;
  font-weight: 500 !important;
  letter-spacing: 0.26em !important;
  color: var(--op-ivory) !important;
  -webkit-text-fill-color: var(--op-ivory) !important;
  background: none !important;
}
body.opera-body .brand-mark__title {
  font-family: var(--op-serif) !important;
  font-size: var(--fs-meta) !important;
  font-weight: 500 !important;
  letter-spacing: 0.12em !important;
  color: var(--op-champagne) !important;
}

body.opera-body .site-nav {
  display: flex !important;
  align-items: center !important;
  gap: clamp(14px, 2vw, 28px) !important;
  margin-left: auto !important;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.85);
}

body.opera-body .site-nav__link {
  position: relative !important;
  padding: 6px 0 !important;
  font-family: var(--op-serif) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  letter-spacing: 0.1em !important;
  color: rgba(244, 239, 230, 0.82) !important;
  background: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  white-space: nowrap;
  transition: color 0.22s var(--op-ease) !important;
}
body.opera-body .site-nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--op-champagne);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--op-ease);
}
body.opera-body .site-nav__link:hover,
body.opera-body .site-nav__link.is-active {
  color: #ffffff !important;
}
body.opera-body .site-nav__link:hover::after,
body.opera-body .site-nav__link.is-active::after {
  transform: scaleX(1);
}

body.opera-body .site-nav__link--dl {
  position: relative !important;
  height: 32px !important;
  padding: 0 15px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 1px solid rgba(203, 184, 150, 0.54) !important;
  background: linear-gradient(180deg, rgba(24, 34, 52, 0.78) 0%, rgba(13, 19, 30, 0.90) 100%) !important;
  box-shadow: inset 0 1px 0 rgba(244, 239, 230, 0.12), inset 0 0 0 2px rgba(9, 13, 21, 0.55) !important;
  color: var(--op-ivory) !important;
  border-radius: 2px !important;
  letter-spacing: 0.11em !important;
  transition: background 0.25s var(--op-ease), border-color 0.25s, box-shadow 0.25s, transform 0.15s !important;
}
body.opera-body .site-nav__link--dl::before,
body.opera-body .site-nav__link--dl::after { display: none !important; }
body.opera-body .site-nav__link--dl:hover,
body.opera-body .site-nav__link--dl.is-active {
  background: linear-gradient(180deg, #781624 0%, #580e19 100%) !important;
  border-color: var(--op-champagne) !important;
  box-shadow: inset 0 1px 0 rgba(244, 239, 230, 0.20), inset 0 0 0 2px rgba(18, 4, 8, 0.45) !important;
  color: #ffffff !important;
}
body.opera-body .site-nav__link--dl:active {
  transform: translateY(1px) !important;
}

body.opera-body .header-audio {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 0 0 0 14px !important;
  border-left: 1px solid rgba(203, 184, 150, 0.22) !important;
  background: none !important;
  box-shadow: none !important;
  flex-shrink: 0;
}
body.opera-body .audio-toggle {
  height: 32px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 0 12px !important;
  font-size: var(--fs-meta) !important;
  letter-spacing: 0.08em !important;
  color: rgba(244, 239, 230, 0.84) !important;
  border: 1px solid rgba(203, 184, 150, 0.30) !important;
  border-radius: 2px !important;
  background: rgba(12, 18, 29, 0.62) !important;
  box-shadow: inset 0 1px 0 rgba(244, 239, 230, 0.06) !important;
  transition: border-color 0.22s, color 0.22s, background 0.22s, transform 0.15s;
}
body.opera-body .audio-toggle:hover,
body.opera-body .audio-toggle.is-playing {
  border-color: var(--op-champagne) !important;
  color: #ffffff !important;
  background: linear-gradient(180deg, rgba(114, 20, 34, 0.72) 0%, rgba(76, 11, 21, 0.82) 100%) !important;
}
body.opera-body .audio-toggle:active {
  transform: translateY(1px);
}
body.opera-body .audio-toggle strong {
  font-weight: 500;
  color: var(--op-champagne);
}
body.opera-body .audio-bars {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 10px;
}
body.opera-body .audio-bars i {
  display: block;
  width: 1.5px;
  height: 4px;
  background: var(--op-champagne);
}
body.opera-body .audio-toggle.is-playing .audio-bars i:nth-child(1) { animation: opBar 0.85s infinite ease-in-out; }
body.opera-body .audio-toggle.is-playing .audio-bars i:nth-child(2) { animation: opBar 0.65s infinite ease-in-out 0.18s; }
body.opera-body .audio-toggle.is-playing .audio-bars i:nth-child(3) { animation: opBar 0.95s infinite ease-in-out 0.32s; }
@keyframes opBar {
  0%, 100% { height: 3px; }
  50% { height: 10px; }
}
body.opera-body .audio-slider {
  width: 48px !important;
  height: 2px !important;
  accent-color: var(--op-champagne);
  opacity: 0.78;
}
body.opera-body .audio-vol-text {
  font-family: var(--op-mono) !important;
  font-size: 12px !important;
  color: var(--op-ivory-dim) !important;
  min-width: 30px;
}

/* ==========================================================================
   2. OPERA BOOKPLATE & ENGRAVED PLAQUE BUTTON SYSTEM (v21)
      Three strict visual tiers · Inset double-frame · Corner L-hairlines
      Curtain-sweep hover sheen · Tabular spec divider · Tactile 1px press
   ========================================================================== */
.op-btn {
  --btn-tick: rgba(203, 184, 150, 0.52);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 42px;
  padding: 8px 24px;
  border-radius: 2px;
  font-family: var(--op-serif);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  border: 1px solid rgba(203, 184, 150, 0.40);
  color: var(--op-ivory);
  background: linear-gradient(180deg, rgba(22, 31, 48, 0.86) 0%, rgba(12, 18, 29, 0.94) 100%);
  box-shadow:
    inset 0 1px 0 rgba(244, 239, 230, 0.10),
    inset 0 0 0 3px rgba(9, 13, 21, 0.52),
    0 6px 18px rgba(4, 7, 14, 0.36);
  white-space: nowrap;
  transition:
    border-color 0.28s var(--op-ease),
    color 0.25s var(--op-ease),
    box-shadow 0.28s var(--op-ease),
    transform 0.16s var(--op-ease);
}

/* Precision 5px corner L-hairlines inset 3px inside plaque */
.op-btn::before {
  content: "";
  position: absolute;
  inset: 3px;
  z-index: 2;
  pointer-events: none;
  opacity: 0.72;
  background:
    linear-gradient(var(--btn-tick), var(--btn-tick)) left top / 5px 1px no-repeat,
    linear-gradient(var(--btn-tick), var(--btn-tick)) left top / 1px 5px no-repeat,
    linear-gradient(var(--btn-tick), var(--btn-tick)) right top / 5px 1px no-repeat,
    linear-gradient(var(--btn-tick), var(--btn-tick)) right top / 1px 5px no-repeat,
    linear-gradient(var(--btn-tick), var(--btn-tick)) left bottom / 5px 1px no-repeat,
    linear-gradient(var(--btn-tick), var(--btn-tick)) left bottom / 1px 5px no-repeat,
    linear-gradient(var(--btn-tick), var(--btn-tick)) right bottom / 5px 1px no-repeat,
    linear-gradient(var(--btn-tick), var(--btn-tick)) right bottom / 1px 5px no-repeat;
  transition: inset 0.28s var(--op-ease), opacity 0.28s var(--op-ease);
}

/* Choreographed horizontal curtain-sweep light veil */
.op-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(203, 184, 150, 0.18) 0%, rgba(203, 184, 150, 0.08) 65%, transparent 100%);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.38s var(--op-ease);
}

.op-btn:hover {
  --btn-tick: rgba(244, 239, 230, 0.92);
  border-color: rgba(203, 184, 150, 0.86);
  color: #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(244, 239, 230, 0.20),
    inset 0 0 0 3px rgba(9, 13, 21, 0.36),
    0 10px 26px rgba(4, 7, 14, 0.52);
}
.op-btn:hover::before {
  inset: 2px;
  opacity: 1;
}
.op-btn:hover::after {
  transform: scaleX(1);
}
.op-btn:active {
  transform: translateY(1px);
}

/* Tier 1: Primary Woven Venetian Burgundy Velvet Bookplate */
.op-btn--wine {
  --btn-tick: rgba(232, 214, 181, 0.72);
  background: linear-gradient(180deg, #781624 0%, #560d18 100%);
  border-color: rgba(203, 184, 150, 0.58);
  color: #faf6ee;
  box-shadow:
    inset 0 1px 0 rgba(255, 244, 232, 0.20),
    inset 0 0 0 3px rgba(24, 4, 8, 0.44),
    0 8px 24px rgba(18, 2, 6, 0.50);
}
.op-btn--wine::after {
  background: linear-gradient(90deg, rgba(154, 28, 44, 0.72) 0%, rgba(203, 184, 150, 0.16) 100%);
}
.op-btn--wine:hover {
  --btn-tick: #ffffff;
  border-color: var(--op-champagne);
  color: #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255, 248, 240, 0.30),
    inset 0 0 0 3px rgba(24, 4, 8, 0.30),
    0 12px 28px rgba(28, 3, 9, 0.62);
}

/* Tier 3: Editorial Ghost Spine Plaque (Subordinate action) */
.op-btn--subtle {
  border-color: rgba(203, 184, 150, 0.26);
  color: var(--op-champagne);
  background: rgba(11, 16, 26, 0.46);
  box-shadow: inset 2px 0 0 rgba(203, 184, 150, 0.62);
}
.op-btn--subtle::before {
  display: none;
}
.op-btn--subtle::after {
  background: linear-gradient(90deg, rgba(203, 184, 150, 0.15) 0%, transparent 90%);
}
.op-btn--subtle:hover {
  color: var(--op-ivory);
  border-color: rgba(203, 184, 150, 0.64);
  box-shadow: inset 3px 0 0 var(--op-champagne);
}

/* Archival file-size / format tag inside buttons */
.op-btn small {
  font-family: var(--op-mono);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  color: var(--op-champagne);
  padding-left: 11px;
  margin-left: 2px;
  border-left: 1px solid rgba(203, 184, 150, 0.34);
  line-height: 1.1;
}
.op-btn--wine small {
  color: rgba(250, 246, 238, 0.88);
  border-left-color: rgba(244, 239, 230, 0.30);
}

/* Full-width stacked buttons in Downloads & Atlas Info align label/spec cleanly */
.opera-dl-btns .op-btn {
  width: 100%;
  padding: 8px 18px;
}
.opera-dl-btns .op-btn:has(small) {
  justify-content: space-between;
}

/* ==========================================================================
   3. GLOBAL SEAMLESS PJAX WEBGL VELVET CURTAIN OVERLAY
   ========================================================================== */
#opera-pjax-curtain {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 900;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.22s ease;
}
#opera-pjax-curtain.is-active {
  opacity: 1;
  pointer-events: auto;
}

/* ==========================================================================
   4. ACT I — MATHEMATICALLY ASPECT-LOCKED PROSCENIUM STAGE
      Both sky, SVG arch mask & stage-scene share exact 1600×900 xMidYMid slice
      coordinates via CSS Container Query Units (`cqw` / `cqh`) -> 0.00px drift!
   ========================================================================== */
.opera-home {
  width: 100%;
  background: var(--op-night);
}

.theater-stage {
  position: relative;
  width: 100%;
  height: min(100svh, 66vw);
  min-height: 600px;
  max-height: none;
  overflow: hidden;
  background: var(--op-night-deep);
  container-type: size;
}

.proscenium-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}
.proscenium-svg--sky { z-index: 1; }
.proscenium-svg--fg  { z-index: 20; }

/* Exact opening inside 1600×900 xMidYMid slice:
   1 SVG unit = max(0.0625cqw, 0.11111cqh)
   Opening X: [800 - 524, 800 + 524] => inset = max(24px, 50cqw - 524 * unit)
   Opening Y: [450 - 348, 450 + 224] */
.stage-scene {
  --u: max(0.0625cqw, 0.111111cqh);
  position: absolute;
  z-index: 6;
  left: max(22px, calc(50cqw - 522 * var(--u)));
  right: max(22px, calc(50cqw - 522 * var(--u)));
  top: max(54px, calc(50cqh - 344 * var(--u)));
  bottom: max(84px, calc(50cqh - 222 * var(--u)));
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(20px, 2.6vw, 34px) clamp(22px, 3vw, 42px) clamp(18px, 2.2vw, 28px);
  box-shadow: inset 0 0 56px rgba(14, 20, 32, 0.76);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--op-ease);
}
body.is-curtain-open .stage-scene {
  opacity: 1;
  pointer-events: auto;
}
.stage-scene__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 34%;
  opacity: 0.78;
  filter: contrast(1.04) saturate(0.92);
  transition: opacity 0.5s var(--op-ease), transform 1s var(--op-ease);
}
.stage-scene__img.is-fading {
  opacity: 0.18;
  transform: scale(1.02);
}
.stage-scene__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 74% 68% at 62% 32%, transparent 16%, rgba(15, 22, 34, 0.58) 74%, rgba(13, 19, 30, 0.94) 100%),
    linear-gradient(180deg, rgba(15, 22, 34, 0.42) 0%, rgba(15, 22, 34, 0.10) 32%, rgba(15, 22, 34, 0.82) 70%, rgba(13, 19, 30, 0.96) 100%);
}
.stage-scene__matte {
  position: absolute;
  inset: 12px;
  z-index: 2;
  pointer-events: none;
  border: 1px solid rgba(203, 184, 150, 0.22);
}

/* Quiet stage-local curtain latch control */
.stage-curtain-btn {
  position: absolute;
  top: 22px;
  right: 24px;
  z-index: 5;
  height: 30px;
  padding: 0 13px;
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  letter-spacing: 0.11em;
  color: var(--op-champagne);
  background: rgba(11, 16, 26, 0.74);
  border: 1px solid rgba(203, 184, 150, 0.36);
  box-shadow: inset 2px 0 0 var(--op-champagne);
  border-radius: 2px;
  transition: background 0.22s, color 0.22s, border-color 0.22s, transform 0.15s;
}
.stage-curtain-btn:hover {
  background: linear-gradient(180deg, #781624 0%, #560d18 100%);
  color: #ffffff;
  border-color: var(--op-champagne);
}
.stage-curtain-btn:active {
  transform: translateY(1px);
}

.scene-copy {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(0, 0.72fr);
  gap: clamp(18px, 2.4vw, 34px);
  align-items: end;
}
.scene-title {
  margin: 0;
  font-size: var(--fs-hero);
  font-weight: 500;
  letter-spacing: 0.10em;
  line-height: 1.15;
  color: var(--op-ivory);
}
.scene-lead {
  margin: 12px 0 0;
  max-width: 44ch;
  font-size: 14.5px;
  line-height: 1.85;
  color: rgba(244, 239, 230, 0.88);
}
.scene-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.scene-notes {
  border-left: 1px solid rgba(203, 184, 150, 0.28);
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.scene-notes div b {
  display: block;
  font-size: var(--fs-meta);
  letter-spacing: 0.1em;
  color: var(--op-champagne);
  font-weight: 500;
  margin-bottom: 2px;
}
.scene-notes div span {
  display: block;
  font-size: var(--fs-meta);
  line-height: 1.62;
  color: rgba(244, 239, 230, 0.76);
}

/* Instant 0ms FCP & Zero-WebGL Dry-Matte Burgundy Curtain Fallback */
.curtain-fallback {
  position: absolute;
  inset: 0;
  z-index: 14;
  pointer-events: none;
  background:
    radial-gradient(ellipse 68% 66% at 50% 44%, rgba(92, 14, 24, 0.45) 0%, rgba(22, 3, 7, 0.92) 100%),
    repeating-linear-gradient(90deg, #1b0307 0px, #3b0811 28px, #4e0c17 48px, #240409 76px, #1b0307 96px);
  transition: opacity 0.55s var(--op-ease);
}
body.has-curtain-gl .curtain-fallback,
body.is-curtain-open .curtain-fallback {
  opacity: 0;
}

/* Seamless Inner WebGL Velvet Curtain (masked cleanly by proscenium-svg--fg) */
#curtain-gl {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 15;
  pointer-events: none;
}

.curtain-cover {
  position: absolute;
  inset: 0;
  z-index: 26;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px clamp(32px, 16vw, 240px) 92px;
  text-align: center;
  transition: opacity 0.55s var(--op-ease), transform 0.6s var(--op-ease);
}
body.is-curtain-open .curtain-cover {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
}
.cover-title {
  margin: 0;
  font-size: clamp(42px, 4.8vw, 66px);
  font-weight: 500;
  letter-spacing: 0.22em;
  line-height: 1.12;
  color: var(--op-ivory);
  text-shadow: 0 8px 32px rgba(18, 2, 5, 0.74);
}
.cover-hair {
  width: 56px;
  height: 1px;
  background: var(--op-champagne);
  margin: 20px auto;
  opacity: 0.72;
}
.cover-sub {
  margin: 0 auto 28px;
  max-width: 42ch;
  font-size: var(--fs-body);
  line-height: 1.9;
  color: rgba(244, 239, 230, 0.88);
  letter-spacing: 0.06em;
  text-wrap: balance;
}
.cover-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Musical-Staff 4-Scene Rail Along the Stage Apron */
.act-staff {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  z-index: 30;
  width: min(820px, calc(100% - 48px));
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(203, 184, 150, 0.34);
  padding-top: 11px;
  background: rgba(12, 17, 26, 0.88);
  backdrop-filter: blur(8px);
  transition: opacity 0.5s var(--op-ease), transform 0.5s var(--op-ease);
}
body:not(.is-curtain-open) .act-staff {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 14px);
}
.staff-node {
  position: relative;
  padding: 2px 10px 9px;
  text-align: center;
  color: rgba(244, 239, 230, 0.56);
  transition: color 0.25s;
}
.staff-node::before {
  content: "";
  position: absolute;
  top: -15px;
  left: 50%;
  width: 6px;
  height: 6px;
  transform: translateX(-50%) rotate(45deg);
  background: var(--op-night-deep);
  border: 1px solid rgba(203, 184, 150, 0.55);
  transition: background 0.25s, border-color 0.25s, transform 0.25s;
}
.staff-node.is-active,
.staff-node:hover { color: var(--op-ivory); }
.staff-node.is-active::before {
  background: var(--op-champagne);
  border-color: #ffffff;
  transform: translateX(-50%) rotate(45deg) scale(1.25);
}
.staff-node small {
  font-family: var(--op-disp);
  font-style: italic;
  font-size: 13px;
  color: var(--op-champagne);
  margin-right: 6px;
}
.staff-node strong {
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
}

/* Narrow / compact desktop windows (<= 1120px, including 980×780 side pane!) */
@container (max-width: 920px) {
  .scene-copy {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .scene-notes {
    border-left: 0;
    border-top: 1px solid rgba(203, 184, 150, 0.24);
    padding-left: 0;
    padding-top: 10px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }
}

/* ==========================================================================
   5. ACT II — CONCEPT DESIGN ATELIER (22 Plates + Callout Pins + 7 Relics)
      De-slopped: pure Chinese labels, Roman numerals, zero redundant English
   ========================================================================== */
.concept-atelier {
  position: relative;
  width: 100%;
  background: linear-gradient(180deg, #0b101a 0%, #0d131f 55%, #090d15 100%);
  border-top: 1px solid rgba(203, 184, 150, 0.20);
  overflow: hidden;
}

.concept-atelier__drafting {
  position: absolute;
  right: -120px;
  top: 32px;
  width: 640px;
  height: 640px;
  opacity: 0.11;
  pointer-events: none;
}

.concept-wrap {
  position: relative;
  z-index: 2;
  max-width: 1360px;
  margin: 0 auto;
  padding: 68px clamp(24px, 4.2vw, 72px) 74px;
}

.concept-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(203, 184, 150, 0.18);
  flex-wrap: wrap;
}
.concept-head h2 {
  margin: 0;
  font-size: var(--fs-h2);
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--op-ivory);
}
.concept-head__sub {
  margin: 0;
  max-width: 46ch;
  font-size: 13.5px;
  line-height: 1.78;
  color: rgba(244, 239, 230, 0.68);
}

.concept-head::before,
.concept-head::after,
.folio-tab::before {
  display: none !important;
}
.folio-tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0 12px;
  border-bottom: 1px solid rgba(244, 239, 230, 0.14);
}
.folio-tab {
  position: relative;
  padding: 15px 8px 14px 0;
  text-align: left;
  color: rgba(244, 239, 230, 0.54);
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
  transition: color 0.22s;
}
.folio-tab::after {
  content: "";
  position: absolute;
  left: 0;
  right: 8px;
  bottom: -1px;
  height: 2px;
  background: var(--op-champagne);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--op-ease);
}
.folio-tab small {
  font-family: var(--op-disp);
  font-style: italic;
  font-size: 15px;
  color: var(--op-champagne);
  flex-shrink: 0;
}
.folio-tab strong {
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.folio-tab:hover,
.folio-tab.is-active { color: var(--op-ivory); }
.folio-tab.is-active::after { transform: scaleX(1); }

.folio-spread {
  margin-top: 22px;
  display: grid;
  grid-template-columns: minmax(0, 1.44fr) minmax(0, 0.56fr);
  gap: 34px;
  align-items: start;
}

.folio-plate-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.folio-plate-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #060910;
  overflow: hidden;
  border: 1px solid rgba(203, 184, 150, 0.24);
  cursor: zoom-in;
}
.folio-plate-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.3s var(--op-ease);
}
.folio-plate-frame.is-swapping img { opacity: 0.22; }

.folio-tick {
  position: absolute;
  width: 11px;
  height: 11px;
  z-index: 4;
  pointer-events: none;
}
.folio-tick::before,
.folio-tick::after {
  content: "";
  position: absolute;
  background: rgba(203, 184, 150, 0.62);
}
.folio-tick::before { left: 5px; top: 0; width: 1px; height: 11px; }
.folio-tick::after  { top: 5px; left: 0; height: 1px; width: 11px; }
.folio-tick--tl { top: 10px; left: 10px; }
.folio-tick--tr { top: 10px; right: 10px; }
.folio-tick--bl { bottom: 10px; left: 10px; }
.folio-tick--br { bottom: 10px; right: 10px; }

.folio-plate-badge {
  position: absolute;
  right: 28px;
  top: 12px;
  z-index: 4;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--op-ivory);
  background: rgba(11, 16, 26, 0.82);
  padding: 3px 10px;
  border: 1px solid rgba(203, 184, 150, 0.28);
  pointer-events: none;
}

/* Interactive Concept Callout Pins on Artwork */
.folio-pins {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
}
.folio-pin {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(11, 16, 26, 0.86);
  border: 1px solid var(--op-champagne);
  color: var(--op-ivory);
  font-family: var(--op-mono);
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.65);
  transition: background 0.2s, transform 0.2s, border-color 0.2s;
}
.folio-pin:hover,
.folio-pin.is-active {
  background: var(--op-velvet);
  border-color: #ffffff;
  transform: translate(-50%, -50%) scale(1.14);
}
.folio-callout-readout {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 14px;
  z-index: 5;
  padding: 9px 14px;
  background: rgba(9, 13, 21, 0.88);
  border-left: 2px solid var(--op-champagne);
  backdrop-filter: blur(6px);
  font-size: var(--fs-meta);
  line-height: 1.6;
  color: var(--op-ivory-soft);
  pointer-events: none;
}
.folio-callout-readout b {
  color: var(--op-champagne);
  font-weight: 500;
  margin-right: 8px;
}
.folio-callout-readout[hidden] { display: none; }

.folio-plate-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.folio-plate-caption {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.65;
  color: rgba(244, 239, 230, 0.84);
}

.folio-spec {
  border-left: 1px solid rgba(203, 184, 150, 0.20);
  padding-left: 26px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.folio-spec h3 {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--op-ivory);
}
.folio-spec__summary {
  margin: 0;
  font-size: 14px;
  line-height: 1.82;
  color: rgba(244, 239, 230, 0.82);
}

.folio-sec-label {
  font-size: var(--fs-meta);
  letter-spacing: 0.12em;
  color: var(--op-champagne);
  margin-bottom: 8px;
}
.folio-swatches {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 14px;
}
.folio-swatch {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 0;
  border-bottom: 1px solid rgba(244, 239, 230, 0.10);
}
.folio-swatch i {
  width: 20px;
  height: 20px;
  border-radius: 2px;
  flex-shrink: 0;
  border: 1px solid rgba(244, 239, 230, 0.24);
}
.folio-swatch b {
  display: block;
  font-size: var(--fs-meta);
  font-weight: 500;
  color: var(--op-ivory);
}
.folio-swatch span {
  display: block;
  font-family: var(--op-mono);
  font-size: 12px;
  color: rgba(244, 239, 230, 0.54);
}

.folio-grammar {
  padding-top: 14px;
  border-top: 1px solid rgba(203, 184, 150, 0.18);
}
.folio-grammar p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.8;
  color: rgba(244, 239, 230, 0.74);
}

/* 5-Axis Human Prism: Lore Philosophy -> Combat Mechanic Strip */
.op-prism {
  margin-top: 52px;
  padding-top: 40px;
  border-top: 1px solid rgba(203, 184, 150, 0.18);
}
.op-prism__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.op-prism__head h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--op-ivory);
}
.op-prism__link {
  font-size: var(--fs-meta);
  letter-spacing: 0.08em;
  color: var(--op-champagne);
  border-bottom: 1px solid rgba(203, 184, 150, 0.34);
  padding-bottom: 2px;
}
.op-prism__link:hover {
  color: #ffffff;
  border-bottom-color: #ffffff;
}
.op-prism__rail {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid rgba(203, 184, 150, 0.16);
  border-bottom: 1px solid rgba(203, 184, 150, 0.16);
  background: rgba(11, 16, 26, 0.56);
}
.op-prism__cell {
  position: relative;
  padding: 16px 16px 15px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: rgba(244, 239, 230, 0.62);
  transition: background 0.25s var(--op-ease), color 0.25s;
}
.op-prism__cell + .op-prism__cell {
  border-left: 1px solid rgba(203, 184, 150, 0.12);
}
.op-prism__bar {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: var(--p-col, var(--op-champagne));
  opacity: 0.34;
  transition: opacity 0.25s, height 0.25s;
}
.op-prism__cell:hover,
.op-prism__cell.is-active {
  background: rgba(20, 29, 44, 0.78);
  color: var(--op-ivory);
}
.op-prism__cell.is-active .op-prism__bar,
.op-prism__cell:hover .op-prism__bar {
  opacity: 1;
  height: 3px;
}
.op-prism__cell small {
  font-size: var(--fs-meta);
  letter-spacing: 0.08em;
  color: var(--p-col, var(--op-champagne));
}
.op-prism__cell strong {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--op-ivory);
}
.op-prism__cell span {
  font-size: var(--fs-meta);
  color: rgba(244, 239, 230, 0.68);
}
.op-prism__readout {
  margin: 12px 0 0;
  padding: 10px 14px;
  border-left: 2px solid var(--op-champagne);
  background: rgba(9, 13, 21, 0.72);
  font-size: 13.5px;
  line-height: 1.76;
  color: rgba(244, 239, 230, 0.84);
}

/* Relic Specimen Bench */
.relic-bench {
  margin-top: 56px;
  padding-top: 48px;
  border-top: 1px solid rgba(203, 184, 150, 0.20);
}
.relic-bench__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.relic-bench__head h3 {
  margin: 0;
  font-size: var(--fs-h2);
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--op-ivory);
}
.relic-bench__head span {
  font-size: var(--fs-meta);
  letter-spacing: 0.08em;
  color: rgba(244, 239, 230, 0.62);
}

.relic-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: 44px;
  align-items: center;
}
.relic-stage-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.relic-stage {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 430px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% 50%, #141923 0%, #090c12 66%, transparent 100%);
  cursor: zoom-in;
}
.relic-callout {
  max-width: 430px;
  width: 100%;
  padding: 9px 14px;
  background: rgba(9, 13, 21, 0.86);
  border-left: 2px solid var(--op-champagne);
  font-size: var(--fs-meta);
  line-height: 1.62;
  color: var(--op-ivory-soft);
}
.relic-callout b {
  color: var(--op-champagne);
  font-weight: 500;
  margin-right: 8px;
}
.relic-callout[hidden] { display: none; }
.relic-reticle {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 3;
}
.relic-stage__img {
  position: relative;
  z-index: 2;
  width: 84%;
  height: 84%;
  object-fit: contain;
  border-radius: 50%;
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 54%, transparent 96%);
  mask-image: radial-gradient(circle at 50% 50%, #000 54%, transparent 96%);
  transition: transform 0.6s var(--op-ease);
}
.relic-stage:hover .relic-stage__img { transform: scale(1.04); }
.relic-stage__code {
  position: absolute;
  left: 12px;
  bottom: 10px;
  z-index: 4;
  font-family: var(--op-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--op-champagne);
}
.relic-stage__zoom {
  position: absolute;
  right: 12px;
  bottom: 10px;
  z-index: 4;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: rgba(244, 239, 230, 0.68);
}

.relic-info {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.relic-selector {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}
.relic-chip {
  position: relative;
  aspect-ratio: 1 / 1;
  padding: 0;
  overflow: hidden;
  border-radius: 2px;
  border: 1px solid rgba(203, 184, 150, 0.22);
  background: #070a10;
  opacity: 0.56;
  transition: opacity 0.22s, border-color 0.22s, transform 0.25s var(--op-ease);
}
.relic-chip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.relic-chip em {
  position: absolute;
  left: 5px;
  top: 3px;
  font-family: var(--op-disp);
  font-style: italic;
  font-size: 12px;
  color: var(--op-champagne);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.95);
}
.relic-chip:hover,
.relic-chip.is-active {
  opacity: 1;
  border-color: var(--op-champagne);
  transform: translateY(-2px);
}

.relic-title-block {
  padding-top: 8px;
  border-top: 1px solid rgba(203, 184, 150, 0.18);
}
.relic-title {
  margin: 0 0 6px;
  font-size: var(--fs-h2);
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--op-ivory);
}
.relic-cat {
  font-size: var(--fs-meta);
  letter-spacing: 0.08em;
  color: var(--op-champagne);
}

.relic-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding-top: 14px;
  border-top: 1px solid rgba(244, 239, 230, 0.12);
}
.relic-specs b {
  display: block;
  font-size: var(--fs-meta);
  letter-spacing: 0.1em;
  color: var(--op-champagne);
  margin-bottom: 6px;
  font-weight: 500;
}
.relic-specs p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.82;
  color: rgba(244, 239, 230, 0.78);
}

/* ==========================================================================
   6. ACT III — FULL-BLEED MAINLINE TRILOGY + PER-GAME GALLERY
   ========================================================================== */
.cinema-acts {
  position: relative;
  width: 100%;
  height: 100svh;
  min-height: 680px;
  max-height: none;
  overflow: hidden;
  background: #0c111b;
  border-top: 1px solid rgba(203, 184, 150, 0.20);
}
.cinema-acts__backdrop {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.cinema-acts__backdrop img,
.cinema-acts__backdrop video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.5s var(--op-ease);
}
.cinema-acts__scrim {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(ellipse 68% 70% at 64% 38%, transparent 14%, rgba(11, 16, 26, 0.54) 70%, rgba(9, 13, 22, 0.94) 100%),
    linear-gradient(180deg, rgba(11, 16, 26, 0.66) 0%, rgba(11, 16, 26, 0.08) 32%, rgba(11, 16, 26, 0.82) 74%, #0b101a 100%);
}
.cinema-acts__veil {
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
  background: var(--op-velvet-deep);
  opacity: 0;
  transition: opacity 0.28s var(--op-ease);
}
.cinema-acts__veil.is-wiping { opacity: 0.92; }

.cinema-acts__content {
  position: relative;
  z-index: 5;
  height: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 78px clamp(24px, 4.2vw, 72px) 34px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.cinema-top-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(244, 239, 230, 0.14);
}
.cinema-top-row__label {
  font-size: 14px;
  letter-spacing: 0.12em;
  color: var(--op-champagne);
}
.cinema-top-row__path {
  font-size: var(--fs-meta);
  letter-spacing: 0.1em;
  color: rgba(244, 239, 230, 0.66);
}

.cinema-middle-spacer { flex: 1; }

.cinema-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 40px;
  align-items: end;
}
.cinema-act-num {
  margin: 0 0 8px;
  font-size: 13px;
  color: var(--op-champagne);
  letter-spacing: 0.12em;
}
.cinema-title {
  margin: 0;
  font-size: var(--fs-hero);
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1.18;
  color: var(--op-ivory);
}
.cinema-desc {
  margin: 12px 0 0;
  max-width: 44ch;
  font-size: 14.5px;
  line-height: 1.85;
  color: rgba(244, 239, 230, 0.86);
}
.cinema-meta-line {
  margin: 12px 0 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-family: var(--op-mono);
  font-size: 12px;
  color: var(--op-champagne);
  letter-spacing: 0.06em;
}
.cinema-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.trilogy-rail {
  display: flex;
  flex-direction: column;
  border-top: 1px solid rgba(244, 239, 230, 0.22);
}
.trilogy-cue {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  align-items: baseline;
  gap: 14px;
  padding: 14px 4px;
  text-align: left;
  border-bottom: 1px solid rgba(244, 239, 230, 0.14);
  color: rgba(244, 239, 230, 0.56);
  transition: color 0.25s, padding-left 0.3s var(--op-ease), border-color 0.25s;
}
.trilogy-cue:hover,
.trilogy-cue.is-active {
  color: #ffffff;
  padding-left: 10px;
  border-bottom-color: var(--op-champagne);
}
.trilogy-cue small {
  font-family: var(--op-disp);
  font-style: italic;
  font-size: 16px;
  color: var(--op-champagne);
}
.trilogy-cue strong {
  display: block;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.05em;
}
.trilogy-cue span {
  display: block;
  margin-top: 3px;
  font-size: var(--fs-meta);
  color: rgba(244, 239, 230, 0.62);
}
.trilogy-cue em {
  font-family: var(--op-mono);
  font-style: normal;
  font-size: 12px;
  color: var(--op-champagne);
}

.cinema-gallery-bar {
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px solid rgba(244, 239, 230, 0.14);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
}
.gallery-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
}
.gallery-strip::-webkit-scrollbar { display: none; }
.gallery-thumb {
  position: relative;
  flex: 0 0 auto;
  width: 78px;
  aspect-ratio: 16 / 9;
  padding: 0;
  overflow: hidden;
  border-radius: 2px;
  border: 1px solid rgba(244, 239, 230, 0.24);
  background: #080b12;
  opacity: 0.62;
  transition: opacity 0.22s, border-color 0.22s, transform 0.25s var(--op-ease);
}
.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gallery-thumb:hover,
.gallery-thumb.is-active {
  opacity: 1;
  border-color: var(--op-champagne);
  transform: translateY(-2px);
}
.gallery-thumb--video::after {
  content: "";
  position: absolute;
  right: 6px;
  bottom: 5px;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 4px 0 4px 7px;
  border-color: transparent transparent transparent var(--op-ivory);
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.9));
}

.gallery-caption-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  white-space: nowrap;
}
.gallery-caption-text {
  font-size: var(--fs-meta);
  color: rgba(244, 239, 230, 0.82);
  max-width: 44ch;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gallery-counter {
  font-family: var(--op-mono);
  font-size: 12px;
  color: var(--op-champagne);
  letter-spacing: 0.1em;
}
.gallery-expand-btn {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 13px;
  border-radius: 2px;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--op-ivory);
  border: 1px solid rgba(203, 184, 150, 0.42);
  background: linear-gradient(180deg, rgba(20, 29, 44, 0.78) 0%, rgba(11, 16, 26, 0.88) 100%);
  box-shadow: inset 2px 0 0 var(--op-champagne);
  transition: background 0.22s, color 0.22s, border-color 0.22s, transform 0.15s;
}
.gallery-expand-btn:hover {
  background: linear-gradient(180deg, #781624 0%, #560d18 100%);
  color: #ffffff;
  border-color: var(--op-champagne);
}
.gallery-expand-btn:active {
  transform: translateY(1px);
}

/* ==========================================================================
   7. ACT IV & ENCORE — INTERACTIVE AURORA MAP + 3-PASS PIPELINE + ENCORE
   ========================================================================== */
.encore-stage {
  position: relative;
  padding: 78px clamp(24px, 4.2vw, 72px) 80px;
  background: linear-gradient(180deg, #0b101a 0%, #101724 100%);
  border-top: 1px solid rgba(203, 184, 150, 0.16);
}
.encore-wrap {
  max-width: 1360px;
  margin: 0 auto;
}

.atlas-cinema {
  position: relative;
  overflow: hidden;
  margin-bottom: 68px;
  border-top: 1px solid rgba(203, 184, 150, 0.24);
  border-bottom: 1px solid rgba(203, 184, 150, 0.24);
  display: grid;
  grid-template-columns: 1.38fr 0.62fr;
  align-items: stretch;
  background: #0d1420;
}
.atlas-cinema__map {
  position: relative;
  min-height: 390px;
  overflow: hidden;
  background: #0a1019;
}
.atlas-cinema__map > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: invert(0.90) hue-rotate(185deg) sepia(0.22) contrast(1.06) brightness(0.88);
}
.atlas-map-routes {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.atlas-pin {
  position: absolute;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 10px 5px 7px;
  border-radius: 2px;
  background: rgba(11, 16, 26, 0.86);
  border: 1px solid rgba(203, 184, 150, 0.46);
  color: var(--op-ivory);
  font-size: 12px;
  letter-spacing: 0.08em;
  transition: background 0.22s, border-color 0.22s, transform 0.25s var(--op-ease);
}
.atlas-pin i {
  width: 6px;
  height: 6px;
  transform: rotate(45deg);
  background: var(--op-champagne);
  display: block;
}
.atlas-pin:hover,
.atlas-pin.is-active {
  background: var(--op-velvet);
  border-color: var(--op-ivory);
  transform: translate(-50%, -50%) scale(1.05);
  z-index: 4;
}
.atlas-pin.is-active i { background: #ffffff; }

.atlas-cinema__info {
  padding: 32px 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-left: 1px solid rgba(203, 184, 150, 0.18);
}
.atlas-cinema__info h3 {
  margin: 0 0 10px;
  font-size: 24px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--op-ivory);
}
.atlas-cinema__info > div > p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.82;
  color: rgba(244, 239, 230, 0.72);
}

.atlas-city-dossier {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(203, 184, 150, 0.18);
}
.atlas-city-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-bottom: 12px;
}
.atlas-city-tab {
  padding: 3px 0;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: rgba(244, 239, 230, 0.54);
  border-bottom: 1px solid transparent;
  transition: color 0.22s, border-color 0.22s;
}
.atlas-city-tab.is-active,
.atlas-city-tab:hover {
  color: var(--op-ivory);
  border-bottom-color: var(--op-champagne);
}
.atlas-city-tag {
  font-size: var(--fs-meta);
  letter-spacing: 0.08em;
  color: var(--op-champagne);
  margin-bottom: 6px;
}
.atlas-city-desc {
  margin: 0 0 10px;
  font-size: 13.5px;
  line-height: 1.8;
  color: rgba(244, 239, 230, 0.84);
}
.atlas-city-jump {
  display: inline-block;
  font-size: var(--fs-meta);
  color: var(--op-champagne);
  border-bottom: 1px solid rgba(203, 184, 150, 0.36);
  padding-bottom: 2px;
}
.atlas-city-jump:hover {
  color: #ffffff;
  border-bottom-color: #ffffff;
}
.atlas-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}

/* Encore Corridor */
.encore-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 26px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(244, 239, 230, 0.14);
}
.encore-head h2 {
  margin: 0;
  font-size: var(--fs-h2);
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--op-ivory);
}
.encore-head span {
  font-size: var(--fs-meta);
  color: rgba(244, 239, 230, 0.62);
}

.encore-trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.encore-item {
  display: flex;
  flex-direction: column;
}
.encore-item__media {
  position: relative;
  aspect-ratio: 16 / 9.5;
  overflow: hidden;
  background: #070a10;
  display: block;
}
.encore-item__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.88) contrast(1.04);
  transition: transform 0.7s var(--op-ease), filter 0.4s;
}
.encore-item:hover .encore-item__media img {
  transform: scale(1.035);
  filter: brightness(1);
}
.encore-item__meta {
  padding-top: 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.encore-item__tag {
  font-size: var(--fs-meta);
  color: var(--op-champagne);
  letter-spacing: 0.08em;
}
.encore-item__meta h3 {
  margin: 6px 0 8px;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--op-ivory);
}
.encore-item__meta p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.78;
  color: rgba(244, 239, 230, 0.68);
}
.encore-item__links {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(244, 239, 230, 0.10);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: var(--fs-meta);
  letter-spacing: 0.06em;
  color: var(--op-champagne);
}
.encore-item__links a,
.encore-item__links button {
  display: inline-flex;
  align-items: center;
  height: 29px;
  padding: 0 11px;
  border-radius: 2px;
  border: 1px solid rgba(203, 184, 150, 0.28);
  background: rgba(14, 20, 32, 0.62);
  box-shadow: inset 2px 0 0 rgba(203, 184, 150, 0.55);
  color: rgba(244, 239, 230, 0.88);
  transition: background 0.22s var(--op-ease), border-color 0.22s, color 0.22s, box-shadow 0.22s;
}
.encore-item__links a:hover,
.encore-item__links button:hover {
  background: linear-gradient(180deg, #781624 0%, #560d18 100%);
  border-color: var(--op-champagne);
  box-shadow: inset 2px 0 0 #ffffff;
  color: #ffffff;
  text-decoration: none;
}

/* 3-Pass Concept-to-Production Pipeline Bench (Inside Encore Zone) */
.pipeline-bench {
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid rgba(203, 184, 150, 0.18);
  display: grid;
  grid-template-columns: minmax(0, 1.32fr) minmax(0, 0.68fr);
  gap: 36px;
  align-items: center;
}
.pipeline-viewport {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #080c14;
  border: 1px solid rgba(203, 184, 150, 0.22);
}
.pipeline-viewport img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.pipeline-viewport img.is-lineart {
  filter: invert(0.92) hue-rotate(185deg) contrast(1.2);
}
.pipeline-pass-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 16px;
}
.pipeline-pass-btn {
  padding: 6px 14px;
  border-radius: 2px;
  font-size: var(--fs-meta);
  letter-spacing: 0.08em;
  border: 1px solid rgba(203, 184, 150, 0.30);
  color: rgba(244, 239, 230, 0.72);
  background: rgba(11, 16, 26, 0.45);
  transition: background 0.22s, color 0.22s, border-color 0.22s;
}
.pipeline-pass-btn.is-active,
.pipeline-pass-btn:hover {
  background: var(--op-velvet);
  border-color: var(--op-champagne);
  color: #ffffff;
}
.pipeline-info h3 {
  margin: 6px 0 10px;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--op-ivory);
}
.pipeline-info p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.82;
  color: rgba(244, 239, 230, 0.74);
}

/* Unified Colophon Footer */
.opera-footer {
  padding: 44px clamp(24px, 4.2vw, 72px) 50px;
  background: #090d16;
  border-top: 1px solid rgba(203, 184, 150, 0.18);
  color: rgba(244, 239, 230, 0.64);
}
.opera-footer__inner {
  max-width: 1360px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 28px;
  flex-wrap: wrap;
}
.opera-footer__brand {
  font-family: var(--op-disp);
  font-size: 21px;
  letter-spacing: 0.22em;
  color: var(--op-ivory);
}
.opera-footer__role {
  margin: 6px 0;
  font-size: 13.5px;
  color: var(--op-champagne);
  letter-spacing: 0.08em;
}
.opera-footer__note {
  margin: 0;
  font-size: var(--fs-meta);
  line-height: 1.72;
  max-width: 56ch;
}
.opera-footer__right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}
.opera-footer__mail {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--op-mono);
  font-size: 13px;
  color: var(--op-ivory);
  border-bottom: 1px solid rgba(203, 184, 150, 0.36);
  padding-bottom: 4px;
}
.opera-footer__mail:hover {
  color: var(--op-champagne);
  border-bottom-color: var(--op-champagne);
}
.opera-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: var(--fs-meta);
  letter-spacing: 0.08em;
}
.opera-footer__nav a:hover { color: var(--op-ivory); }

/* ==========================================================================
   8. FULL-SCREEN GALLERY LIGHTBOX
   ========================================================================== */
.opera-lightbox {
  position: fixed;
  inset: 0;
  z-index: 950;
  background: rgba(7, 10, 17, 0.96);
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s var(--op-ease);
}
.opera-lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}
.opera-lb__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px clamp(20px, 3.6vw, 48px);
  border-bottom: 1px solid rgba(203, 184, 150, 0.18);
}
.opera-lb__title {
  display: flex;
  align-items: baseline;
  gap: 14px;
}
.opera-lb__title strong {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--op-ivory);
}
.opera-lb__title span {
  font-family: var(--op-mono);
  font-size: 12px;
  color: var(--op-champagne);
}
.opera-lb__controls {
  display: flex;
  align-items: center;
  gap: 12px;
}
.opera-lb__close {
  width: 36px;
  height: 36px;
  border-radius: 2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(203, 184, 150, 0.42);
  background: rgba(14, 20, 32, 0.76);
  box-shadow: inset 0 0 0 2px rgba(8, 11, 18, 0.6);
  font-size: 20px;
  color: var(--op-ivory);
  transition: background 0.22s, border-color 0.22s;
}
.opera-lb__close:hover {
  background: linear-gradient(180deg, #781624 0%, #560d18 100%);
  border-color: var(--op-champagne);
}
.opera-lb__stage {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px clamp(52px, 6.5vw, 96px);
}
.opera-lb__media {
  max-width: 100%;
  max-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.opera-lb__media img,
.opera-lb__media video {
  max-width: min(1280px, 86vw);
  max-height: calc(100vh - 210px);
  width: auto;
  height: auto;
  object-fit: contain;
  border: 1px solid rgba(203, 184, 150, 0.18);
  background: #05070c;
}
.opera-lb__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(203, 184, 150, 0.44);
  background: linear-gradient(180deg, rgba(22, 31, 48, 0.86) 0%, rgba(11, 16, 26, 0.92) 100%);
  box-shadow: inset 0 0 0 3px rgba(8, 11, 18, 0.56);
  color: var(--op-ivory);
  font-size: 20px;
  transition: background 0.22s, border-color 0.22s;
}
.opera-lb__nav:hover {
  background: linear-gradient(180deg, #781624 0%, #560d18 100%);
  border-color: var(--op-champagne);
}
.opera-lb__nav--prev { left: clamp(12px, 2vw, 28px); }
.opera-lb__nav--next { right: clamp(12px, 2vw, 28px); }
.opera-lb__foot {
  padding: 12px clamp(20px, 3.6vw, 48px) 16px;
  border-top: 1px solid rgba(203, 184, 150, 0.16);
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}
.opera-lb__caption {
  margin: 0;
  font-size: 13.5px;
  color: rgba(244, 239, 230, 0.88);
  text-align: center;
}
.opera-lb__thumbs {
  display: flex;
  gap: 8px;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}
.opera-lb__thumbs::-webkit-scrollbar { display: none; }

/* ==========================================================================
   9. DOWNLOADS PAGE — UNIFIED MOONLIT GALLERIES
   ========================================================================== */
.opera-dl-page {
  padding-top: var(--op-header-h);
  background: var(--op-night);
  color: var(--op-ivory);
}
.opera-dl-hero {
  padding: clamp(48px, 6vw, 84px) clamp(24px, 4.2vw, 72px) 40px;
  border-bottom: 1px solid rgba(203, 184, 150, 0.18);
  background: radial-gradient(ellipse 68% 80% at 50% 0%, rgba(104, 18, 30, 0.20), transparent 70%);
}
.opera-dl-hero__inner {
  max-width: 1360px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 28px;
  flex-wrap: wrap;
}
.opera-dl-hero h1 {
  margin: 0 0 12px;
  font-size: var(--fs-hero);
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--op-ivory);
}
.opera-dl-hero p {
  margin: 0;
  max-width: 56ch;
  font-size: 14.5px;
  line-height: 1.88;
  color: rgba(244, 239, 230, 0.78);
}
.opera-dl-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.opera-dl-wrap {
  max-width: 1360px;
  margin: 0 auto;
  padding: 12px clamp(24px, 4.2vw, 72px) 80px;
}
.opera-dl-game {
  padding: 48px 0;
  border-bottom: 1px solid rgba(203, 184, 150, 0.16);
  display: grid;
  grid-template-columns: minmax(0, 1.36fr) minmax(0, 0.64fr);
  gap: 38px;
  align-items: start;
  scroll-margin-top: 72px;
}
.opera-dl-stage {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.opera-dl-viewport {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #060910;
  overflow: hidden;
  border: 1px solid rgba(203, 184, 150, 0.22);
}
.opera-dl-viewport img,
.opera-dl-viewport video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.opera-dl-viewport video {
  object-fit: contain;
  background: #060910;
}
.opera-dl-caprow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.opera-dl-cap {
  font-size: var(--fs-meta);
  color: rgba(244, 239, 230, 0.80);
}
.opera-dl-info {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.opera-dl-kicker {
  font-size: var(--fs-meta);
  letter-spacing: 0.1em;
  color: var(--op-champagne);
}
.opera-dl-info h2 {
  margin: 0;
  font-size: var(--fs-h2);
  font-weight: 500;
  letter-spacing: 0.05em;
  line-height: 1.25;
  color: var(--op-ivory);
}
.opera-dl-info p {
  margin: 0;
  font-size: 14px;
  line-height: 1.85;
  color: rgba(244, 239, 230, 0.78);
}
.opera-dl-info code {
  font-family: var(--op-mono);
  font-size: 0.9em;
  color: var(--op-champagne);
  background: rgba(203, 184, 150, 0.10);
  padding: 2px 6px;
  border-radius: 2px;
}
.opera-dl-specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 4px 0;
  border-top: 1px solid rgba(203, 184, 150, 0.20);
  border-bottom: 1px solid rgba(203, 184, 150, 0.20);
}
.opera-dl-specs div { padding: 11px 0; }
.opera-dl-specs div + div {
  padding-left: 14px;
  border-left: 1px solid rgba(203, 184, 150, 0.14);
}
.opera-dl-specs dt {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--op-champagne);
}
.opera-dl-specs dd {
  margin: 4px 0 0;
  font-size: 14px;
  color: var(--op-ivory);
}
.opera-dl-btns {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}

.opera-dl-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 52px 0 0;
  padding: 0;
  border-top: 1px solid rgba(203, 184, 150, 0.22);
  border-bottom: 1px solid rgba(203, 184, 150, 0.22);
}
.opera-dl-steps li {
  list-style: none;
  padding: 26px 24px;
}
.opera-dl-steps li + li {
  border-left: 1px solid rgba(203, 184, 150, 0.14);
}
.opera-dl-steps b {
  display: block;
  font-family: var(--op-disp);
  font-style: italic;
  font-weight: 500;
  font-size: 28px;
  color: var(--op-champagne);
  margin-bottom: 8px;
}
.opera-dl-steps strong {
  display: block;
  font-size: 15.5px;
  font-weight: 500;
  color: var(--op-ivory);
  margin-bottom: 6px;
}
.opera-dl-steps span {
  font-size: 13.5px;
  line-height: 1.8;
  color: rgba(244, 239, 230, 0.72);
}

.opera-dl-faq {
  margin: 44px 0 0;
  max-width: 880px;
}
.opera-dl-faq details {
  border-bottom: 1px solid rgba(203, 184, 150, 0.16);
}
.opera-dl-faq summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--op-ivory);
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.opera-dl-faq summary::-webkit-details-marker { display: none; }
.opera-dl-faq summary::after {
  content: "+";
  font-family: var(--op-mono);
  color: var(--op-champagne);
}
.opera-dl-faq details[open] summary::after { content: "−"; }
.opera-dl-faq details p {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.88;
  color: rgba(244, 239, 230, 0.74);
}
.opera-dl-faq code {
  font-family: var(--op-mono);
  color: var(--op-champagne);
}

/* ==========================================================================
   10. UNIFIED SUBPAGE POLISH (works/*.html — Original Prose 100% Untouched)
   ========================================================================== */
body.opera-body .codex-page,
body.opera-body .design-archive {
  padding-top: var(--op-header-h);
}
body.opera-body .reading-progress {
  background: var(--op-champagne) !important;
  height: 2px !important;
  top: var(--op-header-h) !important;
  z-index: 119 !important;
}
body.opera-body #stage-root.codex-page .hierarchy-bar,
body.opera-body .codex-page .hierarchy-bar,
body.opera-body .hierarchy-bar {
  --theatre-ivory: #f4efe6 !important;
  background: #0d1420 !important;
  border-bottom: 1px solid rgba(203, 184, 150, 0.18) !important;
  color: rgba(244, 239, 230, 0.72) !important;
}
body.opera-body #stage-root.codex-page .breadcrumb-trail,
body.opera-body #stage-root.codex-page .breadcrumb-trail strong,
body.opera-body .codex-page .breadcrumb-trail,
body.opera-body .codex-page .breadcrumb-trail strong,
body.opera-body .design-archive .breadcrumb-trail,
body.opera-body .design-archive .breadcrumb-trail strong {
  color: #f4efe6 !important;
}
body.opera-body .design-archive__cover p {
  color: rgba(244, 239, 230, 0.84) !important;
}
body.opera-body .codex-page .breadcrumb-trail a,
body.opera-body .breadcrumb-trail a {
  color: var(--op-champagne) !important;
}
body.opera-body .codex-page[data-theme="vellum"] .subnav-pill,
body.opera-body .codex-page .subnav-pill,
body.opera-body .subnav-pill {
  height: 31px !important;
  padding: 0 14px !important;
  display: inline-flex !important;
  align-items: center !important;
  border-radius: 2px !important;
  border: 1px solid rgba(203, 184, 150, 0.34) !important;
  background: linear-gradient(180deg, rgba(22, 31, 48, 0.72) 0%, rgba(13, 19, 30, 0.86) 100%) !important;
  box-shadow: inset 0 1px 0 rgba(244, 239, 230, 0.08) !important;
  color: rgba(244, 239, 230, 0.86) !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  letter-spacing: 0.09em !important;
}
body.opera-body .codex-page[data-theme="vellum"] .subnav-pill:hover,
body.opera-body .codex-page[data-theme="vellum"] .subnav-pill.is-active,
body.opera-body .codex-page .subnav-pill:hover,
body.opera-body .codex-page .subnav-pill.is-active,
body.opera-body .subnav-pill:hover,
body.opera-body .subnav-pill.is-active {
  background: linear-gradient(180deg, #781624 0%, #560d18 100%) !important;
  border-color: var(--op-champagne) !important;
  box-shadow: inset 0 1px 0 rgba(255, 244, 232, 0.18), inset 0 -1.5px 0 var(--op-champagne) !important;
  color: #ffffff !important;
}

/* Subpage Bookplate Buttons (.pbtn & .design-jump > a) — Unified with .op-btn */
body.opera-body #stage-root.codex-page[data-theme="vellum"] .pbtn:not(.pbtn--gold):not(.pbtn--crimson),
body.opera-body #stage-root.codex-page .pbtn:not(.pbtn--gold):not(.pbtn--crimson),
body.opera-body .codex-page[data-theme="vellum"] .pbtn,
body.opera-body .codex-page .pbtn,
body.opera-body .pbtn,
body.opera-body .design-jump > a {
  --btn-tick: rgba(203, 184, 150, 0.52);
  position: relative !important;
  isolation: isolate;
  overflow: hidden !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  min-height: 40px !important;
  padding: 7px 22px !important;
  border-radius: 2px !important;
  background: linear-gradient(180deg, rgba(22, 31, 48, 0.86) 0%, rgba(12, 18, 29, 0.94) 100%) !important;
  border: 1px solid rgba(203, 184, 150, 0.44) !important;
  color: var(--op-ivory) !important;
  box-shadow:
    inset 0 1px 0 rgba(244, 239, 230, 0.10),
    inset 0 0 0 3px rgba(9, 13, 21, 0.50),
    0 6px 18px rgba(4, 7, 14, 0.34) !important;
  font-family: var(--op-serif) !important;
  font-size: 13.5px !important;
  font-weight: 500 !important;
  letter-spacing: 0.11em !important;
}
body.opera-body .pbtn::before,
body.opera-body .design-jump > a::before {
  content: "" !important;
  display: block !important;
  position: absolute !important;
  inset: 3px !important;
  z-index: 2;
  pointer-events: none;
  opacity: 0.72;
  background:
    linear-gradient(var(--btn-tick), var(--btn-tick)) left top / 5px 1px no-repeat,
    linear-gradient(var(--btn-tick), var(--btn-tick)) left top / 1px 5px no-repeat,
    linear-gradient(var(--btn-tick), var(--btn-tick)) right top / 5px 1px no-repeat,
    linear-gradient(var(--btn-tick), var(--btn-tick)) right top / 1px 5px no-repeat,
    linear-gradient(var(--btn-tick), var(--btn-tick)) left bottom / 5px 1px no-repeat,
    linear-gradient(var(--btn-tick), var(--btn-tick)) left bottom / 1px 5px no-repeat,
    linear-gradient(var(--btn-tick), var(--btn-tick)) right bottom / 5px 1px no-repeat,
    linear-gradient(var(--btn-tick), var(--btn-tick)) right bottom / 1px 5px no-repeat !important;
  transition: inset 0.26s var(--op-ease), opacity 0.26s var(--op-ease) !important;
}
body.opera-body #stage-root.codex-page[data-theme="vellum"] .pbtn:not(.pbtn--gold):not(.pbtn--crimson):hover,
body.opera-body .codex-page[data-theme="vellum"] .pbtn:hover,
body.opera-body .codex-page .pbtn:hover,
body.opera-body .pbtn:hover,
body.opera-body .design-jump > a:hover {
  --btn-tick: #ffffff;
  background: linear-gradient(180deg, rgba(34, 47, 70, 0.94) 0%, rgba(18, 27, 42, 0.98) 100%) !important;
  color: #ffffff !important;
  border-color: var(--op-champagne) !important;
  transform: none !important;
}
body.opera-body .pbtn:hover::before,
body.opera-body .design-jump > a:hover::before {
  inset: 2px !important;
  opacity: 1;
}
body.opera-body .codex-page[data-theme="vellum"] .pbtn--gold,
body.opera-body .codex-page[data-theme="vellum"] .pbtn--crimson,
body.opera-body .codex-page[data-theme="vellum"] .pbtn.is-active,
body.opera-body .codex-page .pbtn--gold,
body.opera-body .codex-page .pbtn--crimson,
body.opera-body .codex-page .pbtn.is-active,
body.opera-body .pbtn--gold,
body.opera-body .pbtn--crimson,
body.opera-body .pbtn.is-active {
  --btn-tick: rgba(232, 214, 181, 0.78);
  background: linear-gradient(180deg, #781624 0%, #560d18 100%) !important;
  border-color: rgba(203, 184, 150, 0.58) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 244, 232, 0.20),
    inset 0 0 0 3px rgba(24, 4, 8, 0.44),
    0 8px 24px rgba(18, 2, 6, 0.48) !important;
  color: #faf6ee !important;
}
body.opera-body .codex-page[data-theme="vellum"] .pbtn--gold:hover,
body.opera-body .codex-page[data-theme="vellum"] .pbtn--crimson:hover,
body.opera-body .codex-page .pbtn--gold:hover,
body.opera-body .codex-page .pbtn--crimson:hover,
body.opera-body .pbtn--gold:hover,
body.opera-body .pbtn--crimson:hover {
  --btn-tick: #ffffff;
  background: linear-gradient(180deg, #8b1a2a 0%, #64101d 100%) !important;
  border-color: var(--op-champagne) !important;
  color: #ffffff !important;
}
body.opera-body .pbtn small {
  font-family: var(--op-mono) !important;
  font-size: 12px !important;
  font-variant-numeric: tabular-nums;
  padding-left: 10px !important;
  margin-left: 2px !important;
  border-left: 1px solid rgba(203, 184, 150, 0.34) !important;
  opacity: 0.9 !important;
}

/* Context-aware Vellum Paper Buttons when inside light paper sections */
body.opera-body .design-section .pbtn:not(.pbtn--gold):not(.pbtn--crimson) {
  --btn-tick: rgba(122, 98, 60, 0.55);
  background: linear-gradient(180deg, #fdfbf7 0%, #f1ece2 100%) !important;
  border: 1px solid rgba(122, 98, 60, 0.44) !important;
  color: #1f1b16 !important;
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.72), 0 3px 10px rgba(27, 25, 23, 0.06) !important;
}
body.opera-body .design-section .pbtn:not(.pbtn--gold):not(.pbtn--crimson):hover {
  --btn-tick: #ffffff;
  background: linear-gradient(180deg, #781624 0%, #560d18 100%) !important;
  border-color: #560d18 !important;
  color: #ffffff !important;
  box-shadow: inset 0 0 0 3px rgba(24, 4, 8, 0.36) !important;
}
body.opera-body .ps-btn--primary {
  background: var(--op-velvet) !important;
  color: #faf6ee !important;
  border: 1px solid var(--op-champagne) !important;
  border-radius: 2px !important;
  box-shadow: none !important;
}
body.opera-body .ps-btn { border-radius: 2px !important; }

body.opera-body .codex-page[data-theme="vellum"] .codex-banner,
body.opera-body .codex-page .codex-banner,
body.opera-body .design-archive__cover {
  background-color: #0f1724 !important;
  background-image: none !important;
  border-bottom: 1px solid rgba(203, 184, 150, 0.20) !important;
  color: var(--op-ivory) !important;
}
body.opera-body .vhero {
  background-color: #0f1724 !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
  border-bottom: 1px solid rgba(203, 184, 150, 0.20) !important;
  color: var(--op-ivory) !important;
}
body.opera-body .vhero__veil {
  background: linear-gradient(180deg, rgba(11, 16, 26, 0.56) 0%, rgba(11, 16, 26, 0.88) 100%) !important;
}
body.opera-body .vhero__quote,
body.opera-body .vhero__lead {
  color: rgba(244, 239, 230, 0.88) !important;
}

/* Eliminate all 25 legacy '//' pseudo-terminal eyebrows & harmonize works/atlas.html inline blocks */
body.opera-body .codex-section__vol {
  display: none !important;
}
body.opera-body .ps-showcase {
  background: #0b101a !important;
  border-bottom: 1px solid rgba(203, 184, 150, 0.22) !important;
  color: var(--op-ivory) !important;
}
body.opera-body .codex-page[data-theme="vellum"] .ps-frost,
body.opera-body .ps-frost {
  background:
    linear-gradient(180deg, rgba(9, 13, 22, 0.72) 0%, rgba(11, 16, 26, 0.56) 46%, rgba(9, 13, 22, 0.88) 100%),
    radial-gradient(ellipse 80% 70% at 50% 18%, rgba(104, 18, 30, 0.18), transparent 65%) !important;
  backdrop-filter: blur(8px) saturate(1.05) !important;
  -webkit-backdrop-filter: blur(8px) saturate(1.05) !important;
}
body.opera-body .codex-page[data-theme="vellum"] .ps-ribbon,
body.opera-body .ps-ribbon {
  background: rgba(9, 13, 22, 0.78) !important;
  border-bottom: 1px solid rgba(203, 184, 150, 0.18) !important;
}
body.opera-body #stage-root.codex-page[data-theme="vellum"] .ps-hero .codex-banner__title,
body.opera-body #stage-root.codex-page[data-theme="vellum"] .ps-title,
body.opera-body .codex-page[data-theme="vellum"] .ps-hero .codex-banner__title,
body.opera-body .codex-page[data-theme="vellum"] .ps-title,
body.opera-body .ps-hero .codex-banner__title,
body.opera-body .ps-title {
  color: var(--op-ivory) !important;
}
body.opera-body .ps-hero .codex-banner__quote,
body.opera-body .ps-hero .codex-banner__lead,
body.opera-body .ps-note {
  color: rgba(244, 239, 230, 0.84) !important;
}
body.opera-body .ps-card {
  border-radius: 2px !important;
  border: 1px solid rgba(203, 184, 150, 0.28) !important;
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.68) !important;
}
body.opera-body .ps-arrow {
  width: 44px !important;
  height: 44px !important;
  border-radius: 2px !important;
  border: 1px solid rgba(203, 184, 150, 0.46) !important;
  background: linear-gradient(180deg, rgba(22, 31, 48, 0.86) 0%, rgba(11, 16, 26, 0.92) 100%) !important;
  box-shadow: inset 0 0 0 3px rgba(8, 11, 18, 0.56), 0 8px 20px rgba(0, 0, 0, 0.45) !important;
}
body.opera-body .ps-arrow:hover {
  background: linear-gradient(180deg, #781624 0%, #560d18 100%) !important;
  border-color: var(--op-champagne) !important;
}
body.opera-body .ps-dot {
  border-radius: 0 !important;
  width: 14px !important;
  height: 2px !important;
}
body.opera-body .ps-dot.is-active {
  background: var(--op-champagne) !important;
  transform: scaleX(1.35) !important;
}
body.opera-body .ec-showcase {
  background: #0d131f !important;
  border-bottom: 1px solid rgba(203, 184, 150, 0.20) !important;
}
body.opera-body .ec-shot {
  border-radius: 2px !important;
  border: 1px solid rgba(203, 184, 150, 0.22) !important;
  background: #080c14 !important;
}
body.opera-body .ec-shot figcaption {
  background: #0f1624 !important;
  color: rgba(244, 239, 230, 0.86) !important;
}
body.opera-body .ps-dock {
  background: #0d1420 !important;
  border-bottom: 1px solid rgba(203, 184, 150, 0.20) !important;
  color: var(--op-ivory) !important;
}
body.opera-body .ps-dock__lead p {
  color: rgba(244, 239, 230, 0.68) !important;
}
body.opera-body .ps-chip {
  height: 34px !important;
  padding: 0 15px !important;
  border-radius: 2px !important;
  border: 1px solid rgba(203, 184, 150, 0.34) !important;
  background: linear-gradient(180deg, rgba(22, 31, 48, 0.72) 0%, rgba(13, 19, 30, 0.88) 100%) !important;
  box-shadow: inset 0 1px 0 rgba(244, 239, 230, 0.08) !important;
  color: rgba(244, 239, 230, 0.86) !important;
}
body.opera-body .ps-chip:hover,
body.opera-body .ps-chip.is-active {
  background: linear-gradient(180deg, #781624 0%, #560d18 100%) !important;
  border-color: var(--op-champagne) !important;
  box-shadow: inset 0 1px 0 rgba(255, 244, 232, 0.18), inset 0 -1.5px 0 var(--op-champagne) !important;
  color: #ffffff !important;
}
body.opera-body .ps-dock__cta {
  height: 36px !important;
  padding: 0 18px !important;
  border-radius: 2px !important;
  background: linear-gradient(180deg, #781624 0%, #560d18 100%) !important;
  border: 1px solid rgba(203, 184, 150, 0.56) !important;
  box-shadow: inset 0 1px 0 rgba(255, 244, 232, 0.20), inset 0 0 0 2px rgba(24, 4, 8, 0.44) !important;
  color: #faf6ee !important;
}
body.opera-body .ps-dock__cta:hover {
  background: linear-gradient(180deg, #8b1a2a 0%, #64101d 100%) !important;
  border-color: var(--op-champagne) !important;
}
body.opera-body .ps-dock__theme {
  height: 34px !important;
  border-radius: 2px !important;
  border: 1px solid rgba(203, 184, 150, 0.34) !important;
  background: rgba(11, 16, 26, 0.72) !important;
}
body.opera-body .ps-theme {
  padding: 0 14px !important;
  color: rgba(244, 239, 230, 0.74) !important;
}
body.opera-body .ps-theme.is-active {
  background: linear-gradient(180deg, #781624 0%, #560d18 100%) !important;
  box-shadow: inset 0 -1.5px 0 var(--op-champagne) !important;
  color: #ffffff !important;
}
body.opera-body .codex-page[data-theme="vellum"] .btn-vellum,
body.opera-body .codex-page .btn-vellum,
body.opera-body .btn-vellum {
  height: 32px !important;
  padding: 0 14px !important;
  display: inline-flex !important;
  align-items: center !important;
  border-radius: 2px !important;
  border: 1px solid rgba(203, 184, 150, 0.36) !important;
  background: linear-gradient(180deg, rgba(22, 31, 48, 0.72) 0%, rgba(13, 19, 30, 0.88) 100%) !important;
  box-shadow: inset 0 1px 0 rgba(244, 239, 230, 0.08) !important;
  color: rgba(244, 239, 230, 0.88) !important;
  font-weight: 500 !important;
}
body.opera-body .codex-page[data-theme="vellum"] .btn-vellum.is-active,
body.opera-body .codex-page[data-theme="vellum"] .btn-vellum:hover,
body.opera-body .codex-page .btn-vellum.is-active,
body.opera-body .codex-page .btn-vellum:hover,
body.opera-body .btn-vellum.is-active,
body.opera-body .btn-vellum:hover {
  background: linear-gradient(180deg, #781624 0%, #560d18 100%) !important;
  border-color: var(--op-champagne) !important;
  box-shadow: inset 0 1px 0 rgba(255, 244, 232, 0.18), inset 0 -1.5px 0 var(--op-champagne) !important;
  color: #ffffff !important;
}
body.opera-body .novel-tab {
  border-radius: 2px !important;
}
body.opera-body .design-gallery figure {
  border-radius: 2px !important;
}
body.opera-body .codex-page[data-theme="vellum"] .codex-banner::before,
body.opera-body .codex-page[data-theme="vellum"] .codex-banner::after,
body.opera-body .codex-page .codex-banner::before,
body.opera-body .codex-page .codex-banner::after {
  background: linear-gradient(180deg, rgba(11, 16, 26, 0.72) 0%, rgba(11, 16, 26, 0.88) 100%) !important;
}
body.opera-body .codex-banner__title,
body.opera-body .vhero__title,
body.opera-body .design-archive__cover h1 {
  font-family: var(--op-serif) !important;
  font-weight: 500 !important;
  letter-spacing: 0.08em !important;
  color: var(--op-ivory) !important;
}
body.opera-body .codex-page[data-theme="vellum"] .codex-banner__meta,
body.opera-body .codex-banner__meta,
body.opera-body .vhero__kicker {
  color: var(--op-champagne) !important;
  font-weight: 500 !important;
}
body.opera-body .codex-page[data-theme="vellum"] .codex-banner__quote,
body.opera-body .codex-page[data-theme="vellum"] .codex-banner__lead {
  color: var(--op-ivory) !important;
}
body.opera-body .codex-page[data-theme="vellum"] .codex-banner__bg {
  opacity: 0.34 !important;
  filter: saturate(0.85) brightness(0.75) !important;
}
body.opera-body .codex-page .codex-toolbar,
body.opera-body .codex-toolbar {
  background: #0d1420 !important;
  color: var(--op-ivory-soft) !important;
  border-bottom: 1px solid rgba(203, 184, 150, 0.18) !important;
}
body.opera-body .codex-page[data-theme="vellum"] .btn-vellum,
body.opera-body .codex-page .btn-vellum,
body.opera-body .btn-vellum {
  border-radius: 2px !important;
  border: 1px solid rgba(203, 184, 150, 0.38) !important;
  background: rgba(17, 25, 38, 0.65) !important;
  color: rgba(244, 239, 230, 0.88) !important;
}
body.opera-body .codex-page[data-theme="vellum"] .btn-vellum.is-active,
body.opera-body .codex-page[data-theme="vellum"] .btn-vellum:hover,
body.opera-body .codex-page .btn-vellum.is-active,
body.opera-body .codex-page .btn-vellum:hover,
body.opera-body .btn-vellum.is-active,
body.opera-body .btn-vellum:hover {
  background: var(--op-velvet) !important;
  border-color: var(--op-champagne) !important;
  color: #ffffff !important;
}
body.opera-body .codex-page[data-theme="night"] {
  background: #0d1420 !important;
  color: var(--op-ivory) !important;
}
body.opera-body .codex-page[data-theme="vellum"] {
  background: var(--op-paper) !important;
  color: var(--op-ink-dark) !important;
}
body.opera-body .site-footer {
  background: #090d16 !important;
  color: rgba(244, 239, 230, 0.70) !important;
  border-top: 1px solid rgba(203, 184, 150, 0.18) !important;
}
body.opera-body .site-footer a { color: var(--op-champagne) !important; }
body.opera-body .site-footer a:hover { color: #ffffff !important; }

/* ==========================================================================
   11. RESPONSIVE BREAKPOINTS (1080px Compact Desktop / Tablet & 760px Mobile)
   ========================================================================== */
@media (max-width: 1120px) {
  body.opera-body .brand-mark__title,
  body.opera-body .audio-slider,
  body.opera-body .audio-vol-text {
    display: none !important;
  }
  .cinema-acts {
    height: auto;
    min-height: 100svh;
    max-height: none;
  }
  .cinema-bottom,
  .atlas-cinema,
  .opera-dl-game,
  .folio-spread,
  .relic-grid,
  .pipeline-bench {
    grid-template-columns: 1fr;
  }
  .folio-spec {
    border-left: 0;
    border-top: 1px solid rgba(203, 184, 150, 0.20);
    padding-left: 0;
    padding-top: 20px;
  }
  .concept-head::before,
.concept-head::after,
.folio-tab::before {
  display: none !important;
}
.folio-tabs {
    grid-template-columns: repeat(2, 1fr);
  }
  .op-prism__rail {
    grid-template-columns: repeat(2, 1fr);
  }
  .op-prism__cell {
    border-bottom: 1px solid rgba(203, 184, 150, 0.12);
  }
  .atlas-cinema__info {
    border-left: 0;
    border-top: 1px solid rgba(203, 184, 150, 0.18);
  }
  .encore-trio {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  body.opera-body .site-header {
    height: 52px !important;
    padding: 0 12px !important;
    gap: 10px !important;
    flex-wrap: nowrap !important;
    max-width: 100vw !important;
  }
  .opera-home,
  .theater-stage,
  .cinema-acts,
  .encore-stage,
  .opera-footer {
    max-width: 100vw;
    overflow-x: hidden;
  }
  .scene-copy,
  .scene-copy > *,
  .scene-notes,
  .scene-notes > div,
  .cinema-bottom,
  .cinema-bottom > * {
    min-width: 0;
    max-width: 100%;
  }
  .cover-title,
  .cinema-title,
  .op-btn {
    white-space: normal;
  }
  body.opera-body .brand-mark__folio {
    font-size: 14px !important;
    letter-spacing: 0.18em !important;
  }
  body.opera-body .site-nav {
    gap: 12px !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    min-width: 0;
    scrollbar-width: none;
  }
  body.opera-body .site-nav::-webkit-scrollbar { display: none; }
  body.opera-body .site-nav__link {
    font-size: 12px !important;
    flex: 0 0 auto;
  }
  body.opera-body .site-nav__link--dl {
    padding: 4px 10px !important;
  }
  body.opera-body .header-audio {
    display: none !important;
  }

  /* On portrait mobile, switch stage from arch frame to clean full-width stack */
  .theater-stage {
    height: auto;
    min-height: 100svh;
    max-height: none;
    padding: 64px 14px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    container-type: normal;
  }
  .proscenium-svg--fg {
    opacity: 0.22;
  }
  .stage-scene {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    width: 100%;
    min-height: 520px;
    padding: 20px 16px 18px;
  }
  .scene-copy {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .scene-notes {
    border-left: 0;
    border-top: 1px solid rgba(203, 184, 150, 0.24);
    padding-left: 0;
    padding-top: 12px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .curtain-cover {
    padding: 20px 20px 60px;
  }
  .act-staff {
    position: relative;
    left: auto;
    bottom: auto;
    transform: none !important;
    width: 100%;
    margin-top: 14px;
    grid-template-columns: repeat(2, 1fr);
    row-gap: 6px;
  }
  .staff-node::before { display: none; }
  .cinema-acts__content {
    padding: 70px 16px 30px;
  }
  .cinema-top-row {
    flex-direction: column;
    gap: 4px;
  }
  .cinema-gallery-bar {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .gallery-caption-bar {
    justify-content: space-between;
  }
  .concept-wrap,
  .encore-stage {
    padding: 54px 16px 60px;
  }
  .folio-tabs,
  .op-prism__rail {
    grid-template-columns: 1fr;
  }
  .op-prism__cell + .op-prism__cell {
    border-left: 0;
  }
  .relic-specs,
  .opera-dl-steps {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .opera-dl-steps li + li {
    border-left: 0;
    border-top: 1px solid rgba(203, 184, 150, 0.14);
  }
  .relic-selector {
    grid-template-columns: repeat(4, 1fr);
  }
  .opera-footer__right {
    align-items: flex-start;
  }
}
