/* ==========================================================================
   VIGISO WEB-01 R11-F — UNIFIED CINEMATIC EXPERIENCE STYLESHEET
   Layers protected R10 baseline + scoped approved R11-A, R11-B, R11-C, R11-D, R11-E
   Zero prototype controls · Smooth 10-boundary transitions · Full responsive parity
   ========================================================================== */

/* Base R10 stylesheet is loaded via parallel <link> in index.html to eliminate @import waterfall. */

/* WCAG 2.2 AA contrast closure (6.29:1 vs #fff, replacing 4.46:1 #6366f1 on active pills) */
.seg-btn.is-active,
.preset-btn.active,
.scale-btn.active {
  background: #4f46e5 !important;
  color: #ffffff !important;
}

/* WCAG 2.2 SC 2.5.8 Target Size (>= 24px height) */
.footer-link-btn {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
}

:root {
  --r11f-cyan: #38bdf8;
  --r11f-indigo-bright: #818cf8;
  --r11f-emerald: #34d399;
  --r11f-amber: #f59e0b;
  --r11f-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --r11f-ink-light: #f1f5f9;
  --r11f-ink-soft: #cbd5e1;
  --r11f-ink-muted: #94a3b8;
  --r11f-header-h: 72px;
}

/* GLOBAL STICKY HEADER — Mandatory Opaque Isolation, Stacking & Clearance Across All 11 Scenes */
.site-header,
.site-header.is-scrolled {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000 !important;
  isolation: isolate;
  background: rgba(6, 10, 22, 0.96) !important;
  backdrop-filter: blur(20px) saturate(140%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(140%) !important;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14) !important;
  box-shadow: 0 8px 28px rgba(2, 6, 16, 0.44);
  transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

/* Direct anchor scroll offset across all 11 sections */
main > section[id] {
  scroll-margin-top: 76px;
}

/* Header contrast adaptation over Act VI-A Architectural Ceramic Relief */
body.header-on-light .site-header,
body.header-on-light .site-header.is-scrolled {
  background: rgba(244, 246, 250, 0.97) !important;
  border-bottom-color: rgba(15, 23, 42, 0.12) !important;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}
body.header-on-light .site-header .brand-logo {
  filter: invert(1) hue-rotate(180deg);
}
body.header-on-light .site-header .primary-nav a,
body.header-on-light .site-header .lang-toggle {
  color: #1e293b;
}
body.header-on-light .site-header .lang-toggle {
  border-color: rgba(15, 23, 42, 0.18);
  background: rgba(15, 23, 42, 0.06);
}
body.header-on-light .site-header .lang-opt {
  color: #475569;
}
body.header-on-light .site-header .lang-opt.is-active {
  color: #0f172a;
  font-weight: 700;
}
body.header-on-light .site-header .mobile-menu-btn span {
  background: #0f172a;
}

/* Shared Scoped Sticky Track Framework for R11-A, R11-B, R11-C, R11-D */
.r11f-track {
  position: relative;
  height: 260vh;
  background: #040711;
  color: var(--r11f-ink-light);
}

.r11f-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: stretch;
  background: radial-gradient(ellipse 80% 70% at 50% 42%, #0a142c 0%, #050915 62%, #040711 100%);
}

.r11f-bg-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  opacity: 0.85;
}

.r11f-hud {
  position: relative;
  z-index: 3;
  width: min(1240px, calc(100% - 48px));
  margin-inline: auto;
  height: 100%;
  padding-top: calc(var(--r11f-header-h) + 18px);
  padding-bottom: 24px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 14px;
}

.r11f-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.r11f-head-col {
  max-width: 680px;
}

.r11f-head-col .display-title {
  margin: 4px 0 0;
  font-size: clamp(1.45rem, 2.5vw, 2.25rem);
  line-height: 1.12;
  color: #f8fafc;
}

.r11f-theater {
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1400px;
  min-height: 0;
}

.r11f-bottom {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 20px;
  align-items: end;
  padding-top: 10px;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
}

.r11f-beat-k {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--r11f-cyan);
  margin-bottom: 4px;
}
.r11f-beat-k.is-alert,
.r11f-beat-k.is-crit { color: #fda4af; }
.r11f-beat-k.is-mod { color: #fde68a; }

.r11f-beat-title {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.5vw, 1.32rem);
  color: #fff;
  line-height: 1.24;
}

.r11f-beat-desc {
  margin: 0;
  font-size: 0.84rem;
  color: var(--r11f-ink-muted);
  line-height: 1.48;
  max-width: 660px;
}

.r11f-meta-col {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.r11f-phase-txt {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--r11f-ink-soft);
}

.r11f-progress-rail {
  width: min(220px, 100%);
  height: 3px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.18);
  overflow: hidden;
}

