.xr-comparison { color: var(--text); text-align: start; }
.xr-comparison .xr-label { color: #ffad74; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.xr-comparison h2 { max-width: 24ch; margin: .7rem 0 1rem; font-size: clamp(2rem, 5vw, 3.6rem); }
.xr-comparison .xr-intro { max-width: 70ch; font-size: 1.1rem; line-height: 1.65; }
.xr-pillars { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin: 2rem 0 2.4rem; }
.xr-pillars article { border: 1px solid #8b613f; background: linear-gradient(145deg,#2b201b,var(--surface-solid)); border-radius: 1rem; padding: 1.25rem; }
.xr-pillars article > span, .xr-number { color: #ffad74; font-weight: 700; }
.xr-pillars h3 { font-size: 1.2rem; margin: .65rem 0; }
.xr-comparison p, .xr-comparison td, .xr-comparison li { color: #bac4d1; }
.xr-pillars p, .xr-note { margin-bottom: 0; }
.xr-group { background: var(--surface-solid); border: 1px solid #444650; border-radius: .75rem; margin: .75rem 0; }
.xr-group summary { display: flex; align-items: center; gap: .85rem; cursor: pointer; padding: 1rem 1.15rem; font-weight: 700; list-style: none; }
.xr-group summary::-webkit-details-marker { display: none; }
.xr-group summary::after { content: "+"; margin-inline-start: auto; color: #ffad74; }
.xr-group[open] summary::after { content: "−"; }
.xr-group summary:hover { color: #ffad74; }
.xr-group summary:focus-visible { outline: 2px solid #ffad74; outline-offset: -3px; }
.xr-pilot-content { padding: 0 1.15rem 1rem; }
.xr-pilot-content ul { margin-bottom: 0; }
.xr-note { font-size: .9rem; border-inline-start: 3px solid #cf814b; padding-inline-start: 1rem; margin-top: 1.4rem; max-width: 82ch; }
@media (max-width: 700px) {
  .xr-pillars { grid-template-columns: 1fr; }
}

.xr-concept-art {
  display: block;
  width: 100%;
  height: clamp(8rem, 15vw, 11rem);
  object-fit: contain;
  margin-bottom: 1rem;
}
.xr-pilot-content {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  align-items: center;
  gap: 1.5rem;
}
.xr-pilot-art {
  width: 100%;
  height: clamp(10rem, 20vw, 16rem);
  object-fit: contain;
}
@media (max-width: 700px) {
  .xr-pilot-content { grid-template-columns: 1fr; gap: .75rem; }
  .xr-concept-art { height: 9rem; }
  .xr-pilot-art { height: 11rem; }
}

.xr-reference {
  display: inline-block;
  margin-top: .7rem;
  color: #ffad74;
  font-size: .85rem;
  text-decoration: underline;
}

.xr-motion-card { grid-column: 1 / -1; }
.xr-motion-demo { display: grid; gap: .65rem; margin-top: 1rem; }
.xr-demo-scenes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
.xr-demo-panel { background: #141a24; border: 1px solid #444650; border-radius: .7rem; padding: .65rem; }
.xr-demo-panel h4 { margin: 0; font-size: .85rem; color: #e8eef7; }
.xr-demo-panel svg { display: block; width: 100%; max-height: 12rem; }
.xr-demo-charts svg { height: 3.2rem; }
.xr-demo-grid { fill: none; stroke: #3a4555; }
.xr-demo-charts [data-trace] { fill: none; stroke-width: 2; vector-effect: non-scaling-stroke; }
.xr-demo-charts [data-trace="0"] { stroke: #68d9f2; }
.xr-demo-charts [data-trace="1"] { stroke: #ffad74; }
.xr-demo-charts [data-trace="2"] { stroke: #c6baff; }
.xr-demo-charts [data-trace="3"] { stroke: #9ae3ba; }
.xr-demo-kicker, .xr-demo-state { font-size: .88rem; }
.xr-demo-state { margin-top: .2rem; color: #e8eef7; }
.xr-motion-demo [data-marker] { display: none; }
.xr-motion-demo[data-stage="0"] [data-marker="0"],
.xr-motion-demo[data-stage="1"] [data-marker="1"],
.xr-motion-demo[data-stage="2"] [data-marker="2"] { display: revert; }
.xr-demo-arm { transform-origin: 124px 85px; }
.xr-demo-glove { transform-origin: 174px 95px; }
.xr-motion-demo[data-stage="2"] .xr-demo-arm { transform: rotate(-34deg); }
.xr-motion-demo[data-stage="0"] .xr-demo-wire { opacity: .18; }
.xr-motion-demo.is-playing[data-stage="1"] .xr-demo-glove { animation: xr-wrist .8s ease-in-out infinite alternate; }
.xr-motion-demo.is-playing[data-stage="2"] .xr-demo-arm { animation: xr-lift 1.4s ease-in-out infinite alternate; }
.xr-motion-demo.is-playing:not([data-stage="0"]) .xr-demo-wire { animation: xr-packet .7s linear infinite; }
@keyframes xr-wrist { from { transform: rotate(-18deg); } to { transform: rotate(24deg); } }
@keyframes xr-lift { to { transform: rotate(-55deg); } }
@keyframes xr-packet { to { stroke-dashoffset: -26; } }

.xr-quick-diagrams { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: .85rem; margin: 1.5rem 0; }
.xr-quick-flow { padding: 1rem; background: #151923; border: 1px solid #535668; border-radius: .8rem; }
.xr-flow-optanar { background: #261d19; border-color: #a46c45; }
.xr-quick-flow h3 { font-size: 1rem; margin: 0 0 .9rem; }
.xr-quick-flow ol { display: flex; align-items: stretch; margin: 0; padding: 0; list-style: none; }
.xr-quick-flow li { display: flex; flex: 1; min-width: 0; flex-direction: column; align-items: center; text-align: center; font-size: .78rem; line-height: 1.25; }
.xr-quick-flow li + li { position: relative; }
.xr-quick-flow li + li::before { content: "→"; position: absolute; left: 0; top: .25rem; transform: translateX(-50%); color: #bac4d1; }
.xr-quick-flow svg { width: 2rem; height: 2rem; margin: 0 0 .35rem; fill: none; stroke: #a4bdd8; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.xr-flow-optanar svg { stroke: #ffad74; }
.xr-quick-matrix { width: 100%; table-layout: fixed; border-collapse: collapse; background: #151923; font-size: clamp(.78rem, 1.6vw, .95rem); }
.xr-quick-matrix caption { caption-side: top; text-align: start; color: #f4f7fb; font-size: 1.2rem; font-weight: 700; }
.xr-quick-matrix th, .xr-quick-matrix td { padding: .6rem .45rem; border: 1px solid #464956; text-align: center; overflow-wrap: anywhere; }
.xr-quick-matrix th:first-child { width: 44%; text-align: start; padding-inline-start: .65rem; }
.xr-quick-matrix :is(th, td):last-child { background: #2d211d; }
.xr-mark { display: inline-grid; place-items: center; width: 1.55rem; height: 1.55rem; border-radius: 50%; font-weight: 700; font-size: .95rem; }
.xr-mark-design { color: #a6efc0; background: #244736; }
.xr-mark-varies { color: #ffcc9e; background: #4a3328; }
.xr-mark-pilot { color: #d7ddec; background: #303744; }
.xr-quick-legend { display: flex; flex-wrap: wrap; gap: .4rem 1rem; padding: 0; margin: .8rem 0 0; list-style: none; font-size: .8rem; }
.xr-quick-legend li { display: flex; gap: .4rem; align-items: center; }
@media (max-width: 700px) { .xr-quick-diagrams { grid-template-columns: 1fr; } }

.xr-quick-flow .xr-marker-feature span { color: #ffbf91; font-weight: 700; }

.xr-scene { margin: .85rem 0; }
.xr-scene svg { display: block; width: 100%; background: #141a24; border-radius: .65rem; }
.xr-scene-lane { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.xr-scene-first { color: #ffbc87; }
.xr-scene-second { color: #a4ebc4; }
.xr-scene-node { fill: #232b37; stroke: currentColor; }
.xr-scene-lane text { fill: currentColor; stroke: none; font: bold 12px system-ui; text-anchor: middle; }
.xr-scene-link { opacity: .48; }
.xr-scene-boundary { fill: #183129; stroke: #8ddeb1; stroke-dasharray: 4 4; }
.xr-scene-packet { fill: currentColor; stroke: none; opacity: 0; }
.xr-scene-result { opacity: .35; }
@media (prefers-reduced-motion: no-preference) {
  .xr-route-card.is-visible .xr-scene-packet { animation: xr-scene-packet 8s linear infinite; }
  .xr-route-card.is-visible .xr-scene-lane > .xr-scene-packet:nth-of-type(2) { animation-delay: 1s; }
  .xr-route-card.is-visible .xr-scene-lane > .xr-scene-packet:nth-of-type(3) { animation-delay: 2s; }
  .xr-route-card.is-visible .xr-scene-second > .xr-scene-packet { animation-delay: 4s; }
  .xr-route-card.is-visible .xr-scene-second > .xr-scene-packet:nth-of-type(2) { animation-delay: 5s; }
  .xr-route-card.is-visible .xr-scene-second > .xr-scene-packet:nth-of-type(3) { animation-delay: 6s; }
  .xr-route-card.is-visible .xr-scene-first .xr-scene-result { animation: xr-scene-result 8s ease-out infinite; }
  @keyframes xr-scene-packet {
    0%, 11% { opacity: 1; }
    11% { transform: translateX(46px); }
    12%, 100% { opacity: 0; transform: translateX(46px); }
  }
  @keyframes xr-scene-result { 0%, 34%, 50%, 100% { opacity: .35; } 37% { opacity: 1; } }
}

.xr-scene .xr-scene-label { fill: #e8eef7; stroke: none; font: 600 10px system-ui; text-anchor: middle; }
.xr-direct-link { stroke-dasharray: 4 4; }
.xr-direct-packet { opacity: 0; offset-path: path("M154 28 Q264 -8 374 28"); }
@media (prefers-reduced-motion: no-preference) {
  .xr-route-card.is-visible .xr-direct-packet { animation: xr-direct-response 8s linear infinite; }
  .xr-route-card.is-visible .xr-direct-link { animation: xr-direct-path 8s linear infinite; }
  @keyframes xr-direct-response {
    0%, 36% { opacity: 0; offset-distance: 0%; }
    38% { opacity: 1; offset-distance: 0%; }
    49% { opacity: 1; offset-distance: 100%; }
    50%, 100% { opacity: 0; offset-distance: 100%; }
  }
  @keyframes xr-direct-path { 0%, 36%, 51%, 100% { opacity: .48; } 38%, 49% { opacity: 1; } }
}

.opta-clinical-legend { position: absolute; inset: auto 0 0; margin: 0; padding: .4rem; display: grid; grid-template-columns: repeat(4, 1fr); gap: .3rem; list-style: none; text-align: center; color: #d6e7f4; font-size: .73rem; pointer-events: none; }
.opta-clinical-legend li:nth-child(2), .opta-clinical-legend li:nth-child(3) { color: #ffbc87; }
.xr-scene-divider { stroke: #526170; stroke-dasharray: 3 5; }
.xr-scene-direct { color: #a9c1e0; }
.xr-scene .xr-direct-title { fill: #a9c1e0; }
.xr-optional-link { stroke-dasharray: 4 4; }

.xr-input-note { font-size: .9rem; }
.xr-reasons { margin-block: 2.4rem 2rem; }
.xr-reasons-heading { display: flex; align-items: center; gap: .85rem; margin-bottom: .65rem; }
.xr-reasons-heading > span { font-size: clamp(3rem, 8vw, 5.5rem); line-height: .95; font-weight: 800; color: #ffad74; }
.xr-reasons-heading h3 { font-size: clamp(1.4rem, 3vw, 2.15rem); margin: 0; }
.xr-reasons-controls { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: .85rem; }
.xr-reasons-controls a { display: inline-flex; align-items: center; gap: .45rem; padding: .5rem .7rem; border: 1px solid #5c6170; border-radius: .6rem; background: #151923; color: #eef1f7; font-size: .87rem; }
.xr-reasons-controls a > span:first-child { color: #ffad74; font-weight: 700; }
.xr-reasons-controls a:hover, .xr-reasons-controls a[aria-current] { border-color: #ffad74; background: #38261e; }
.xr-reasons-controls a:focus-visible, .xr-pillars:focus-visible { outline: 2px solid #ffad74; outline-offset: 2px; }
.xr-reasons .xr-pillars { display: flex; align-items: flex-start; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0; padding-bottom: .45rem; direction: ltr; }
.xr-reasons .xr-pillars article { flex: 0 0 100%; min-width: 0; scroll-snap-align: start; }
.xr-reasons .xr-scene { max-width: 42rem; margin-inline: auto; }
.xr-pilot-location { margin-top: 1rem; }
.xr-pilot-location a { color: #ffad74; text-decoration: underline; }

.xr-scene .xr-scene-label { font-family: "Space Grotesk", system-ui, sans-serif; font-weight: 600; letter-spacing: .08px; }
.xr-scene .xr-scene-qualifier { fill: #a4ebc4; font-size: 8px; letter-spacing: .55px; }
@media (prefers-reduced-motion: no-preference) {
  .xr-route-card.is-visible .xr-scene-qualifier { animation: xr-agent-accent 4s ease-in-out infinite; }
  @keyframes xr-agent-accent { 50% { fill: #e5fff0; filter: drop-shadow(0 0 3px #7bdaa4); } }
}
.xr-pilot-content { display: block; }
.xr-pilot-intro { display: grid; grid-template-columns: 1.35fr 1fr; align-items: center; gap: 1rem; }
.xr-pilot-intro p { max-width: 58ch; margin: 0; }
.xr-pilot-intro .xr-pilot-art { height: clamp(8rem, 15vw, 12rem); }
.xr-pilot-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem; margin: 1rem 0; }
.xr-pilot-card { position: relative; padding: 1rem; border: 1px solid #4b5265; border-radius: .75rem; background: #171e2a; }
.xr-pilot-card-number { position: absolute; inset: .8rem .9rem auto auto; color: #bac4d1; font-size: .82rem; }
.xr-pilot-card h4 { font-size: 1rem; margin: .7rem 0 .45rem; }
.xr-pilot-card ul { padding-inline-start: 1.2rem; font-size: .9rem; }
.xr-pilot-clinic { position: relative; display: flex; align-items: flex-end; min-height: 14rem; overflow: hidden; isolation: isolate; border-radius: .85rem; border: 1px solid #8b613f; color: #fff; background: #151923; }
.xr-pilot-clinic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 54%; z-index: -2; }
.xr-pilot-clinic::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #080c16f5, #080c16d9 45%, #080c161a); }
.xr-pilot-clinic div { padding: clamp(1rem, 4vw, 2rem); }
.xr-pilot-clinic strong { font-size: 1.35rem; }
.xr-pilot-clinic p { color: #eff3f7; margin: .35rem 0 .65rem; }
.xr-pilot-clinic div > span { color: #ffbc87; text-decoration: underline; }
.xr-pilot-clinic:hover, .xr-pilot-clinic:focus-visible { border-color: #ffbc87; color: #fff; }
@media (prefers-reduced-motion: no-preference) {
  .xr-pilot-clinic img { transition: transform .45s ease; }
  .xr-pilot-clinic:is(:hover,:focus-visible) img { transform: scale(1.045); }
}
@media (max-width: 600px) {
  .xr-pilot-grid, .xr-pilot-intro { grid-template-columns: 1fr; }
  .xr-pilot-clinic::before { background: linear-gradient(0deg, #080c16fb, #080c16c9 62%, #080c1655); }
}

.xr-pilot-illustration { display: block; width: 100%; max-height: 10.5rem; margin-bottom: .8rem; border-radius: .65rem; background: radial-gradient(ellipse at 48% 35%, #2a2635, #111824 74%); fill: none; stroke-linecap: round; stroke-linejoin: round; }
.xr-pilot-card:nth-child(even) .xr-pilot-illustration { background: radial-gradient(ellipse at 48% 35%, #20363b, #111824 74%); }
.xr-art-grid { stroke: #46566a; stroke-width: 1; opacity: .55; }
.xr-art-panel { fill: #192232; stroke: #7487a1; stroke-width: 1.4; }
.xr-art-fill { fill: #29394e; stroke: #8ba6c4; stroke-width: 1.5; }
.xr-art-line { stroke: #b1c9e1; stroke-width: 2; }
.xr-art-accent { stroke: #ffb87f; stroke-width: 2.5; }
.xr-art-good { stroke: #a1e8c1; stroke-width: 2.5; }
.xr-art-link { stroke: #ffb87f; stroke-width: 2; stroke-dasharray: 4 5; }
.xr-art-pulse { fill: #a1e8c1; }
.xr-art-clock { transform-origin: 202px 56px; }
@media (prefers-reduced-motion: no-preference) {
  .xr-art-clock { animation: xr-pilot-clock 8s linear infinite; }
  .xr-art-link { animation: xr-pilot-link 2s linear infinite; }
  .xr-art-scan, .xr-art-pulse { animation: xr-pilot-signal 3.5s ease-in-out infinite; }
  @keyframes xr-pilot-clock { to { transform: rotate(360deg); } }
  @keyframes xr-pilot-link { to { stroke-dashoffset: -18; } }
  @keyframes xr-pilot-signal { 50% { opacity: .48; } }
}
