/* docs/architecture/agent-os-tour/styles.css
   ─────────────────────────────────────────────────────────────────
   Color tokens · layout · responsive · motion.
   See spec: docs/superpowers/specs/2026-04-27-agent-os-tour-design.md
*/

:root {
  /* Backgrounds — three depths only */
  --bg-page: #0c1118;
  --bg-card: #0f1520;
  --bg-box: #151b26;

  /* Text */
  --text-hi: #cfd5dd;
  --text-lo: #7a838f;

  /* Layer colors — borders + small badges only, never fills */
  --ui: #7ec8e3;
  --be: #9fd89f;
  --ev: #c896f0;
  --da: #cbb47a;
  --ext: #e8956a;

  /* Accents */
  --accent-gold: #cbb47a;
  --accent-green: #5db075;

  /* Status */
  --status-live: #5db075;
  --status-partial: #cbb47a;
  --status-progress: #cbb47a;
  --status-designed: #7a838f;
  --status-missing: #e8956a;

  /* Lens accents */
  --lens-today: #7a838f;
  --lens-a: #cbb47a;
  --lens-b: #5db075;

  /* Layout */
  --header-h: 56px;
  --sidenav-w: 200px;
  --section-pad-y: 80px;

  /* Motion */
  --ease: cubic-bezier(0.4, 0.0, 0.2, 1);
  --t-fast: 150ms;
  --t-base: 200ms;
  --t-slow: 400ms;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg-page);
  color: var(--text-hi);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  scroll-behavior: smooth;
}

h1, h2, h3, h4 {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.01em;
}

h1 { font-size: 48px; line-height: 1.1; margin: 0 0 16px; }
h2 { font-size: 32px; line-height: 1.15; margin: 0 0 12px; }
h3 { font-size: 20px; line-height: 1.2; margin: 0 0 8px; font-style: normal; }

code, .mono {
  font-family: 'SF Mono', Monaco, Menlo, Consolas, monospace;
  font-size: 0.92em;
}

/* Header */
.tour-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: var(--bg-page);
  border-bottom: 1px solid #1f2735;
  z-index: 100;
}
.tour-header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 24px;
}
.tour-brand { font-family: Georgia, serif; font-style: italic; color: var(--text-hi); font-size: 18px; }
.tour-brand-dot { color: var(--accent-gold); margin-left: 4px; }
.tour-title { color: var(--text-lo); text-transform: uppercase; letter-spacing: 0.1em; font-size: 11px; }
.tour-pills { display: flex; gap: 8px; margin-left: auto; align-items: center; }
.tour-pill {
  padding: 4px 12px;
  border: 1px solid var(--text-lo);
  color: var(--text-lo);
  background: transparent;
  border-radius: 99px;
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--t-fast) var(--ease);
}
.tour-pill:hover { color: var(--text-hi); border-color: var(--text-hi); }
.tour-pill[aria-pressed="true"][data-lens="today"] { background: var(--lens-today); color: var(--bg-page); border-color: var(--lens-today); }
.tour-pill[aria-pressed="true"][data-lens="architectureA"] { background: var(--lens-a); color: var(--bg-page); border-color: var(--lens-a); }
.tour-pill[aria-pressed="true"][data-lens="architectureB"] { background: var(--lens-b); color: var(--bg-page); border-color: var(--lens-b); }
.tour-mode { font-size: 9px; color: var(--text-lo); margin-left: 4px; padding: 2px 6px; border: 1px solid var(--text-lo); border-radius: 3px; }
.tour-mode[data-mode="manual"] { color: var(--accent-gold); border-color: var(--accent-gold); }

