:root {
  color-scheme: dark;
  --bg: #090c10;
  --surface: #121822;
  --elevated: #1a2230;
  --text: #f8fafc;
  --secondary: #94a3b8;
  --cyan: #06b6d4;
  --blue: #3b82f6;
  --purple: #8b5cf6;
  --gold: #f59e0b;
  --gold-bright: #fbbf24;
  --gold-light: #fef08a;
  --gold-dark: #d97706;
  --line: rgba(254, 240, 138, 0.12);
  --border-gold: rgba(245, 158, 11, 0.35);
  --border-ui: rgba(255, 255, 255, 0.1);
}
* { box-sizing: border-box; }
body { margin: 0; font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Arial, sans-serif; color: var(--text); background: radial-gradient(ellipse at 50% 25%, #1c1a24 0%, #121824 45%, var(--bg) 90%); }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .35; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 5px; }
h1, h2, h3, p { margin: 0; }
h1, h2 { font-weight: 600; letter-spacing: -.045em; line-height: 1.1; }
h1, .scene-heading h2 { font-size: clamp(2.1rem, 3.7vw, 4.2rem); }
em { font-style: normal; color: var(--gold-bright); text-shadow: 0 0 16px rgba(245, 158, 11, 0.35); }
p { color: var(--secondary); line-height: 1.6; }
button, a { -webkit-tap-highlight-color: transparent; }
.skip { position: fixed; top: -100px; left: 20px; z-index: 100; padding: 15px; background: var(--elevated); border: 1px solid var(--gold); }
.skip:focus { top: 10px; }
.header { height: 80px; padding: 0 3.4%; display: flex; align-items: center; gap: 30px; border-bottom: 1px solid var(--line); background: #090f19ee; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.brand { display: flex; align-items: center; gap: 12px; cursor: pointer; user-select: none; }
.header-brand-logo {
  height: clamp(38px, 4.8vh, 48px);
  width: auto;
  max-width: 220px;
  object-fit: contain;
  filter: drop-shadow(0 0 16px rgba(245, 158, 11, 0.35)) drop-shadow(0 2px 8px rgba(0, 0, 0, 0.6));
  transition: transform 0.25s ease, filter 0.25s ease;
}
.brand:hover .header-brand-logo {
  transform: scale(1.03);
  filter: drop-shadow(0 0 24px rgba(245, 158, 11, 0.55)) drop-shadow(0 4px 12px rgba(0, 0, 0, 0.8));
}
.event { margin-left: auto; color: #c6d2e3; font-size: .62rem; letter-spacing: .13em; }
.event i { display: inline-block; width: 4px; height: 4px; background: var(--gold); margin: 0 9px 2px; border-radius: 50%; box-shadow: 0 0 8px var(--gold); }
.event > span { display: block; font-size: .54rem; color: #94a3b8; letter-spacing: .1em; margin-top: 5px; text-align: right; }
.quiet { display: inline-flex; justify-content: center; align-items: center; gap: 10px; border: 1px solid var(--line); background: #141c2c; color: #dbe6f5; padding: 10px 15px; border-radius: 7px; font-size: .78rem; transition: all .2s ease; }
.quiet:hover:not(:disabled) { background: #1d283e; border-color: rgba(245, 158, 11, 0.55); color: #ffffff; }
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  color: #0f172a;
  background: linear-gradient(135deg, #fef08a, #fbbf24 50%, #f59e0b 85%, #d97706);
  border: 1px solid rgba(254, 240, 138, 0.85);
  font-weight: 800;
  padding: 15px 26px;
  font-size: .95rem;
  border-radius: 50px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6), 0 0 30px rgba(245, 158, 11, 0.45);
  transition: all 0.25s ease;
}
.button:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #ffffff, #fef08a 40%, #fbbf24 70%, #f59e0b);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.75), 0 0 40px rgba(245, 158, 11, 0.65);
}
.scene { max-width: 1500px; margin: auto; padding: 45px 6%; min-height: 700px; border-bottom: 1px solid var(--line); }
.scene-heading { text-align: center; }
.eyebrow { font-size: .65rem; font-weight: 700; letter-spacing: .18em; color: var(--gold-bright); margin-bottom: 17px; text-transform: uppercase; }
.scene-heading > p:last-child:not(.eyebrow) { font-size: 1rem; margin-top: 20px; }
.enhanced .scene { min-height: calc(100dvh - 160px); display: flex; flex-direction: column; justify-content: center; padding-block: 28px; border: 0; }
.enhanced .scene[hidden] { display: none; }
.scene-foot { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 26px; border-top: 1px solid var(--line); padding-top: 23px; margin-top: 20px; font-size: .78rem; color: var(--secondary); }
.scene-foot strong { font-weight: 600; color: var(--gold-light); }
#transformacion .scene-foot strong { flex-basis: 100%; text-align: center; }
.scene-foot > span { color: var(--gold-bright); }
.audience-map { position: relative; isolation: isolate; display: grid; grid-template-columns: 1fr 1.1fr 1fr; grid-template-rows: 1fr 1fr; align-items: center; justify-items: center; width: min(100%, 1000px); margin: 15px auto; height: clamp(270px, 33vh, 370px); }
.audience-lines { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; fill: none; stroke: rgba(245, 158, 11, 0.35); stroke-width: 1.4; }
.audience-lines circle { stroke: rgba(245, 158, 11, 0.18); stroke-dasharray: 4 8; }
.audience { padding: 18px 22px; background: linear-gradient(130deg, #182234, #101825); border: 1px solid var(--border-ui); border-radius: 12px; width: 225px; max-width: 100%; box-shadow: 0 10px 35px rgba(0, 0, 0, 0.5); }
.audience > span { color: var(--gold-bright); display: block; font-size: .62rem; letter-spacing: .1em; margin-bottom: 8px; font-weight: 700; }
.audience strong { display: block; font-size: 1.14rem; font-weight: 600; }
.audience small { display: block; font-size: .75rem; color: var(--secondary); margin-top: 7px; }
.beginner { grid-area: 1 / 1; }
.developer { grid-area: 2 / 1; }
.architect { grid-area: 1 / 3; }
.executive { grid-area: 2 / 3; }
.source-document { grid-area: 1 / 2 / 3 / 3; display: flex; align-items: center; flex-direction: column; justify-content: center; width: 225px; height: 235px; background: linear-gradient(155deg, #241d13, #111824); border: 1px solid rgba(254, 240, 138, 0.45); border-radius: 16px; box-shadow: 0 0 50px rgba(245, 158, 11, 0.18), inset 0 1px 1px rgba(255, 255, 255, 0.2); }
.source-document svg { width: 55px; height: 65px; stroke: var(--gold-bright); stroke-width: 2; fill: none; margin-bottom: 22px; }
.source-document strong { font-size: 1.1rem; font-weight: 600; }
.source-document small { color: #cbd5e1; font-size: .76rem; margin-top: 9px; }
.transformation-line { display: grid; grid-template-columns: 1fr 35px 1.4fr 35px 1.2fr; align-items: center; gap: 15px; margin-top: 42px; }
.transformation-line > div { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 140px; padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: linear-gradient(140deg, #182234, #101825); text-align: center; }
.transformation-line strong { font-size: 1rem; font-weight: 600; }
.transformation-line small { color: var(--secondary); font-size: .72rem; margin-top: 10px; }
.node-icon { color: var(--gold-bright); font-size: 2rem; line-height: 1; margin-bottom: 14px; }
.node-caption { color: var(--gold-light); font-size: .56rem; letter-spacing: .12em; margin-bottom: 15px; font-weight: 700; }
.transformation-line .engine-node { border-color: rgba(245, 158, 11, 0.55); background: linear-gradient(140deg, #2a2012, #141b29); box-shadow: 0 0 35px rgba(245, 158, 11, 0.2); }
.engine-node .node-caption { color: var(--gold-bright); }
.arrow { font-size: 1.6rem; color: var(--gold-bright); text-align: center; }
.output-connector { text-align: center; padding: 8px 0; color: var(--gold); font-size: 1.4rem; }
.format-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.format-grid article { border: 1px solid var(--border-ui); border-top: 3px solid var(--gold); background: #121927; border-radius: 10px; padding: 22px; }
.format-grid article:nth-child(2) { border-top-color: var(--purple); }
.format-grid article:nth-child(3) { border-top-color: var(--blue); }
.format-grid article:nth-child(4) { border-top-color: #10b981; }
.format-icon { color: var(--gold-bright); font-size: 1.6rem; }
.format-grid h3 { font-size: 1.12rem; font-weight: 600; margin: 12px 0 7px; }
.format-grid p { font-size: .77rem; }
.enhanced .demo-scene, .demo-scene { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 8%; }
.demo-copy h2 { font-size: clamp(3rem, 5vw, 5.5rem); }
.demo-copy > p:not(.eyebrow) { font-size: 1.15rem; margin: 25px 0 30px; }
.demo-hint { display: block; color: #99aec7; font-size: .72rem; margin-top: 17px; }
.demo-journey { border: 1px solid rgba(254, 240, 138, 0.3); background: linear-gradient(145deg, #182234, #0f1624); border-radius: 20px; padding: 35px; box-shadow: 0 20px 65px rgba(0, 0, 0, 0.5), 0 0 40px rgba(245, 158, 11, 0.12); }
.journey-heading { font-size: .62rem; letter-spacing: .16em; color: var(--gold-light); display: flex; align-items: center; gap: 10px; font-weight: 700; }
.live-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold-bright); box-shadow: 0 0 15px var(--gold); }
.demo-journey ol { list-style: none; padding: 0; margin: 28px 0; }
.demo-journey li { display: flex; gap: 20px; padding: 23px 0; border-bottom: 1px solid var(--line); }
.demo-journey li > span { color: var(--gold-bright); font-size: .7rem; padding-top: 5px; font-weight: 700; }
.demo-journey strong { display: block; font-size: 1.3rem; font-weight: 600; }
.demo-journey small { display: block; color: #a0b6cf; margin-top: 8px; font-size: .79rem; }
.journey-note { color: #a0b6cf; line-height: 1.7; font-size: .8rem; }
.journey-note strong { font-size: .8rem; color: var(--gold-light); font-weight: 600; }
.architecture-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.architecture-heading h2 { font-size: clamp(1.9rem, 2.6vw, 3rem); }
.explore-hint { margin: 9px 0 0; color: #cbd5e1; font-size: .75rem; }
.explore-hint span { display: inline-grid; place-items: center; width: 20px; height: 20px; margin-right: 5px; border: 1px solid #fbbf24; border-radius: 50%; color: #fde68a; }
.explore-icon circle { fill: #29271e; stroke: #fbbf24; stroke-width: 1; }
.explore-icon text { fill: #fde68a; font-size: 16px; font-weight: 700; text-anchor: middle; }
.system-node:hover .explore-icon circle, .system-node:focus-visible .explore-icon circle { fill: #614519; stroke: #fef08a; }
.architecture-badge { flex-shrink: 0; text-align: right; color: #94a3b8; font-size: .7rem; line-height: 1.7; padding-left: 16px; border-left: 2px solid var(--gold); }
.architecture-badge strong { color: var(--gold-bright); font-weight: 600; }
.architecture-toolbar { display: flex; justify-content: flex-end; min-width: 0; }
.playback-panel { display: grid; gap: 8px; padding: 8px 10px; border-left: 1px solid rgba(254, 240, 138, 0.15); }
.playback-panel .sequence-controls { margin: 0; }
.playback-panel .sequence-controls button { background: transparent; border-color: rgba(254, 240, 138, 0.2); padding: 5px 8px; font-size: .66rem; }
.playback-panel .evidence-option { font-size: .64rem; }
.evidence-option { color: #cbd5e1; font-size: .72rem; display: flex; align-items: center; gap: 7px; }
.evidence-option input { accent-color: var(--gold); }
.system-canvas { margin: 10px 0 0; }
#system-map { display: block; width: 100%; max-height: min(43vh, 430px); min-height: 260px; overflow: visible; }
.enhanced .architecture-scene { padding-block: 20px; }
.agent-boundary { fill: #151829; stroke: #45456f; stroke-width: 1; }
.agent-boundary.active { stroke: #a78bfa; stroke-width: 2; fill: #1c2038; }
.group-heading { fill: #c4b5fd; font-size: 12px; font-weight: 700; letter-spacing: 1.5px; }
.group-subtitle { fill: #94a3b8; font-size: 11px; }
.system-node { cursor: pointer; outline: none; }
.system-node rect { fill: #162030; stroke: #334b66; stroke-width: 1.3; transition: fill .2s, stroke .2s; }
.system-node:hover rect, .system-node:focus-visible rect { stroke: var(--gold-light); stroke-width: 2; }
.backend-node rect { fill: #281f12; stroke: var(--gold); }
.evaluator-node rect { fill: #162632; stroke: #38bdf8; }
.offline-node rect { fill: #11222c; stroke: #438394; stroke-dasharray: 4 3; }
.offline-node .node-detail { font-size: 9px; }
.offline-link { stroke: #438394; stroke-width: 1.2; stroke-dasharray: 4 4; }
.reviewer-node rect { fill: #2c2216; stroke: #d97706; }
.system-node.active rect { fill: #38290f; stroke: #fde047; stroke-width: 2.5; filter: drop-shadow(0 0 10px rgba(245, 158, 11, 0.5)); }
.reviewer-node.active rect { fill: #452f14; stroke: var(--gold-light); }
.node-kicker { fill: #fde047; font-size: 9px; letter-spacing: .6px; font-weight: 700; }
.node-title { fill: #f8fafc; font-size: 19px; font-weight: 600; }
.node-title.agent-title { font-size: 15px; }
.node-detail { fill: #94a3b8; font-size: 11px; }
.optional-label { fill: #d8b4fe; font-size: 10px; }
.edges path { stroke: #435b75; stroke-width: 1.8; opacity: .8; }
.edges path.correction-edge { stroke-width: 1.3; stroke-dasharray: 4 5; opacity: .3; }
.edges path.dimmed { opacity: .14; }
.edges path.active { stroke: var(--gold-bright); stroke-width: 3; stroke-dasharray: 7 4; opacity: 1; animation: travel .5s linear infinite; }
.system-canvas:not(.playing) .edges path.active { animation-play-state: paused; }
.wire-label { fill: #94a3b8; font-size: 10px; }
@keyframes travel { to { stroke-dashoffset: -22; } }
.sequence-bar { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 24px; min-height: 80px; background: #121927; border: 1px solid rgba(254, 240, 138, 0.2); border-radius: 9px; padding: 15px 20px; }
.sequence-caption > span { color: var(--gold-bright); font-size: .57rem; letter-spacing: .1em; font-weight: 700; }
.sequence-caption p { color: #f8fafc; font-size: .88rem; margin-top: 6px; max-width: 700px; }
.sequence-controls { display: flex; gap: 6px; flex-shrink: 0; }
.sequence-controls button { border: 1px solid rgba(254, 240, 138, 0.2); background: #162234; color: #f8fafc; border-radius: 5px; padding: 9px 11px; font-size: .73rem; transition: all .2s ease; }
.sequence-controls button:hover:not(:disabled) { background: #20314a; border-color: rgba(245, 158, 11, 0.5); }
.architecture-footer { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-top: 15px; font-size: .67rem; color: #94a3b8; }
.architecture-footer span:before { content: "·"; color: var(--gold); margin-right: 9px; font-weight: bold; }
.architecture-footer small { margin-left: auto; font-size: .65rem; color: #cbd5e1; }
.fallback { margin-top: 20px; }
.impact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin: 35px 0 28px; }
.impact-grid article { background: linear-gradient(145deg, #182234, #101825); border: 1px solid var(--border-ui); border-radius: 12px; padding: 28px; }
.impact-icon { color: var(--gold-bright); font-size: 2rem; }
.impact-grid h3 { font-size: 1.2rem; font-weight: 600; margin: 20px 0 12px; }
.impact-grid p { font-size: .87rem; }
.impact-grid small { display: block; font-size: .52rem; letter-spacing: .1em; color: var(--gold-light); margin-top: 25px; line-height: 1.8; font-weight: 700; }
.team-strip { text-align: center; border-top: 1px solid var(--line); padding-top: 23px; }
.team-strip strong { font-size: .61rem; letter-spacing: .13em; color: var(--gold-light); }
.team-strip p { font-size: .79rem; margin-top: 10px; }
.team-strip small { display: block; color: #94a3b8; margin-top: 7px; font-size: .69rem; }
.closing-links { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px; margin-top: 25px; }
.closing-links .button { padding: 12px 20px; font-size: .8rem; }
.deck-footer { display: flex; align-items: center; justify-content: space-between; gap: 15px; min-height: 80px; padding: 13px 3.4%; background: #090f19ee; border-top: 1px solid var(--line); }
.enhanced .deck-footer { position: sticky; bottom: 0; z-index: 10; }
.deck-footer nav { display: flex; gap: 10px; }
.deck-footer nav a { padding: 10px 14px; border: 1px solid transparent; border-radius: 6px; color: #94a3b8; font-size: .72rem; white-space: nowrap; transition: all .2s ease; }
.deck-footer nav a span { margin-right: 9px; font-size: .6rem; color: var(--gold); font-weight: 700; }
.deck-footer nav a[aria-current="step"] { color: #ffffff; background: #261e12; border-color: rgba(245, 158, 11, 0.55); box-shadow: 0 0 15px rgba(245, 158, 11, 0.2); }
.deck-footer nav a:hover { color: var(--gold-light); }
.deck-position { display: flex; gap: 20px; align-items: center; }
#scene-position { font-size: .65rem; color: #afc2d7; white-space: nowrap; }
.deck-footer .quiet { font-size: 1.15rem; padding: 7px 15px; }
dialog { width: min(580px, calc(100% - 36px)); background: #121927; color: white; border: 1px solid rgba(254, 240, 138, 0.35); border-radius: 14px; padding: 30px; max-height: 85dvh; box-shadow: 0 25px 60px rgba(0,0,0,0.8), 0 0 40px rgba(245, 158, 11, 0.15); }
dialog::backdrop { background: #040a16db; backdrop-filter: blur(7px); }
.dialog-heading { display: flex; align-items: center; justify-content: space-between; }
.dialog-heading .eyebrow { margin: 0; color: var(--gold-bright); }
dialog h2 { font-size: 1.8rem; margin: 25px 0; }
.resource-list { display: grid; }
.resource-list a { display: flex; justify-content: space-between; gap: 15px; border-top: 1px solid var(--line); padding: 17px 0; color: #e2e8f0; font-size: .88rem; transition: color .2s ease; }
.resource-list a:hover { color: var(--gold-light); }
#resource-image-dialog { width: 96vw; max-width: 96vw; height: 94dvh; max-height: 94dvh; padding: 0; overflow: hidden; }
#resource-image-dialog[open] { display: flex; flex-direction: column; }
#resource-image-dialog .dialog-heading { flex-shrink: 0; gap: 16px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
#resource-image-dialog h2 { margin: 0; font-size: clamp(.9rem, 2vw, 1.2rem); letter-spacing: normal; }
#close-resource-image { flex-shrink: 0; }
.resource-image-content { flex: 1; min-height: 0; min-width: 0; overflow: hidden; padding: 8px; }
.resource-image-content img { display: block; width: 100%; height: 100%; object-fit: contain; }
.team-invitation { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 10px 20px; margin-top: 10px; }
.team-invitation small { margin: 0; }
.team-button { padding: 7px 12px; font-size: .73rem; color: var(--gold-light); border-color: rgba(245, 158, 11, 0.5); }
.people-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.person-card { border: 1px solid var(--border-ui); border-radius: 10px; background: linear-gradient(140deg, #182234, #101825); padding: 17px; }
.person-heading { display: flex; align-items: center; gap: 11px; min-height: 56px; }
.person-heading > div { min-width: 0; }
.person-avatar { display: grid; place-items: center; width: 42px; height: 48px; flex-shrink: 0; border-radius: 10px; border: 1px solid rgba(245, 158, 11, 0.5); color: var(--gold-light); background: linear-gradient(145deg, #2b2010, #171d2c); font-size: .85rem; font-weight: 700; box-shadow: 0 0 12px rgba(245, 158, 11, 0.2); }
.person-card h3 { font-size: .95rem; line-height: 1.3; font-weight: 600; }
.person-role { display: block; font-size: .69rem; color: var(--gold-bright); margin-top: 5px; font-weight: 600; }
.person-link { margin-left: auto; align-self: start; white-space: nowrap; font-size: .72rem; color: var(--gold-light); padding: 4px; }
.person-link:hover { color: white; text-shadow: 0 0 8px rgba(254, 240, 138, 0.6); }
.person-card p { font-size: .79rem; line-height: 1.65; margin-top: 15px; color: #bccbdd; }
.contributors { border-top: 1px solid var(--line); margin-top: 22px; padding-top: 16px; }
.contributors > span { font-size: .58rem; letter-spacing: .14em; color: var(--gold-bright); font-weight: 700; }
.contributors > div { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 12px; }
.contributors a { font-size: .75rem; color: #c1d1e2; transition: color .2s ease; }
.contributors small { display: block; font-size: .65rem; color: #91abc6; margin-top: 4px; }
.contributors a:hover { color: var(--gold-light); }
@media (max-width: 1000px) {
  .people-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 580px) {
  .people-grid, .contributors > div { grid-template-columns: 1fr; }
  .team-invitation { justify-content: flex-start; }
}
.team-scene .scene-heading { margin-bottom: 22px; }
.team-scene .scene-heading h2 { font-size: clamp(1.7rem, 2.8vw, 2.8rem); }
.team-scene .people-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.team-scene .person-card { padding: 14px; }
.team-scene .person-heading { gap: 8px; }
.team-scene .person-avatar { width: 34px; height: 40px; font-size: .73rem; }
.team-scene .person-card h3 { font-size: .85rem; }
.team-scene .person-card p { font-size: .73rem; margin-top: 10px; }
.team-scene .person-role { font-size: .61rem; }
.team-scene .contributors { margin-top: 16px; padding-top: 12px; }
.team-scene .contributors > div { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 8px; }
@media (max-width: 1000px) {
  .team-scene .people-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 580px) {
  .team-scene .people-grid, .team-scene .contributors > div { grid-template-columns: 1fr; }
}
@media screen and (min-width: 761px) and (max-width: 1150px) {
  .deck-footer nav { gap: 0; }
  .deck-footer nav a { font-size: .63rem; padding-inline: 7px; }
  #scene-position { display: none; }
}
@media (max-width: 760px) {
  .deck-footer nav a { padding-inline: 8px; }
}
@media (min-width: 1600px) {
  .enhanced .scene { padding-block: 45px; }
  .audience-map { height: 370px; margin-block: 30px; }
  .scene-heading > p:last-child:not(.eyebrow) { font-size: 1.15rem; }
}
@media (max-width: 1100px) {
  .header { padding-inline: 25px; }
  .scene { padding-inline: 4%; }
  .deck-footer nav { gap: 0; }
  .deck-footer nav a { padding-inline: 9px; font-size: .66rem; }
  .deck-position { gap: 10px; }
  .architecture-badge { display: none; }
  .sequence-bar { flex-wrap: wrap; gap: 14px; }
  .sequence-controls { margin-left: auto; }
  .format-grid article { padding: 18px; }
  .format-grid h3 { font-size: 1rem; }
  .impact-grid article { padding: 22px; }
  .audience { width: 200px; }
  .source-document { width: 205px; height: 220px; }
}
@media (max-width: 760px) {
  .header { height: 72px; padding-inline: 18px; gap: 15px; }
  .brand { gap: 9px; }
  .header-brand-logo { height: 32px; max-width: 170px; }
  .event { font-size: .52rem; }
  .event > span { font-size: .46rem; }
  .fullscreen { display: none; }
  .enhanced .scene, .scene { min-height: calc(100dvh - 150px); padding: 34px 22px; }
  .scene-heading { text-align: left; }
  h1, .scene-heading h2 { font-size: 2.4rem; }
  h1 br, .scene-heading h2 br { display: none; }
  .scene-heading > p:last-child:not(.eyebrow) { font-size: .88rem; }
  .audience-map { grid-template-columns: 1fr 1fr; grid-template-rows: auto auto auto; height: auto; gap: 13px; margin-top: 25px; }
  .audience-lines { display: none; }
  .source-document { grid-area: 1 / 1 / 2 / 3; width: 100%; height: auto; padding: 23px; }
  .source-document svg { width: 36px; height: 42px; margin-bottom: 12px; }
  .beginner { grid-area: 2 / 1; }
  .developer { grid-area: 2 / 2; }
  .architect { grid-area: 3 / 1; }
  .executive { grid-area: 3 / 2; }
  .audience { width: 100%; padding: 17px; }
  .audience strong { font-size: 1rem; }
  .audience small { font-size: .68rem; }
  .scene-foot { justify-content: start; gap: 10px 17px; font-size: .7rem; }
  .transformation-line { grid-template-columns: 1fr; gap: 8px; margin-top: 25px; }
  .transformation-line > div { min-height: 100px; padding: 18px; }
  .transformation-line .arrow { transform: rotate(90deg); font-size: 1.1rem; }
  .node-icon { display: none; }
  .format-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .format-grid p { font-size: .72rem; }
  .enhanced .demo-scene, .demo-scene { display: grid; grid-template-columns: 1fr; gap: 35px; }
  .demo-copy h2 { font-size: 3.4rem; }
  .demo-copy > p:not(.eyebrow) { font-size: 1rem; }
  .demo-journey { padding: 25px; }
  .architecture-heading h2 { font-size: 2rem; }
  .architecture-toolbar { justify-content: flex-start; }
  .playback-panel { width: 100%; }
  .playback-panel .evidence-option { padding-left: 0; border-left: 0; }
  .system-canvas { overflow-x: auto; border: 1px solid #273c52; border-radius: 8px; }
  #system-map { min-width: 780px; max-height: none; min-height: 0; }
  .sequence-bar { grid-template-columns: 1fr; padding: 15px; margin-top: 13px; }
  .playback-panel { border-left: 0; border-top: 1px solid rgba(254, 240, 138, 0.15); padding: 10px 0 0; }
  .sequence-caption p { font-size: .8rem; }
  .sequence-controls { flex-wrap: wrap; margin-left: 0; }
  .sequence-controls button { font-size: .69rem; }
  .architecture-footer { font-size: .62rem; gap: 10px; }
  .architecture-footer small { margin-left: 0; }
  .impact-grid { grid-template-columns: 1fr; gap: 14px; margin-top: 28px; }
  .impact-grid article { padding: 23px; }
  .impact-grid h3 { margin-top: 10px; }
  .impact-grid small { margin-top: 15px; }
  .team-strip { text-align: left; }
  .closing-links { justify-content: start; }
  .deck-footer { padding: 10px 12px; gap: 8px; min-height: 72px; }
  .deck-footer nav { min-width: 0; overflow-x: auto; flex: 1; }
  .deck-footer nav a { font-size: 0; padding: 10px 12px; }
  .deck-footer nav a span { font-size: .75rem; margin: 0; }
  .deck-footer .quiet { padding: 7px 10px; }
  .deck-position { gap: 0; }
  #scene-position { display: none; }
}
@media (max-width: 380px) {
  .event > span { display: none; }
  h1, .scene-heading h2 { font-size: 2.05rem; }
  .audience { padding: 14px 10px; }
  .audience strong { font-size: .9rem; }
  .deck-footer nav a { padding-inline: 9px; }
}
@media screen and (min-width: 761px) {
  body.enhanced {
    height: 100dvh;
    display: grid;
    grid-template-rows: 60px minmax(0, 1fr) 58px;
    overflow: clip;
  }
  .enhanced .header { height: 60px; padding-inline: 2.5%; gap: 20px; }
  .enhanced .header-brand-logo { height: clamp(34px, 4.2vh, 42px); max-width: 200px; }
  .enhanced #deck {
    min-width: 0;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .enhanced .scene {
    width: 100%;
    min-width: 0;
    min-height: 0;
    flex-shrink: 0;
    margin: 0;
    padding: 18px 4%;
  }
  .enhanced h1, .enhanced .scene-heading h2 { font-size: clamp(1.9rem, min(3.2vw, 5.8dvh), 3.5rem); }
  .enhanced .eyebrow { margin-bottom: 11px; }
  .enhanced .scene-heading > p:last-child:not(.eyebrow) { margin-top: 12px; font-size: .9rem; }
  .enhanced .audience-map { height: clamp(210px, 30dvh, 340px); margin: 12px auto; }
  .enhanced .audience { padding: 13px 18px; }
  .enhanced .source-document { height: clamp(175px, 25dvh, 225px); }
  .enhanced .source-document svg { width: 42px; height: 50px; margin-bottom: 15px; }
  .enhanced .scene-foot { margin-top: 12px; padding-top: 14px; gap: 8px 22px; }
  .enhanced .transformation-line { margin-top: 24px; }
  .enhanced .transformation-line > div { min-height: 115px; padding: 15px; }
  .enhanced .format-grid article { padding: 16px 20px; }
  .enhanced .format-grid h3 { margin-top: 8px; }
  .enhanced .output-connector { padding-block: 3px; }
  .enhanced .demo-copy h2 { font-size: clamp(2.6rem, min(4.8vw, 8dvh), 4.8rem); }
  .enhanced .demo-copy > p:not(.eyebrow) { margin: 18px 0 22px; }
  .enhanced .demo-journey { padding: 24px 30px; }
  .enhanced .demo-journey ol { margin: 15px 0; }
  .enhanced .demo-journey li { padding-block: 16px; }
  .enhanced .architecture-heading h2 { font-size: clamp(1.6rem, min(2.5vw, 4.5dvh), 2.6rem); }
  .enhanced #system-map { min-height: 0; max-height: none; height: clamp(210px, calc(100dvh - 350px), 500px); }
  .enhanced .sequence-bar { min-height: 65px; padding: 11px 16px; gap: 12px; }
  .enhanced .sequence-caption { min-width: 0; }
  .enhanced .sequence-caption p { font-size: .8rem; }
  .enhanced .architecture-footer { margin-top: 10px; }
  .enhanced .impact-grid { margin: 23px 0 19px; gap: 18px; }
  .enhanced .impact-grid article { padding: 20px 24px; }
  .enhanced .impact-grid h3 { margin: 12px 0 9px; }
  .enhanced .impact-grid small { margin-top: 15px; }
  .enhanced .team-strip { padding-top: 15px; }
  .enhanced .closing-links { margin-top: 18px; }
  .enhanced .deck-footer { position: static; min-height: 0; padding: 8px 2.5%; gap: 10px; }
  .enhanced .deck-footer nav { min-width: 0; gap: 4px; }
  .enhanced .deck-footer nav a { padding: 8px 10px; }
  .enhanced .deck-footer .quiet { padding: 5px 12px; }
}
@media screen and (min-width: 761px) and (max-height: 700px) {
  .enhanced .scene { padding-block: 12px; }
  .enhanced .audience-map { height: 205px; }
  .enhanced .audience strong { font-size: 1rem; }
  .enhanced .audience small { margin-top: 4px; }
  .enhanced .transformation-line { margin-top: 16px; }
  .enhanced .transformation-line > div { min-height: 95px; }
  .enhanced .node-caption { margin-bottom: 9px; }
  .enhanced .node-icon { font-size: 1.5rem; margin-bottom: 8px; }
  .enhanced .impact-grid article { padding: 16px 20px; }
  .enhanced .impact-icon { font-size: 1.5rem; }
  .enhanced .demo-journey li { padding-block: 12px; }
}
@media screen and (min-width: 761px) and (max-width: 1000px) {
  .enhanced .deck-footer nav a { font-size: .62rem; padding-inline: 6px; }
  .enhanced .deck-footer nav a span { margin-right: 5px; }
  .enhanced #scene-position { display: none; }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .audience, .format-grid article, .person-card, .impact-grid article {
    transition: border-color .22s ease, box-shadow .22s ease;
  }
  .audience:hover, .format-grid article:hover, .person-card:hover, .person-card:focus-within, .impact-grid article:hover {
    border-color: rgba(254, 240, 138, 0.45);
    box-shadow: 0 0 25px rgba(245, 158, 11, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  }
  .button, .quiet, .deck-footer nav a {
    transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
  }
  .button:hover { box-shadow: 0 0 35px rgba(245, 158, 11, 0.6); }
}
@media (prefers-reduced-motion: reduce) {
  *, *:before, *:after { animation: none !important; transition: none !important; }
}
.architecture-workspace { display: grid; grid-template-columns: minmax(190px, 230px) minmax(0, 1fr); grid-template-areas: "controls diagram"; align-items: center; gap: 22px; margin-top: 18px; }
.architecture-workspace .system-canvas { grid-area: diagram; min-width: 0; margin: 0; }
.architecture-workspace .sequence-bar { grid-area: controls; grid-template-columns: 1fr; align-content: space-between; align-items: start; gap: 24px; padding: 18px; min-height: 280px; margin: 0; background: linear-gradient(155deg, #172333, #101722); }
.architecture-workspace .sequence-caption p { line-height: 1.65; white-space: pre-line; }
.architecture-workspace .architecture-toolbar { justify-content: stretch; }
.architecture-workspace .playback-panel { width: 100%; padding: 14px 0 0; border-left: 0; border-top: 1px solid #334155; }
.architecture-workspace .sequence-controls { flex-wrap: wrap; margin-left: 0; }
.architecture-workspace .evidence-option { line-height: 1.5; }
.architecture-workspace #system-map { min-height: 0; max-height: none; height: auto; }
.oci-boundary { fill: #0d1726; stroke: #5282a5; stroke-width: 2; }
.infra-heading { fill: #bae6fd; font-size: 16px; font-weight: 700; letter-spacing: 1.5px; }
.docker-badge rect { fill: #12354b; stroke: #38bdf8; stroke-width: 1.2; }
.docker-badge text { fill: #e0f2fe; font-size: 16px; font-weight: 700; }
.docker-badge .docker-detail { fill: #bae6fd; font-size: 12px; font-weight: 400; }
.persistence-services rect { fill: #13283a; stroke: #416784; stroke-width: 1; }
.storage-title { fill: #bae6fd; font-size: 15px; font-weight: 700; }
.storage-detail { fill: #cbd5e1; font-size: 12px; }
.infra-caption { fill: #94a3b8; font-size: 12px; }
.infra-divider { stroke: #293f57; stroke-width: 1; }
.container-label { fill: #7da2c8; font-size: 9px; font-weight: 600; letter-spacing: 1px; }
@media screen and (min-width: 761px) {
  .enhanced .architecture-scene { padding-inline: 2.5%; }
  .enhanced .architecture-workspace #system-map { height: clamp(280px, calc(100dvh - 245px), 720px); }
  .enhanced .architecture-workspace .sequence-bar { min-height: 280px; padding: 16px; gap: 24px; }
}
@media screen and (max-width: 1000px) and (min-width: 761px) {
  .architecture-workspace { grid-template-columns: 185px minmax(0, 1fr); gap: 12px; }
}
@media screen and (max-width: 760px) {
  .architecture-workspace { grid-template-columns: minmax(0, 1fr); grid-template-areas: "diagram" "controls"; gap: 14px; }
  .architecture-workspace .sequence-bar { min-height: 0; gap: 14px; }
}
.rag-dialog { width: min(1280px, 96vw); max-width: 96vw; height: min(850px, 94dvh); max-height: 94dvh; padding: 0; border: 1px solid #395878; border-radius: 18px; background: #0c1421; color: #e2e8f0; }
.rag-dialog[open] { display: flex; flex-direction: column; }
.rag-dialog::backdrop { background: #020617d9; backdrop-filter: blur(8px); }
.rag-dialog-header { display: flex; flex-shrink: 0; align-items: center; justify-content: flex-end; gap: 16px; padding: 6px 14px; border-bottom: 1px solid #293f57; }
.rag-dialog-header a { color: #bae6fd; font-size: .75rem; }
.rag-dialog iframe { width: 100%; flex: 1; min-height: 0; border: 0; background: #0c1421; }
@media print {
  .header, .deck-footer, .architecture-toolbar, .sequence-controls, .closing-links, dialog { display: none !important; }
  .enhanced .scene[hidden], .enhanced .scene { display: block !important; min-height: 0; break-after: page; padding: 25px; zoom: 1 !important; }
  body { background: #0c1421; print-color-adjust: exact; }
  #system-map { max-height: none; }
}
