/* ============================================================
   Bitcoin Institutional Core -- Institutional Coordination Demonstrator
   Phase 1 Visual System -- Gate 1 Corrected
   ============================================================ */

/* --- Reset & Base ----------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* InstitutionalCore.com palette family */
  --navy-base:    #030509;
  --navy-raised:  #0c1428;
  --navy-surface: #101b33;
  --navy-ui:      #1a2d4a;
  --navy-border:  #1e3458;

  /* Blue accent family */
  --blue-accent:  #3d7bff;
  --blue-mid:     #6fa0ff;
  --blue-muted:   #2a5cbf;
  --blue-dim:     #1e3d8a;

  /* Text hierarchy -- steel/silver */
  --text-primary:   #e8edf5;
  --text-secondary: rgba(220, 228, 242, 0.72);
  --text-muted:     rgba(200, 214, 235, 0.50);
  --text-readable:  rgba(200, 214, 235, 0.68);
  --text-faint:     rgba(180, 200, 228, 0.09);

  /* Surfaces */
  --surface-card:        rgba(255, 255, 255, 0.035);
  --surface-card-hover:  rgba(61, 123, 255, 0.08);
  --surface-card-active: rgba(61, 123, 255, 0.14);

  /* Borders -- restrained translucent hairlines */
  --border-subtle:  rgba(61, 123, 255, 0.18);
  --border-active:  rgba(61, 123, 255, 0.60);
  --border-card:    rgba(255, 255, 255, 0.05);
  --border-bridge:  rgba(61, 123, 255, 0.70);

  /* Motion */
  --dur-fast: 220ms;
  --dur-mid:  400ms;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

  /* Type */
  --font-body:   'Inter', system-ui, -apple-system, sans-serif;
  --fw-light:    300;
  --fw-regular:  400;
  --fw-medium:   500;
  --fw-semibold: 600;
}

html { font-size: 16px; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--font-body);
  background-color: var(--navy-base);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-weight: var(--fw-semibold);
  line-height: 1.15;
  letter-spacing: -0.015em;
}

/* --- Global Shell ----------------------------------------- */
#demonstrator {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* --- Header ----------------------------------------------- */
.demo-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-mid) var(--ease-out),
              background-color var(--dur-mid) var(--ease-out);
}

.demo-header.header-scrolled {
  border-color: var(--border-subtle);
  background-color: rgba(3, 5, 9, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.header-wordmark {
  font-size: 11px;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  user-select: none;
}

.header-context-pill {
  font-size: 12.5px;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  padding: 4px 12px;
  border: 1px solid var(--border-subtle);
  border-radius: 2px;
  opacity: 0;
  transition: opacity var(--dur-mid) var(--ease-out);
  pointer-events: none;
}

.header-context-pill.pill-visible { opacity: 1; }

/* --- Main ------------------------------------------------- */
.demo-main { flex: 1; position: relative; }

/* --- Footer ----------------------------------------------- */
.demo-footer {
  padding: 20px 48px;
  border-top: 1px solid var(--border-subtle);
}

.demo-footer p {
  font-size: 11px;
  color: var(--text-readable);
  line-height: 1.65;
  letter-spacing: 0.01em;
  max-width: 900px;
}

/* ============================================================
   SCREEN ISOLATION
   Inactive screens are removed from layout, hidden from AT,
   and made inert so no keyboard-focusable content is reachable.
   ============================================================ */
.screen {
  /* Hidden by default -- no layout contribution */
  display: none;
  min-height: 100vh;
  flex-direction: column;
  opacity: 0;
  transition: opacity var(--dur-mid) var(--ease-out);
}

/* Step 1: entering -- restore to layout, still transparent */
.screen.screen-entering {
  display: flex;
  opacity: 0;
}

/* Step 2: active -- fully visible and interactive */
.screen.screen-active {
  display: flex;
  opacity: 1;
}

/* ============================================================
   SCREEN 01
   ============================================================ */
#screen-01 {
  align-items: center;
  justify-content: center;
  padding: 120px 48px 80px;
  position: relative;
  overflow: hidden;
}

/* Background layer words -- foreshadowing, decorative only */
.s01-bg-layers {
  position: absolute;
  inset: 0;
  pointer-events: none;
  user-select: none;
  overflow: hidden;
}

.s01-bg-word {
  position: absolute;
  font-size: clamp(52px, 8vw, 108px);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--text-faint);
  line-height: 1;
  white-space: nowrap;
}

.s01-bg-word:nth-child(1) { top: 8%;  left: -1%;  }
.s01-bg-word:nth-child(2) { top: 26%; right: -1%; }
.s01-bg-word:nth-child(3) { top: 46%; left: 2%;   }
.s01-bg-word:nth-child(4) { top: 64%; right: 2%;  }
.s01-bg-word:nth-child(5) { top: 80%; left: -1%;  }

.s01-glow {
  position: absolute;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(61, 123, 255, 0.06) 0%, transparent 65%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.s01-content {
  position: relative;
  z-index: 1;
  max-width: 660px;
  width: 100%;
  text-align: center;
}

.s01-eyebrow {
  font-size: 11px;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 30px;
}

.s01-title {
  font-size: clamp(30px, 5vw, 50px);
  font-weight: var(--fw-semibold);
  letter-spacing: -0.02em;
  color: var(--text-primary);
  line-height: 1.08;
  margin-bottom: 18px;
}

.s01-supporting {
  font-size: 15px;
  font-weight: var(--fw-light);
  color: var(--text-secondary);
  line-height: 1.65;
  letter-spacing: 0.01em;
  margin-bottom: 44px;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

.s01-rule {
  width: 36px;
  height: 1px;
  background: var(--border-active);
  margin: 0 auto 38px;
}

.s01-intro {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.72;
  margin-bottom: 10px;
  text-align: left;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

.s01-intro-b {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.72;
  margin-bottom: 36px;
  text-align: left;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

.s01-qualification {
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.65;
  letter-spacing: 0.01em;
  margin-bottom: 52px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.s01-cta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  background: var(--blue-accent);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease-out),
              opacity var(--dur-fast) var(--ease-out);
}
.btn-primary:hover  { background-color: var(--blue-mid); }
.btn-primary:active { opacity: 0.85; }
.btn-primary:focus-visible {
  outline: 2px solid var(--blue-mid);
  outline-offset: 3px;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 28px;
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid var(--border-subtle);
  border-radius: 2px;
  cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out);
}
.btn-secondary:hover {
  border-color: var(--border-active);
  color: var(--text-primary);
}
.btn-secondary:focus-visible {
  outline: 2px solid var(--blue-mid);
  outline-offset: 3px;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid var(--border-subtle);
  border-radius: 2px;
  cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out);
}
.btn-ghost:hover {
  border-color: var(--border-active);
  color: var(--text-secondary);
}
.btn-ghost:focus-visible {
  outline: 2px solid var(--blue-mid);
  outline-offset: 3px;
}

/* ============================================================
   PHASE 1 PLACEHOLDER (VIEW THE FIVE-LAYER CORE)
   ============================================================ */
#screen-phase1-placeholder {
  align-items: center;
  justify-content: center;
  padding: 120px 48px 80px;
}

