/* Phone interactions stay in a focused viewport and return to the same page position. */
.mobile-example-launch, .mobile-pipeline-stages { display: none; }
.demo-dialog { position: fixed; inset: 0; width: 100%; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; overflow: hidden; color: #e8f3fa; background: #0c2030; }
.demo-dialog[open] { display: flex; flex-direction: column; }
.demo-dialog::backdrop { background: #070e17; }
.demo-dialog-header { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: max(14px, env(safe-area-inset-top)) max(18px, env(safe-area-inset-right)) 14px max(18px, env(safe-area-inset-left)); border-bottom: 1px solid #6e99b33d; background: #0a1a28; }
.demo-dialog-header > div { min-width: 0; }
.demo-dialog-header > div > span { display: block; font-size: 8px; letter-spacing: .1em; color: #8fb9cf; margin-bottom: 5px; }
.demo-dialog-header h2 { font-family: 'Inter Tight', sans-serif; font-size: 23px; line-height: 1.1; letter-spacing: -.035em; }
.demo-dialog-close { flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%; border: 1px solid #85aec557; background: none; color: #dceef7; font-size: 28px; }
.demo-dialog-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 12px max(12px, env(safe-area-inset-right)) 12px max(12px, env(safe-area-inset-left)); -webkit-overflow-scrolling: touch; }
.demo-dialog-footer { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 5px max(18px, env(safe-area-inset-right)) max(5px, env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left)); background: #0a1a28; border-top: 1px solid #6e99b33d; }
.demo-dialog-footer > span { max-width: 240px; color: #9abacd; font-size: 10px; line-height: 1.6; }
.demo-dialog-done { min-height: 44px; min-width: 65px; background: none; display: flex; align-items: center; gap: 14px; font-size: 12px; color: #c7e9f5; }
.demo-dialog .mobile-inline-example { display: block; }
.demo-dialog .reveal { opacity: 1; transform: none; transition: none; }
.demo-dialog .service-visual { padding: 0; }
.demo-dialog [hidden] { display: none !important; }
.demo-dialog .workspace { min-height: 0; }
.demo-dialog .crm-hero-art { width: 100%; max-width: 900px; margin: 0 auto; height: auto !important; }
.demo-dialog .crm-expand, .demo-dialog .crm-hero-caption { display: none; }
.demo-dialog .crm-hero-fit { transform: none; padding: 0; }

@media (max-width: 1000px) {
  .mobile-inline-example, .expertise-grid > .service-stage { display: none; }
  .mobile-example-launch { display: flex; flex-direction: column; align-items: flex-start; position: relative; padding: 30px; border: 1px solid #6f9ab35c; border-radius: 12px; overflow: hidden; background: radial-gradient(ellipse at 90% 15%, #285771, transparent 65%), #10283a; color: #edf6fa; }
  .example-launch-art { position: relative; width: 100%; height: 95px; display: flex; align-items: center; justify-content: flex-start; margin-bottom: 22px; }
  .example-launch-art .capability-icon { width: 58px; height: 58px; stroke-width: 1; color: #b6e4f6; filter: drop-shadow(0 0 18px #77ddf955); }
  .example-launch-art > span { position: absolute; left: -28px; width: 118px; height: 76px; border: 1px solid #93c8df3b; border-radius: 50%; transform: rotate(-30deg); }
  .example-launch-art > span:last-child { width: 160px; height: 108px; left: -50px; opacity: .45; }
  .mobile-example-launch > .index { font-size: 9px; color: #96c3d8; }
  .mobile-example-launch h3 { font-family: 'Inter Tight', sans-serif; font-size: 33px; letter-spacing: -.04em; line-height: 1.1; margin-top: 18px; }
  .mobile-example-launch > p { color: #adc9da; font-size: 15px; line-height: 1.7; margin-top: 18px; max-width: 540px; }
  .mobile-example-launch .button { margin-top: 25px; width: 100%; min-height: 50px; font-size: 13px; }
  .example-launch-note { font-size: 10px; color: #8eb5cc; margin-top: 18px; }
  .expertise .service-trigger { padding: 24px 0; }
  .expertise .service-symbol { color: #a6d6ea; font-size: 22px; }
  .expertise .service-item { border-top: 1px solid #6993ad44; }
  .hero.hero-carousel { padding-top: 88px; touch-action: auto; overflow: clip; color: #f1f5f7; }
  .hero-controls { position: sticky; top: 78px; z-index: 8; padding: 8px 0 10px; gap: 4px; margin: 0 var(--pad); background: #080f18f7; }
  .hero-selector { padding-bottom: 5px; margin-bottom: 0; }
  .hero-selector .hero-dot { min-height: 52px; min-width: 132px; padding: 9px 13px; gap: 2px; }
  .hero-selector .hero-dot > strong { font-size: 12px; }
  .hero-selector .hero-dot > span { font-size: 8px; }
  .hero-transport { padding-top: 0; }
  .hero-prev, .hero-next { width: 36px; height: 36px; min-height: 36px; }
  .hero .motion-toggle { min-height: 36px; }
  .hero-slide { padding-top: 18px; touch-action: pan-y pinch-zoom; }
  .hero-slides { display: grid; min-height: 550px; }
  .hero-slide, .hero-slide.is-current { display: grid; grid-area: 1 / 1; align-content: start; }
  .hero h1 > span, .hero h2 > span, .hero-prev, .hero-next { color: #f1f5f7; }
  .hero .hero-content h1, .hero .hero-content h2, .hero .hero-content .brand-hero-title { font-size: clamp(39px, 10.5vw, 72px); }
  .hero-content .rebrand { margin-bottom: 15px; }
  .hero-slide > .hero-art, .hero-slide > .hero-employee-art, .hero .hero-product-art, .hero-slide > .hero-neural-art { margin-block: 20px; }
  .hero-employee-art .employee-console { display: flex; flex-direction: column; }
  .hero-employee-art .employee-console-bar { padding-block: 10px; }
  .hero-employee-art .employee-main { grid-template-columns: .9fr 1.1fr; min-height: 145px; }
  .hero-employee-art .employee-network { height: 145px; min-height: 145px; }
  .hero-employee-art .employee-identity { padding: 18px 12px 15px 0; }
  .hero-employee-art .employee-identity h3 { font-size: 33px; }
  .hero-employee-art .employee-description, .hero-employee-art .employee-skills, .hero-employee-art .employee-work, .hero-employee-art .employee-console-footer, .hero-employee-art .network-legend, .hero-employee-art .network-coordinate { display: none; }
  .hero-employee-art .employee-specialty { font-size: 12px; }
  .hero-employee-art .employee-roster { order: -1; border-top: 0; border-bottom: 1px solid #668da33b; }
  .hero-employee-art .employee-roster > button { min-height: 44px; }
  .hero-employee-art .employee-console-bar { display: none; }
  .hero .crm-hero-art .crm-dashboard { display: block; }
  .hero .crm-hero-art .crm-nav, .hero .crm-hero-art .crm-dashboard-header,
  .hero .crm-hero-art .crm-products-panel, .hero .crm-hero-art .crm-bottom-grid,
  .hero .crm-hero-art .crm-attention, .hero .crm-hero-art .crm-revenue-metrics,
  .hero .crm-hero-art .crm-hero-caption { display: none; }
  .hero .crm-hero-art .crm-dashboard-body { padding: 8px; }
  .hero .crm-hero-art .crm-revenue-chart { height: 116px; }
  .hero .crm-expand { margin-top: 8px; min-height: 44px; font-size: 11px; padding: 10px 13px; }
  .hero .payment-hero-art { gap: 10px; }
  .hero .hero-payment-card { width: 280px; max-width: 100%; padding-bottom: 14px; transform: none; }
  .hero .hero-payment-feed, .hero .payment-hero-art .hero-demo-note { display: none; }
  .hero .hero-payment-card .hero-ui-bar { padding-block: 9px; }
  .hero .pay-order-label { margin-top: 12px; }
  .hero .pay-total { font-size: 42px; }
  .hero .pay-currency { font-size: 9px; margin-bottom: 12px; }
  .hero .pay-field { font-size: 10px; padding: 8px 10px; margin-block: 7px; }
  .hero .pay-animation-button { margin-top: 10px; height: 37px; font-size: 11px; }
  .hero-slide > .hero-neural-art { display: block; height: 240px; padding: 0; }
  .hero-neural-art canvas { height: 230px; }
  .hero-neural-art .neural-tag { display: none; }
  .hero-neural-art .neural-core { top: 108px; }
  .hero-neural-art .neural-brand { top: 205px; }
  .demo-dialog .command-console { margin: 0; }
  .demo-dialog .command-result { min-height: 0; }
  .demo-dialog .workflow-node-state { padding: 0; }
  .demo-dialog .command-console-top { display: none; }
  .demo-dialog .command-toolbar { padding: 12px; gap: 8px; }
  .demo-dialog .command-scenarios button { font-size: 11px; min-height: 44px; padding: 8px; }
  .demo-dialog .command-run { width: 100%; min-height: 44px; padding: 10px 16px; }
  .demo-dialog .command-map { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 4px 12px 10px; height: auto; }
  .demo-dialog .command-map > svg { display: none; }
  .demo-dialog .workflow-node, .demo-dialog .command-hub { position: relative; inset: auto; width: auto; min-height: 94px; padding: 9px; grid-column: auto; grid-row: auto; display: block; text-align: left; border-radius: 7px; }
  .demo-dialog .command-hub-orbit, .demo-dialog .command-hub > img { display: none; }
  .demo-dialog .workflow-node-top { font-size: 8px; gap: 4px; line-height: 1.2; }
  .demo-dialog .workflow-node-top b { font-size: 8px; }
  .demo-dialog .workflow-node-glyph { font-size: 13px; }
  .demo-dialog .workflow-node h3, .demo-dialog .command-hub h3 { font-size: 16px; line-height: 1.2; margin: 8px 0 0; }
  .demo-dialog .command-hub h3 { margin-top: 0; }
  .demo-dialog .workflow-node p, .demo-dialog .command-hub p { display: none; }
  .demo-dialog .workflow-node-state, .demo-dialog .command-hub > span { font-size: 10px; line-height: 1.4; margin-top: 7px; }
  .demo-dialog .command-result { padding: 12px; gap: 10px; flex-direction: row; }
  .demo-dialog .command-result-label { font-size: 8px; }
  .demo-dialog .command-result p { font-size: 13px; margin-top: 5px; }
  .demo-dialog .command-progress { width: 55px; min-width: 55px; }
  .demo-dialog .command-progress > span { font-size: 11px; }
  .demo-dialog .solution-experience { display: flex; flex-direction: column; }
  .demo-dialog .solution-console-top { display: none; }
  .demo-dialog .solution-console-intro { padding: 14px 16px 0; order: 0; }
  .demo-dialog .solution-console-intro h3 { font-size: 26px; }
  .demo-dialog .solution-console-intro p { font-size: 10px; margin-top: 10px; }
  .demo-dialog .solution-console-bottom { order: 1; margin: 10px 0 0; padding: 10px 16px; gap: 12px; border-bottom: 1px solid #5d8aa03d; }
  .demo-dialog .solution-console-bottom > p { font-size: 10px; }
  .demo-dialog .solution-console-bottom button { min-height: 44px; padding: 11px 16px; font-size: 12px; }
  .demo-dialog .solution-flow-steps { order: 2; grid-template-columns: 1fr 1fr; padding: 12px; gap: 8px; }
  .demo-dialog .solution-flow-step { display: flex; padding: 10px 12px; min-height: 140px; gap: 0; }
  .demo-dialog .flow-step-icon { width: 28px; height: 28px; border-radius: 7px; margin-bottom: 6px; }
  .demo-dialog .flow-step-icon .capability-icon { width: 20px; height: 20px; }
  .demo-dialog .flow-step-index { font-size: 7px; }
  .demo-dialog .solution-flow-step h4 { font-size: 17px; margin: 8px 0; }
  .demo-dialog .solution-flow-step p { display: none; }
  .demo-dialog .flow-step-state { margin-top: auto; font-size: 10px; }
}

@media (max-width: 600px) {
  .hero-slides { min-height: 530px; }
  .hero-slide { padding: 12px var(--pad) 25px; }
  .hero .hero-content .hero-copy { font-size: 14px; line-height: 1.6; }
  .hero .hero-content .button { min-height: 44px; padding: 12px 16px; margin-top: 16px; font-size: 12px; }
  .hero-content .rebrand { font-size: 8px; margin-bottom: 9px; }
  .hero .hero-content h1, .hero .hero-content h2, .hero .hero-content .brand-hero-title { font-size: 10.5vw; }
  .hero .hero-content .brand-hero-title { font-size: 15vw; }
  .hero-slide > .hero-art, .hero-slide > .hero-employee-art, .hero .hero-product-art, .hero-slide > .hero-neural-art { margin-block: 16px; }
  .brand-slide .hero-art { height: 225px; margin-block: 0 4px; }
  .hero .hero-product-label { font-size: 9px; }
  .mobile-example-launch { padding: 26px; }
  .demo-dialog-body { padding: 8px; }
  .demo-dialog .workspace-bar { display: none; }
  .demo-dialog .workspace-content { padding: 14px; }
  .demo-dialog .workspace-heading, .demo-dialog .workspace-metrics { display: none; }
  .demo-dialog .workspace button { min-height: 44px; font-size: 12px; }
  .demo-dialog .workspace button[hidden] { display: none !important; }
  .demo-dialog .payment-demo-grid, .demo-dialog .platform-demo-grid, .demo-dialog .ai-demo-grid { gap: 12px; }
  .demo-dialog .checkout-panel, .demo-dialog .booking-panel { padding: 12px; }
  .demo-dialog .checkout-summary { padding: 0; margin: 10px 0; }
  .demo-dialog .checkout-summary > strong { font-size: 34px; }
  .demo-dialog .demo-payment-method { padding: 10px 12px; }
  .demo-dialog .checkout-panel:has(#reset-payment:not([hidden])) #run-payment { display: none; }
  .demo-dialog .demo-reset { width: 100%; }
  .demo-dialog .connection-panel { padding: 0; }
  .demo-dialog .connection-panel > .workspace-eyebrow { display: none; }
  .demo-dialog .connection-steps { margin: 0; }
  .demo-dialog .connection-steps li { min-height: 28px; padding-block: 4px; font-size: 11px; }
  .demo-dialog .connection-number { width: 19px; height: 19px; font-size: 8px; }
  .demo-dialog .demo-outcome { font-size: 12px; min-height: 62px; line-height: 1.5; margin-top: 10px; padding: 12px; }
  .demo-dialog .workspace-tab-row { margin-bottom: 12px; }
  .demo-dialog .mobile-pipeline-stages { display: flex; padding: 0; margin: 0 0 12px; list-style: none; gap: 7px; }
  .demo-dialog .mobile-pipeline-stages li { flex: 1; padding: 10px 6px; border: 1px solid #c4dae5; border-radius: 4px; color: #668295; font-size: 11px; text-align: center; }
  .demo-dialog .mobile-pipeline-stages .is-current { background: #1c4b65; border-color: #1c4b65; color: white; }
  .demo-dialog .kanban { display: block; min-height: 185px; }
  .demo-dialog .kanban-column { display: none; min-height: 185px; padding: 0; border: 0; background: none; }
  .demo-dialog .kanban-column.is-current-stage { display: block; }
  .demo-dialog .kanban-column > h5, .demo-dialog .secondary-opportunity, .demo-dialog .kanban-empty { display: none; }
  .demo-dialog .opportunity { padding: 20px; margin: 0; min-height: 185px; }
  .demo-dialog .opportunity h6 { font-size: 22px; }
  .demo-dialog .opportunity > strong { font-size: 26px; }
  .demo-dialog .crm-action-row { margin-top: 12px; gap: 10px; }
  .demo-dialog .crm-action-row > span { min-height: 40px; font-size: 12px; }
  .demo-dialog #crm-contacts { min-height: 240px; }
  .demo-dialog .booking-property { padding: 10px; margin-bottom: 10px; min-height: 0; }
  .demo-dialog .booking-property > strong { font-size: 18px; margin: 5px 0 0; max-width: none; }
  .demo-dialog .booking-property > p { display: none; }
  .demo-dialog .booking-dates { margin-top: 10px; gap: 8px; }
  .demo-dialog .booking-dates button { padding: 9px 6px; }
  .demo-dialog .booking-dates strong { font-size: 25px; margin: 2px 0; }
  .demo-dialog .booking-total { padding-block: 10px; margin-top: 0; font-size: 11px; }
  .demo-dialog .booking-panel { padding: 0; }
  .demo-dialog .booking-panel .demo-primary { margin-top: 0; }
  .demo-dialog .booking-total strong { font-size: 18px; }
  .demo-dialog .web-workspace .workspace-heading { display: flex; margin: 0 0 12px; }
  .demo-dialog .web-workspace .workspace-heading > div:first-child { display: none; }
  .demo-dialog .device-controls { width: 100%; display: flex; flex-direction: row; }
  .demo-dialog .device-controls button { flex: 1; }
  .demo-dialog .device-stage { padding: 0; min-height: 0; }
  .demo-dialog .preview-app-hero { padding: 12px; }
  .demo-dialog .preview-app-nav { padding: 8px 12px; }
  .demo-dialog .preview-app-hero > strong { font-size: 25px; margin-block: 6px 0; }
  .demo-dialog .preview-app-hero > p { display: none; }
  .demo-dialog .preview-task-area { padding: 12px; }
  .demo-dialog .preview-task-area label { padding-block: 10px; min-height: 44px; }
  .demo-dialog .preview-task-area label > span { font-size: 11px; }
  .demo-dialog .preview-task-area label small { display: none; }
  .demo-dialog .preview-task-area label > span:last-child { font-size: 9px; }
  .demo-dialog .web-demo-note { font-size: 10px; gap: 4px; margin-top: 8px; }
  .demo-dialog .ai-greeting { margin-bottom: 12px; }
  .demo-dialog .ai-greeting p { font-size: 16px; }
  .demo-dialog .ai-prompts { gap: 8px; }
  .demo-dialog .ai-prompts button { padding: 11px 12px; }
  .demo-dialog .ai-context { display: none; }
  .demo-dialog #ai-output { min-height: 265px; }
  .demo-dialog .ai-answer h5 { font-size: 21px; }
  .demo-dialog .ai-answer p, .demo-dialog .ai-empty { font-size: 12px; line-height: 1.6; }
  .demo-dialog .ai-draft { margin-top: 12px; padding: 12px; }
  .demo-dialog .ai-answer .demo-primary { margin-top: 14px; }
  .demo-dialog .employee-console { display: flex; flex-direction: column; }
  .demo-dialog .employee-console-bar { padding: 10px 12px; order: 0; }
  .demo-dialog .employee-roster { order: 1; }
  .demo-dialog .employee-main { order: 2; display: grid; grid-template-columns: .75fr 1.25fr; min-height: 175px; }
  .demo-dialog .employee-network { min-height: 175px; height: 175px; }
  .demo-dialog .employee-identity { padding: 18px 13px 18px 0; }
  .demo-dialog .employee-identity h3 { font-size: 35px; }
  .demo-dialog .employee-specialty { font-size: 13px; }
  .demo-dialog .employee-description { font-size: 12px; line-height: 1.6; }
  .demo-dialog .employee-skills, .demo-dialog .network-coordinate, .demo-dialog .network-legend { display: none; }
  .demo-dialog .employee-work { order: 3; padding: 12px; margin-bottom: 8px; }
  .demo-dialog .employee-work-heading { font-size: 8px; padding: 0 0 9px; }
  .demo-dialog .employee-context { margin-top: 9px; font-size: 10px; padding: 0; }
  .demo-dialog .employee-task { margin-top: 9px; padding: 0; }
  .demo-dialog .employee-task p { font-size: 12px; }
  .demo-dialog .employee-task [data-employee-detail] { font-size: 10px; }
  .demo-dialog .employee-result { padding: 10px; margin-top: 12px; }
  .demo-dialog .employee-result strong { font-size: 12px; }
  .demo-dialog .employee-roster > button { min-height: 48px; padding-inline: 6px; font-size: 11px; }
  .demo-dialog .employee-console-footer { order: 4; padding: 7px 12px; font-size: 10px; }
  .demo-dialog .employee-cycle { min-height: 36px; font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) { .demo-dialog *, .demo-dialog *::before, .demo-dialog *::after { transition: none !important; } }

/* A paused entrance animation must still reveal its answer. */
.motion-paused .ai-answer { animation: none !important; filter: none !important; opacity: 1; transform: none; }
