.sv-frame {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin: 0;
  aspect-ratio: 16/9;
  width: 100%;
  min-width: 0;
  background: #0b141a;
  color: #fff;
}
.sv-frame > .sv-image, .sv-frame > .service-illustration {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sv-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px #d6f1ff20;
}
.sv-photo::after {
  background: linear-gradient(to top, #050a11eb 0, #050a116b 14%, transparent 39%);
}
.sv-photo figcaption {
  position: absolute;
  inset-inline: clamp(.8rem, 2vw, 1.3rem);
  bottom: .85rem;
  z-index: 1;
  --os-muted: #fff;
  color: white;
  font-size: .82rem;
  font-weight: 600;
  line-height: 1.4;
  text-shadow: 0 1px 5px #000;
}
.sv-archive-mark {
  position: absolute;
  z-index: 1;
  inset-inline-end: .85rem;
  top: .85rem;
  display: grid;
  place-items: center;
  padding: .25rem .4rem;
  border-radius: 3px;
  background: #faf9f5;
}
.sv-archive-mark img { width: auto; max-width: 3.2rem; height: 1.65rem; object-fit: contain; }

.clarity-grid .v4-service-card.sv-card, .v4-service-grid .v4-service-card.sv-card {
  --scene-edge: #5c98d7;
  --scene-tint: #244664;
  display: flex;
  align-items: stretch;
  gap: 0;
  overflow: hidden;
  padding: 0;
  background: var(--os-panel);
  background: linear-gradient(145deg, color-mix(in srgb, var(--scene-tint) 12%, var(--os-panel)), var(--os-panel) 78%);
}
.v4-service-card.sv-card:nth-child(2n) { --scene-edge: #57b394; --scene-tint: #235849; }
.clarity-grid .sv-card:is(:hover, :focus-within), .v4-service-grid .sv-card:is(:hover, :focus-within) {
  border-color: var(--scene-edge);
}
.sv-card-copy {
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: .75rem;
  padding: clamp(1.1rem, 2.2vw, 2rem);
}
.sv-card-copy > h2 { margin: 0; line-height: 1.12; }
.sv-card-copy :is(a.text-link, p) { margin: 0; }
.sv-card .sv-frame { aspect-ratio: 2.08; }
.sv-hero-split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  align-items: center;
  gap: clamp(2rem, 4vw, 5rem);
}
.sv-hero-split > *, .sv-pr-panel > * { min-width: 0; }
.sv-hero-split .sv-frame { aspect-ratio: 1.65; }
.sv-hero-text h1 { font-size: clamp(2.4rem, 5.8vw, 6rem); overflow-wrap: break-word; }
.v4-feature .sv-feature-aside { padding: 0; overflow: hidden; display: block; }
.sv-feature-aside > .sv-frame { margin-block-end: 1.2rem; aspect-ratio: 2.15; }
.sv-feature-aside > :not(.sv-frame) { margin-inline: clamp(1rem, 3vw, 2rem); }
.sv-feature-aside > span:last-child { display: block; margin-block-end: 1.25rem; }
#pr-preview .sv-pr-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: start;
  gap: 1rem clamp(1rem, 4vw, 4rem);
}
.sv-pr-panel > .sv-frame { grid-row: span 2; align-self: stretch; min-height: 13rem; }

.catalogue-service > summary, .ai-detail > summary, .page-ar .ai-detail > summary {
  --thumb-width: clamp(5.5rem, 9vw, 8.25rem);
  --thumb-gap: clamp(.9rem, 2.2vw, 2rem);
  display: grid;
  grid-template-columns: var(--thumb-width) minmax(0, 1fr) 1.55rem;
  align-items: center;
  gap: var(--thumb-gap);
}
.catalogue-service .sv-summary-photo, .ai-detail summary > .sv-summary-photo {
  display: block;
  width: 100%;
  aspect-ratio: 1.55;
  overflow: hidden;
  border-radius: 3px;
  background: #0a131a;
}
.sv-summary-photo .service-thumbnail { display: block; width: 100%; height: 100%; object-fit: cover; }
.catalogue-service .catalogue-body, .page-ar .catalogue-service .catalogue-body {
  padding-inline: calc(clamp(5.5rem, 9vw, 8.25rem) + clamp(.9rem, 2.2vw, 2rem)) 0;
}
@media (max-width: 760px) {
  .sv-hero-split, #pr-preview .sv-pr-panel { grid-template-columns: minmax(0, 1fr); }
  .sv-pr-panel > .sv-frame { grid-row: auto; }
  .sv-card .sv-frame, .sv-hero-split .sv-frame { aspect-ratio: 1.85; }
  .sv-card-copy { gap: .6rem; }
  .sv-photo figcaption { font-size: .8rem; }
  .catalogue-service > summary, .ai-detail > summary, .page-ar .ai-detail > summary {
    --thumb-width: clamp(3.5rem, 14vw, 5.5rem);
    --thumb-gap: clamp(.65rem, 2vw, 1rem);
    grid-template-columns: var(--thumb-width) minmax(0, 1fr) 1.15rem;
  }
  .catalogue-service .sv-summary-photo, .ai-detail summary > .sv-summary-photo { aspect-ratio: 1.17; }
  .catalogue-service .catalogue-body, .page-ar .catalogue-service .catalogue-body { padding-inline: 0; }
  .ai-detail > summary i { padding-inline: 0; margin-inline: 0; }
}

/* Large editorial images carry one enamel service mark, separate from archive logos. */
.sv-frame > .service-mark {
  position: absolute;
  inset-block-start: clamp(.65rem, 1.3vw, 1.2rem);
  inset-inline-start: clamp(.65rem, 1.3vw, 1.2rem);
  z-index: 1;
  width: clamp(3.4rem, 4.75vw, 4.8rem);
  height: auto;
  filter: drop-shadow(0 2px 4px #07101870);
  pointer-events: none;
}
.sv-summary-photo { position: relative; }
.sv-summary-photo .service-mark {
  position: absolute;
  inset-inline-start: 5%;
  inset-block-end: 5%;
  width: clamp(2.7rem, 4.2vw, 3.6rem);
  height: auto;
  pointer-events: none;
}
@media (max-width: 760px) {
  .catalogue-service .sv-summary-photo, .ai-detail summary > .sv-summary-photo {
    display: grid;
    place-items: center;
    aspect-ratio: 1;
    background: none;
  }
  .sv-summary-photo .service-thumbnail { display: none; }
  .sv-summary-photo .service-mark { position: static; width: min(100%, 3.4rem); }
}

.sv-site-capture {
  background: #101b27;
}
.sv-site-capture > .sv-image {
  object-fit: contain;
}
