/* A local extension of the owner-approved Quiet Precision product surface. */
/* Share the page substrate so neighbouring Ambilight can cross section seams. */
.qp-page .qp-read-page--mixup-seo #ai-explorer { background: transparent; overflow: visible; }
.qp-page .qp-read-page--mixup-seo #ai-explorer::after { content: none; }
.qp-page .qp-read-page--mixup-seo .qp-mixup-ai-explorer > .wrap { width: calc(100% - 12.5vw); max-width: 1280px; }
.qp-page .qp-mixup-ai-explorer h2 { max-width: 960px; margin: 0 auto 48px; font-size: clamp(32px, 3.3vw, 48px); line-height: 1.12; text-align: center; text-wrap: balance; }
.qp-ai-explorer { color: #283044; max-width: 1000px; margin-inline: auto; }
.qp-ai-explorer [hidden] { display: none !important; }
.qp-ai-explorer__stage { position: relative; isolation: isolate; height: clamp(360px, 56vw, 620px); }
/* The 40 × 62 colour sample has a transparent 12px gutter on every side.
   Expand the canvas by the same ratio, keeping the visible light unchanged.
   Keep the blurred edge inside that gutter and use a composited transform
   to avoid the hard filter boundaries observed in Safari. */
.qp-ai-explorer__ambient { display: block; position: absolute; z-index: -1; left: 50%; top: -23.52%; width: min(722px, 124%); height: 147.03%; max-width: none; transform: translate3d(-50%, 0, 0); pointer-events: none; opacity: 0; filter: blur(24px) saturate(1.4) brightness(1.25); transition: opacity 600ms ease-out; }
.qp-ai-explorer__ambient.is-lit { opacity: .55; }
/* Fade alpha inside the raster bounds too: WebKit can temporarily clip an
   updating filtered canvas to its texture, exposing its rectangular edge. */
.qp-ai-explorer__ambient {
  mask-image: radial-gradient(ellipse closest-side, #000 40%, rgba(0,0,0,.65) 65%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse closest-side, #000 40%, rgba(0,0,0,.65) 65%, transparent 100%);
}
@media screen and (min-width: 941px) {
  /* Outside the clipped photo, underneath every card and its controls. */
  .qp-ai-explorer__ambient { width: min(960px, 163.2%); filter: blur(52px) saturate(1.55) brightness(1.4); }
  .qp-ai-explorer__ambient.is-lit { opacity: .78; }
}
@media (max-width: 940px) and (orientation: landscape) and (max-height: 500px) { .qp-ai-explorer__ambient { width: 464px; } }
@media (prefers-reduced-motion: reduce) { .qp-ai-explorer__ambient { transition: none; } }
@media (forced-colors: active) { .qp-ai-explorer__ambient { display: none; } }
.qp-ai-explorer__frame { position: absolute; z-index: 2; inset-block: 0; left: 50%; width: min(400px, 68%); transform: translateX(-50%); border-radius: 24px; overflow: clip; background: #eef0f3; box-shadow: 0 16px 40px rgba(35,45,65,.12); }
.qp-ai-explorer__frame > img, .qp-ai-explorer__frame > video { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.qp-ai-explorer__frame [data-ai-incoming] { z-index: 2; opacity: 0; pointer-events: none; }
.qp-ai-explorer__frame > video { z-index: 3; opacity: 0; pointer-events: none; transition: opacity 360ms cubic-bezier(.22,1,.36,1); }
.qp-ai-explorer__frame[data-mode="video"] > video { opacity: 1; }
.qp-ai-explorer__frame::after { content: ''; position: absolute; inset: 0 auto 0 -100%; width: 300%; z-index: 4; pointer-events: none; opacity: 0; background: linear-gradient(110deg, transparent 35%, rgba(211,222,255,.65) 49%, rgba(226,213,255,.55) 53%, transparent 66%); }
.qp-ai-explorer__frame.is-transforming::after { animation: qp-ai-transform-light 620ms cubic-bezier(.22,1,.36,1); }
@keyframes qp-ai-transform-light { from { opacity: 0; transform: translateX(-30%); } 35% { opacity: 1; } to { opacity: 0; transform: translateX(30%); } }
.qp-ai-explorer__side { position: absolute; inset-block: 12%; width: 32%; max-width: 320px; border: 0; padding: 0; border-radius: 24px; background: #eef0f3; overflow: hidden; cursor: pointer; box-shadow: 0 8px 24px rgba(35,45,65,.08); transition: transform 220ms ease-out; }
.qp-ai-explorer__side--left { left: 4%; transform: rotate(-5deg); }
.qp-ai-explorer__side--right { right: 4%; transform: rotate(5deg); }
.qp-ai-explorer__side > img { display: block; width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.qp-ai-explorer__side > .ti { position: absolute; top: 50%; padding: 12px; color: #283044; font-size: 24px; border-radius: 50%; background: rgba(255,255,255,.85); }
.qp-ai-explorer__side--left > .ti { left: 4px; }
.qp-ai-explorer__side--right > .ti { right: 4px; }
.qp-ai-explorer__frame-controls { position: absolute; z-index: 6; inset: auto 16px 16px; display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.qp-ai-explorer button { font: inherit; touch-action: manipulation; }
.qp-ai-explorer__frame-controls button, .qp-ai-explorer__controls button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; border: 1px solid rgba(40,48,68,.18); padding: 8px 16px; border-radius: 999px; color: #283044; background: rgba(248,249,252,.9); cursor: pointer; font-size: 14px; line-height: 20px; }
.qp-ai-explorer__frame-controls button[data-ai-play], .qp-ai-explorer__controls .qp-ai-explorer__autoplay { width: 44px; padding: 0; flex: 0 0 44px; }
.qp-ai-explorer svg { display: block; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.qp-ai-explorer .qp-ai-explorer__play, .qp-ai-explorer .qp-ai-explorer__pause { fill: currentColor; stroke: none; }
.qp-ai-explorer [data-playing="false"] .qp-ai-explorer__pause, .qp-ai-explorer [data-playing="true"] .qp-ai-explorer__play { display: none; }
.qp-ai-explorer__autoplay { position: relative; }
.qp-ai-explorer__autoplay .qp-ai-explorer__autoplay-ring { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; transform: rotate(-90deg); opacity: 0; transition: opacity 180ms ease-out; }
.qp-ai-explorer__autoplay[data-playing="true"] .qp-ai-explorer__autoplay-ring { opacity: 1; }
.qp-ai-explorer__autoplay-ring circle { stroke-width: 2.5; }
.qp-ai-explorer__autoplay-track { stroke: rgba(40,48,68,.14); }
.qp-ai-explorer [data-ai-autoplay-progress] { stroke: #6554f4; stroke-dasharray: 100; stroke-dashoffset: 100; }
@media (prefers-reduced-motion: reduce) {
  .qp-ai-explorer__autoplay .qp-ai-explorer__autoplay-ring { display: none; transition: none; }
}
@media (forced-colors: active) {
  .qp-ai-explorer [data-ai-autoplay-progress] { stroke: Highlight; }
}
.qp-ai-explorer__image-play { position: absolute; inset: 0; z-index: 5; width: 100%; height: 100%; border: 0; background: transparent; cursor: pointer; }
.qp-ai-explorer__controls { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 32px; }
.qp-ai-explorer__choice-title { display: none; }
.qp-ai-explorer__wand-mark { display: none; }
.qp-ai-explorer__styles { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.qp-ai-explorer__styles [data-ai-style] { box-sizing: border-box; position: relative; }
.qp-ai-explorer__styles [data-ai-style-label] { display: block; }
.qp-ai-explorer__label-out { position: absolute; inset: 0; display: grid; place-items: center; padding: inherit; pointer-events: none; }
.qp-ai-explorer__styles button[aria-pressed="true"] { border-color: #515d79; background: rgba(226,231,241,.8); }
.qp-ai-explorer__hint { text-align: center; color: #535c70; font-size: 14px; line-height: 1.5; margin: 16px 0 0; min-height: 42px; }
.qp-ai-explorer__sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.qp-mixup-calculator output { font-variant-numeric: tabular-nums; }
.qp-ai-explorer button:focus-visible, .qp-ai-explorer__stage:focus-visible { outline: 2px solid #3968c5; outline-offset: 4px; }
.qp-ai-explorer__image-play:focus-visible { outline-offset: -4px; }
.qp-ai-explorer noscript img { display: block; width: auto; max-width: 100%; max-height: 480px; }
@media (hover: hover) and (pointer: fine) {
  .qp-ai-explorer__side--left:hover { transform: rotate(-3deg) translateX(-4px); }
  .qp-ai-explorer__side--right:hover { transform: rotate(3deg) translateX(4px); }
  .qp-ai-explorer__frame-controls button:hover, .qp-ai-explorer__controls button:hover { background: #fff; }
}
@media (max-width: 768px) {
  .qp-page .qp-read-page--mixup-seo .qp-mixup-ai-explorer > .wrap { width: calc(100% - 48px); }
  .qp-page .qp-mixup-ai-explorer h2 { margin-bottom: 32px; }
  .qp-ai-explorer__side--left { left: 0; }
  .qp-ai-explorer__side--right { right: 0; }
}
@media (max-width: 480px) {
  .qp-page .qp-read-page--mixup-seo .qp-mixup-ai-explorer > .wrap { width: calc(100% - 32px); }
  .qp-ai-explorer__stage { height: 400px; }
  .qp-ai-explorer__frame, .qp-ai-explorer__side { border-radius: 20px; }
  .qp-ai-explorer__frame { width: 68%; }
  .qp-ai-explorer__side { width: 40%; }
  .qp-ai-explorer__side > .ti { padding: 8px; font-size: 20px; }
  .qp-ai-explorer__frame-controls { inset: auto 8px 8px; gap: 4px; }
  .qp-ai-explorer__controls { gap: 8px; margin-top: 24px; align-items: flex-start; }
  .qp-ai-explorer__styles { gap: 6px; }
  .qp-ai-explorer__styles button { padding-inline: 12px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .qp-ai-explorer__frame.is-transforming::after { animation: none; }
  .qp-ai-explorer__frame > video, .qp-ai-explorer__side { transition: none; }
}
/* Shared presentation; the mobile refinement sheet adjusts geometry and type. */
@media screen {
  /* Keep the unselected treatment stable while the two opaque photos crossfade beneath it. */
  .qp-ai-explorer__side > img { opacity: 1; }
  .qp-ai-explorer__side::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: rgba(238,240,243,.15); }
  .qp-ai-explorer__side > [data-ai-side-incoming] { position: absolute; inset: 0; opacity: 0; pointer-events: none; }
  .qp-ai-explorer__frame[data-mode="original"] .qp-ai-explorer__wand-mark { display: block; }
  .qp-ai-explorer__frame[data-mode="original"] .qp-ai-explorer__player-mark { display: none; }
  .qp-page .qp-ai-explorer .qp-ai-explorer__choice-title { display: block; width: fit-content; margin: 28px auto 16px; font-size: 28px; line-height: 1.2; letter-spacing: -.02em; text-align: center; }
  .qp-ai-explorer__controls { margin-top: 0; }
  .qp-ai-explorer__controls button, .qp-ai-explorer__frame-controls button {
    border-color: rgba(255,255,255,.7); background: rgba(238,240,243,.72);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  }
  .qp-ai-explorer__styles button { min-height: 52px; padding: 12px 17px; font-size: 16px; line-height: 24px; font-weight: 600; }
  .qp-ai-explorer__styles [data-ai-transform][aria-pressed="true"] { background: #fff; border-color: #fff; }
  .qp-ai-explorer__styles [data-ai-transform] svg { width: 22px; height: 22px; }
  .qp-ai-explorer__frame-controls button[data-ai-play], .qp-ai-explorer__controls .qp-ai-explorer__autoplay { width: 56px; min-height: 56px; flex-basis: 56px; padding: 0; }
  .qp-ai-explorer__player-mark svg, .qp-ai-explorer__autoplay svg { width: 28px; height: 28px; }
  .qp-ai-explorer__player-mark .qp-ai-explorer__play, .qp-ai-explorer__autoplay .qp-ai-explorer__play { transform: scale(1.18); transform-origin: center; }
  .qp-ai-explorer__wand-mark svg { width: 24px; height: 24px; }
  .qp-ai-explorer__hint { position: absolute; width: 1px; height: 1px; min-height: 0; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
  .qp-ai-explorer__side { width: min(304px, 51.68%); max-width: none; border-radius: 18.24px; }
  .qp-ai-explorer__side > .ti { display: none; }
  .qp-ai-explorer__turn-layer { position: absolute; inset: 0; z-index: 3; overflow: clip; pointer-events: none; }
  .qp-ai-explorer__turn-card { position: absolute; left: 50%; top: 50%; border-radius: 24px; overflow: hidden; background: #eef0f3; box-shadow: 0 12px 32px rgba(35,45,65,.1); }
  .qp-ai-explorer__turn-card > img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
  .qp-ai-explorer__turn-card > video { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; pointer-events: none; }
  .qp-ai-explorer__turn-shade { position: absolute; inset: 0; pointer-events: none; background: #eef0f3; opacity: 0; }
  .qp-ai-explorer__turn-card:nth-child(2) { z-index: 2; }
  .qp-ai-explorer__turn-card:nth-child(3) { z-index: 3; }
  .qp-ai-explorer.is-card-turn .qp-ai-explorer__frame,
  .qp-ai-explorer.is-card-turn .qp-ai-explorer__side { opacity: 0; }
  .qp-ai-explorer.is-card-turn .qp-ai-explorer__side--left:hover { transform: rotate(-5deg); }
  .qp-ai-explorer.is-card-turn .qp-ai-explorer__side--right:hover { transform: rotate(5deg); }
  .qp-ai-explorer__styles button { transition: color 240ms ease, border-color 240ms ease, background-color 240ms ease, box-shadow 240ms ease, transform 160ms ease-out; }
  .qp-ai-explorer__styles button:active { transform: scale(.97); }
  .qp-ai-explorer__styles [data-ai-style] { position: relative; isolation: isolate; overflow: hidden; }
  .qp-ai-explorer__styles [data-ai-style]::before { content: ''; position: absolute; inset: -20% -50%; z-index: -1; pointer-events: none; opacity: 0; background: linear-gradient(110deg, #315fc3 10%, #7543c2 50%, #315fc3 90%); transition: opacity 240ms ease; }
  .qp-ai-explorer__styles [data-ai-style][aria-pressed="true"] { color: #fff; border-color: rgba(255,255,255,.7); box-shadow: 0 4px 16px rgba(79,69,176,.2); }
  .qp-ai-explorer__styles [data-ai-style][aria-pressed="true"]::before { opacity: 1; animation: qp-ai-style-iridescence 3200ms ease-in-out infinite alternate; }
  @keyframes qp-ai-style-iridescence { from { transform: translateX(-12%); } to { transform: translateX(12%); } }
}
@media (prefers-reduced-motion: reduce) {
  .qp-ai-explorer__styles button { transition: none; }
  .qp-ai-explorer__styles [data-ai-style]::before { transition: none; animation: none !important; }
}
@media (forced-colors: active) {
  .qp-ai-explorer button { border: 1px solid ButtonText; color: ButtonText; background: ButtonFace; }
  .qp-ai-explorer__styles button[aria-pressed="true"] { outline: 2px solid Highlight; }
  .qp-ai-explorer__styles [data-ai-transform][aria-pressed="true"] { color: ButtonText; background: ButtonFace; border-color: Highlight; }
  .qp-ai-explorer__styles [data-ai-style]::before { display: none; }
  .qp-ai-explorer__styles [data-ai-style][aria-pressed="true"] { color: HighlightText; background: Highlight; border-color: Highlight; box-shadow: none; }
}
