/* Shared progressive enhancements: content is never hidden behind an interaction. */
.q-technology :is(.tech-qubit, .tech-comparison article, .tech-step, .hw-level, .hw-results) {
    transition: border-color 240ms ease, background-color 240ms ease, box-shadow 240ms ease;
}
.q-technology :is(.tech-step, .hw-level).is-current {
    border-color: #8192ff;
    box-shadow: -4px 0 0 #435bec, 0 16px 48px #0003;
}
.q-technology :is(.tech-step, .hw-level).is-current::before { color: #fff; }
.q-technology :is(.tech-qubit, .tech-comparison article, .tech-step, .hw-level, .hw-results):focus-within {
    border-color: #a4afff;
    background-color: #11162c;
}
.q-technology :is(.hw-timeline__track > div, .hw-process > li, .hw-economics__points > li, .tech-stats > div) {
    transition: border-color 240ms ease;
}
.q-technology :is(.hw-timeline__track dt, .hw-process__number, .tech-stats dt) { transition: color 240ms ease; }
.q-technology .tech-image-frame { position: relative; overflow: hidden; border-radius: 16px; isolation: isolate; }
.q-technology .tech-image-frame img { transition: transform 650ms cubic-bezier(.2, .65, .3, 1); }
.q-technology .tech-image-zoom {
    position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: flex-end;
    width: 100%; padding: 16px; border: 0; border-radius: inherit; background: transparent; color: #fff; cursor: zoom-in;
}
.q-technology .tech-image-zoom span {
    display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid #ffffff70;
    border-radius: 50%; background: #0b0c12d9; font: 24px/1 ABCOracle, sans-serif;
    transition: background-color 220ms ease, transform 220ms ease;
}
.q-technology .tech-image-zoom:focus-visible { outline: 3px solid #a4afff; outline-offset: -5px; }
.q-technology .tech-image-zoom:focus-visible span { background: #435bec; }
.q-technology :is(.hw-text-link, a.tech-reference) { transition: color 200ms ease, border-color 200ms ease; }
.q-technology :is(.hw-text-link, a.tech-reference) > span[aria-hidden] { display: inline-block; transition: transform 200ms ease; }
.q-technology :is(.hw-text-link, a.tech-reference):is(:hover, :focus-visible) > span[aria-hidden] { transform: translate(3px, -2px); }
.q-technology .tech-image-frame:has(.tech-image-zoom:focus-visible) img { transform: scale(1.025); }
@media (hover: hover) and (pointer: fine) {
    .q-technology :is(.tech-qubit, .tech-comparison article, .tech-step, .hw-level, .hw-results):hover {
        border-color: #8192ff; background-color: #11162c; box-shadow: 0 14px 44px #435bec14;
    }
    .q-technology :is(.hw-timeline__track > div, .hw-process > li, .hw-economics__points > li, .tech-stats > div):hover { border-color: #8192ff; }
    .q-technology :is(.hw-timeline__track > div:hover dt, .hw-process > li:hover .hw-process__number, .tech-stats > div:hover dt) { color: #a4afff; }
    .q-technology .tech-image-frame:hover img { transform: scale(1.035); }
    .q-technology .tech-image-frame:hover .tech-image-zoom span { transform: translate(2px, -2px); background: #435bec; }
}
@keyframes tech-image-enter {
    from { opacity: .65; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: no-preference) {
    .q-technology figure.is-in-view .tech-image-frame { animation: tech-image-enter 600ms cubic-bezier(.2, .65, .3, 1) both; }
}
.tech-lightbox-open { overflow: hidden; }
.tech-image-dialog, .tech-image-dialog * { box-sizing: border-box; }
.tech-image-dialog {
    position: fixed; inset: 0; width: min(1200px, calc(100% - 48px)); max-width: none; max-height: calc(100dvh - 48px);
    margin: auto; padding: 24px; overflow: auto; border: 1px solid #404060; border-radius: 19px;
    background: #0b0c12; color: #fff; box-shadow: 0 24px 100px #0009; font-family: ABCOracle, sans-serif;
}
.tech-image-dialog::backdrop { background: #000d; backdrop-filter: blur(8px); }
.tech-image-dialog__close {
    display: block; min-height: 44px; margin: 0 0 16px auto; padding: 8px 16px;
    border: 1px solid #8192ff; border-radius: 99px; color: #fff; background: #151a36;
    font: 14px/1.4 ABCOracle, sans-serif; cursor: pointer;
}
.tech-image-dialog__close:hover { background: #435bec; }
.tech-image-dialog__close:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
.tech-image-dialog img { display: block; width: 100%; max-height: calc(100dvh - 230px); object-fit: contain; }
.tech-image-dialog p { margin: 20px 0 0; color: #bfc1ce; font: 14px/1.5 ABCOracle, sans-serif; letter-spacing: 0; }
@media (max-width: 767px) {
    .tech-image-dialog { width: calc(100% - 24px); max-height: calc(100dvh - 24px); padding: 16px; }
    .q-technology .tech-image-zoom { padding: 12px; }
}
@media (prefers-reduced-motion: reduce) {
    .q-technology *, .q-technology *::before, .q-technology *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    .q-technology .tech-image-frame img { transform: none !important; }
}