.r11f-progress-rail i {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #6366f1, #38bdf8);
  transition: width 0.14s linear;
}

.r11f-disclaimer {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--r11f-ink-muted);
  text-align: right;
  opacity: 0.85;
}

/* Status Pills & Badges for R11-A, R11-B, R11-C, R11-D */
.r11f-chip,
.r11f-score-badge,
.r11f-layer-badge,
.r11f-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: rgba(10, 18, 38, 0.84);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #e2e8f0;
  white-space: nowrap;
}

.r11f-chip.is-risk {
  border-color: rgba(244, 63, 94, 0.6);
  background: rgba(64, 14, 34, 0.82);
  color: #fda4af;
}

.r11f-score-badge {
  border-color: rgba(244, 63, 94, 0.55);
  background: rgba(56, 12, 30, 0.86);
}
.r11f-score-badge strong { color: #fda4af; font-weight: 700; }
.r11f-score-badge.is-reassessed {
  border-color: rgba(245, 158, 11, 0.65);
  background: rgba(56, 34, 10, 0.88);
}
.r11f-score-badge.is-reassessed strong { color: #fde68a; }

.r11f-layer-badge strong { color: #bae6fd; font-weight: 600; }

.r11f-pill-btn {
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.r11f-pill-btn:hover,
.r11f-pill-btn.is-active {
  border-color: rgba(56, 189, 248, 0.7);
  background: rgba(18, 38, 76, 0.92);
  color: #fff;
}

/* Smooth Narrative Transition Band between Act IV -> Act V-A -> Act V-B -> Act V-C */
.r11f-matrix-section {
  background: linear-gradient(180deg, #040711 0%, #071026 50%, #040711 100%);
  padding: 96px 0;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

/* ==========================================================================
   SCOPED SCENE 05 — R11-A ALTERNATIVE A (THE LIVING ENTERPRISE NETWORK)
   ========================================================================== */
#act-5a .net-3d-world {
  position: relative;
  width: min(980px, 100%);
  height: 410px;
  transform-style: preserve-3d;
  will-change: transform;
}
#act-5a .net-svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
#act-5a .net-link { fill: none; stroke: rgba(129, 140, 248, 0.34); stroke-width: 1.6; transition: stroke 0.35s ease, stroke-width 0.35s ease; }
#act-5a .net-link.is-exposed { stroke: #f43f5e; stroke-width: 2.8; filter: drop-shadow(0 0 8px rgba(244, 63, 94, 0.7)); }
#act-5a .net-link.is-calm { stroke: rgba(100, 116, 139, 0.24); }
#act-5a .net-node {
  position: absolute; padding: 13px 16px; border-radius: 14px;
  background: linear-gradient(150deg, rgba(16, 26, 56, 0.90) 0%, rgba(7, 12, 26, 0.88) 100%);
  border: 1px solid rgba(148, 163, 184, 0.24); backdrop-filter: blur(14px);
  box-shadow: 0 22px 48px -18px rgba(0, 0, 0, 0.85);
  display: flex; flex-direction: column; gap: 3px;
  transition: border-color 0.35s ease, box-shadow 0.35s ease, opacity 0.35s ease;
}
#act-5a .net-node-k { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.12em; color: var(--r11f-indigo-bright); }
#act-5a .net-node-v { font-family: var(--font-display); font-size: 0.92rem; color: #fff; line-height: 1.25; }
#act-5a .net-node-s { font-family: var(--font-mono); font-size: 0.68rem; color: var(--r11f-ink-muted); margin-top: 2px; }
#act-5a .node-supply { top: 0; left: 20px; width: 205px; }
#act-5a .node-compliance { top: 0; right: 20px; width: 205px; }
#act-5a .node-treasury { bottom: 6px; left: 24px; width: 205px; }
#act-5a .node-orders { top: 158px; left: 32px; width: 235px; }
#act-5a .node-finance { top: 158px; right: 32px; width: 235px; }
#act-5a .node-erp { top: 112px; left: 50%; width: 264px; margin-left: -132px; border-color: rgba(129, 140, 248, 0.55); }
#act-5a .node-owner { bottom: 6px; left: 50%; width: 274px; margin-left: -137px; opacity: 0.42; }
#act-5a .net-node.is-origin {
  border-color: #f43f5e;
  background: linear-gradient(150deg, rgba(64, 14, 34, 0.94) 0%, rgba(20, 8, 22, 0.92) 100%);
  box-shadow: 0 0 0 1px rgba(244, 63, 94, 0.45), 0 28px 64px -14px rgba(244, 63, 94, 0.55);
}
#act-5a .net-node.is-origin .net-node-k,
#act-5a .net-node.is-origin .net-node-s { color: #fda4af; }
#act-5a .net-node.is-exposed {
  border-color: #f59e0b;
  background: linear-gradient(150deg, rgba(56, 32, 12, 0.92) 0%, rgba(18, 12, 24, 0.92) 100%);
  box-shadow: 0 22px 54px -16px rgba(245, 158, 11, 0.42);
}
#act-5a .net-node.is-exposed .net-node-k,
#act-5a .net-node.is-exposed .net-node-s { color: #fcd34d; }
#act-5a .net-node.is-unaffected { opacity: 0.44; }
#act-5a .net-node.is-owner-active { opacity: 1; border-color: #38bdf8; box-shadow: 0 20px 52px -16px rgba(56, 189, 248, 0.45); }
#act-5a .net-node.is-owner-active .net-node-k { color: #38bdf8; }
#act-5a .handoff-beam { position: absolute; bottom: -26px; left: 50%; width: 2px; height: 42px; background: linear-gradient(180deg, #f43f5e, #38bdf8, transparent); opacity: 0; transition: opacity 0.35s ease; }
#act-5a .handoff-beam.is-visible { opacity: 1; }

/* ==========================================================================
   SCOPED SCENE 07 — R11-B ALTERNATIVE A (THE ACCOUNTABILITY NETWORK)
   ========================================================================== */
#act-5c .acc-3d-world { position: relative; width: min(1040px, 100%); height: 410px; transform-style: preserve-3d; will-change: transform; }
#act-5c .acc-svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
#act-5c .acc-link { fill: none; stroke: rgba(148, 163, 184, 0.22); stroke-width: 1.6; transition: stroke 0.35s, stroke-width 0.35s; }
#act-5c .acc-link.is-indigo { stroke: #818cf8; stroke-width: 2.3; }
#act-5c .acc-link.is-cyan { stroke: #38bdf8; stroke-width: 2.3; }
#act-5c .acc-link.is-emerald { stroke: #34d399; stroke-width: 2.3; }
#act-5c .acc-link.is-amber { stroke: #f59e0b; stroke-width: 2.6; }
#act-5c .acc-node {
  position: absolute; padding: 12px 15px; border-radius: 13px;
  background: linear-gradient(150deg, rgba(16, 26, 56, 0.92) 0%, rgba(7, 12, 28, 0.90) 100%);
  border: 1px solid rgba(148, 163, 184, 0.22); backdrop-filter: blur(14px);
  box-shadow: 0 20px 44px -18px rgba(0, 0, 0, 0.85);
  display: flex; flex-direction: column; gap: 3px; opacity: 0.32;
  transition: opacity 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}
#act-5c .acc-node.is-active { opacity: 1; }
#act-5c .acc-k { font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.12em; color: var(--r11f-indigo-bright); }
#act-5c .acc-v { font-family: var(--font-display); font-size: 0.88rem; color: #fff; line-height: 1.25; }
#act-5c .acc-s { font-family: var(--font-mono); font-size: 0.66rem; color: var(--r11f-ink-muted); }
#act-5c .n-risk { top: 145px; left: 10px; width: 205px; opacity: 1; border-color: rgba(244, 63, 94, 0.65); }
#act-5c .n-decision { top: 18px; left: 245px; width: 215px; }
#act-5c .n-risk-own { top: 145px; left: 245px; width: 215px; }
#act-5c .n-act-own { top: 274px; left: 245px; width: 215px; }
#act-5c .n-act-1 { top: 18px; left: 505px; width: 240px; }
#act-5c .n-act-2 { top: 145px; left: 505px; width: 240px; }
#act-5c .n-act-3 { top: 274px; left: 505px; width: 240px; }
#act-5c .n-evidence { top: 44px; right: 10px; width: 235px; }
#act-5c .n-reassess { top: 216px; right: 10px; width: 235px; }
#act-5c .acc-node.tone-crit { border-color: #f43f5e; box-shadow: 0 22px 54px -16px rgba(244, 63, 94, 0.5); }
#act-5c .acc-node.tone-crit .acc-k { color: #fda4af; }
#act-5c .acc-node.tone-indigo { border-color: #818cf8; box-shadow: 0 20px 50px -16px rgba(99, 102, 241, 0.45); }
#act-5c .acc-node.tone-cyan { border-color: #38bdf8; box-shadow: 0 20px 50px -16px rgba(56, 189, 248, 0.45); }
#act-5c .acc-node.tone-cyan .acc-k { color: #38bdf8; }
#act-5c .acc-node.tone-emerald { border-color: #34d399; box-shadow: 0 20px 50px -16px rgba(52, 211, 153, 0.42); }
#act-5c .acc-node.tone-emerald .acc-k { color: #34d399; }
#act-5c .acc-node.tone-amber { border-color: #f59e0b; background: linear-gradient(150deg, rgba(64, 38, 12, 0.94) 0%, rgba(16, 12, 26, 0.92) 100%); box-shadow: 0 24px 60px -14px rgba(245, 158, 11, 0.5); }
#act-5c .acc-node.tone-amber .acc-k,
#act-5c .acc-node.tone-amber .acc-s { color: #fde68a; }

/* ==========================================================================
   SCOPED SCENE 09 — R11-C ALTERNATIVE B + R11-C.2 (ARCHITECTURE OF TRUST)
   ========================================================================== */
#act-6b .trust-arch-stage {
  position: relative; width: min(1060px, 100%);
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 24px; align-items: center; perspective: 1450px;
}
#act-6b .strata-3d { display: flex; flex-direction: column-reverse; gap: 8px; transform-style: preserve-3d; will-change: transform; }
#act-6b .stratum-btn {
  width: 100%; text-align: left; border-radius: 12px; padding: 11px 15px;
  background: linear-gradient(145deg, rgba(13, 23, 46, 0.9), rgba(7, 12, 26, 0.94));
  border: 1px solid rgba(148, 163, 184, 0.2); color: var(--r11f-ink-light); cursor: pointer;
  display: grid; grid-template-columns: 36px 1fr auto; align-items: center; gap: 12px; opacity: 0.56;
  transition: transform 0.35s var(--r11f-ease), opacity 0.3s var(--r11f-ease), border-color 0.3s var(--r11f-ease), box-shadow 0.3s var(--r11f-ease);
}
#act-6b .stratum-btn:hover { opacity: 0.9; border-color: rgba(56, 189, 248, 0.42); }
#act-6b .stratum-btn.is-active {
  opacity: 1; border-color: rgba(56, 189, 248, 0.7);
  background: linear-gradient(145deg, rgba(18, 34, 68, 0.96), rgba(8, 16, 34, 0.98));
  box-shadow: 0 20px 44px -14px rgba(56, 189, 248, 0.28);
}
#act-6b .stratum-btn[data-id="deploy"] { border-bottom-width: 3px; border-bottom-color: rgba(56, 189, 248, 0.5); }
#act-6b .stratum-btn[data-id="org"] .stratum-glyph { display: grid; grid-template-columns: repeat(3, 12px); gap: 3px; }
#act-6b .stratum-btn[data-id="org"] .stratum-glyph i { height: 14px; border-radius: 2px; background: rgba(129, 140, 248, 0.45); }
#act-6b .stratum-btn[data-id="trace"] .stratum-glyph { display: flex; gap: 4px; align-items: center; }
#act-6b .stratum-btn[data-id="trace"] .stratum-glyph i { width: 6px; height: 6px; border-radius: 999px; background: var(--r11f-emerald); }
#act-6b .stratum-num { font-family: var(--font-mono); font-size: 0.72rem; font-weight: 600; color: var(--r11f-cyan); padding: 4px 6px; border-radius: 7px; background: rgba(56, 189, 248, 0.1); border: 1px solid rgba(56, 189, 248, 0.25); text-align: center; }
#act-6b .stratum-k { display: block; font-family: var(--font-mono); font-size: 0.59rem; letter-spacing: 0.1em; color: var(--r11f-indigo-bright); }
#act-6b .stratum-text { min-width: 0; }
#act-6b .stratum-t { display: block; font-family: var(--font-display); font-size: 0.86rem; font-weight: 700; color: #fff; margin-top: 1px; line-height: 1.24; }
#act-6b .stratum-glyph { font-family: var(--font-mono); font-size: 0.62rem; color: var(--r11f-ink-muted); }
#act-6b .layer-inspector {
  border-radius: 18px; padding: 22px 24px;
  background: linear-gradient(155deg, #0f1b38 0%, #070d1e 100%);
  border: 1px solid rgba(56, 189, 248, 0.36); box-shadow: 0 28px 60px -18px rgba(0, 0, 0, 0.75);
  display: flex; flex-direction: column; gap: 14px;
}
#act-6b .insp-hint { font-family: var(--font-mono); font-size: 0.63rem; letter-spacing: 0.08em; color: var(--r11f-ink-muted); text-transform: uppercase; }
#act-6b .insp-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
#act-6b .insp-num { font-family: var(--font-mono); font-size: 0.72rem; padding: 3px 9px; border-radius: 999px; background: rgba(56, 189, 248, 0.14); border: 1px solid rgba(56, 189, 248, 0.4); color: #bae6fd; }
#act-6b .insp-k { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.12em; color: var(--r11f-cyan); }
#act-6b .insp-title { margin: 0; font-family: var(--font-display); font-size: 1.32rem; font-weight: 700; color: #fff; line-height: 1.22; }
#act-6b .insp-summary { margin: 0; padding: 12px 14px; border-radius: 11px; background: rgba(5, 10, 22, 0.75); border: 1px solid rgba(148, 163, 184, 0.18); font-size: 0.85rem; font-weight: 500; color: #e2e8f0; line-height: 1.45; }
#act-6b .insp-detail { margin: 0; font-size: 0.82rem; color: var(--r11f-ink-muted); line-height: 1.55; }
#act-6b .insp-footer { display: flex; align-items: center; justify-content: space-between; padding-top: 10px; border-top: 1px solid rgba(148, 163, 184, 0.16); font-family: var(--font-mono); font-size: 0.65rem; color: var(--r11f-emerald); }

