#inicio .hero-photo img {
  object-position: center 21%;
}

@media (min-width: 1440px) {
  #inicio .hero-copy {
    padding-inline-start: clamp(80px, calc((100vw - 1370px) / 2), 300px);
  }
}

@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }

  ::view-transition-group(root) { animation-duration: 320ms; }
  ::view-transition-old(root) { animation: 190ms ease-out both murilo-page-fade-out; }
  ::view-transition-new(root) { animation: 320ms ease-out both murilo-page-fade-in; }

  #inicio.murilo-opening .hero-copy {
    animation: 380ms cubic-bezier(.2, .7, .3, 1) both murilo-opening-copy;
  }

  #inicio.murilo-opening .hero-photo img {
    animation: 420ms ease-out both murilo-opening-photo;
  }

  @keyframes murilo-page-fade-out { to { opacity: 0; } }
  @keyframes murilo-page-fade-in { from { opacity: 0; } }
  @keyframes murilo-opening-copy { from { opacity: .78; transform: translateY(7px); } }
  @keyframes murilo-opening-photo { from { opacity: .86; } }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

#antes-e-depois .murilo-case-details {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, .95fr);
  align-items: center;
  gap: 20px 32px;
  margin: 24px 0 0;
  padding: clamp(18px, 3vw, 30px);
  border: 1px solid var(--line);
  border-top: 2px solid var(--gold);
  background: #faf6ef;
}

#antes-e-depois .murilo-case-details p { margin: 0; }
#antes-e-depois .murilo-case-details .murilo-case-kicker {
  color: #72512c;
  font-size: 13px;
  font-weight: 650;
}
#antes-e-depois .murilo-case-details h3 {
  margin: 4px 0 8px;
  font: 400 30px/1.1 Georgia, serif;
}
#antes-e-depois .murilo-case-dates {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
#antes-e-depois .murilo-case-dates div {
  border-left: 1px solid var(--gold);
  padding-left: 12px;
}
#antes-e-depois .murilo-case-dates dt { font-size: 13px; }
#antes-e-depois .murilo-case-dates dd { margin: 4px 0 0; font-weight: 650; font-size: 14px; }
#antes-e-depois .murilo-case-details .murilo-case-story { margin-bottom: 8px; }
#antes-e-depois .murilo-case-description { color: #4d5f6e; }
#antes-e-depois .murilo-case-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
}
#antes-e-depois .murilo-case-choices button {
  padding: 8px 16px;
  min-height: 44px;
  border: 1px solid #adbdc8;
  background: #fffdf9;
  color: var(--navy);
  cursor: pointer;
  font: inherit;
}
#antes-e-depois .murilo-case-choices button[aria-pressed="true"] {
  border-color: var(--navy);
  background: var(--navy);
  color: #fffdf9;
}
#antes-e-depois .murilo-case-photos { background: #d7cbbd; aspect-ratio: 2.15; }
#antes-e-depois .comparison-uploads { display: none; }
#antes-e-depois .murilo-case-photo-layer { display: flex; justify-content: center; }
#antes-e-depois .murilo-case-photo-window { position: relative; width: 100%; height: 100%; overflow: hidden; }
#antes-e-depois .murilo-case-photo-window img { display: block; width: 100%; height: 100%; object-fit: contain; }
#antes-e-depois .murilo-case-paired .murilo-case-photo-window {
  width: auto;
  max-width: 100%;
  aspect-ratio: var(--case-panel-ratio);
}
#antes-e-depois .murilo-case-paired .murilo-case-photo-window img {
  position: absolute;
  left: -100%;
  width: 200%;
  max-width: none;
  object-fit: fill;
}
#antes-e-depois .murilo-case-paired .comparison-before img { left: 0; }

@media (max-width: 660px) {
  #antes-e-depois .murilo-case-photos { aspect-ratio: 1.1; }
}

@media (max-width: 860px) {
  #antes-e-depois .murilo-case-details { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 380px) {
  #antes-e-depois .murilo-case-dates { grid-template-columns: minmax(0, 1fr); }
}

@view-transition { navigation: none; }
#inicio.murilo-opening { width: 100%; height: auto; min-height: max(480px,calc(100svh - var(--murilo-opening-chrome,168px))); }
#inicio.murilo-opening .hero-copy { padding-block: clamp(30px,5vh,62px); }
#inicio.murilo-opening .hero-photo { position: relative; height: auto; min-height: 0; overflow: hidden; }
#inicio.murilo-opening .hero-photo img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
@media(min-width:1900px) { #inicio.murilo-opening .hero-photo img { object-position: center 16%; } }
@media(max-width:820px) {
  #inicio.murilo-opening { grid-template-columns: minmax(0,1fr); grid-template-rows: auto minmax(clamp(240px,70vw,440px),1fr); min-height: calc(100svh - var(--murilo-opening-chrome,170px)); }
  #inicio.murilo-opening .hero-copy { min-height: 0; padding: clamp(22px,4vh,44px) 7vw; }
  #inicio.murilo-opening h1 { font-size: clamp(37px,8vw,65px); }
  #inicio.murilo-opening .hero-lead { font-size: clamp(19px,4.5vw,29px); }
  #inicio.murilo-opening .hero-photo img { object-position: center 17%; }
}
#consultorios.dark .locations { background: transparent; }
#consultorios.dark .locations button { background: #0e3151; border-color: var(--gold,#b79159); color: #fffdf9; }
#consultorios.dark .locations button:hover:not([aria-pressed=true]) { background: #173e60; border-color: #d5b685; }
#consultorios.dark .locations button[aria-pressed=true] { background: var(--gold,#b79159); border-color: var(--gold,#b79159); color: #11283b; }
#consultorios.dark .locations button:focus-visible { outline: 2px solid #fffdf9; outline-offset: 3px; }
@media(prefers-reduced-motion:no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-group(root) { animation-duration: 400ms; }
  ::view-transition-old(root) { animation: 240ms ease-out both murilo-visual-out; }
  ::view-transition-new(root) { animation: 400ms cubic-bezier(.2,.65,.3,1) both murilo-visual-in; }
  #root.murilo-visual-entry { animation: 400ms ease-out murilo-visual-in; }
  #root.murilo-visual-exit { animation: 200ms ease-in both murilo-visual-out; }
  #inicio.murilo-opening .hero-copy { animation: 480ms ease-out both murilo-visual-copy; }
  #inicio.murilo-opening .hero-lead { animation: 400ms 100ms ease-out both murilo-visual-copy; }
  #inicio.murilo-opening .hero-photo img { animation: 680ms ease-out both murilo-visual-photo; }
  #consultorios.dark .locations button { transition: background-color .22s ease,border-color .22s ease,color .22s ease; }
}
@media(prefers-reduced-motion:reduce) { html { scroll-behavior: auto; } }
@keyframes murilo-visual-in { from { opacity: .35; transform: translateY(9px); } }
@keyframes murilo-visual-out { to { opacity: .25; transform: translateY(-7px); } }
@keyframes murilo-visual-copy { from { opacity: .72; transform: translateY(8px); } }
@keyframes murilo-visual-photo { from { opacity: .84; transform: scale(1.035); } }
