/* A close inspection, followed by a vertical service bay within the flight. */
.inspection {
  --split: 0;
  position: fixed;
  inset: 0;
  z-index: 4;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  text-shadow: 0 2px 12px #000a;
}
.inspection-layout {
  width: 90vw;
  max-width: 1700px;
  min-height: 510px;
  position: absolute;
  left: 50%;
  top: 53%;
  transform: translate(-50%, -50%);
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  align-items: center;
  gap: 4vw;
}
.inspection-copy h2 {
  font-size: clamp(35px, 4.25vw, 70px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.04;
  margin-bottom: 26px;
}
.inspection-copy p {
  font-size: 18px;
  line-height: 1.6;
  color: #c5cdc7;
  max-width: 28ch;
}
.app-diagram {
  margin: 0;
  min-width: 0;
  position: relative;
}
.diagram-space {
  position: relative;
  height: 440px;
  width: 100%;
}
.app-shards {
  position: absolute;
  inset: 35px 55px 45px;
  perspective: 1200px;
  transform-style: preserve-3d;
}
.app-fragment {
  position: absolute;
  inset: 0;
  transform-origin: center;
  will-change: transform;
  backface-visibility: hidden;
}
.app-window {
  position: absolute;
  inset: 0;
  background: #0a0c0b;
  border: 1px solid #8c9890;
  overflow: hidden;
}
.app-window-head,
.app-window-foot {
  font-family: Plex, monospace;
  font-size: 10px;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  padding: 16px 19px;
  color: #c7d0c9;
}
.app-window-head {
  border-bottom: 1px solid #48534c;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.app-window-head > span:last-child {
  font-size: 18px;
  font-family: Space, sans-serif;
  line-height: 0.7;
}
.app-window-foot {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  border-top: 1px solid #48534c;
  text-align: right;
}
.app-window-body {
  position: absolute;
  inset: 45px 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 14px;
}
.app-window-body img {
  width: 72px;
  height: 72px;
}
.app-window-body h3 {
  font-size: 32px;
  line-height: 1.1;
  letter-spacing: -0.025em;
}
.app-fault-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: #a1afa5;
  stroke-width: 1;
  opacity: calc(0.25 + var(--split) * 0.5);
}
.app-fault-lines path {
  vector-effect: non-scaling-stroke;
}
.fragment-interface {
  clip-path: polygon(0 0, 36% 0, 32% 34%, 37% 67%, 34% 100%, 0 100%);
  transform: translate3d(
      calc(var(--split) * -52px),
      calc(var(--split) * -16px),
      calc(var(--split) * 36px)
    )
    rotateY(calc(var(--split) * -12deg)) rotateZ(calc(var(--split) * -6deg));
}
.fragment-data {
  clip-path: polygon(
    36% 0,
    69% 0,
    64% 45%,
    70% 72%,
    65% 100%,
    34% 100%,
    37% 67%,
    32% 34%
  );
  transform: translate3d(
      0,
      calc(var(--split) * 21px),
      calc(var(--split) * -36px)
    )
    rotateY(calc(var(--split) * 5deg)) rotateZ(calc(var(--split) * 2deg));
}
.fragment-ai {
  clip-path: polygon(69% 0, 100% 0, 100% 100%, 65% 100%, 70% 72%, 64% 45%);
  transform: translate3d(
      calc(var(--split) * 61px),
      calc(var(--split) * -21px),
      calc(var(--split) * 50px)
    )
    rotateY(calc(var(--split) * 14deg)) rotateZ(calc(var(--split) * 6deg));
}
.fault-leaders {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: #9eada3;
  stroke-width: 1;
  stroke-dasharray: 600;
  stroke-dashoffset: calc((1 - var(--split)) * 600);
}
.risk-callout {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #080909;
  padding: 8px 10px;
  font:
    11px/1.4 Plex,
    monospace;
  white-space: nowrap;
  text-transform: uppercase;
  opacity: 0;
}
.risk-callout svg {
  width: 22px;
  height: 22px;
  stroke-width: 1;
}
.credentials {
  top: 0;
  left: 6%;
}
.access {
  bottom: 0;
  left: 0;
}
.prompts {
  right: -1%;
  top: 59%;
}
.app-diagram figcaption {
  font:
    10px/1.5 Plex,
    monospace;
  color: #aebbb2;
  margin-top: 22px;
  text-align: center;
}
.service-nav {
  position: fixed;
  bottom: 22px;
  right: 5vw;
  z-index: 8;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 9px 14px;
  background: #080909ed;
  border: 1px solid #56625b;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  font:
    10px/1.4 Plex,
    monospace;
  white-space: nowrap;
}
.service-nav > span {
  width: 1px;
  height: 15px;
  background: #536159;
}
.service-nav a {
  color: #aeb9b1;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
}
.service-nav a[aria-current="true"] {
  color: #f0f1ed;
  border-bottom-color: #e0e8e1;
}
.service-nav a:active {
  transform: translateY(1px);
}
.motion-off .inspection {
  position: relative;
  inset: auto;
  opacity: 1 !important;
  visibility: visible !important;
  min-height: 90svh;
  padding: 100px 0 50px;
  pointer-events: auto;
}
.motion-off .inspection-layout {
  position: relative;
  inset: auto;
  left: auto;
  top: auto;
  transform: none;
  margin: 0 auto;
}
.motion-off .app-fragment {
  transform: none !important;
}
.motion-off .app-fault-lines {
  opacity: 0.65;
}
.motion-off .risk-callout {
  opacity: 1 !important;
}
.motion-off .fault-leaders {
  stroke-dashoffset: 0;
}
.motion-off .service-nav {
  display: none;
}
@media (hover: hover) and (pointer: fine) {
  .service-nav a:hover {
    color: #f0f1ed;
  }
}
@media (max-width: 800px) {
  .inspection-layout {
    width: 88vw;
    top: 53%;
    grid-template-columns: 1fr;
    gap: 24px;
    min-height: 0;
  }
  .inspection-copy {
    max-width: 480px;
  }
  .inspection-copy h2 {
    font-size: clamp(32px, 7.6vw, 52px);
    margin-bottom: 15px;
  }
  .inspection-copy p {
    font-size: 16px;
    line-height: 1.5;
    max-width: 38ch;
  }
  .diagram-space {
    height: 360px;
    max-width: 600px;
    margin: 0 auto;
  }
  .app-shards {
    inset: 35px 45px 45px;
  }
  .risk-callout {
    font-size: 10px;
    padding: 6px 7px;
    gap: 7px;
  }
  .risk-callout svg {
    width: 20px;
    height: 20px;
  }
  .prompts {
    right: -1%;
    top: 58%;
  }
  .app-window-head,
  .app-window-foot {
    font-size: 9px;
    padding: 13px;
  }
  .app-window-body h3 {
    font-size: 27px;
  }
  .app-window-body img {
    width: 58px;
    height: 58px;
  }
  .app-diagram figcaption {
    margin-top: 13px;
    font-size: 9px;
  }
  .service-nav {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    bottom: 18px;
    gap: 14px;
    padding: 7px 12px;
  }
  .motion-off .inspection {
    padding-top: 105px;
    min-height: 100svh;
  }
}
@media (max-width: 500px) {
  .inspection-layout {
    gap: 24px;
    top: 53%;
  }
  .inspection-copy h2 {
    font-size: 8.5vw;
    line-height: 1.05;
  }
  .inspection-copy p {
    font-size: 14px;
    max-width: 34ch;
  }
  .diagram-space {
    height: 320px;
  }
  .app-shards {
    inset: 38px 30px 45px;
  }
  .app-window-head,
  .app-window-foot {
    font-size: 8px;
    padding: 12px;
  }
  .app-window-body h3 {
    font-size: 24px;
  }
  .app-window-body img {
    width: 54px;
    height: 54px;
  }
  .risk-callout {
    font-size: 10px;
    gap: 5px;
  }
  .risk-callout svg {
    width: 17px;
    height: 17px;
  }
  .credentials {
    left: 0;
  }
  .access {
    left: 0;
    bottom: 0;
  }
  .prompts {
    right: -3%;
    top: 57%;
  }
  .fragment-interface {
    transform: translate3d(
        calc(var(--split) * -25px),
        calc(var(--split) * -12px),
        0
      )
      rotateZ(calc(var(--split) * -5deg));
  }
  .fragment-data {
    transform: translate3d(0, calc(var(--split) * 14px), 0)
      rotateZ(calc(var(--split) * 2deg));
  }
  .fragment-ai {
    transform: translate3d(
        calc(var(--split) * 28px),
        calc(var(--split) * -14px),
        0
      )
      rotateZ(calc(var(--split) * 5deg));
  }
  .service-nav {
    bottom: 14px;
    font-size: 9px;
  }
  .apps-world,
  .ai-world {
    margin-top: 0;
  }
}
@media (max-width: 500px) and (max-height: 700px) {
  .risk-callout {
    font-size: 9px;
  }
  .inspection-layout {
    top: 54%;
    gap: 17px;
  }
  .inspection-copy h2 {
    font-size: 7.8vw;
    margin-bottom: 10px;
  }
  .inspection-copy p {
    font-size: 13px;
  }
  .diagram-space {
    height: 260px;
  }
  .app-shards {
    inset: 32px 30px 36px;
  }
  .app-window-body {
    gap: 9px;
  }
  .app-window-body img {
    width: 42px;
    height: 42px;
  }
  .app-window-body h3 {
    font-size: 21px;
  }
  .app-window-head,
  .app-window-foot {
    font-size: 7px;
    padding: 9px;
  }
  .app-diagram figcaption {
    margin-top: 10px;
    font-size: 8px;
  }
  .service-nav {
    bottom: 10px;
  }
}