/* ==========================================================================
   SCOPED SCENE 10 — R11-D ALTERNATIVE B (THE ENTERPRISE RISK ATLAS)
   ========================================================================== */
#act-6c .atlas-stage {
  position: relative; width: min(1080px, 100%);
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 22px; align-items: center; perspective: 1450px;
}
#act-6c .atlas-plane {
  position: relative; border-radius: 18px; padding: 14px;
  background: linear-gradient(155deg, rgba(13, 24, 50, 0.88), rgba(6, 11, 26, 0.95));
  border: 1px solid rgba(56, 189, 248, 0.3); box-shadow: 0 28px 64px -16px rgba(0, 0, 0, 0.78);
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(2, 1fr);
  gap: 10px; transform-style: preserve-3d; will-change: transform; transition: transform 0.45s var(--r11f-ease);
}
#act-6c .atlas-zone {
  text-align: left; border-radius: 12px; padding: 12px 11px;
  background: linear-gradient(160deg, rgba(16, 28, 58, 0.94), rgba(7, 13, 28, 0.97));
  border: 1px solid rgba(148, 163, 184, 0.26); color: var(--r11f-ink-light); cursor: pointer;
  display: flex; flex-direction: column; justify-content: space-between; gap: 8px;
  min-height: 132px; opacity: 0.86; transition: all 0.32s var(--r11f-ease);
}
#act-6c .atlas-zone:hover { opacity: 0.94; border-color: rgba(56, 189, 248, 0.46); }
#act-6c .atlas-zone.is-focused {
  opacity: 1; border-color: rgba(56, 189, 248, 0.75);
  background: linear-gradient(155deg, rgba(20, 38, 76, 0.98), rgba(8, 16, 36, 0.98));
  box-shadow: 0 18px 42px -12px rgba(56, 189, 248, 0.32);
}
#act-6c .atlas-plane.is-overview .atlas-zone { opacity: 0.95; transform: translate3d(0, 0, 10px) !important; }
#act-6c .atlas-zone[data-id="ops"] { border-top: 2px solid rgba(251, 146, 60, 0.55); }
#act-6c .atlas-zone[data-id="cyber"] { border-top: 2px solid rgba(56, 189, 248, 0.65); }
#act-6c .atlas-zone[data-id="comp"] { border-top: 2px solid rgba(129, 140, 248, 0.65); }
#act-6c .atlas-zone[data-id="group"] { border-top: 2px solid rgba(167, 139, 250, 0.65); }
#act-6c .atlas-zone[data-id="exec"] { border-top: 2px solid rgba(52, 211, 153, 0.65); }
#act-6c .az-head { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
#act-6c .az-num { font-family: var(--font-mono); font-size: 0.65rem; font-weight: 600; color: var(--r11f-cyan); }
#act-6c .az-tag { font-family: var(--font-mono); font-size: 0.54rem; padding: 2px 6px; border-radius: 999px; background: rgba(56, 189, 248, 0.1); border: 1px solid rgba(56, 189, 248, 0.25); color: #bae6fd; }
#act-6c .az-title { font-family: var(--font-display); font-size: 0.82rem; font-weight: 700; color: #fff; line-height: 1.24; }
#act-6c .az-sub { font-size: 0.66rem; color: var(--r11f-ink-muted); line-height: 1.32; }
#act-6c .atlas-dossier {
  border-radius: 18px; padding: 18px 20px;
  background: linear-gradient(155deg, #0e1934 0%, #060c1c 100%);
  border: 1px solid rgba(56, 189, 248, 0.38); box-shadow: 0 26px 58px -18px rgba(0, 0, 0, 0.72);
  display: flex; flex-direction: column; gap: 10px;
}
#act-6c .ad-svg-wrap { border-radius: 11px; padding: 6px; background: rgba(5, 10, 22, 0.84); border: 1px solid rgba(148, 163, 184, 0.16); max-height: 175px; overflow: hidden; }
#act-6c .ad-svg-wrap svg { max-height: 162px; width: 100%; display: block; }
#act-6c .ad-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
#act-6c .ad-cat { font-family: var(--font-mono); font-size: 0.63rem; letter-spacing: 0.1em; color: var(--r11f-cyan); }
#act-6c .ad-num { font-family: var(--font-mono); font-size: 0.65rem; padding: 2px 8px; border-radius: 999px; background: rgba(56, 189, 248, 0.14); border: 1px solid rgba(56, 189, 248, 0.36); color: #bae6fd; }
#act-6c .ad-title { margin: 0; font-family: var(--font-display); font-size: 1.18rem; font-weight: 700; color: #fff; line-height: 1.22; }
#act-6c .ad-desc { margin: 0; font-size: 0.78rem; color: var(--r11f-ink-soft); line-height: 1.46; }
#act-6c .ad-tags { display: flex; flex-wrap: wrap; gap: 5px; }
#act-6c .ad-tag { font-family: var(--font-mono); font-size: 0.6rem; padding: 2px 7px; border-radius: 999px; background: rgba(52, 211, 153, 0.1); border: 1px solid rgba(52, 211, 153, 0.3); color: #a7f3d0; }

