/* A single consultation title beside the form on desktop, immediately above it on phones. */
body[data-detail-selected] #project-consultation[data-curtain-study="compact"] .consult-story {
  align-self: center;
  padding-inline: clamp(20px, 2vw, 40px);
}

#project-consultation[data-curtain-study="compact"] .consult-story h2 {
  max-inline-size: 13ch;
  font-size: clamp(28px, 3.15vw, 56px);
  line-height: 1.04;
  text-wrap: balance;
}

#project-consultation[data-curtain-study="compact"] .consult-story p {
  margin-block: 14px 0;
  line-height: 1.5;
}

#project-consultation[data-curtain-study="compact"] .consult-form {
  margin: 0;
}

@media (min-width: 1201px) {
  html body[data-detail-selected] #hero .v7-actions {
    grid-template-columns: minmax(0, 232px) minmax(0, 318px) !important;
    width: min(100%, 560px) !important;
  }
  html body[data-detail-selected] #hero .v7-actions > [data-demo-pill] {
    gap: 8px;
    padding-inline-start: 16px !important;
  }
}

@media (max-width: 760px) {
  html body[data-detail-selected] #hero .v7-actions > [data-demo-pill] {
    gap: 8px;
    padding-inline-start: 14px !important;
  }
}

@media (max-width: 620px) {
  body[data-detail-selected] #project-consultation[data-curtain-study="compact"] .consult-photo {
    aspect-ratio: 1.95;
  }
  body[data-detail-selected] #project-consultation[data-curtain-study="compact"] .consult-story {
    padding-block: 16px 20px;
  }
  #project-consultation[data-curtain-study="compact"] .consult-story h2 {
    font-size: clamp(28px, 7.8vw, 42px);
  }
  body[data-detail-selected] #project-consultation[data-curtain-study="compact"] .consult-body {
    margin-inline: 20px;
    padding: 16px;
  }
}
/* Clip the hero without creating a scroll container or a fractional clip-path edge. */
body[data-detail-selected] #intro-scene {
  isolation: isolate;
  overflow: clip;
  background: #080808;
}

body[data-detail-selected] #expert.exv {
  padding-top: 4px;
  background: #080808;
}

html[data-deco-theme="light"] body[data-detail-selected] :is(#intro-scene, #expert.exv) {
  background: var(--deco-paper);
}

body[data-detail-selected] #expert.exv .exv-photo {
  overflow: hidden;
  contain: paint;
}

html[data-deco-theme] body[data-detail-selected] .lab-header[data-preview-surface="hero"]:not(.open) .lhd-contact[data-demo-pill]:not([aria-expanded="true"]) {
  background: transparent !important;
  border-color: #ffffff75 !important;
  color: #fff !important;
}

html[data-deco-theme] body[data-detail-selected] .lab-header[data-preview-surface="hero"]:not(.open) .lhd-contact[data-demo-pill]:is(:hover,:focus-visible):not([aria-expanded="true"]) {
  background: #08080875 !important;
  border-color: #fff !important;
}

html body[data-detail-selected] :is(#viewing, #related) .deco-title-accent {
  color: var(--atlas-sand, #c9ad7c);
}

html[data-deco-theme="light"] body[data-detail-selected] :is(#viewing, #related) .deco-title-accent {
  color: var(--deco-gold, #6b512e);
}

body[data-detail-selected] #expert.exv { overflow: visible; z-index: 1; }
body[data-detail-selected] #expert.exv::before {
  content: ""; position: absolute; inset: -5px calc(50% - 50vw) auto; height: 9px;
  background: inherit; pointer-events: none; z-index: 5;
}
/* Older packers inline the obsolete seam layer before this sheet. */
body[data-detail-selected] #intro-scene::after { content: none !important; }
