/* A self-contained, illustrative routing player. No external assets or calls. */
.teaser-content { position: absolute; top: var(--window-center-y, 50%); left: 50%; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; width: min(1000px, calc(var(--window-width, 100vw) - 40px)); max-width: 100%; }
.teaser-trailer { position: absolute; top: var(--window-center-y, 50%); left: 50%; transform: translate(-50%, -50%); width: var(--window-width); height: var(--window-height); }
.trailer-top { position: absolute; z-index: 2; top: 16px; left: 20px; right: 16px; display: flex; align-items: center; justify-content: space-between; gap: 20px; color: white; font-size: 11px; }
.trailer-top > span { padding: 7px 12px; border-radius: 999px; background: #15161399; }
.trailer-close { display: flex; gap: 16px; align-items: center; padding: 9px 15px; border: 1px solid #ffffff55; border-radius: 999px; color: white; background: #151613bb; font: 12px var(--body); backdrop-filter: blur(12px); }
.trailer-close:hover { border-color: white; background: var(--ink); }
.teaser-video { display: block; width: 100%; height: 100%; max-height: none; aspect-ratio: 16 / 9; object-fit: contain; background: #0b0b0b; }
.teaser-trailer > .teaser-note { display: none; }
.intro-demo-teaser.is-playing-trailer { padding: 0; }
.intro-scene:has(.is-playing-trailer) .intro-scroll-cue { visibility: hidden; }
/* Pill silhouette and inset play disc, using Hydra's monochrome palette. */
.v2 .intro-scene .hero-cta .hero-demo-open,
.v2 .intro-demo-teaser .trailer-open { min-height: 62px; padding: 7px 25px 7px 7px; border-radius: 999px; gap: 16px; font: 400 17px/1.3 var(--body); letter-spacing: 0; box-shadow: inset 0 0 0 1px #ffffff0c; }
.v2 .intro-demo-teaser .trailer-open { color: white; border: 1px solid #ffffff45; background: #ffffff0d; }
.v2 .intro-demo-teaser .trailer-open:hover { border-color: #ffffff99; background: #ffffff1c; }
.hero-demo-open > span[aria-hidden], .trailer-open > span[aria-hidden] { width: 46px; height: 46px; display: grid; place-items: center; flex-shrink: 0; border-radius: 50%; background: #ffffff24; font-size: 15px; padding-left: 2px; }
.motion-paused .intro-demo-teaser { --window-center-y: 50%; width: min(1600px, calc(100% - 32px)); aspect-ratio: 16 / 9; min-height: 0; margin: 24px auto; border-radius: 22px; overflow: clip; }
.motion-paused .teaser-trailer { width: 100%; height: 100%; }
@media(max-width: 640px), (max-height: 600px) {
 .intro-demo-teaser .teaser-mark { display: none; }
 .v2 .intro-demo-teaser h2 { font-size: clamp(23px, 4vw, 36px); margin-bottom: 14px; }
 .v2 .intro-demo-teaser .trailer-open { min-height: 46px; padding: 5px 18px 5px 5px; gap: 10px; font-size: 14px; }
 .trailer-open > span[aria-hidden] { width: 34px; height: 34px; font-size: 12px; }
 .intro-demo-teaser .teaser-note { margin-top: 9px; font-size: 8px; }
 .trailer-top { top: 9px; right: 9px; left: 9px; }
 .trailer-top > span { font-size: 9px; }
 .trailer-close { padding: 6px 11px; font-size: 11px; }
}
.demo-dialog { width: min(1100px, calc(100vw - 48px)); max-width: none; max-height: calc(100svh - 48px); margin: auto; padding: 30px; border: 1px solid var(--rule); border-radius: 8px; background: var(--paper); color: var(--ink); overflow: auto; overscroll-behavior: contain; }
.demo-dialog::backdrop { background: color-mix(in srgb, var(--ink) 55%, transparent); }
.demo-dialog *, .demo-dialog *::before, .demo-dialog *::after { box-sizing: border-box; }
.demo-dialog button { cursor: pointer; }
.demo-dialog button:focus-visible { outline: 2px solid var(--signal); outline-offset: 4px; }
.demo-dialog-head { display: flex; align-items: center; gap: 24px; margin-bottom: 30px; }
.v2 .demo-dialog-head h2 { font-weight: 400; font-size: clamp(25px, 3vw, 35px); line-height: 1.14; letter-spacing: -.045em; margin: 7px 0 0; text-wrap: balance; }
.demo-dialog-head > div { min-width: 0; }
.demo-dialog-head .nav-lockup { color: var(--ink); }
.demo-dialog-head .nav-lockup svg { color: var(--signal); }
.demo-kicker { margin: 0; font: 10px/1.7 var(--mono); color: var(--graphite); }
.demo-close { display: grid; place-items: center; width: 44px; height: 44px; flex: 0 0 44px; margin-left: auto; border: 1px solid var(--rule); border-radius: 50%; color: var(--ink); background: transparent; font: 26px/1 var(--body); }
.demo-close:hover { background: var(--rule); }
.demo-close svg { width: 18px; height: 18px; }
.demo-sample-switch { display: flex; gap: 8px; flex-wrap: wrap; padding-bottom: 24px; }
.demo-sample-switch button { padding: 10px 15px; min-height: 42px; border: 1px solid var(--rule); border-radius: 2px; background: transparent; color: var(--graphite); font: 12px/1.5 var(--body); }
.demo-sample-switch button:hover { color: var(--ink); border-color: var(--graphite); }
.demo-sample-switch button[aria-pressed="true"] { color: var(--paper); background: var(--ink); border-color: var(--ink); }
.demo-player { border-top: 1px solid var(--rule); }
.demo-story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(250px, 1.45fr) minmax(0, 1fr); gap: 18px; align-items: center; min-height: 330px; padding-block: 30px; }
.demo-request-card, .demo-answer-card { align-self: stretch; min-width: 0; border: 1px solid var(--rule); border-radius: 2px; padding: 19px 17px; display: flex; flex-direction: column; justify-content: center; transition: border-color .35s, opacity .35s, transform .35s; }
.demo-request-card .micro, .demo-answer-card .micro { margin-bottom: 15px; }
.demo-request-card pre, .demo-answer-card pre { white-space: pre-wrap; overflow-wrap: anywhere; margin: 0; font: 13px/1.8 var(--body); color: var(--ink); }
.demo-answer-card { opacity: .38; }
.demo-answer-card.is-ready { opacity: 1; border-color: var(--ink); }
.demo-player[data-step="0"] .demo-request-card { border-color: var(--ink); }
.demo-player[data-step="1"] .demo-request-card { border-color: var(--graphite); }
.demo-routing-map { width: 100%; min-width: 0; overflow: visible; }
.demo-routing-map svg { display: block; width: 100%; height: auto; overflow: visible; }
.demo-routing-map .demo-branch { fill: none; stroke: var(--rule); stroke-width: 1.8; transition: stroke .35s, opacity .35s; }
.demo-routing-map .demo-node circle { fill: var(--paper); stroke: var(--rule); stroke-width: 1.8; transition: stroke .35s, fill .35s; }
.demo-routing-map .demo-node text { fill: var(--graphite); font: 14px var(--mono); transition: fill .35s; }
.demo-routing-map .demo-map-hub circle { fill: var(--paper); stroke: var(--graphite); stroke-width: 1.8; transition: stroke .35s; }
.demo-routing-map .demo-map-hub text { fill: var(--ink); font: 16px var(--display); }
.demo-routing-map .demo-map-hub path { color: var(--signal); fill: none; }
.demo-routing-map .demo-active-path { fill: none; stroke: var(--signal); stroke-width: 2; opacity: 0; transition: opacity .35s; }
.demo-routing-map .demo-flow-packet { fill: var(--signal); stroke: none; offset-distance: 0%; opacity: 0; }
.demo-player[data-step="1"] .demo-map-hub circle { stroke: var(--signal); stroke-width: 2.5; }
.demo-player[data-step="2"] .demo-node.is-selected circle, .demo-player[data-step="3"] .demo-node.is-selected circle { stroke: var(--signal); }
.demo-player[data-step="2"] .demo-node.is-selected text, .demo-player[data-step="3"] .demo-node.is-selected text { fill: var(--signal); }
.demo-player[data-step="2"] .demo-branch.is-selected, .demo-player[data-step="3"] .demo-branch.is-selected { stroke: var(--signal); }
.demo-player[data-step="2"] .demo-active-path, .demo-player[data-step="3"] .demo-active-path { opacity: 1; }
.demo-player.is-running[data-step="2"] .demo-flow-packet { opacity: 1; animation: demo-flow 1.4s linear infinite; }
.demo-timeline { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; list-style: none; margin: 0; padding: 0 0 25px; }
.demo-timeline li { border-top: 1px solid var(--rule); font: 11px/1.6 var(--body); color: var(--graphite); }
.demo-timeline button { width: 100%; min-height: 44px; display: flex; align-items: baseline; gap: 9px; padding: 12px 0 0; border: 0; background: transparent; color: inherit; font: inherit; text-align: left; }
.demo-timeline button:hover { color: var(--ink); }
.demo-timeline button .mono { font-size: 9px; }
.demo-timeline li.is-current { border-color: var(--signal); color: var(--signal); }
.demo-timeline li.is-complete { border-color: var(--ink); color: var(--ink); }
.demo-player-footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 20px; border-top: 1px solid var(--rule); }
.demo-player-footer p { margin: 0; max-width: 60ch; font: 12px/1.7 var(--body); color: var(--graphite); }
#demo-status { color: var(--ink); }
#demo-explanation { margin-top: 4px; }
.demo-playback { display: flex; gap: 9px; flex-shrink: 0; }
.demo-playback button { min-height: 42px; padding: 10px 15px; border: 1px solid var(--rule); border-radius: 2px; background: transparent; color: var(--ink); font: 11px/1.5 var(--body); }
.demo-playback button:hover { border-color: var(--ink); }
.demo-playback button:disabled { opacity: .45; cursor: default; }
.demo-dialog .demo-disclaimer { margin: 6px 0 0; padding-top: 16px; border-top: 1px solid var(--rule); color: var(--graphite); font: 9px/1.8 var(--mono); }
.motion-paused .demo-dialog *, .motion-paused .demo-dialog *::before { animation: none !important; transition: none !important; }
.motion-paused .demo-flow-packet { display: none; }
@keyframes demo-flow { from { offset-distance: 0%; } to { offset-distance: 100%; } }
@media(max-width: 860px) {
 .demo-dialog { padding: 24px; }
 .demo-story { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; padding-block: 22px; min-height: 0; }
 .demo-request-card { grid-column: 1; grid-row: 1; }
 .demo-answer-card { grid-column: 2; grid-row: 1; }
 .demo-routing-map { grid-column: 1 / -1; grid-row: 2; max-width: 470px; margin-inline: auto; }
 .demo-request-card, .demo-answer-card { min-height: 140px; }
 .demo-player-footer { align-items: flex-start; gap: 18px; }
 .demo-dialog-head { gap: 17px; }
}
@media(max-width: 540px) {
 .demo-dialog { width: calc(100vw - 20px); max-height: calc(100svh - 20px); padding: 18px; border-radius: 6px; }
 .demo-dialog-head { flex-wrap: wrap; column-gap: 12px; row-gap: 7px; margin-bottom: 20px; }
 .demo-dialog-head .nav-lockup { font-size: 22px; }
 .demo-kicker { font-size: 8px; }
 .demo-dialog-head > div { flex: 1; }
 .v2 .demo-dialog-head h2 { font-size: 25px; }
 .demo-close { width: 40px; height: 40px; flex-basis: 40px; }
 .demo-sample-switch { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding-bottom: 18px; }
 .demo-sample-switch button { font-size: 11px; padding: 8px 6px; overflow-wrap: anywhere; }
 .demo-story { grid-template-columns: minmax(0, 1fr); gap: 15px; padding-block: 18px; }
 .demo-request-card { grid-column: 1; grid-row: 1; }
 .demo-routing-map { grid-column: 1; grid-row: 2; }
 .demo-answer-card { grid-column: 1; grid-row: 3; }
 .demo-request-card, .demo-answer-card { padding: 14px; min-height: 0; }
 .demo-request-card .micro, .demo-answer-card .micro { margin-bottom: 8px; font-size: 9px; }
 .demo-request-card pre, .demo-answer-card pre { font-size: 12px; line-height: 1.7; }
 .demo-timeline { gap: 9px; padding-bottom: 18px; }
 .demo-timeline li { font-size: 10px; overflow-wrap: anywhere; }
 .demo-timeline button { display: block; padding-top: 9px; }
 .demo-timeline button .mono { display: block; margin-bottom: 3px; }
 .demo-player-footer { flex-direction: column; gap: 15px; padding-block: 16px; }
 .demo-player-footer p { font-size: 11px; }
 .demo-playback { width: 100%; }
 .demo-playback button { flex: 1; }
 .demo-dialog .demo-disclaimer { font-size: 8px; }
}
