/* Progressive visual enhancement only; the hero and photography stay untouched. */
main>section:not(.immersive-scene){position:relative;isolation:isolate}
main>section:not(.immersive-scene)> .wrap{position:relative;z-index:1}
main>section:not(.immersive-scene)::after{content:"";position:absolute;inset:0;pointer-events:none;z-index:0;background:radial-gradient(ellipse at var(--light-x,72%) var(--light-y,30%),#ccad690b,transparent 48%);opacity:.8}
main>section:not(.immersive-scene) h2{ text-shadow:0 1px 0 #ffffff0a,0 3px 0 #0714260a,0 12px 28px #07142620 }
main>section.apex-white-section h2{text-shadow:0 1px 0 #fff,0 2px 0 #4BA67610,0 9px 25px #4BA67617}
main>section:not(.immersive-scene) :is(.service-workbench,.window){box-shadow:0 1px 0 #ffffff28 inset,0 22px 55px #030d1b35,0 2px 8px #030d1b18;transition:box-shadow .35s ease,transform .35s ease;transform:perspective(1200px) rotateX(var(--tilt-x,0deg)) rotateY(var(--tilt-y,0deg))}
main>section:not(.immersive-scene) .industry{position:relative;overflow:hidden;box-shadow:0 1px 0 #ffffff40 inset,0 5px 14px #07142608;transition:transform .3s ease,box-shadow .3s ease,background .3s ease,color .3s ease}
main>section:not(.immersive-scene) .industry::after{content:"";position:absolute;inset:0;pointer-events:none;background:radial-gradient(circle at var(--shine-x,50%) var(--shine-y,0%),#ffffff24,transparent 70%);opacity:0;transition:opacity .3s}
main>section:not(.immersive-scene) .step{border-top:1px solid #ccad6955;box-shadow:0 1px 0 #ffffff0a inset;transition:transform .3s ease,box-shadow .3s ease}
main>section:not(.immersive-scene) .btn{box-shadow:0 1px 0 #ffffff25 inset,0 5px 14px #07142612;transition:transform .25s ease,box-shadow .25s ease,background .25s ease,color .25s ease}
main>section:not(.immersive-scene) .btn:focus-visible,main>section:not(.immersive-scene) .industry:focus-visible{outline:3px solid #b28a36;outline-offset:5px}
@media(hover:hover) and (pointer:fine){
main>section:not(.immersive-scene) .industry:hover{transform:translateY(-4px);box-shadow:0 1px 0 #ffffff35 inset,0 16px 30px #07142620}
main>section:not(.immersive-scene) .industry:hover::after{opacity:1}
main>section:not(.immersive-scene) .step:hover{transform:translateY(-3px);box-shadow:0 15px 30px #07142618}
main>section:not(.immersive-scene) .btn:hover{transform:translateY(-2px);box-shadow:0 1px 0 #ffffff30 inset,0 12px 24px #07142625}
main>section:not(.immersive-scene) :is(.service-workbench,.window):hover{box-shadow:0 1px 0 #ffffff30 inset,0 28px 65px #030d1b45,0 0 35px #ccad690c}
}
@media(prefers-reduced-motion:reduce){main>section:not(.immersive-scene) :is(.industry,.step,.btn,.window,.service-workbench){transition:none;transform:none!important}main>section:not(.immersive-scene)::after{display:none}}

/* Connected website, CRM and app illustration */
#website-crm-workflow-example .example-photo-stage{position:relative}
.app-phone{position:absolute;right:4%;bottom:3%;width:clamp(175px,21vw,310px);aspect-ratio:0.5;background:#f6f9f7;border:8px solid #11232c;border-radius:38px;box-shadow:0 20px 50px #0007;color:#10232b;padding:17px 15px 12px;font:clamp(8px,.85vw,13px)/1.4 Inter,Arial,sans-serif;transform:none;z-index:2;overflow:hidden}
.app-phone-notch{position:absolute;top:0;left:32%;width:36%;height:13px;background:#11232c;border-radius:0 0 12px 12px}.app-phone-top{display:flex;justify-content:space-between;font-size:.75em;margin-bottom:12px}.app-phone-brand{font-size:1em;line-height:1.1;border-left:3px solid #c7a35a;padding-left:8px}.app-phone-welcome{background:#104e3c;color:white;border-radius:10px;padding:15px 10px;margin:12px 0;font-size:1.3em}.app-phone-tabs{display:flex;gap:15px;border-bottom:1px solid #d7e4dd;padding-bottom:6px}.app-phone-tabs b{color:#16884c}.app-phone-metrics{display:flex;gap:8px;margin-top:10px}.app-phone-metrics>div{flex:1;background:white;border:1px solid #dbe5df;border-radius:8px;padding:8px}.app-phone-metrics strong{display:block;color:#13844a;font-size:1.9em}.app-phone small{display:block;font-size:.75em;color:#577066}.app-phone h4{font-size:.9em;margin:12px 0 7px}.app-phone-row{display:flex;gap:7px;align-items:center;background:white;padding:8px 5px;border-radius:7px}.app-phone-row i{font-style:normal;color:#16884c;font-size:.8em}.app-phone-row b{font-size:.75em}.app-phone-pipeline{display:flex;justify-content:space-between;background:#e9f3ed;border-radius:5px;padding:6px 8px;margin:4px 0;font-size:.85em}.app-phone-action{background:#197b49;color:white;text-align:center;padding:8px;margin-top:10px;border-radius:7px;font-weight:600}.app-phone-nav{text-align:center;font-size:.7em;padding-top:11px;color:#567064}
@media(max-width:600px){#website-crm-workflow-example .example-photo-stage{padding-bottom:190px;background:#edf4ef}.app-phone{right:6%;bottom:12px;width:160px;border-width:6px;border-radius:26px;font-size:7px;padding:14px 10px 8px}.app-phone-welcome{padding:10px;margin:8px 0}.app-phone h4{margin:8px 0 4px}.app-phone-top{margin-bottom:8px}.app-phone-nav{padding-top:6px}}

#website-crm-workflow-example .apex-device-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(175px, 22%);
  align-items: center;
  gap: clamp(22px, 4vw, 60px);
  height: auto;
  min-height: 0;
  aspect-ratio: auto;
  padding: clamp(20px, 4vw, 60px);
  background: #e9f0ed;
}
#website-crm-workflow-example .apex-desktop-monitor {
  position: relative;
  inset: auto;
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  overflow: visible;
  padding: 10px;
  border-radius: 18px 18px 8px 8px;
  background: #13252f;
  box-shadow: 0 16px 28px #07142635;
}
#website-crm-workflow-example .apex-desktop-monitor img {
  display: block;
  position: static;
  width: 100%;
  height: auto;
  object-fit: contain;
}
#website-crm-workflow-example .apex-desktop-monitor {
  margin-bottom: clamp(30px, 5vw, 66px);
}
#website-crm-workflow-example .apex-desktop-monitor::before,
#website-crm-workflow-example .apex-desktop-monitor::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
#website-crm-workflow-example .apex-desktop-monitor::before {
  top: 100%;
  width: 13%;
  height: clamp(22px, 4vw, 54px);
  background: #344953;
}
#website-crm-workflow-example .apex-desktop-monitor::after {
  top: calc(100% + clamp(22px, 4vw, 54px));
  width: 32%;
  height: 8px;
  border-radius: 5px;
  background: #61727a;
}
#website-crm-workflow-example .app-phone {
  position: relative;
  inset: auto;
  width: 100%;
  max-width: 310px;
  justify-self: center;
  transform: none;
  min-height: 355px;
}
@media (max-width: 660px) {
  #website-crm-workflow-example .apex-device-stage {
    grid-template-columns: minmax(0, 1fr);
  }
  #website-crm-workflow-example .app-phone {
    width: 175px;
    font-size: 8px;
  }
}

#website-crm-workflow-example .apex-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) minmax(165px, .49fr);
  gap: clamp(16px, 2.4vw, 36px);
  padding: clamp(20px, 4vw, 60px);
  background: #e9f0ed;
  align-items: start;
}
.apex-example { margin: 0; min-width: 0; }
.apex-example figcaption {
  margin-bottom: 12px;
  color: #104e3c;
  font-weight: 750;
  border-bottom: 2px solid #c7a35a;
  padding-bottom: 8px;
}
.apex-screen {
  aspect-ratio: 780 / 941;
  border: 6px solid #13252f;
  border-radius: 12px;
  background-color: #f6f9f7;
  background-image: url('/assets/examples/website-crm-workflow.png');
  background-repeat: no-repeat;
  background-size: auto 100%;
  box-shadow: 0 12px 26px #07142628;
}
.apex-web { background-position: right center; }
.apex-crm { aspect-ratio: 875 / 941; background-position: left center; }
#website-crm-workflow-example .apex-app-example .app-phone {
  margin: 0 auto;
  max-width: 230px;
  height: auto;
  min-height: 355px;
  aspect-ratio: auto;
  padding-bottom: 16px;
}
@media (max-width: 760px) {
  #website-crm-workflow-example .apex-showcase { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .apex-app-example { grid-column: 1 / -1; }
}
@media (max-width: 420px) {
  #website-crm-workflow-example .apex-showcase { grid-template-columns: minmax(0, 1fr); }
}

/* Alternate the homepage's photo transitions with the existing soft gray. */
main > .apex-gray-rhythm,
main > .apex-gray-rhythm .example-title-bar {
  background: #e9f0ed;
  color: #10232b;
}
main > .apex-gray-rhythm .example-title-bar h2,
main > .apex-gray-rhythm .example-title-bar span,
main > .homepage-process.apex-gray-rhythm h2 {
  color: #104e3c;
}

/* Full photo slides follow the page so each image can be viewed in full. */
main > section.apex-full-photo .example-photo-stage { height: auto; }
main > section.apex-full-photo .city-backdrop {
  position: relative;
  inset: auto;
  height: auto;
  z-index: 0;
}
main > section.apex-full-photo .city-backdrop img {
  display: block;
  width: 100%;
  height: auto;
  max-width: none;
  object-fit: contain;
}

/* Keep the mobile slide sequence in the normal vertical page flow. */
@media (max-width: 760px) {
  html, body {
    max-width: 100%;
    overflow-x: clip;
    overscroll-behavior-x: none;
  }
  main {
    max-width: 100%;
    overflow-x: clip;
  }
  main > section.city-section {
    overflow: clip;
    clip-path: none;
    margin-block: 0;
  }
  main > section.city-section .example-title-bar {
    position: relative;
    top: auto;
    min-height: 56px;
  }
  main > section.city-section .example-photo-stage {
    height: auto;
  }
  main > section.city-section .city-backdrop {
    position: relative;
    inset: auto;
    z-index: 0;
    width: 100%;
    height: auto;
  }
  main > section.city-section .city-backdrop img {
    width: 100%;
    height: auto;
    display: block;
  }
}
#website-crm-workflow-example .app-phone {
  animation: none;
  transition: none;
  transform: none;
}

/* Use one consistent crop for the homepage industry selection cards. */
#business-examples .work-scenes-grid .work-scene > img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
}

/* Give every numbered showcase slide a consistent blue header. */
main > section.city-section .example-title-bar {
  background: #071426;
  border-color: #4ba67655;
}
main > section.city-section .example-title-bar h2,
main > section.city-section .example-title-bar > span {
  color: #f3f8ff;
}