.placeholder-inner {
  max-width: 460px;
  width: 100%;
  text-align: center;
}

.placeholder-label {
  font-size: 10px;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.placeholder-message {
  font-size: 20px;
  font-weight: var(--fw-semibold);
  color: var(--text-secondary);
  letter-spacing: -0.01em;
  margin-bottom: 36px;
  line-height: 1.4;
}

/* ============================================================
   SCREEN 02
   ============================================================ */
#screen-02 {
  padding: 120px 48px 80px;
}

.s02-inner {
  max-width: 960px;
  width: 100%;
  margin: 0 auto;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.s02-eyebrow {
  font-size: 11px;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue-accent);
  margin-bottom: 20px;
}

.s02-headline {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: var(--fw-semibold);
  letter-spacing: -0.015em;
  color: var(--text-primary);
  margin-bottom: 18px;
  line-height: 1.18;
}

.s02-supporting {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.70;
  margin-bottom: 8px;
  max-width: 600px;
}

.s02-instruction {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.70;
  margin-bottom: 48px;
  max-width: 600px;
}

/* Card grid */
.s02-grid-row1 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 14px;
}

.s02-grid-row2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  max-width: calc((100% / 3) * 2 + 14px);
  margin-bottom: 44px;
}

/* Context card -- button semantics, aria-pressed selection */
.context-card {
  background: var(--surface-card);
  border: 1px solid var(--border-card);
  border-radius: 3px;
  padding: 22px 20px 20px;
  cursor: pointer;
  text-align: left;
  position: relative;
  transition: background-color var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out),
              opacity var(--dur-mid) var(--ease-out),
              transform var(--dur-mid) var(--ease-out);
}

/* Staggered entrance -- applied by JS */
.context-card.card-pre-enter {
  opacity: 0;
  transform: translateY(10px);
}

.context-card.card-entered {
  opacity: 1;
  transform: translateY(0);
}

.context-card:hover {
  background: var(--surface-card-hover);
  border-color: rgba(61, 123, 255, 0.35);
}

.context-card:focus-visible {
  outline: 2px solid var(--blue-mid);
  outline-offset: 2px;
}

.context-card[aria-pressed="true"] {
  background: var(--surface-card-active);
  border-color: var(--border-active);
}

.context-card.card-unselected {
  opacity: 0.45;
}

.card-active-bar {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--blue-accent);
  border-radius: 3px 3px 0 0;
  opacity: 0;
  transition: opacity var(--dur-fast) var(--ease-out);
}

.context-card[aria-pressed="true"] .card-active-bar { opacity: 1; }

.card-num {
  font-size: 10px;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.18em;
  color: rgba(200, 214, 235, 0.68);
  margin-bottom: 10px;
  transition: color var(--dur-fast) var(--ease-out);
}

.context-card[aria-pressed="true"] .card-num { color: var(--blue-mid); }

.card-title {
  font-size: 15px;
  font-weight: var(--fw-semibold);
  letter-spacing: -0.01em;
  color: rgba(232, 237, 245, 0.82);
  margin-bottom: 10px;
  line-height: 1.3;
  transition: color var(--dur-fast) var(--ease-out);
}

.context-card:hover .card-title,
.context-card[aria-pressed="true"] .card-title { color: var(--text-primary); }

.card-desc {
  font-size: 12.5px;
  color: rgba(220, 228, 242, 0.72);
  line-height: 1.65;
  margin-bottom: 12px;
}

.card-phrase {
  font-size: 11px;
  font-weight: var(--fw-medium);
  letter-spacing: 0.04em;
  color: rgba(200, 214, 235, 0.62);
  transition: color var(--dur-fast) var(--ease-out);
}

.context-card[aria-pressed="true"] .card-phrase { color: var(--blue-mid); }

/* Bridge statement */
.s02-bridge {
  min-height: 60px;
  margin-bottom: 30px;
}

.bridge-statement {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.68;
  padding: 16px 20px;
  border-left: 2px solid var(--border-bridge);
  background: rgba(61, 123, 255, 0.07);
  border-radius: 0 2px 2px 0;
  /* Hidden until .bridge-visible is applied by JS */
  visibility: hidden;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity var(--dur-mid) var(--ease-out),
              transform var(--dur-mid) var(--ease-out),
              visibility 0s var(--dur-mid);
}

.bridge-statement.bridge-visible {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
  transition: opacity var(--dur-mid) var(--ease-out),
              transform var(--dur-mid) var(--ease-out),
              visibility 0s 0s;
}

.s02-cta-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Continue button -- hidden until context is selected */
.btn-continue {
  visibility: hidden;
  opacity: 0;
  transition: opacity var(--dur-mid) var(--ease-out),
              visibility 0s var(--dur-mid);
}

.btn-continue.cta-visible {
  visibility: visible;
  opacity: 1;
  transition: opacity var(--dur-mid) var(--ease-out),
              visibility 0s 0s;
}

/* ============================================================
   PHASE 1 COMPLETION STATE
   ============================================================ */
#screen-phase1-complete {
  align-items: center;
  justify-content: center;
  padding: 120px 48px 80px;
}

.complete-inner {
  max-width: 500px;
  width: 100%;
  text-align: center;
}

.complete-label {
  font-size: 10px;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.complete-context-confirm {
  font-size: 13px;
  font-weight: var(--fw-medium);
  letter-spacing: 0.04em;
  color: var(--blue-mid);
  margin-bottom: 16px;
}

.complete-message {
  font-size: 21px;
  font-weight: var(--fw-semibold);
  color: var(--text-secondary);
  letter-spacing: -0.01em;
  margin-bottom: 38px;
  line-height: 1.4;
}

.complete-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .demo-header { padding: 16px 24px; }
  .demo-footer { padding: 16px 24px; }

  #screen-01 { padding: 96px 24px 72px; }
  .s01-bg-word { font-size: 38px; }
  .s01-cta-row { flex-direction: column; align-items: stretch; }
  .btn-primary, .btn-secondary { width: 100%; }

  #screen-02 { padding: 96px 24px 72px; }
  .s02-grid-row1 { grid-template-columns: 1fr; }
  .s02-grid-row2 { grid-template-columns: 1fr; max-width: 100%; }
  .s02-cta-row { flex-direction: column; align-items: stretch; }
  .btn-continue { width: 100%; }

  #screen-phase1-placeholder,
  #screen-phase1-complete { padding: 96px 24px 72px; }
  .complete-controls { flex-direction: column; align-items: stretch; }
}

/* ============================================================
   REDUCED MOTION
   Disables decorative animation.
   Does NOT force state-dependent elements visible.
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }

  /* Screens: no fade, just immediate show/hide */
  .screen { transition: none; }

  /* Cards: appear immediately, no slide */
  .context-card.card-pre-enter {
    opacity: 0;
    transform: none;
  }
  .context-card.card-entered {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .context-card.card-unselected { opacity: 0.45; }

  /* Bridge: transition disabled, visibility class still governs show/hide */
  .bridge-statement {
    transform: none;
    transition: none;
  }
  .bridge-statement.bridge-visible {
    transition: none;
  }

  /* Continue button: transition disabled, class still governs show/hide */
  .btn-continue { transition: none; }
  .btn-continue.cta-visible { transition: none; }

  /* Decorative words stay faint */
  .s01-bg-word { opacity: 0.08; }
}