/* ==========================================================================
   SCOPED SCENE 11 — R11-E ALTERNATIVE A (THE SIGNATURE MONOLITH)
   ========================================================================== */
#act-7.monolith-runway {
  position: relative;
  min-height: 138vh;
  background: radial-gradient(ellipse 80% 60% at 50% 24%, #0b1630 0%, #050811 66%, #03050c 100%);
  border-top: 1px solid rgba(148, 179, 230, 0.1);
}
#act-7 .monolith-stage {
  position: sticky; top: 0; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: calc(var(--r11f-header-h) + 18px) clamp(20px, 5vw, 56px) 34px;
  overflow: hidden;
}
#act-7 .monolith-atmosphere { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
#act-7 .monolith-halo {
  position: absolute; left: 50%; top: 38%; width: min(760px, 90vw); height: min(760px, 90vw);
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(59, 130, 246, 0.16) 0%, rgba(30, 64, 175, 0.08) 38%, transparent 70%);
  filter: blur(18px);
}
#act-7 .monolith-floor-glow {
  position: absolute; left: 50%; top: 56%; width: min(680px, 86vw); height: 1px; transform: translateX(-50%);
  background: linear-gradient(90deg, transparent 0%, rgba(147, 197, 253, 0.22) 30%, rgba(210, 219, 230, 0.36) 50%, rgba(147, 197, 253, 0.22) 70%, transparent 100%);
  opacity: 0.55;
}
#act-7 .monolith-shell { position: relative; z-index: 2; width: 100%; max-width: 960px; display: flex; flex-direction: column; align-items: center; text-align: center; }
#act-7 .monolith-eyebrow { margin: 0 0 8px; font-size: 11px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: #60a5fa; }
#act-7 .monolith-canvas-wrap { position: relative; width: min(560px, 90vw); height: clamp(270px, 42vh, 430px); display: flex; align-items: center; justify-content: center; }
#act-7 #r11e-canvas { width: 100%; height: 100%; display: block; }
#act-7 .r11e-cube-fallback { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; padding: 24px; }
#act-7 .r11e-cube-fallback.is-active { display: flex; }
#act-7 .r11e-cube-fallback img {
  max-width: min(88%, 520px); max-height: 84%; width: auto; height: auto; object-fit: contain;
  -webkit-mask-image: radial-gradient(ellipse 68% 68% at 50% 50%, #000 38%, transparent 78%);
  mask-image: radial-gradient(ellipse 68% 68% at 50% 50%, #000 38%, transparent 78%);
  filter: saturate(0.82) brightness(0.92) contrast(1.06);
}
#act-7 .monolith-editorial { max-width: 720px; margin-top: 6px; }
#act-7 .monolith-headline {
  margin: 0 0 12px; font-size: clamp(28px, 4vw, 48px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.1;
  background: linear-gradient(180deg, #ffffff 0%, #d9e4f5 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
}
#act-7 .monolith-subhead { margin: 0 auto 22px; max-width: 600px; font-size: clamp(14px, 1.45vw, 17px); color: #b7c4db; line-height: 1.58; }
#act-7 .monolith-capabilities { list-style: none; padding: 0; margin: 0 0 26px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 14px; }
#act-7 .monolith-capabilities li { font-size: 12px; color: #b7c4db; padding: 6px 13px; border-radius: 999px; border: 1px solid rgba(148, 179, 230, 0.16); background: rgba(12, 20, 40, 0.56); }
#act-7 .monolith-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
#act-7 .r11e-btn-primary {
  display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 24px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16); background: linear-gradient(135deg, #f4f7fc 0%, #dce5f4 100%);
  color: #070d1d; font-size: 14px; font-weight: 600; cursor: pointer;
}
#act-7 .r11e-btn-secondary {
  display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 22px; border-radius: 999px;
  border: 1px solid rgba(148, 179, 230, 0.28); background: rgba(15, 24, 46, 0.56); color: #f4f7fc; font-size: 14px; font-weight: 500; cursor: pointer;
}

