.wp-industry-devices { display: none; }

@media (min-width: 1024px) {
  .wp-industry-hero:has(.wp-industry-devices:not([hidden])) {
    display: grid;
    grid-template-columns: minmax(0, 1.13fr) minmax(0, 1fr);
    gap: clamp(22px, 3vw, 52px);
    align-items: center;
    margin-bottom: clamp(32px, 4vw, 68px);
  }

  .wp-industry-copy { container-type: inline-size; }

  .wp-industry-hero:has(.wp-industry-devices:not([hidden])) h1 {
    font-size: clamp(2.2rem, 9cqw, 5rem);
    white-space: nowrap;
  }

  .wp-industry-hero:has(.wp-industry-devices:not([hidden])) h1 br { display: none; }
  .wp-industry-hero:has(.wp-industry-devices:not([hidden])) h1 em {
    margin-left: .25em;
    font-size: .67em;
  }
  .wp-industry-hero:has(.wp-industry-devices:not([hidden])) .wp-showcase-stats {
    margin-bottom: 0;
  }

  .wp-industry-devices:not([hidden]) { display: block; }
  .wp-industry-stage {
    position: relative;
    padding: 0 10% 0 0;
    filter: drop-shadow(0 20px 28px #0007);
  }
  .wp-industry-imac {
    overflow: hidden;
    border: clamp(4px, .55vw, 9px) solid #262433;
    border-radius: 4% / 6%;
    background: #262433;
  }
  .wp-industry-screen {
    position: relative;
    overflow: hidden;
    container-type: inline-size;
    background: #17132e;
    aspect-ratio: 16/9;
  }
  .wp-industry-screen iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 1280px;
    height: 720px;
    border: 0;
    background: white;
    pointer-events: none;
    transform-origin: top left;
    transform: scale(tan(atan2(100cqw, 1280px)));
  }
  .wp-industry-screen iframe[hidden] { display: none; }
  .wp-industry-screen iframe.wp-industry-enter {
    animation: wp-industry-scroll-in .5s ease both;
  }
  .wp-industry-chin { height: clamp(11px, 1.8vw, 27px); background: #b8b7cc; }
  .wp-industry-stand {
    width: 24%;
    height: clamp(15px, 3vw, 50px);
    margin: auto;
    background: linear-gradient(#858399, #c9c7dc);
    clip-path: polygon(27% 0, 73% 0, 80% 78%, 100% 87%, 100% 100%, 0 100%, 0 87%, 20% 78%);
  }
  .wp-industry-phone {
    position: absolute;
    right: 0;
    bottom: 3%;
    width: 25%;
    border: clamp(3px, .42vw, 7px) solid #262433;
    border-radius: 14% / 7%;
    background: #262433;
    box-shadow: 0 0 0 1px #83809c;
    overflow: hidden;
  }
  .wp-industry-phone::after {
    content: "";
    position: absolute;
    top: 2%;
    left: 35%;
    width: 30%;
    height: 2%;
    border-radius: 100px;
    background: #262433;
  }
  .wp-industry-phone .wp-industry-screen { aspect-ratio: 390/760; }
  .wp-industry-phone iframe {
    width: 390px;
    height: 760px;
    transform: scale(tan(atan2(100cqw, 390px)));
  }
  .wp-industry-device-controls {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
  }
  .wp-industry-device-controls :is(a, button) {
    padding: 7px 10px;
    border: 1px solid #685a91;
    border-radius: 8px;
    background: #211a43;
    color: #fff;
    font-family: inherit;
    font-weight: 700;
    line-height: 1.4;
    font-size: .8rem;
    text-decoration: none;
    cursor: pointer;
  }
  .wp-industry-device-controls :is(a, button):focus-visible { outline: 2px solid #79eaff; }
}

@keyframes wp-industry-scroll-in {
  from { translate: 0 14px; opacity: .25; }
  to { translate: 0 0; opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .wp-industry-screen iframe.wp-industry-enter { animation: none; }
}

/* Shared Examples / Industries premium device halo. Decorative only: live slides remain untouched. */
@media (min-width: 1024px) {
  .wp-industry-hero:has(.wp-industry-devices:not([hidden])) .wp-industry-devices {
    position: relative;
    isolation: isolate;
  }
  .wp-industry-devices:not([hidden])::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: -17% -12% -8% -18%;
    pointer-events: none;
    background: radial-gradient(ellipse at 59% 43%, rgba(126, 44, 255, .52) 0%, rgba(111, 34, 232, .27) 35%, rgba(76, 30, 159, .10) 59%, transparent 76%);
    filter: blur(26px);
  }
  .wp-industry-devices .wp-industry-imac {
    box-shadow: 0 0 0 1px rgba(205, 157, 255, .65), 0 0 22px rgba(156, 64, 255, .68), 0 0 65px rgba(110, 30, 242, .42);
  }
  .wp-industry-devices .wp-industry-phone {
    box-shadow: 0 0 0 1px rgba(213, 175, 255, .75), 0 0 19px rgba(162, 74, 255, .66), 0 0 42px rgba(105, 29, 221, .34);
  }
  .wp-industry-devices .wp-industry-stage::after {
    content: "";
    position: absolute;
    z-index: -1;
    left: 19%; right: 13%; bottom: -3%; height: 10%;
    pointer-events: none;
    border-radius: 50%;
    background: rgba(142, 57, 255, .6);
    filter: blur(22px);
  }
}