/* ============================================================
   PHASE 2 -- SCREEN 03 AND SCREEN 04
   Extended from Phase 1 visual system. No design changes above.
   ============================================================ */

/* ============================================================
   SCREEN 03 -- FIVE-LAYER CONSTITUTIONAL CORE
   ============================================================ */
#screen-03 {
  padding: 120px 48px 80px;
}

.s03-inner {
  max-width: 860px;
  width: 100%;
  margin: 0 auto;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.s03-eyebrow {
  font-size: 11px;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--blue-accent);
  margin-bottom: 20px;
}

.s03-headline {
  font-size: clamp(22px, 3.8vw, 34px);
  font-weight: var(--fw-semibold);
  letter-spacing: -0.015em;
  color: var(--text-primary);
  margin-bottom: 18px;
  line-height: 1.18;
}

.s03-supporting {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.72;
  margin-bottom: 8px;
  max-width: 640px;
}

.s03-supporting-b {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.72;
  margin-bottom: 36px;
  max-width: 640px;
}

/* Context lens line */
.s03-context-line {
  font-size: 11px;
  font-weight: var(--fw-medium);
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 36px;
  visibility: hidden;
}

/* Layer stack */
.s03-layer-stack {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-bottom: 40px;
}

/* Individual layer band */
.s03-layer-band {
  background: var(--navy-raised);
  border: 1px solid var(--border-subtle);
  border-radius: 3px;
  padding: 20px 24px;
  cursor: default;
  transition: border-color var(--dur-fast) var(--ease-out),
              background-color var(--dur-fast) var(--ease-out);
}

.s03-layer-band:focus-visible {
  outline: 2px solid var(--blue-mid);
  outline-offset: 2px;
}

.s03-layer-band.layer-hover {
  border-color: rgba(61, 123, 255, 0.40);
  background-color: rgba(13, 27, 60, 0.90);
}

/* Gradient depth: layer I darkest, layer V lightest within the navy family */
.s03-layer-stack .s03-layer-band:nth-child(1) { background: rgba(10, 18, 40, 0.95); }
.s03-layer-stack .s03-layer-band:nth-child(2) { background: rgba(12, 20, 48, 0.90); }
.s03-layer-stack .s03-layer-band:nth-child(3) { background: rgba(13, 22, 52, 0.88); }
.s03-layer-stack .s03-layer-band:nth-child(4) { background: rgba(14, 24, 56, 0.85); }
.s03-layer-stack .s03-layer-band:nth-child(5) { background: rgba(16, 27, 60, 0.82); }

.s03-layer-header {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 10px;
}

.s03-layer-num {
  font-size: 10px;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue-accent);
  flex-shrink: 0;
}

.s03-layer-title {
  font-size: 16px;
  font-weight: var(--fw-semibold);
  letter-spacing: -0.01em;
  color: var(--text-primary);
  line-height: 1.2;
}

.s03-layer-interp {
  font-size: 13px;
  color: var(--text-readable);
  line-height: 1.65;
  margin-bottom: 14px;
  max-width: 700px;
}

.s03-domain-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.s03-domain-pill {
  font-size: 11px;
  font-weight: var(--fw-medium);
  color: var(--text-secondary);
  background: rgba(61, 123, 255, 0.07);
  border: 1px solid rgba(61, 123, 255, 0.18);
  border-radius: 2px;
  padding: 3px 10px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

/* Core statement below layers */
.s03-core-statement {
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.72;
  margin-bottom: 12px;
  max-width: 720px;
  padding-top: 8px;
}

.s03-qualification {
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 44px;
  max-width: 640px;
}

.s03-cta-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ============================================================
   SCREEN 04 -- CORE-17 NAMING SURFACE EXPLORER
   ============================================================ */
#screen-04 {
  padding: 120px 48px 80px;
}

.s04-inner {
  max-width: 1040px;
  width: 100%;
  margin: 0 auto;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.s04-eyebrow {
  font-size: 11px;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--blue-accent);
  margin-bottom: 20px;
}

.s04-headline {
  font-size: clamp(22px, 3.8vw, 34px);
  font-weight: var(--fw-semibold);
  letter-spacing: -0.015em;
  color: var(--text-primary);
  margin-bottom: 14px;
  line-height: 1.18;
}

.s04-supporting {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.70;
  margin-bottom: 8px;
  max-width: 620px;
}

.s04-instruction {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.70;
  margin-bottom: 14px;
  max-width: 620px;
}

.s04-context-line {
  font-size: 11px;
  font-weight: var(--fw-medium);
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 36px;
  visibility: hidden;
}

/* Two-region layout */
.s04-explorer {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  flex: 1;
  align-items: start;
}

/* Region A: Architecture Navigation */
.s04-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: sticky;
  top: 90px;
}

.s04-nav-group {
  border: 1px solid var(--border-card);
  border-radius: 3px;
  overflow: hidden;
  transition: border-color var(--dur-fast) var(--ease-out);
}

.s04-nav-group.nav-group-active {
  border-color: rgba(61, 123, 255, 0.35);
}

.s04-nav-layer-label {
  font-size: 10.5px;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 9px 12px 7px;
  background: var(--navy-raised);
  border-bottom: 1px solid var(--border-card);
  line-height: 1.4;
}

.s04-nav-group.nav-group-active .s04-nav-layer-label {
  color: var(--blue-mid);
  background: rgba(61, 123, 255, 0.08);
}

.s04-domain-btn {
  display: block;
  width: 100%;
  text-align: left;
  padding: 7px 12px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: var(--fw-medium);
  color: var(--text-secondary);
  background: var(--navy-surface);
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  cursor: pointer;
  letter-spacing: 0.01em;
  transition: background-color var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out);
}

.s04-domain-btn:last-child { border-bottom: none; }

.s04-domain-btn:hover {
  background: rgba(61, 123, 255, 0.10);
  color: var(--text-primary);
}

.s04-domain-btn:focus-visible {
  outline: 2px solid var(--blue-mid);
  outline-offset: -2px;
}

.s04-domain-btn.domain-btn-selected,
.s04-domain-btn[aria-pressed="true"] {
  background: rgba(61, 123, 255, 0.16);
  color: var(--text-primary);
  font-weight: var(--fw-semibold);
}

/* Region B: Detail Panel */
.s04-detail {
  background: var(--navy-raised);
  border: 1px solid var(--border-subtle);
  border-radius: 3px;
  padding: 28px 28px 32px;
  min-height: 320px;
}

/* Default overview state */
.s04-detail-overview {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

.s04-overview-metric {
  font-size: 11px;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue-accent);
}

.s04-overview-stats {
  display: flex;
  gap: 32px;
}

.s04-overview-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.s04-stat-num {
  font-size: 32px;
  font-weight: var(--fw-semibold);
  letter-spacing: -0.02em;
  color: var(--text-primary);
  line-height: 1;
}

.s04-stat-label {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: var(--fw-medium);
}

.s04-overview-instruction {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.70;
  max-width: 440px;
}