/* ==========================================================================
   RESPONSIVE RULES FOR INTEGRATED SCENES (360px - 1024px)
   ========================================================================== */
@media (max-width: 1024px) {
  .r11f-track { height: auto; min-height: auto; }
  .r11f-sticky { position: relative; height: auto; min-height: 0; overflow: visible; padding-bottom: 28px; }
  .r11f-hud { width: calc(100% - 32px); height: auto; gap: 18px; }
  .r11f-bottom { grid-template-columns: 1fr; gap: 10px; }
  .r11f-meta-col { align-items: flex-start; }
  .r11f-disclaimer { text-align: left; }

  #act-5c .acc-3d-world { height: auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; transform: none !important; }
  #act-5c .acc-svg { display: none; }
  #act-5c .acc-node { position: relative; inset: auto !important; width: 100% !important; transform: none !important; padding: 7px 9px; gap: 2px; }
  #act-5c .acc-k { font-size: 0.54rem; }
  #act-5c .acc-v { font-size: 0.74rem; line-height: 1.2; }
  #act-5c .acc-s { font-size: 0.6rem; line-height: 1.2; }
  #act-5c .n-risk, #act-5c .n-reassess { grid-column: 1 / -1; }

  #act-6b .trust-arch-stage { grid-template-columns: 1fr; gap: 10px; }
  #act-6b .strata-3d { transform: none !important; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  #act-6b .stratum-btn { padding: 7px 9px; grid-template-columns: 28px 1fr; gap: 7px; transform: none !important; }
  #act-6b .stratum-glyph { display: none; }
  #act-6b .stratum-num { font-size: 0.62rem; padding: 3px 4px; }
  #act-6b .stratum-k { font-size: 0.52rem; }
  #act-6b .stratum-t { font-size: 0.72rem; }
  #act-6b .layer-inspector { padding: 11px 13px; gap: 6px; }
  #act-6b .insp-hint { display: none; }
  #act-6b .insp-title { font-size: 0.94rem; }
  #act-6b .insp-summary { padding: 7px 9px; font-size: 0.72rem; }
  #act-6b .insp-detail { font-size: 0.69rem; }

  #act-6c .atlas-stage { grid-template-columns: 1fr; gap: 8px; }
  #act-6c .atlas-plane { transform: none !important; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 8px; gap: 5px; }
  #act-6c .atlas-zone { min-height: 64px; padding: 6px 7px; gap: 3px; transform: none !important; }
  #act-6c .az-tag, #act-6c .az-sub { display: none; }
  #act-6c .az-title { font-size: 0.66rem; line-height: 1.18; }
  #act-6c .atlas-dossier { padding: 10px 12px; gap: 6px; }
  #act-6c .ad-svg-wrap { max-height: 112px; padding: 3px; }
  #act-6c .ad-svg-wrap svg { max-height: 104px; }
  #act-6c .ad-title { font-size: 0.92rem; }
  #act-6c .ad-desc { font-size: 0.7rem; }
}