/* Side-nav */
.tour-sidenav {
  position: fixed;
  top: var(--header-h);
  left: 0;
  bottom: 0;
  width: var(--sidenav-w);
  padding: 24px 16px;
  border-right: 1px solid #1f2735;
  overflow-y: auto;
}
.tour-sidenav ol {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.tour-sidenav a {
  display: block;
  padding: 6px 8px;
  color: var(--text-lo);
  text-decoration: none;
  border-radius: 4px;
  font-size: 12px;
  transition: color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.tour-sidenav a:hover { color: var(--text-hi); background: var(--bg-card); }
.tour-sidenav a[aria-current="true"] { color: var(--text-hi); font-weight: 600; }
.tour-sidenav a[aria-current="true"]::before { content: "● "; color: var(--accent-gold); }

/* Main */
.tour-main {
  margin-top: var(--header-h);
  margin-left: var(--sidenav-w);
  padding: 0 48px;
}
.tour-section {
  min-height: 100vh;
  padding: var(--section-pad-y) 0;
  border-bottom: 1px solid #1f2735;
  scroll-margin-top: var(--header-h);
}
.tour-section:last-child { border-bottom: none; }
.tour-section-label {
  font-size: 11px;
  color: var(--text-lo);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

/* Responsive — initial breakpoints */
@media (max-width: 1100px) {
  .tour-sidenav { display: none; }
  .tour-main { margin-left: 0; padding: 0 24px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}

/* Section 1 — hero */
.tour-section--hero { padding-top: 120px; }
.tour-section--hero h1 em { color: var(--accent-gold); font-style: italic; }
.tour-lede { font-size: 18px; color: var(--text-hi); max-width: 720px; margin: 0 0 32px; }
.tour-lede strong { color: var(--accent-gold); font-weight: 600; }
.tour-hero-chips { display: flex; gap: 12px; margin-bottom: 64px; }
.tour-hero-chip {
  padding: 10px 18px;
  border: 1px solid #2a3142;
  color: var(--text-hi);
  text-decoration: none;
  border-radius: 6px;
  font-size: 13px;
  transition: all var(--t-fast) var(--ease);
}
.tour-hero-chip:hover { border-color: var(--accent-gold); transform: translateY(-2px); }
.tour-hero-chip[data-lens="architectureB"]:hover { border-color: var(--accent-green); }
.tour-cue { color: var(--text-lo); font-size: 12px; letter-spacing: 0.15em; text-transform: uppercase; }

/* Section 12 — closing */
.tour-contact { color: var(--text-lo); font-size: 12px; }

/* Architecture diagram (sections 2/4/6/11) */
.tour-section--arch h2 em { color: var(--accent-gold); font-style: italic; }

.arch-diagram {
  display: grid;
  grid-template-columns: 1fr 120px 1fr;
  gap: 16px;
  margin: 32px 0;
}

.arch-col {
  background: var(--bg-card);
  border: 1px solid #1f2735;
  border-radius: 8px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.arch-col-title {
  color: var(--accent-gold);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-align: center;
  padding-bottom: 8px;
  border-bottom: 1px solid #1f2735;
  margin-bottom: 4px;
}

.arch-col--mid {
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: 0;
  background: transparent;
  border: none;
}
.arch-bus {
  flex: 1;
  background: #1a0d2a;
  border: 2px solid var(--ev);
  border-radius: 8px;
  color: var(--ev);
  font-size: 11px;
  letter-spacing: 0.15em;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px 8px;
}
.arch-bus span { writing-mode: vertical-rl; transform: rotate(180deg); }

.arch-box {
  background: var(--bg-box);
  border-left: 3px solid var(--text-lo);
  border-radius: 4px;
  padding: 10px 12px;
  transition: all var(--t-fast) var(--ease);
}
.arch-box--ui { border-left-color: var(--ui); }
.arch-box--be { border-left-color: var(--be); }
.arch-box--da { border-left-color: var(--da); }
.arch-box--ev { border-left-color: var(--ev); }
.arch-box--ext { border-left-color: var(--ext); }

.arch-box-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.arch-box-name { font-size: 13px; font-weight: 600; color: var(--text-hi); }
.arch-box-status { font-size: 12px; }
.arch-box-status[data-status="live"] { color: var(--status-live); }
.arch-box-status[data-status="partial"] { color: var(--status-partial); }
.arch-box-status[data-status="in-progress"] { color: var(--status-progress); }
.arch-box-status[data-status="designed"] { color: var(--status-designed); }
.arch-box-status[data-status="missing"] { color: var(--status-missing); }
.arch-box-body { font-size: 11px; color: var(--text-lo); margin-bottom: 4px; }
.arch-box-tech { font-size: 11px; color: var(--accent-gold); }

.arch-star {
  color: var(--accent-gold);
  cursor: help;
  margin-left: 4px;
  font-size: 11px;
  transition: transform var(--t-fast) var(--ease);
}
.arch-star:hover { transform: scale(1.3); }

/* Legend */
.arch-legend {
  display: flex;
  gap: 16px;
  font-size: 11px;
  color: var(--text-lo);
  margin-top: 16px;
  flex-wrap: wrap;
}
.arch-legend-key { display: flex; align-items: center; gap: 6px; }
.arch-legend-swatch { display: inline-block; width: 10px; height: 10px; border-radius: 2px; }
.arch-legend-status { display: flex; gap: 12px; margin-left: auto; }
.arch-legend-status [data-status="live"] { color: var(--status-live); }
.arch-legend-status [data-status="partial"] { color: var(--status-partial); }
.arch-legend-status [data-status="in-progress"] { color: var(--status-progress); }
.arch-legend-status [data-status="designed"] { color: var(--status-designed); }
.arch-legend-status [data-status="missing"] { color: var(--status-missing); }

.arch-deltas {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 32px;
}
.arch-delta {
  background: var(--bg-card);
  border-left: 3px solid var(--accent-gold);
  border-radius: 4px;
  padding: 16px 20px;
}
.arch-delta--b { border-left-color: var(--accent-green); }
.arch-delta--leaves { border-left-color: var(--text-lo); }
.arch-delta h3 { color: var(--text-hi); font-size: 14px; margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.1em; }
.arch-delta ul { margin: 0; padding-left: 20px; color: var(--text-hi); }
.arch-delta li { font-size: 13px; line-height: 1.5; padding: 4px 0; color: var(--text-lo); }

/* Concept hover-glow */
body[data-concept-hover] .arch-box[data-concept-ids],
body[data-concept-hover] .arch-bus[data-concept-ids] {
  opacity: 0.35;
  transition: opacity var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease);
}

/* Use attribute selector with ~= to match space-or-comma-separated values */
body[data-concept-hover="memory-hub"] [data-concept-ids*="memory-hub"],
body[data-concept-hover="knowledge-graph"] [data-concept-ids*="knowledge-graph"],
body[data-concept-hover="context-graph"] [data-concept-ids*="context-graph"],
body[data-concept-hover="langgraph"] [data-concept-ids*="langgraph"],
body[data-concept-hover="event-driven"] [data-concept-ids*="event-driven"],
body[data-concept-hover="orchestration"] [data-concept-ids*="orchestration"],
body[data-concept-hover="observability"] [data-concept-ids*="observability"],
body[data-concept-hover="hitl-self-learning"] [data-concept-ids*="hitl-self-learning"],
body[data-concept-hover="unstructured-ingestion"] [data-concept-ids*="unstructured-ingestion"] {
  opacity: 1;
  box-shadow: 0 0 0 1px var(--accent-gold), 0 0 16px rgba(203, 180, 122, 0.4);
}

/* Section 3 — gaps */
.gaps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 32px; }
@media (max-width: 1100px) { .gaps-grid { grid-template-columns: repeat(2, 1fr); } }
.gap-card { background: var(--bg-box); border-left: 3px solid var(--status-missing); border-radius: 4px; padding: 20px; }
.gap-num { font-family: Georgia, serif; font-style: italic; font-size: 24px; color: var(--status-missing); margin-bottom: 8px; }
.gap-card h3 { font-size: 16px; margin-bottom: 8px; }
.gap-card p { font-size: 13px; color: var(--text-lo); margin-bottom: 8px; }
.gap-card .gap-fix { color: var(--text-hi); }
.gap-card .gap-fix strong { color: var(--accent-green); }

/* Section 5 — strangler */
.strangler-table { width: 100%; border-collapse: collapse; margin: 32px 0; font-size: 13px; }
.strangler-table th { text-align: left; color: var(--accent-gold); padding: 10px 12px; border-bottom: 1px solid #1f2735; font-weight: 600; text-transform: uppercase; font-size: 11px; letter-spacing: 0.1em; }
.strangler-table td { padding: 12px; border-bottom: 1px solid #1f2735; color: var(--text-hi); }
.strangler-table td:first-child { color: var(--text-lo); }
.strangler-table .strangler-b { color: var(--accent-green); }
.strangler-conclusion { font-style: italic; color: var(--text-lo); border-left: 3px solid var(--accent-gold); padding-left: 16px; margin-top: 24px; }

/* Concept deep-dive (sections 7–10) */
.tour-section--concept .concept-head { margin-bottom: 32px; }
.concept-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}
@media (max-width: 1280px) { .concept-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 800px) { .concept-grid { grid-template-columns: 1fr; } }
.concept-store {
  background: var(--bg-box);
  border: 1px solid #1f2735;
  border-top: 3px solid var(--accent-gold);
  border-radius: 4px;
  padding: 16px;
}
.concept-store-icon { font-size: 24px; color: var(--accent-gold); margin-bottom: 8px; }
.concept-store h3 { font-size: 14px; margin-bottom: 8px; }
.concept-store-role { font-size: 12px; color: var(--text-lo); margin-bottom: 12px; min-height: 48px; }
.concept-store-tech { background: var(--bg-card); padding: 6px 8px; border-radius: 3px; font-size: 11px; color: var(--accent-gold); margin-bottom: 12px; }
.concept-store-io { font-size: 11px; color: var(--text-lo); margin: 0; line-height: 1.6; }
.concept-store-io strong { color: var(--text-hi); font-weight: 600; }

/* Section 8 — event flow */
.event-flow { display: flex; gap: 12px; align-items: stretch; margin: 32px 0; flex-wrap: wrap; }
.event-flow-step { background: var(--bg-box); border-left: 3px solid var(--ev); border-radius: 4px; padding: 16px; flex: 1; min-width: 180px; }
.event-flow-num { font-family: Georgia, serif; font-style: italic; font-size: 28px; color: var(--ev); margin-bottom: 8px; }
.event-flow-step h3 { font-size: 14px; margin-bottom: 6px; }
.event-flow-step p { font-size: 12px; color: var(--text-lo); margin-bottom: 8px; }
.event-flow-step code { background: var(--bg-card); padding: 4px 8px; border-radius: 3px; font-size: 11px; color: var(--accent-gold); }
.event-flow-arrow { display: flex; align-items: center; color: var(--ev); font-size: 24px; }
@media (max-width: 1100px) { .event-flow-arrow { display: none; } }
.event-topics { margin-top: 32px; }
.event-topics h3 { font-size: 12px; color: var(--text-lo); text-transform: uppercase; letter-spacing: 0.15em; margin-bottom: 12px; }
.event-topic-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.event-topic-chip { font-family: 'SF Mono', monospace; font-size: 11px; color: var(--ev); background: rgba(200, 150, 240, 0.1); padding: 4px 10px; border: 1px solid var(--ev); border-radius: 3px; }

/* Section 9 — agent runtime */
.agent-orch { display: flex; justify-content: center; margin: 24px 0; }
.agent-orch-card { background: var(--bg-box); border: 2px solid var(--be); border-radius: 6px; padding: 16px 32px; text-align: center; min-width: 280px; }
.agent-orch-card h3 { font-size: 14px; margin-bottom: 6px; color: var(--be); }
.agent-orch-card p { font-size: 11px; color: var(--text-lo); margin-bottom: 8px; }
.agent-orch-card code { background: var(--bg-card); padding: 4px 8px; border-radius: 3px; font-size: 11px; color: var(--accent-gold); }

.agent-fleet { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 24px 0; }
@media (max-width: 1100px) { .agent-fleet { grid-template-columns: repeat(2, 1fr); } }
.agent-card { background: var(--bg-box); border-left: 3px solid var(--text-lo); border-radius: 4px; padding: 12px; }
.agent-card--shipped { border-left-color: var(--status-live); }
.agent-card--live { border-left-color: var(--status-designed); }
.agent-num { font-family: Georgia, serif; font-style: italic; font-size: 18px; color: var(--text-lo); }
.agent-card--shipped .agent-num { color: var(--status-live); }
.agent-card h4 { font-size: 13px; margin: 4px 0; }
.agent-card p { font-size: 11px; color: var(--text-lo); margin-bottom: 6px; }
.agent-status { font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-lo); }
.agent-card--shipped .agent-status { color: var(--status-live); }

.agent-registry { background: var(--bg-card); border-left: 3px solid var(--accent-gold); border-radius: 4px; padding: 16px 20px; margin-top: 24px; }
.agent-registry h3 { font-size: 14px; margin-bottom: 8px; }
.agent-registry p { font-size: 13px; color: var(--text-lo); margin-bottom: 8px; }
.agent-registry code { background: var(--bg-box); padding: 2px 6px; border-radius: 3px; font-size: 11px; color: var(--accent-gold); }

/* Section 10 — observability & trust */
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 32px; }
@media (max-width: 1100px) { .trust-grid { grid-template-columns: 1fr; } }
.trust-card { background: var(--bg-box); border-left: 3px solid var(--accent-gold); border-radius: 4px; padding: 16px; }
.trust-card h3 { font-size: 14px; margin-bottom: 12px; }
.trust-card p { font-size: 12px; color: var(--text-lo); margin-top: 12px; }
.trust-card code { display: inline-block; background: var(--bg-card); padding: 4px 8px; border-radius: 3px; font-size: 11px; color: var(--accent-gold); margin-top: 8px; }

.trust-spans { background: var(--bg-card); border-radius: 4px; padding: 12px; font-family: 'SF Mono', monospace; font-size: 11px; color: var(--text-hi); }
.trust-span { padding: 2px 0; }
.trust-span--root { color: var(--accent-gold); font-weight: 600; }
.trust-span--child { color: var(--text-lo); white-space: pre; }

.trust-ledger { background: var(--bg-card); padding: 12px; border-radius: 4px; }
.trust-ledger-row { font-size: 12px; padding: 4px 0; }
.trust-ledger-row .mono { color: var(--accent-gold); }

.trust-loop { background: var(--bg-card); padding: 16px; border-radius: 4px; text-align: center; font-size: 12px; line-height: 1.8; }
.trust-loop > div { padding: 2px 0; }
.trust-loop > div:nth-child(odd) { color: var(--text-hi); font-weight: 600; }
.trust-loop > div:nth-child(even) { color: var(--accent-gold); }

/* Section 11 — flow */
.flow-stage { display: grid; grid-template-columns: 7fr 3fr; gap: 24px; margin-top: 32px; align-items: start; }
@media (max-width: 1100px) { .flow-stage { grid-template-columns: 1fr; } }

.flow-diagram .arch-box { transition: opacity var(--t-slow) var(--ease), box-shadow var(--t-slow) var(--ease); opacity: 0.25; }
.flow-diagram .arch-bus { transition: opacity var(--t-slow) var(--ease), box-shadow var(--t-slow) var(--ease); opacity: 0.4; }
.flow-diagram .arch-box.step-active { opacity: 1; box-shadow: 0 0 0 1px var(--accent-gold), 0 0 24px rgba(203, 180, 122, 0.5); }
.flow-diagram .arch-bus.step-active { opacity: 1; box-shadow: 0 0 24px rgba(200, 150, 240, 0.5); }
.flow-diagram .arch-box.step-active.step-branch { box-shadow: 0 0 0 1px var(--status-missing), 0 0 24px rgba(232, 149, 106, 0.5); }

.flow-narration { background: var(--bg-card); border-left: 3px solid var(--accent-gold); border-radius: 4px; padding: 24px; position: sticky; top: calc(var(--header-h) + 24px); }
.flow-counter { font-size: 11px; color: var(--text-lo); text-transform: uppercase; letter-spacing: 0.15em; margin-bottom: 12px; }
.flow-counter [data-flow-step-current] { color: var(--accent-gold); font-weight: 600; }
.flow-narration h3 { font-size: 18px; margin-bottom: 8px; font-style: italic; font-family: Georgia, serif; }
.flow-narration code { display: inline-block; background: var(--bg-box); padding: 4px 8px; border-radius: 3px; font-size: 11px; color: var(--accent-gold); margin-bottom: 12px; }
.flow-narration p { font-size: 13px; color: var(--text-hi); line-height: 1.6; }
.flow-controls { display: flex; gap: 8px; margin-top: 24px; }
.flow-btn { flex: 1; background: var(--bg-box); border: 1px solid #2a3142; color: var(--text-hi); padding: 8px 12px; border-radius: 4px; font-size: 12px; cursor: pointer; transition: all var(--t-fast) var(--ease); }
.flow-btn:hover { border-color: var(--accent-gold); color: var(--accent-gold); }
.flow-btn--primary { background: var(--accent-gold); color: var(--bg-page); border-color: var(--accent-gold); }
.flow-btn--primary:hover { background: var(--accent-green); border-color: var(--accent-green); color: var(--bg-page); }

/* Scroll reveal */
.tour-section h1, .tour-section h2, .tour-section h3,
.tour-section .tour-lede, .tour-section .tour-section-label,
.tour-section .arch-diagram, .tour-section .arch-deltas,
.tour-section .gaps-grid, .tour-section .strangler-table,
.tour-section .concept-grid, .tour-section .event-flow,
.tour-section .agent-fleet, .tour-section .trust-grid,
.tour-section .flow-stage {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--t-base) var(--ease), transform var(--t-base) var(--ease);
}
.tour-section.revealed h1, .tour-section.revealed h2, .tour-section.revealed h3,
.tour-section.revealed .tour-lede, .tour-section.revealed .tour-section-label,
.tour-section.revealed .arch-diagram, .tour-section.revealed .arch-deltas,
.tour-section.revealed .gaps-grid, .tour-section.revealed .strangler-table,
.tour-section.revealed .concept-grid, .tour-section.revealed .event-flow,
.tour-section.revealed .agent-fleet, .tour-section.revealed .trust-grid,
.tour-section.revealed .flow-stage {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger by direct child position */
.tour-section.revealed > * {
  transition-delay: calc(var(--reveal-i, 0) * 60ms);
}

/* Reduced motion: no opacity/transform tricks */
@media (prefers-reduced-motion: reduce) {
  .tour-section h1, .tour-section h2, .tour-section h3, .tour-section .tour-lede,
  .tour-section .tour-section-label, .tour-section .arch-diagram, .tour-section .arch-deltas,
  .tour-section .gaps-grid, .tour-section .strangler-table, .tour-section .concept-grid,
  .tour-section .event-flow, .tour-section .agent-fleet, .tour-section .trust-grid,
  .tour-section .flow-stage {
    opacity: 1; transform: none;
  }
}

/* ─────────────────────────────────────────────────────────────
   Responsive — 1024 / 768 breakpoints
   ───────────────────────────────────────────────────────────── */

/* 1024–1279px — slight scale-down */
@media (min-width: 1024px) and (max-width: 1279px) {
  :root { font-size: 13px; }
  :root { --sidenav-w: 180px; }
  h1 { font-size: 40px; }
  h2 { font-size: 28px; }
}

/* 768–1023px — diagram stacks vertically */
@media (max-width: 1023px) {
  :root { --sidenav-w: 0px; }
  .tour-sidenav { display: none; }
  .tour-main { margin-left: 0; padding: 0 24px; }

  .arch-diagram { grid-template-columns: 1fr; }
  .arch-col--mid { padding: 16px 0; }
  .arch-bus { writing-mode: horizontal-tb; padding: 12px; min-height: 60px; }
  .arch-bus span { writing-mode: horizontal-tb; transform: none; }

  .arch-deltas { grid-template-columns: 1fr; }
  .strangler-table { font-size: 12px; }
  .strangler-table th, .strangler-table td { padding: 8px; }
}

/* < 768px — single column, status badges only, accordion tech */
@media (max-width: 767px) {
  :root { --section-pad-y: 48px; }
  .tour-header { padding: 0 12px; }
  .tour-header-inner { padding: 0; gap: 8px; }
  .tour-title { display: none; }
  .tour-pill { font-size: 10px; padding: 3px 8px; }

  h1 { font-size: 28px; }
  h2 { font-size: 22px; }

  .tour-main { padding: 0 16px; }
  .arch-box-tech { display: none; }
  .gaps-grid { grid-template-columns: 1fr; }

  .flow-stage { grid-template-columns: 1fr; }
  .flow-narration { position: static; }
}

/* Focus rings */
.tour-pill:focus-visible,
.tour-sidenav a:focus-visible,
.flow-btn:focus-visible,
.tour-hero-chip:focus-visible {
  outline: 2px solid var(--accent-gold);
  outline-offset: 2px;
}

/* Section 12 — inline PDF (replaces tour-refs styles) */
.tour-section--closing .closing-pdf {
  position: relative;
  margin: 32px 0;
  background: var(--bg-card);
  border: 1px solid #1f2735;
  border-radius: 8px;
  overflow: hidden;
}
.closing-pdf-frame {
  display: block;
  width: 100%;
  height: 80vh;
  min-height: 600px;
  border: none;
  background: #2a2a2a;
}
.closing-pdf-fallback {
  padding: 32px;
  color: var(--text-lo);
  text-align: center;
}
.closing-pdf-fallback a { color: var(--accent-gold); }
.closing-pdf-open {
  display: inline-block;
  margin-top: 12px;
  color: var(--accent-gold);
  text-decoration: none;
  font-size: 13px;
}
.closing-pdf-open:hover { text-decoration: underline; }

@media (max-width: 767px) {
  .closing-pdf-frame { height: 60vh; min-height: 400px; }
}