/* Domain detail record */
.s04-detail-record {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.s04-detail-domain {
  font-size: 22px;
  font-weight: var(--fw-semibold);
  letter-spacing: -0.01em;
  color: var(--text-primary);
  line-height: 1.1;
}

.s04-detail-layer-tag {
  font-size: 10px;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue-accent);
  padding: 4px 0;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 16px;
}

.s04-detail-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.s04-detail-field-label {
  font-size: 10.5px;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.s04-detail-field-value {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.70;
}

/* S04 controls */
.s04-cta-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 36px;
}

/* ============================================================
   PHASE 2 RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  #screen-03 { padding: 96px 24px 72px; }
  .s03-cta-row { flex-direction: column; align-items: stretch; }

  #screen-04 { padding: 96px 24px 72px; }
  .s04-explorer {
    grid-template-columns: 1fr;
  }
  .s04-nav { position: static; }
  .s04-detail { min-height: 240px; }
  .s04-overview-stats { flex-wrap: wrap; gap: 20px; }
  .s04-cta-row { flex-direction: column; align-items: stretch; }
}

/* ============================================================
   PHASE 2 REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .s03-layer-band { transition: none; }
  .s04-domain-btn { transition: none; }
  .s04-nav-group { transition: none; }
}

/* ============================================================
   GATE 2 ADDITIONS -- Concept-first detail panel
   ============================================================ */

/* CONCEPT displayed prominently above domain name */
.s04-detail-concept {
  font-size: 11px;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--blue-accent);
  margin-bottom: 6px;
}

/* Domain displayed beneath concept, smaller than before */
.s04-detail-domain {
  font-size: 18px;
  font-weight: var(--fw-semibold);
  letter-spacing: -0.01em;
  color: var(--text-primary);
  line-height: 1.1;
}

/* Canonical relationships -- styled as a connected chain */
.s04-relationships {
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}

/* Scope boundary -- restrained, muted */
.s04-scope {
  font-size: 12.5px;
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.62;
}

/* ============================================================
   PHASE 3 -- SCREENS 05 AND 06
   ============================================================ */

/* ============================================================
   SCREEN 05 -- INSTITUTIONAL REQUIREMENT EXPLORER
   ============================================================ */
#screen-05 {
  padding: 120px 48px 80px;
  min-height: 100vh;
}

.s05-inner {
  max-width: 1040px;
  width: 100%;
  margin: 0 auto;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.s05-eyebrow {
  font-size: 11px;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--blue-accent);
  margin-bottom: 20px;
}

.s05-headline {
  font-size: clamp(22px, 3.8vw, 34px);
  font-weight: var(--fw-semibold);
  letter-spacing: -0.015em;
  color: var(--text-primary);
  margin-bottom: 14px;
  line-height: 1.18;
}

.s05-supporting {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.70;
  margin-bottom: 10px;
  max-width: 640px;
}

.s05-qualification {
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.62;
  margin-bottom: 14px;
  max-width: 600px;
}

.s05-context-line {
  font-size: 11px;
  font-weight: var(--fw-medium);
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 36px;
  visibility: hidden;
}

/* Two-column explorer layout */
.s05-explorer {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 24px;
  flex: 1;
  align-items: start;
}

/* Left: scenario list */
.s05-scenario-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: sticky;
  top: 90px;
}

.s05-scenario-card {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  padding: 14px 16px;
  background: var(--surface-card);
  border: 1px solid var(--border-card);
  border-radius: 3px;
  cursor: pointer;
  font-family: var(--font-body);
  transition: background-color var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out);
}

.s05-scenario-card:hover {
  background: var(--surface-card-hover);
  border-color: rgba(61, 123, 255, 0.30);
}

.s05-scenario-card:focus-visible {
  outline: 2px solid var(--blue-mid);
  outline-offset: 2px;
}

.s05-scenario-card.s05-card-selected {
  background: var(--surface-card-active);
  border-color: var(--border-active);
}

.s05-card-num {
  font-size: 10px;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.16em;
  color: var(--text-muted);
  flex-shrink: 0;
  min-width: 20px;
}

.s05-scenario-card.s05-card-selected .s05-card-num { color: var(--blue-mid); }

.s05-card-title {
  font-size: 13px;
  font-weight: var(--fw-medium);
  color: var(--text-secondary);
  line-height: 1.35;
  flex: 1;
  transition: color var(--dur-fast) var(--ease-out);
}

.s05-scenario-card:hover .s05-card-title,
.s05-scenario-card.s05-card-selected .s05-card-title { color: var(--text-primary); }

.s05-card-arrow {
  font-size: 16px;
  color: var(--text-faint);
  transition: color var(--dur-fast) var(--ease-out);
}

.s05-scenario-card.s05-card-selected .s05-card-arrow { color: var(--blue-accent); }

/* Right: mapping panel */
.s05-mapping-panel {
  background: var(--navy-raised);
  border: 1px solid var(--border-subtle);
  border-radius: 3px;
  padding: 0;
  min-height: 400px;
}

.s05-empty-state {
  padding: 48px 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.s05-empty-text {
  font-size: 14px;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.65;
}

.s05-panel-header {
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.s05-panel-label {
  font-size: 10.5px;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue-accent);
}

.s05-panel-title {
  font-size: 16px;
  font-weight: var(--fw-semibold);
  color: var(--text-primary);
  line-height: 1.3;
}

/* Compact core map */
.s05-core-map {
  padding: 16px 24px 10px;
  border-bottom: 1px solid rgba(61, 123, 255, 0.08);
}

.s05-core-layer {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 8px;
}

.s05-core-layer-label {
  font-size: 10.5px;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  min-width: 44px;
  padding-top: 3px;
  flex-shrink: 0;
}

.s05-core-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.s05-core-pill {
  font-size: 10.5px;
  font-weight: var(--fw-medium);
  padding: 2px 8px;
  border-radius: 2px;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: none;
}

.s05-core-pill.pill-primary {
  background: rgba(61, 123, 255, 0.28);
  border-color: rgba(61, 123, 255, 0.65);
  color: var(--text-primary);
  font-weight: var(--fw-semibold);
}

.s05-core-pill.pill-supporting {
  background: rgba(61, 123, 255, 0.05);
  border-color: rgba(61, 123, 255, 0.20);
  color: rgba(200, 214, 235, 0.72);
  font-weight: var(--fw-regular);
}

.s05-core-pill.pill-faint {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.03);
  color: rgba(200, 214, 235, 0.14);
}

/* Legend */
.s05-legend {
  display: flex;
  gap: 16px;
  padding: 8px 24px 12px;
  border-bottom: 1px solid rgba(61, 123, 255, 0.08);
}

.s05-legend-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  color: var(--text-muted);
}

.s05-legend-swatch {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 2px;
  border: 1px solid transparent;
}

.s05-legend-swatch.pill-primary   { background: rgba(61, 123, 255, 0.28); border-color: rgba(61, 123, 255, 0.65); }
.s05-legend-swatch.pill-supporting{ background: rgba(61, 123, 255, 0.05); border-color: rgba(61, 123, 255, 0.20); }
.s05-legend-swatch.pill-faint     { background: transparent; border-color: rgba(255,255,255,0.08); }