@media (max-width: 767px) {
  .site-header {
    background: rgba(5, 8, 17, 0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }
  .site-header .header-actions .btn-primary.btn-sm {
    display: none;
  }
  .r11f-hud {
    padding-top: calc(var(--r11f-header-h) + 26px);
  }
  .r11f-top { flex-direction: column; gap: 8px; }
  #act-5a .net-3d-world { height: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; transform: none !important; }
  #act-5a .net-svg, #act-5a .handoff-beam { display: none; }
  #act-5a .net-node { position: relative; inset: auto !important; margin: 0 !important; width: 100% !important; transform: none !important; padding: 9px 11px; }
  #act-5a .node-erp, #act-5a .node-owner { grid-column: 1 / -1; }
  #act-5a .node-treasury { display: none; }

  #act-7.monolith-runway { min-height: 112vh; }
  #act-7 .monolith-stage { position: relative; min-height: auto; padding-top: calc(var(--r11f-header-h) + 24px); padding-bottom: 42px; }
  #act-7 .monolith-canvas-wrap { height: 290px; }
  #act-7 .monolith-ctas { width: 100%; flex-direction: column; }
  #act-7 .monolith-ctas button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}


/* FINAL-01: Act III Non-Overlapping Architectural Plane Choreography (R11-G Isolated Override) */
#act-3 .sticky-hud,
#act-2 .sticky-hud {
  padding-top: max(88px, calc(var(--r11f-header-h) + 18px));
}
.r11f-hud {
  padding-top: max(88px, calc(var(--r11f-header-h) + 18px));
}
#act-7 .monolith-stage {
  padding-top: max(88px, calc(var(--r11f-header-h) + 18px));
}

