/* Shared iPhone 15 Pro and macOS presentation frames. Screens remain original files. */
.device-phone {
    position: relative;
    display: block;
    flex: none;
    width: 100%;
    padding: 3%;
    border: 1px solid #99938c;
    border-radius: 17% / 8.2%;
    background: linear-gradient(125deg, #b8b1a7 0%, #615f5e 12%, #d0c9bf 29%, #454446 56%, #aaa49e 79%, #6d6966 100%);
    box-shadow: inset 0 0 0 1px #e9e3d947, 0 0 0 1px #08080b, 0 24px 45px #0007;
    isolation: isolate;
}
.device-phone::before,
.device-phone::after {
    content: '';
    position: absolute;
    width: 2px;
    background: linear-gradient(#c6bfb3, #676360 45%, #aaa39a);
    border-radius: 2px;
    z-index: -1;
}
.device-phone::before { left: -3px; top: 23%; height: 13%; box-shadow: 0 -24px 0 -0.5px #a6a09a; }
.device-phone::after { right: -3px; top: 29%; height: 15%; }
.device-phone .device-display {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 393 / 852;
    overflow: hidden;
    border-radius: 14.5% / 6.7%;
    background: #f3f3f6;
    box-shadow: 0 0 0 2px #09090c;
}
.device-phone .device-display > img {
    position: absolute;
    top: 7%;
    left: 0;
    display: block;
    width: 100%;
    height: 90%;
    min-height: 0;
    max-width: none;
    aspect-ratio: auto;
    object-fit: contain;
    object-position: center;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: #f3f3f6;
    margin: 0;
    transform: none;
}
.device-island {
    position: absolute;
    top: 2%;
    left: 35%;
    width: 30%;
    height: 3.6%;
    border-radius: 99px;
    background: #08080a;
    box-shadow: inset 0 0 0 1px #1c1c20;
    pointer-events: none;
}
.device-island::after {
    content: '';
    position: absolute;
    right: 9%;
    top: 26%;
    height: 48%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle at 40% 30%, #334960, #101425 48%, #050609 75%);
}
.device-home { position: absolute; left: 34%; bottom: 1.2%; width: 32%; height: .6%; border-radius: 9px; background: #17171c; pointer-events: none; }

.device-mac { display: block; min-width: 0; overflow: hidden; border: 1px solid #aaa3b05c; border-radius: 12px; background: #292630; box-shadow: 0 20px 50px #0005; }
.device-toolbar { display: flex; align-items: center; gap: 14px; min-height: 37px; padding: 9px 12px; border-bottom: 1px solid #ffffff0c; background: linear-gradient(#3a3641, #2c2933); }
.device-traffic { display: flex; align-items: center; flex: none; gap: 5px; }
.device-traffic i { width: 8px; height: 8px; border-radius: 50%; box-shadow: inset 0 0 0 1px #0002; background: #ff6058; }
.device-traffic i:nth-child(2) { background: #ffbd2e; }
.device-traffic i:nth-child(3) { background: #28c840; }
.device-address { display: block; flex: 1; min-width: 0; max-width: 65%; margin-inline: auto; padding: 4px 12px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; border: 1px solid #ffffff0c; border-radius: 5px; background: #1c19224f; color: #c5bfce; text-align: center; font: 400 9px/1.4 'Roboto', sans-serif; }
.device-toolbar-mark { color: #a8a2b0; font: 16px/1 sans-serif; }
.device-web-content { display: block; overflow: hidden; background: #fff; }
.device-mac .device-web-content > img { display: block; width: 100%; height: auto; min-height: 0; max-width: none; border: 0; border-radius: 0; box-shadow: none; object-fit: cover; object-position: top; margin: 0; }

/* Case hero: keep the existing stack-to-fan animation on the outer figures. */
.vts-device { padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
.vts-device .device-phone { width: 100%; }
.vts-screen-phone > .device-phone { width: auto; height: calc(100% - 50px); aspect-ratio: 71 / 147; padding: 5px; }
.vts-screen-phone .device-display { height: 100%; aspect-ratio: auto; }
.vts-screen-web > .device-mac { width: 100%; }
.vts-screen-web { padding-top: 18px; }
.vts-zoom { z-index: 3; }

/* Guided tour: the enlargement action lives below the phone, never over its UI. */
.vg-device { width: 230px; max-width: 100%; border: 0; border-radius: 0; box-shadow: none; background: none; overflow: visible; }
.vg-device a { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.vg-device a > .device-phone { position: relative; inset: auto; display: block; font-size: inherit; padding: 3%; border-radius: 17% / 8.2%; color: inherit; }
.vg-device a > .vg-zoom { position: static; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 18px; gap: 9px; border: 1px solid #b78bda66; border-radius: 8px; background: #241830; color: #efd9ff; font-size: 11px; }
.vg-device a:hover > .vg-zoom { background: #352144; border-color: #bf9cdd; }
.vg-device a:focus-visible { outline: 2px solid #c4a0f6; outline-offset: 6px; border-radius: 12px; }

/* Home: animate the complete device frame, while role switching updates its image. */
.mh-featured-media .mh-featured-web { position: absolute; left: 6%; top: 11%; width: 79%; height: 108%; padding: 0; border-radius: 12px; }
.mh-featured-media .mh-featured-app { position: absolute; right: 6%; bottom: 4%; width: 31%; height: auto; padding: 1%; border-radius: 17% / 8.2%; }
.mh-featured-media > .mh-media-open { position: absolute; top: 20px; right: 20px; z-index: 3; }
.mh-project-image > .device-mac { width: 100%; height: auto; }
.mh-project-image .device-web-content > img { transition: transform 1s; }
.mh-project-image:hover .device-web-content > img { transform: translateY(-22px); }
.mh-project-card:last-child:nth-child(odd) .mh-project-image:has(.device-mac) { padding: 22px 24px 0; }

/* Service presentations use the same frame components. */
.mc-feature-phones > .device-phone { width: 29%; max-width: 145px; padding: 1%; }
.mc-feature-phones > .device-phone:nth-child(2) { transform: translateY(-17px); }
.mc-feature-phones .device-display > img { transform: none; }
.mc-showcase > a > .device-phone { width: 175px; max-width: 100%; margin-inline: auto; padding: 5px; }
.mc-showcase-web > a { padding: 0; }
.mc-showcase-web .device-mac { border: 0; border-radius: 16px 16px 0 0; }
.mc-showcase-web .device-web-content { height: 310px; }
.mc-showcase-web .device-web-content > img { min-height: 100%; }

.mh-solution-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 28px; margin-top: 25px; }
.mh-solution-actions .mc-home-detail { margin: 0; padding: 10px 4px; min-height: 48px; }
.mh-solution-actions .mr-button { min-height: 48px; padding: 14px 22px; }
.mh-solution-panel .mh-solution-example { margin-top: 22px; }

@media (max-width: 1050px) { .vg-device { width: 215px; } }
@media (max-width: 850px) {
    .mh-featured-media .mh-featured-web { width: 74%; height: 140%; left: 6%; top: 10%; }
    .mh-featured-media .mh-featured-app { width: 24%; max-width: 205px; right: 9%; bottom: 5%; }
}
@media (max-width: 700px) {
    .vg-device { width: 210px; }
    .mc-showcase-web .device-web-content { height: 250px; }
    .mh-solution-actions { align-items: stretch; flex-direction: column; gap: 12px; }
    .mh-solution-actions .mr-button, .mh-solution-actions .mc-home-detail { justify-content: center; width: 100%; min-height: 48px; }
    .mh-solution-actions .mc-home-detail { border: 1px solid #b795dd30; border-radius: 8px; }
}
@media (max-width: 550px) {
    .mh-featured-media { min-height: 320px; }
    .mh-featured-media .mh-featured-web { width: 77%; top: 13%; left: 7%; transform: rotate(-4deg); }
    .mh-featured-media .mh-featured-app { width: 35%; right: 5%; bottom: 5%; }
    .device-toolbar { min-height: 31px; gap: 8px; padding: 7px 9px; }
    .device-traffic { gap: 4px; }
    .device-traffic i { width: 6px; height: 6px; }
    .device-address { font-size: 8px; padding: 3px 7px; }
    .mh-project-card:last-child:nth-child(odd) .mh-project-image:has(.device-mac) { padding: 18px 18px 0; }
}
@media (prefers-reduced-motion: reduce) {
    .mh-featured-media .mh-featured-app, .mh-featured-media .mh-featured-web, .mh-project-image .device-web-content > img { transition: none; }
    .mh-project-image:hover .device-web-content > img { transform: none; }
}
