/* O picture apenas seleciona a fotografia: não cria uma caixa no mobile. */
.hero-photograph {
  display: contents;
}

/* Desktop: fotografias horizontais de ponta a ponta.
   O layout aprovado até 920 px permanece nos arquivos de mobile. */
@media (min-width: 921px) {
  body[data-page] .home-hero,
  body[data-page] .page-hero-v3 {
    min-height: clamp(720px, 56.25vw, 960px);
    align-items: center;
    background-color: #080c12;
    background-size: cover;
    background-position: center;
    isolation: isolate;
  }

  body[data-page] .home-hero__content,
  body[data-page] .page-hero-v3__content {
    position: relative;
    z-index: 2;
    padding-top: 8rem;
    padding-bottom: 4.5rem;
  }

  body[data-page] .home-hero__copy,
  body[data-page] .page-hero-v3__content {
    max-width: min(44%, 590px);
    gap: 1.25rem;
  }

  body[data-page] .page-hero-v3__content[data-animate] {
    opacity: 1;
    filter: none;
    transform: none;
    transition: none;
  }

  body[data-page] .home-hero h1,
  body[data-page] .page-hero-v3 h1 {
    max-width: 17ch;
    font-size: clamp(2.75rem, 4.1vw, 4rem);
    line-height: 1.06;
    text-wrap: balance;
  }

  body[data-page] .home-hero .v3-lede,
  body[data-page] .page-hero-v3 .v3-lede {
    max-width: 48ch;
    font-size: 1.05rem;
    line-height: 1.65;
  }

  body[data-page] .home-hero__image,
  body[data-page] .page-hero-v3__image {
    position: absolute;
    z-index: 0;
    inset: 0;
    width: 100%;
    max-width: none;
    height: 100%;
    margin: 0;
    object-fit: cover;
    object-position: center;
    transform: none;
    filter: none;
    opacity: 1;
    will-change: auto;
    border-radius: 0;
    -webkit-mask-image: none;
    mask-image: none;
  }

  /* A ancoragem protege a pessoa e concentra o recorte lateral na área livre. */
  body[data-page="home"] .home-hero__image,
  body[data-page="sobre"] .page-hero-v3--portrait .page-hero-v3__image {
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: right center;
    -webkit-mask-image: none;
    mask-image: none;
  }

  body[data-page="empresas"] .page-hero-v3 {
    min-height: max(720px, 56.25vw);
  }

  body[data-page="empresas"] .page-hero-v3--corporate .page-hero-v3__image {
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 60% bottom;
    -webkit-mask-image: none;
    mask-image: none;
  }

  body[data-page="especialidades"] .page-hero-v3__image,
  body[data-page="contato"] .page-hero-v3__image {
    object-position: 60% center;
  }

  body[data-page] .home-hero::after,
  body[data-page] .page-hero-v3::after {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: block;
    content: "";
    pointer-events: none;
    background:
      linear-gradient(90deg, rgba(8, 12, 18, 0.88), rgba(8, 12, 18, 0.78) 30%, rgba(8, 12, 18, 0.55) 45%, rgba(8, 12, 18, 0.12) 68%, rgba(8, 12, 18, 0.03)),
      linear-gradient(180deg, rgba(8, 12, 18, 0.15), transparent 25%, transparent 78%, rgba(8, 12, 18, 0.45));
  }

  body[data-page] .page-hero-v3::before {
    display: none;
  }

  body[data-page="depoimentos"] .page-hero-v3--testimonials .page-hero-v3__image {
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: left center;
    -webkit-mask-image: none;
    mask-image: none;
  }

  body[data-page="depoimentos"] .page-hero-v3::after {
    background:
      linear-gradient(270deg, rgba(8, 12, 18, 0.88), rgba(8, 12, 18, 0.78) 30%, rgba(8, 12, 18, 0.55) 45%, rgba(8, 12, 18, 0.12) 68%, rgba(8, 12, 18, 0.03)),
      linear-gradient(180deg, rgba(8, 12, 18, 0.15), transparent 25%, transparent 78%, rgba(8, 12, 18, 0.45));
  }

  body[data-page="depoimentos"] .page-hero-v3__content {
    margin-left: auto;
  }

  body[data-page="contato"] .page-hero-v3__content {
    margin-left: var(--v3-gutter);
    margin-right: auto;
  }

  /* Apresentação profissional: salmão da marca, retrato inteiro e texto escuro. */
  .portrait-story--reflective {
    width: 100%;
    min-height: 0;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: center;
    gap: clamp(2.5rem, 5vw, 5rem);
    margin-inline: auto;
    padding-block: 5.5rem;
    padding-inline: max(var(--v3-gutter), calc((100% - 1280px) / 2));
    background: var(--v3-rose);
    color: #2b2026;
  }

  .portrait-story--reflective .portrait-story__media,
  .story-layout .story-media {
    position: relative;
    width: min(100%, 480px);
    min-height: 0;
    height: auto;
    aspect-ratio: 2200 / 3307;
    align-self: center;
    justify-self: center;
    overflow: hidden;
    border-radius: 22px;
    -webkit-mask-image: none;
    mask-image: none;
  }

  body[data-page] .portrait-story__media img,
  body[data-page] .story-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transform: none;
  }

  .portrait-story--reflective .portrait-story__media::after {
    background: none;
  }

  .portrait-story--reflective .portrait-story__content {
    margin: 0;
    padding: 1rem 0;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .portrait-story--reflective .portrait-story__content .v3-heading {
    color: #2b2026;
  }

  .portrait-story--reflective .portrait-story__content p,
  .portrait-story--reflective .portrait-story__content .v3-lede,
  .portrait-story--reflective .professional-registration,
  .portrait-story--reflective .v3-eyebrow,
  .portrait-story--reflective .v3-link {
    color: #3c2930;
  }

  .portrait-story--reflective .portrait-story__content[data-animate] {
    opacity: 1;
    transform: none;
    filter: none;
  }

  .portrait-story--reflective .professional-registration {
    color: #3c2930 !important;
  }

  .story-layout {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: clamp(3rem, 6vw, 6rem);
  }

  /* Metodologia: foto inteira e limitada, texto não estica o retrato. */
  .methodology-luxe {
    width: 100%;
    min-height: 0;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    align-items: center;
    gap: clamp(3rem, 5vw, 5rem);
    margin-inline: auto;
    padding-block: 5.5rem;
    padding-inline: max(var(--v3-gutter), calc((100% - 1280px) / 2));
    background: var(--v3-rose-light);
    color: #2b2026;
  }

  .methodology-luxe__media {
    width: min(100%, 480px);
    min-height: 0;
    height: auto;
    aspect-ratio: 2200 / 3307;
    align-self: center;
    justify-self: center;
    overflow: hidden;
    border-radius: 22px;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .methodology-luxe__media > img:first-child {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transform: none;
  }

  .methodology-luxe__media::after,
  .methodology-luxe__prism {
    display: none;
  }

  .methodology-luxe__content {
    padding: 0;
    gap: 2rem;
  }

  .methodology-luxe__intro .v3-heading {
    max-width: 17ch;
    color: #2b2026;
  }

  .methodology-luxe__intro .v3-lede,
  .methodology-step p {
    color: #49343b;
  }

  .methodology-luxe .v3-eyebrow,
  .methodology-step strong {
    color: #6c3c3b;
  }

  .methodology-step {
    border-color: rgba(92, 49, 49, 0.18);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.18));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
  }

  .methodology-step h3 {
    color: #2b2026;
  }

  /* Cards preservam o rosto e têm escala consistente entre páginas. */
  .specialty-visual-card,
  .specialty-visual-card:last-child {
    min-height: 0;
    aspect-ratio: 4 / 5;
    background-position: center;
  }

  .specialty-visual-card--sexualidade {
    background-position: 64% 34%;
  }

  /* Ambiente físico: largura e altura próximas ao 3:2 da fotografia. */
  .location-grid {
    align-items: center;
    gap: 0;
    background: var(--v3-rose-light);
  }

  .location-grid__media {
    position: relative;
    min-height: 0;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    border-radius: 22px 0 0 22px;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .location-grid__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform: none;
  }

  .location-grid__copy {
    padding: clamp(2rem, 3.5vw, 3.5rem);
    border-radius: 0;
    background: none;
  }

  /* Os ambientes atuais também ocupam a largura completa dos banners finais. */
  .image-cta--footer {
    min-height: 0;
    background: #080c12;
  }

  .image-cta--footer .image-cta__image {
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: none;
    border-radius: 0;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .image-cta--footer::after {
    background: linear-gradient(90deg, rgba(8, 12, 18, 0.9), rgba(8, 12, 18, 0.78) 35%, rgba(8, 12, 18, 0.3) 65%, rgba(8, 12, 18, 0.15));
  }

  .image-cta--footer .image-cta__content {
    min-height: 540px;
    align-content: center;
    padding-block: 4rem;
  }

  .image-cta--footer .image-cta__content > * {
    max-width: min(50%, 620px);
  }

  .image-cta--footer .v3-heading {
    font-size: clamp(2.5rem, 4vw, 4rem);
  }

  .science-band__visual img {
    width: min(48%, 240px);
    height: auto;
    object-fit: contain;
  }
}

@media (min-width: 921px) and (max-width: 1120px) {
  body[data-page] .home-hero__copy,
  body[data-page] .page-hero-v3__content {
    max-width: 44%;
  }

  body[data-page] .home-hero__actions,
  body[data-page] .page-hero-v3__actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .portrait-story--reflective,
  .methodology-luxe {
    gap: 2rem;
  }

  .portrait-story--reflective .portrait-story__content {
    padding: 1rem 0;
  }
}