#act-3 .arch-3d-stage {
  min-height: 320px;
  perspective: 1400px;
  overflow: hidden;
}
#act-3 .arch-3d-stack {
  height: 118px;
}
#act-3 .arch-glass-plane {
  top: 50%;
  bottom: auto;
  height: 52px;
  margin-top: -26px;
  padding: 12px 22px;
  justify-content: center;
  transition: transform 0.34s var(--r11f-ease), opacity 0.28s ease, height 0.30s var(--r11f-ease), margin-top 0.30s var(--r11f-ease), border-color 0.26s ease, box-shadow 0.26s ease;
}
#act-3 .arch-glass-plane .agp-head {
  gap: 10px;
}
#act-3 .arch-glass-plane .agp-name {
  font-size: 0.96rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#act-3 .arch-glass-plane .agp-chips {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  margin-top: 0;
  pointer-events: none;
  transition: opacity 0.22s ease, max-height 0.26s ease;
}
#act-3 .arch-glass-plane.is-active {
  height: 118px;
  margin-top: -59px;
  padding: 18px 24px;
  justify-content: space-between;
}
#act-3 .arch-glass-plane.is-active .agp-name {
  font-size: 1.12rem;
}
#act-3 .arch-glass-plane.is-active .agp-chips {
  opacity: 1;
  max-height: 56px;
  margin-top: 8px;
  pointer-events: auto;
}

@media (max-width: 767px) {
  #act-3 .arch-3d-stage {
    min-height: auto;
    overflow: visible;
    perspective: none;
  }
  #act-3 .arch-3d-stack {
    height: auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transform: none !important;
  }
  #act-3 .arch-glass-plane {
    position: relative;
    inset: auto;
    top: auto;
    margin-top: 0;
    height: auto;
    padding: 10px 14px;
    transform: none !important;
  }
  #act-3 .arch-glass-plane.is-active {
    height: auto;
    margin-top: 0;
    padding: 14px 16px;
  }
  #act-3 .arch-glass-plane .agp-name {
    white-space: normal;
    font-size: 0.92rem;
  }
}

/* FINAL-02: Cube-Integrated Accessible Motion Control (Zero Visible Button Clutter) */
#r11e-cube-control {
  cursor: pointer;
  border-radius: 20px;
  outline: none;
}
#r11e-cube-control:focus-visible {
  box-shadow: 0 0 0 2px #38bdf8, 0 0 26px rgba(56, 189, 248, 0.34);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* 320px Reflow & 200% Zoom Guard */
@media (max-width: 340px) {
  .r11f-hud { width: calc(100% - 20px); }
  .site-header .header-inner { padding-inline: 10px; }
}