/* Concept sections */
.s05-section {
  padding: 14px 24px 0;
  border-bottom: 1px solid rgba(61, 123, 255, 0.06);
}

.s05-section:last-child { border-bottom: none; padding-bottom: 20px; }

.s05-section-label {
  font-size: 10.5px;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.s05-concept-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 12px;
}

.s05-concept-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 6px 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 2px;
}

.s05-concept-name {
  font-size: 12px;
  font-weight: var(--fw-semibold);
  color: var(--text-primary);
}

.s05-concept-domain {
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.01em;
}

/* Extended BIIS */
.s05-extended-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.s05-extended-pill {
  font-size: 11px;
  font-weight: var(--fw-medium);
  padding: 3px 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px dashed rgba(200, 214, 235, 0.18);
  border-radius: 2px;
  color: var(--text-muted);
  white-space: nowrap;
}

/* Interpretation */
.s05-interp-a {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.68;
  margin-bottom: 10px;
}

.s05-interp-b {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.68;
  margin-bottom: 10px;
}

.s05-panel-qual {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.60;
  padding: 12px 24px 20px;
  font-style: italic;
}

/* S05 CTAs */
.s05-cta-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.btn-s05-view {
  visibility: hidden;
  opacity: 0;
  transition: opacity var(--dur-mid) var(--ease-out),
              visibility 0s var(--dur-mid);
}

.btn-s05-view.cta-visible {
  visibility: visible;
  opacity: 1;
  transition: opacity var(--dur-mid) var(--ease-out),
              visibility 0s 0s;
}

/* ============================================================
   SCREEN 06 -- INSTITUTIONAL COORDINATION
   ============================================================ */
#screen-06 {
  padding: 120px 48px 80px;
}

.s06-inner {
  max-width: 1040px;
  width: 100%;
  margin: 0 auto;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.s06-eyebrow {
  font-size: 11px;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--blue-accent);
  margin-bottom: 20px;
}

.s06-headline {
  font-size: clamp(20px, 3.4vw, 30px);
  font-weight: var(--fw-semibold);
  letter-spacing: -0.015em;
  color: var(--text-primary);
  margin-bottom: 14px;
  line-height: 1.22;
}

.s06-supporting {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.70;
  margin-bottom: 20px;
  max-width: 680px;
}

.s06-req-context {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 36px;
}

.s06-req-display-row {
  font-size: 12.5px;
  color: var(--text-secondary);
}

.s06-req-display-row span { font-weight: var(--fw-semibold); color: var(--text-primary); }

.s06-context-line {
  font-size: 11px;
  font-weight: var(--fw-medium);
  letter-spacing: 0.08em;
  color: var(--text-muted);
  visibility: hidden;
}

/* BitcoinCoordination.com reveal */
.s06-coord-reveal {
  background: var(--navy-raised);
  border: 1px solid var(--border-subtle);
  border-radius: 3px;
  padding: 24px 28px;
  margin-bottom: 32px;
}

.s06-coord-eyebrow {
  font-size: 10.5px;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.s06-coord-brand {
  font-size: 22px;
  font-weight: var(--fw-semibold);
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.s06-coord-anchor-label {
  font-size: 10.5px;
  font-weight: var(--fw-medium);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-accent);
  margin-bottom: 18px;
}

.s06-coord-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.70;
  margin-bottom: 10px;
  max-width: 640px;
}

.s06-coord-doctrine {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 580px;
}

.s06-coord-stable {
  font-size: 12px;
  color: rgba(200, 214, 235, 0.38);
  line-height: 1.60;
  margin-top: 12px;
  font-style: italic;
}

/* Visualization container */
.s06-viz-section {
  position: relative;
  margin-bottom: 28px;
}

.s06-viz-svg {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 3px;
  overflow: visible;
}

/* SVG styles */
.s06-layer-bg {
  fill: rgba(12, 20, 48, 0.60);
  rx: 0;
}

.s06-layer-roman {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 9px;
  font-weight: 600;
  fill: rgba(200, 214, 235, 0.15);
  letter-spacing: 0.06em;
}

/* Relationship lines */
.s06-rel-hit {
  stroke: transparent;
  stroke-width: 18;
  fill: none;
  cursor: pointer;
}

.s06-rel-line {
  stroke: rgba(61, 123, 255, 0.22);
  stroke-width: 1.2;
  fill: none;
  stroke-linecap: round;
  transition: stroke-opacity var(--dur-fast) var(--ease-out),
              stroke var(--dur-fast) var(--ease-out);
}

.s06-rel-line.rel-strong {
  stroke: rgba(61, 123, 255, 0.42);
  stroke-width: 1.6;
}

.s06-rel-group:hover .s06-rel-line,
.s06-rel-group:focus .s06-rel-line,
.s06-rel-group:focus-visible .s06-rel-line {
  stroke: rgba(111, 160, 255, 0.70);
  stroke-width: 2;
}

.s06-rel-group:focus-visible {
  outline: none;
}

.s06-rel-group.rel-dimmed .s06-rel-line {
  stroke: rgba(61, 123, 255, 0.06);
}

/* External relationship line */
.s06-ext-line {
  stroke: rgba(200, 214, 235, 0.18);
  stroke-width: 1;
  fill: none;
  stroke-linecap: round;
}

.s06-ext-label {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 9px;
  font-weight: 600;
  fill: rgba(200, 214, 235, 0.30);
  letter-spacing: 0.08em;
}

/* SVG Nodes */
.s06-node rect {
  fill: rgba(16, 27, 51, 0.80);
  stroke: rgba(61, 123, 255, 0.14);
  stroke-width: 1;
  transition: fill 200ms, stroke 200ms;
}

.s06-node-primary rect {
  fill: rgba(61, 123, 255, 0.16);
  stroke: rgba(61, 123, 255, 0.45);
}

.s06-node-supporting rect {
  fill: rgba(61, 123, 255, 0.07);
  stroke: rgba(61, 123, 255, 0.22);
}

.s06-node-faint rect {
  fill: rgba(12, 18, 38, 0.60);
  stroke: rgba(255, 255, 255, 0.04);
}

.s06-node:hover rect,
.s06-node:focus rect,
.s06-node.node-focused rect {
  stroke: rgba(111, 160, 255, 0.65);
  stroke-width: 1.5;
}

.s06-node:focus-visible {
  outline: none;
}

.s06-node:focus-visible rect {
  stroke: rgba(111, 160, 255, 0.80);
  stroke-width: 2;
}

.s06-node-concept {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  fill: rgba(200, 214, 235, 0.50);
}

.s06-node-primary .s06-node-concept { fill: rgba(232, 237, 245, 0.90); }
.s06-node-supporting .s06-node-concept { fill: rgba(220, 228, 242, 0.68); }

.s06-node-domain {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 8px;
  font-weight: 400;
  fill: rgba(200, 214, 235, 0.28);
}

.s06-node-primary .s06-node-domain { fill: rgba(200, 214, 235, 0.48); }
.s06-node-supporting .s06-node-domain { fill: rgba(200, 214, 235, 0.35); }

