.case-page.wrap {
  width: min(100% - 2 * clamp(16px, 4vw, 64px), 1360px);
  padding-inline: 0;
}

.case-page .case-identity {
  margin-block: clamp(32px, 6vw, 76px);
  border-top: 1px solid var(--faro-line);
}

.case-status {
  line-height: 1.6;
}

.case-jumps {
  border-block: 1px solid var(--faro-line);
}

.case-jumps ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 clamp(18px, 3.2vw, 40px);
  padding: 0;
  margin: 0;
  list-style: none;
}

.case-jumps a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--white);
  font-size: 14px;
  text-decoration: underline;
  text-decoration-color: #7f9cbb;
  text-underline-offset: 4px;
}

.case-jumps a:hover {
  text-decoration-color: currentColor;
}

.case-page section[id] {
  scroll-margin-block-start: 20px;
}

.web-viewer {
  --preview-ratio: 40 / 27;
  width: 100%;
  margin-inline: auto;
}

.web-viewer[data-preview="mobile"] {
  --preview-ratio: 195 / 422;
  width: min(100%, 392px);
}

.web-viewer .demo-canvas,
.web-viewer.is-expanded .demo-canvas {
  aspect-ratio: var(--preview-ratio);
  height: auto;
  width: 100%;
  min-height: 0;
  isolation: isolate;
}

.web-viewer .demo-skeleton {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  opacity: .24;
}

.web-viewer:not(.is-loaded) iframe {
  visibility: hidden;
}

.viewer-toolbar {
  height: auto;
  min-height: 54px;
  padding: 4px clamp(4px, 1.4vw, 14px);
  gap: clamp(4px, 1vw, 12px);
  border-bottom: 1px solid var(--faro-line);
}

.viewer-toolbar .icon-button,
.viewer-toolbar .device-switch button {
  min-height: 44px;
  font-size: 12px;
}

.viewer-toolbar .icon-button {
  min-width: 38px;
}

.viewer-toolbar .device-switch {
  background: transparent;
  padding: 0;
}

.viewer-toolbar .device-switch button[aria-pressed="true"] {
  background: #254263;
}

.viewer-toolbar .device-switch button {
  gap: clamp(4px, .5vw, 8px);
}

.web-viewer .viewer-note {
  padding: 10px clamp(10px, 2vw, 18px);
  font-size: 12px;
}

.viewer-dialog {
  width: min(100% - 20px, 1400px);
  height: auto;
  max-height: calc(100dvh - 16px);
  margin: auto;
  overflow: auto;
}

.viewer-dialog .web-viewer.is-expanded {
  width: min(100%, max(280px, calc((100dvh - 125px) * 40 / 27)));
  height: auto;
  display: block;
}

.viewer-dialog .web-viewer.is-expanded[data-preview="mobile"] {
  width: min(100%, 392px, max(270px, calc((100dvh - 125px) * 195 / 422)));
}

.case-viewer-heading {
  margin: 0 0 18px;
  font-size: clamp(21px, 2.5vw, 34px);
}

.identity-comparison {
  margin-block: clamp(25px, 7vw, 64px);
}

.identity-comparison > h3,
.identity-decisions h3 {
  font-size: clamp(20px, 2.35vw, 29px);
  margin-bottom: 22px;
}

.identity-comparison-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 28px);
}

.identity-comparison figure,
.identity-applications .application-grid figure {
  min-width: 0;
  margin: 0;
}

.identity-plate {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 4 / 3;
  padding: clamp(18px, 5vw, 64px);
  border-radius: 14px;
  background: #fcfcfd;
  overflow: hidden;
}

.identity-comparison figure:last-child .identity-plate,
.identity-applications .identity-plate {
  background: var(--case-paper, #fcfcfd);
}

.identity-plate img,
.identity-applications .identity-plate img {
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: none;
  padding: 0;
  background: transparent;
  border-radius: 0;
  object-fit: contain;
}

.identity-comparison figcaption,
.identity-applications .application-grid figcaption {
  line-height: 1.65;
  font-size: clamp(14px, 1.3vw, 16px);
  margin-top: 14px;
}

.identity-comparison figcaption strong {
  display: block;
  color: var(--white);
  margin-bottom: 4px;
  font-size: 1.1em;
}

.identity-applications .application-grid {
  gap: clamp(24px, 4vw, 48px) clamp(12px, 2vw, 28px);
}

.identity-applications {
  margin-bottom: clamp(26px, 4vw, 44px);
}

.identity-applications .identity-plate {
  padding: clamp(12px, 3.5vw, 36px);
}

.identity-palette p {
  font-size: clamp(11px, 1.15vw, 13px);
  overflow-wrap: anywhere;
}

@media (min-width: 1100px) {
  .faro-project-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .faro-project,
  .faro-project-content {
    display: flex;
    flex-direction: column;
  }

  .faro-project-content {
    flex: 1;
  }

  .faro-project-content h2 {
    font-size: clamp(24px, 2.1vw, 32px);
  }

  .faro-project-actions {
    margin-top: auto;
    padding-top: 20px;
  }
}

@media (max-width: 600px) {
  .identity-comparison-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .identity-plate {
    aspect-ratio: 8 / 5;
  }

  .viewer-toolbar .icon-button {
    min-width: 32px;
  }

  .web-viewer .viewer-note {
    gap: 8px;
  }

  .web-viewer .viewer-note span:first-child,
  .web-viewer .viewer-note span:last-child {
    max-width: none;
  }
}

@media (max-width: 340px) {
  .viewer-toolbar .device-switch svg {
    display: none;
  }
}