/* Tooltip */
.s06-tooltip {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 440px;
  width: 90vw;
  background: var(--navy-ui);
  border: 1px solid var(--border-subtle);
  border-radius: 3px;
  padding: 10px 16px;
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.60;
  z-index: 200;
  visibility: hidden;
  opacity: 0;
  transition: opacity var(--dur-fast) var(--ease-out),
              visibility 0s var(--dur-fast);
  pointer-events: none;
}

.s06-tooltip.tooltip-visible {
  visibility: visible;
  opacity: 1;
  transition: opacity var(--dur-fast) var(--ease-out),
              visibility 0s 0s;
}

/* Mobile relationship list */
.s06-mobile-rels {
  display: none;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 28px;
}

.s06-mobile-rel {
  padding: 12px 16px;
  background: var(--surface-card);
  border: 1px solid var(--border-card);
  border-radius: 3px;
}

.s06-mobile-pair {
  font-size: 13px;
  font-weight: var(--fw-semibold);
  color: var(--text-primary);
  margin-bottom: 5px;
}

.s06-mobile-tooltip {
  font-size: 12px;
  color: var(--text-readable);
  line-height: 1.60;
}

/* Mapping summary */
.s06-summary-panel {
  display: none;
  background: var(--navy-raised);
  border: 1px solid var(--border-subtle);
  border-radius: 3px;
  padding: 0;
  margin-bottom: 20px;
}

.s06-summary-panel.summary-visible { display: block; }

.s06-summary-content {
  padding: 20px 24px;
}

.s06-sum-row {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(61, 123, 255, 0.06);
}

.s06-sum-row:last-of-type { border-bottom: none; }

.s06-sum-label {
  font-size: 10.5px;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.s06-sum-val {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.65;
}

.s06-sum-qual {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.62;
  font-style: italic;
  padding-top: 8px;
}

.s06-summary-controls {
  display: flex;
  gap: 12px;
  padding: 0 24px 20px;
}

/* S06 CTA row */
.s06-cta-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 28px;
}

/* ============================================================
   PHASE 3 RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  #screen-05 { padding: 96px 24px 72px; }
  .s05-explorer { grid-template-columns: 1fr; }
  .s05-scenario-list { position: static; }
  .s05-concept-grid { grid-template-columns: repeat(2, 1fr); }
  .s05-cta-row { flex-direction: column; align-items: stretch; }

  #screen-06 { padding: 96px 24px 72px; }
  .s06-viz-section { display: none; }
  .s06-mobile-rels { display: flex; }
  .s06-cta-row { flex-direction: column; align-items: stretch; }
  .s06-summary-controls { flex-direction: column; align-items: stretch; }
  .s06-tooltip { bottom: 16px; }
}

/* ============================================================
   PHASE 3 REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .s05-scenario-card { transition: none; }
  .s06-rel-line { transition: none; }
  .s06-tooltip { transition: none; }
  .btn-s05-view { transition: none; }
  .s06-summary-panel { display: none; }
  .s06-summary-panel.summary-visible { display: block; }
}

/* ============================================================
   GATE 3 CORRECTIONS
   ============================================================ */

/* Correction 2: scenario descriptor in S05 mapping panel */
.s05-panel-descriptor {
  font-size: 13px;
  font-weight: var(--fw-regular);
  color: var(--text-muted);
  line-height: 1.65;
  margin-top: 10px;
}

/* Correction 3: mobile concept summary in S06 */
.s06-mobile-concepts {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px 18px;
  background: var(--navy-raised);
  border: 1px solid var(--border-subtle);
  border-radius: 3px;
  margin-bottom: 16px;
}

.s06-mobile-concept-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.s06-mobile-concept-label {
  font-size: 10.5px;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.s06-mobile-concept-list {
  font-size: 13.5px;
  font-weight: var(--fw-semibold);
  color: var(--text-primary);
  line-height: 1.60;
}

.s06-mobile-concept-list.s06-mobile-supporting {
  font-weight: var(--fw-regular);
  color: var(--text-secondary);
}

.s06-mobile-rels-label {
  font-size: 10.5px;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

/* ============================================================
   PHASE 4 -- SCREENS 07 AND 08
   ============================================================ */

/* ============================================================
   SCREEN 07 -- EMERGING INSTITUTIONAL TECHNOLOGIES
   ============================================================ */
#screen-07 { padding: 120px 48px 80px; }

.s07-inner {
  max-width: 1040px;
  width: 100%;
  margin: 0 auto;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.s07-eyebrow {
  font-size: 11px;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--blue-accent);
  margin-bottom: 20px;
}

.s07-headline {
  font-size: clamp(20px, 3.4vw, 30px);
  font-weight: var(--fw-semibold);
  letter-spacing: -0.015em;
  color: var(--text-primary);
  margin-bottom: 18px;
  line-height: 1.22;
}

.s07-supporting-a,
.s07-supporting-b {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.70;
  margin-bottom: 8px;
  max-width: 720px;
}

.s07-supporting-b { margin-bottom: 20px; }

.s07-context-line {
  font-size: 11px;
  font-weight: var(--fw-medium);
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 20px;
  visibility: hidden;
}

/* Technology-neutrality block */
.s07-neutrality-block {
  background: var(--navy-raised);
  border-left: 2px solid var(--border-active);
  border-radius: 0 3px 3px 0;
  padding: 20px 24px;
  margin-bottom: 36px;
  max-width: 720px;
}

.s07-neutrality-primary {
  font-size: 15px;
  font-weight: var(--fw-semibold);
  color: var(--text-primary);
  margin-bottom: 10px;
  line-height: 1.45;
}

.s07-neutrality-secondary {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.68;
  margin-bottom: 10px;
}

.s07-neutrality-qual {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.65;
  font-style: italic;
}

/* Two-column explorer */
.s07-explorer {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 24px;
  flex: 1;
  align-items: start;
  margin-bottom: 36px;
}

.s07-tech-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: sticky;
  top: 90px;
}

.s07-tech-card {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  padding: 14px 16px;
  background: var(--surface-card);
  border: 1px solid var(--border-card);
  border-radius: 3px;
  cursor: pointer;
  font-family: var(--font-body);
  transition: background-color var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out);
}

.s07-tech-card:hover {
  background: var(--surface-card-hover);
  border-color: rgba(61, 123, 255, 0.30);
}

.s07-tech-card:focus-visible { outline: 2px solid var(--blue-mid); outline-offset: 2px; }

.s07-tech-card.s07-card-selected {
  background: var(--surface-card-active);
  border-color: var(--border-active);
}

.s07-card-num {
  font-size: 10px;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.16em;
  color: var(--text-muted);
  flex-shrink: 0;
  min-width: 20px;
}

.s07-tech-card.s07-card-selected .s07-card-num { color: var(--blue-mid); }

.s07-card-title {
  font-size: 13px;
  font-weight: var(--fw-medium);
  color: var(--text-secondary);
  line-height: 1.35;
  flex: 1;
  transition: color var(--dur-fast) var(--ease-out);
}

.s07-tech-card:hover .s07-card-title,
.s07-tech-card.s07-card-selected .s07-card-title { color: var(--text-primary); }

.s07-card-arrow {
  font-size: 16px;
  color: var(--text-faint);
  transition: color var(--dur-fast) var(--ease-out);
}

.s07-tech-card.s07-card-selected .s07-card-arrow { color: var(--blue-accent); }

/* Mapping panel */
.s07-tech-panel {
  background: var(--navy-raised);
  border: 1px solid var(--border-subtle);
  border-radius: 3px;
  min-height: 380px;
}

.s07-empty-state {
  padding: 48px 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.s07-empty-text {
  font-size: 14px;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.65;
}

.s07-panel-header {
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.s07-panel-label {
  font-size: 10.5px;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue-accent);
}

.s07-panel-title {
  font-size: 16px;
  font-weight: var(--fw-semibold);
  color: var(--text-primary);
  line-height: 1.3;
}

.s07-panel-descriptor {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-top: 4px;
}

/* Core concept mini-map */
.s07-core-map {
  padding: 14px 24px 8px;
  border-bottom: 1px solid rgba(61, 123, 255, 0.06);
}

.s07-core-layer {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 7px;
}

.s07-core-layer-label {
  font-size: 10.5px;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  min-width: 44px;
  padding-top: 2px;
  flex-shrink: 0;
}

.s07-core-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.s07-core-pill {
  font-size: 10.5px;
  font-weight: var(--fw-medium);
  padding: 2px 8px;
  border-radius: 2px;
  border: 1px solid transparent;
  white-space: nowrap;
}

.s07-core-pill.pill-mapped {
  background: rgba(61, 123, 255, 0.18);
  border-color: rgba(61, 123, 255, 0.45);
  color: var(--text-primary);
}

.s07-core-pill.pill-faint {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.03);
  color: rgba(200, 214, 235, 0.14);
}

/* S07 concept and BIIS sections */
.s07-section {
  padding: 14px 24px 0;
  border-bottom: 1px solid rgba(61, 123, 255, 0.05);
}

.s07-section:last-child { border-bottom: none; padding-bottom: 20px; }

.s07-section-label {
  font-size: 10.5px;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.s07-concept-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 12px;
}

.s07-concept-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 6px 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 2px;
}

.s07-concept-name {
  font-size: 12px;
  font-weight: var(--fw-semibold);
  color: var(--text-primary);
}

.s07-concept-domain {
  font-size: 10px;
  color: var(--text-muted);
}

.s07-biis-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.s07-biis-pill {
  font-size: 11px;
  font-weight: var(--fw-medium);
  padding: 3px 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px dashed rgba(200, 214, 235, 0.16);
  border-radius: 2px;
  color: var(--text-muted);
  white-space: nowrap;
}

.s07-interp-a {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.68;
  margin-bottom: 10px;
}

.s07-interp-b {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.68;
  margin-bottom: 10px;
}

/* Core stability block */
.s07-stability-block {
  max-width: 680px;
  margin-bottom: 36px;
}

.s07-stability-primary {
  font-size: 15px;
  font-weight: var(--fw-semibold);
  color: var(--text-secondary);
  margin-bottom: 10px;
  line-height: 1.45;
}

.s07-stability-secondary {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.68;
}

/* S07 CTA row */
.s07-cta-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ============================================================
   SCREEN 08 -- FULL BIIS ARCHITECTURE
   ============================================================ */
#screen-08 { padding: 120px 48px 80px; }

.s08-inner {
  max-width: 1040px;
  width: 100%;
  margin: 0 auto;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.s08-eyebrow {
  font-size: 11px;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--blue-accent);
  margin-bottom: 20px;
}

.s08-headline {
  font-size: clamp(20px, 3.4vw, 30px);
  font-weight: var(--fw-semibold);
  letter-spacing: -0.015em;
  color: var(--text-primary);
  margin-bottom: 18px;
  line-height: 1.22;
}

.s08-supporting-a,
.s08-supporting-b {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.70;
  margin-bottom: 8px;
  max-width: 720px;
}

.s08-supporting-b { margin-bottom: 32px; }

/* Semantic concentration block */
.s08-concentration-block {
  background: var(--navy-raised);
  border: 1px solid var(--border-subtle);
  border-radius: 3px;
  padding: 22px 26px;
  margin-bottom: 36px;
  max-width: 720px;
}

.s08-concentration-a {
  font-size: 15px;
  font-weight: var(--fw-semibold);
  color: var(--text-primary);
  line-height: 1.50;
  margin-bottom: 12px;
}

.s08-concentration-b {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.68;
  margin-bottom: 12px;
}

.s08-concentration-qual {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.65;
  font-style: italic;
}

/* View toggle */
.s08-view-toggle {
  display: flex;
  gap: 0;
  margin-bottom: 8px;
  width: fit-content;
}

.s08-view-btn {
  padding: 9px 20px;
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.08em;
  cursor: pointer;
  border: 1px solid var(--border-subtle);
  background: transparent;
  color: var(--text-muted);
  transition: background-color var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out);
}

.s08-view-btn:first-child { border-radius: 2px 0 0 2px; }
.s08-view-btn:last-child  { border-radius: 0 2px 2px 0; border-left: none; }

.s08-view-btn:hover { background: var(--surface-card-hover); color: var(--text-secondary); border-color: rgba(61, 123, 255, 0.35); }

.s08-view-btn.s08-view-active {
  background: var(--blue-accent);
  color: var(--text-primary);
  border-color: var(--blue-accent);
}

.s08-view-btn:focus-visible { outline: 2px solid var(--blue-mid); outline-offset: 2px; }

.s08-view-label {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  margin-bottom: 28px;
  line-height: 1.60;
}

/* Layer stack */
.s08-layer-stack {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-bottom: 36px;
}

.s08-layer-band {
  background: var(--navy-raised);
  border: 1px solid var(--border-subtle);
  border-radius: 3px;
  padding: 16px 22px 18px;
}

.s08-layer-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.s08-layer-meta {
  display: flex;
  align-items: baseline;
  gap: 14px;
}

.s08-layer-num {
  font-size: 10px;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue-accent);
  flex-shrink: 0;
}

.s08-layer-title {
  font-size: 14px;
  font-weight: var(--fw-semibold);
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.s08-layer-count {
  font-size: 10.5px;
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

/* Domain pill grid */
.s08-domain-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.s08-domain-pill {
  font-size: 12px;
  font-weight: var(--fw-medium);
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 2px;
  color: var(--text-muted);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
}

.s08-domain-pill.pill-core {
  background: rgba(61, 123, 255, 0.14);
  border-color: rgba(61, 123, 255, 0.38);
  color: var(--text-secondary);
}

.s08-core-marker {
  font-size: 8.5px;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--blue-accent);
  background: rgba(61, 123, 255, 0.14);
  padding: 1px 5px;
  border-radius: 2px;
  border: 1px solid rgba(61, 123, 255, 0.30);
}

/* Supplemental sections */
.s08-supplemental {
  margin-bottom: 24px;
  padding: 18px 22px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 3px;
}

.s08-supp-label {
  font-size: 10.5px;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.s08-supp-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 8px;
}

.s08-supp-pill {
  font-size: 11px;
  padding: 2px 9px;
  background: transparent;
  border: 1px dashed rgba(200, 214, 235, 0.12);
  border-radius: 2px;
  color: rgba(200, 214, 235, 0.32);
  white-space: nowrap;
}

.s08-supp-note {
  font-size: 11px;
  color: rgba(200, 214, 235, 0.25);
  font-style: italic;
  line-height: 1.60;
}

/* Closing block */
.s08-closing-block {
  max-width: 720px;
  margin-bottom: 28px;
  padding-top: 8px;
  border-top: 1px solid var(--border-subtle);
}

.s08-closing-a {
  font-size: 16px;
  font-weight: var(--fw-semibold);
  color: var(--text-primary);
  margin-top: 22px;
  margin-bottom: 12px;
  line-height: 1.40;
}

.s08-closing-b,
.s08-closing-c {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.68;
  margin-bottom: 12px;
}

.s08-closing-d {
  font-size: 13px;
  font-weight: var(--fw-semibold);
  color: var(--text-muted);
  letter-spacing: 0.04em;
  margin-top: 18px;
  margin-bottom: 0;
}

/* S08 qualification */
.s08-qualification-block {
  margin-bottom: 36px;
  max-width: 680px;
}

.s08-qual {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.65;
  font-style: italic;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 3px;
}

/* S08 CTA row */
.s08-cta-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ============================================================
   PHASE 4 RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  #screen-07 { padding: 96px 24px 72px; }
  .s07-explorer { grid-template-columns: 1fr; }
  .s07-tech-list { position: static; }
  .s07-concept-grid { grid-template-columns: repeat(2, 1fr); }
  .s07-cta-row { flex-direction: column; align-items: stretch; }

  #screen-08 { padding: 96px 24px 72px; }
  .s08-domain-grid { gap: 4px; }
  .s08-domain-pill { font-size: 10.5px; padding: 2px 7px; }
  .s08-cta-row { flex-direction: column; align-items: stretch; }
  .s08-view-toggle { width: 100%; }
  .s08-view-btn { flex: 1; }
}

/* ============================================================
   PHASE 4 REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .s07-tech-card { transition: none; }
  .s08-view-btn  { transition: none; }
}

/* ============================================================
   GATE 4 CORRECTIONS
   ============================================================ */

/* Core View: empty BIIS layer bands (VII and VIII in Core View) */
.s08-layer-band.layer-band-empty {
  opacity: 0.55;
}

.s08-empty-layer-note {
  font-size: 11.5px;
  color: rgba(200, 214, 235, 0.28);
  font-style: italic;
  line-height: 1.55;
  padding: 4px 0;
}

/* ============================================================
   GATE 4 ARTIFACT 04 CONFORMITY -- SCREEN 07 THREE-STATE STYLES
   ============================================================ */

/* Three-state Core pill classes for Screen 07 */
.s07-core-pill.pill-primary {
  background: rgba(61, 123, 255, 0.28);
  border-color: rgba(61, 123, 255, 0.65);
  color: var(--text-primary);
  font-weight: var(--fw-semibold);
}

.s07-core-pill.pill-supporting {
  background: rgba(61, 123, 255, 0.05);
  border-color: rgba(61, 123, 255, 0.20);
  color: rgba(200, 214, 235, 0.72);
  font-weight: var(--fw-regular);
}

/* pill-faint already defined above -- retained as-is */

/* Three-state legend (mirrors s05 pattern) */
.s07-legend {
  display: flex;
  gap: 16px;
  padding: 8px 24px 12px;
  border-bottom: 1px solid rgba(61, 123, 255, 0.06);
}

.s07-legend-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  color: var(--text-muted);
}

.s07-legend-swatch {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 2px;
  border: 1px solid transparent;
}

.s07-legend-swatch.pill-primary {
  background: rgba(61, 123, 255, 0.28);
  border-color: rgba(61, 123, 255, 0.65);
}

.s07-legend-swatch.pill-supporting {
  background: rgba(61, 123, 255, 0.05);
  border-color: rgba(61, 123, 255, 0.20);
}

.s07-legend-swatch.pill-faint {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.08);
}

/* Supporting concept items (slightly reduced emphasis vs primary) */
.s07-concept-supporting .s07-concept-name {
  color: rgba(200, 214, 235, 0.72);
  font-weight: var(--fw-regular);
}

.s07-concept-supporting .s07-concept-domain {
  color: rgba(200, 214, 235, 0.30);
}

/* Safeguard microcopy (Tokenized Financial Infrastructure) */
.s07-safeguard {
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.62;
  font-style: italic;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(61, 123, 255, 0.06);
}

/* Durable regulatory-language paragraph */
.s07-supporting-durability {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.70;
  margin-bottom: 20px;
  max-width: 720px;
}

/* ============================================================
   FINAL NAVIGATION + SCREEN 08 CLARITY CORRECTIONS
   ============================================================ */

/* Back button -- all screens 02-08 */
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: var(--fw-medium);
  letter-spacing: 0.04em;
  border: 1px solid rgba(61, 123, 255, 0.20);
  border-radius: 2px;
  cursor: pointer;
  transition: color var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out);
  margin-bottom: 20px;
  align-self: flex-start;
  width: fit-content;
}

.back-btn:hover  { color: var(--text-primary); border-color: rgba(61, 123, 255, 0.40); }
.back-btn:active { opacity: 0.75; }

.back-btn:focus-visible {
  outline: 2px solid var(--blue-mid);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Screen 08 view clarification text */
.s08-view-clarification {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.60;
  margin-bottom: 24px;
  max-width: 680px;
  font-style: italic;
}

/* Ensure Screen 08 final CTA row is always fully visible */
.s08-cta-row {
  overflow: visible;
  padding-bottom: 8px;
}

/* ============================================================
   GLOBAL DISCLOSURE -- ALL EIGHT SCREENS
   ============================================================ */

.screen-disclosure {
  margin-top: 52px;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
  max-width: 720px;
}

.screen-disclosure-label {
  font-size: 9px;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.screen-disclosure-copy {
  font-size: 11.5px;
  color: var(--text-readable);
  line-height: 1.68;
}

/* On Screen 01 (centered layout), allow wider disclosure */
#screen-01 .screen-disclosure {
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

/* Responsive */
@media (max-width: 768px) {
  .screen-disclosure {
    margin-top: 40px;
    padding-top: 18px;
    max-width: 100%;
  }

  .screen-disclosure-copy {
    font-size: 11px;
  }
}

/* end of styles */

/* ============================================================
   PERSISTENT HEADER HOME CONTROL
   ============================================================ */

.header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-divider {
  color: rgba(61, 123, 255, 0.22);
  font-size: 11px;
  user-select: none;
  line-height: 1;
}

.header-home {
  font-family: var(--font-body);
  font-size: 10.5px;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 2px 0;
  transition: color var(--dur-fast) var(--ease-out);
}

.header-home:hover  { color: var(--text-secondary); }
.header-home:active { opacity: 0.75; }

.header-home:focus-visible {
  outline: 2px solid var(--blue-mid);
  outline-offset: 3px;
  border-radius: 2px;
}

@media (max-width: 768px) {
  .header-left { gap: 7px; }
  .header-divider { font-size: 10px; }
  .header-home { font-size: 9.5px; letter-spacing: 0.14em; }
}
