/* The caption and the atlas title share a left edge as the next sheet arrives. */
html[data-capa=retrato] .hero[data-folio] .hero-media {
  --mat: clamp(11px, 1.1vw, 17px);
  --paper-skin: #e9e2d2;
  padding: 3px 3px 0;
  border-color: #c7bda6;
  box-shadow: 0 1px 0 #a79a80, 0 4px 8px -5px #080d09;
}
.hero[data-folio] .portrait-image {
  overflow: hidden;
}

#regioes .chapter-heading .rv-tab::after { content: none; }
#regioes .chapter-heading h2 {
  width: fit-content;
  margin-block: 0;
}
#regioes .chapter-heading p { max-width: 36ch; }
#conversa .conversation-lead { --proof-length: 82%; }
#conversa .bio-prova {
  grid-template-columns: var(--proof-length) minmax(0, 1fr);
  column-gap: 4%;
  align-items: end;
}
#conversa .bio-assinatura {
  align-self: end;
  margin-bottom: 5px;
}

@media (prefers-reduced-motion: no-preference) {
  /* Folio already measures this scroll. Reuse it so button hitboxes and the
     moving Blender stamp keep exactly the coordinates of the mounted print. */
  html[data-capa=retrato] .hero[data-folio] .portrait-image :is(img, .prova-impressa) {
    scale: calc(1 + var(--folio-lift, 0) * .065);
    transform-origin: 50% 31%;
  }
  html[data-capa=retrato] .hero[data-folio] + #regioes .chapter-heading {
    --atlas-indent: clamp(0px, calc(var(--caption-indent, 0px) + var(--folio-heading-y, 0px) * 1.9), var(--caption-indent, 0px));
  }
  #regioes .chapter-heading :is(.rv-tab, h2) {
    translate: var(--atlas-indent) 0;
  }
  #regioes .chapter-heading .rv-tab {
    position: relative;
    max-width: fit-content;
  }
  #regioes .chapter-heading .rv-tab::before {
    content: "";
    position: absolute;
    right: calc(100% + 8px);
    top: 50%;
    width: max(0px, calc(var(--atlas-indent) - 8px));
    border-top: 1px solid #9b8968;
  }
  /* Register a single print at full width. Only the photographic aperture
     moves; the copy, signature and line lengths remain in place for reading. */
  html.retrato-editorial #conversa .bio-foto {
    transform: none !important;
    width: 100% !important;
    background-position: 50% 30% !important;
  }
  html.retrato-editorial #conversa .bio-retrato { object-position: 50% 30% !important; }
  html.retrato-editorial #conversa .bio-assinatura {
    transform: none !important;
    clip-path: none !important;
  }
  #conversa .bio-prova.retrato-assentado .bio-foto {
    animation: assentar-o-retrato 620ms cubic-bezier(.19,.64,.23,1) both;
  }
  #conversa .bio-prova.retrato-assentado .bio-assinatura {
    animation: firmar-a-legenda 420ms ease-out both;
  }
  @keyframes assentar-o-retrato {
    from { clip-path: inset(0 6% 7% 0); translate: 0 9px; }
    to   { clip-path: inset(0); translate: 0; }
  }
  @keyframes firmar-a-legenda {
    from { opacity: .55; }
    to   { opacity: 1; }
  }
}


/* Shallow edges on the two navigation controls. The cast offer seal retains
   the deeper cap and the only continuous light in the cover. */
@media (forced-colors: none) {
  html[data-capa] .site-header #main-nav + .menu-toggle,
  html[data-capa] #inicio .hero .hero-escolhas > .action.action-primary {
    --face: #f0e9dc;
    --edge: #beaf95;
    --highlight: #fff9ed;
    --depression: #e2d7c5;
    position: relative;
    isolation: isolate;
    border: 0;
    background: none;
    border-radius: 2px;
    box-shadow: none;
    filter: none;
    transform: none;
    color: #292d27;
    touch-action: manipulation;
  }
  html[data-capa] .site-header #main-nav + .menu-toggle {
    --face: #252c27;
    --edge: #565b4f;
    --highlight: #50574b;
    --depression: #1a211d;
    color: #f4eee2;
    min-height: 44px;
    padding-inline: 13px;
  }
  html[data-capa] .site-header #main-nav + .menu-toggle[aria-expanded="true"] {
    --face: #364037;
    --highlight: #656b58;
  }
  html[data-capa] :is(.site-header #main-nav + .menu-toggle, #inicio .hero .hero-escolhas > .action.action-primary)::before {
    content: "";
    position: absolute;
    inset: 1px 0 2px;
    width: auto;
    height: auto;
    border: 0;
    border-image: none;
    border-radius: 2px;
    box-sizing: border-box;
    background: var(--face);
    box-shadow: inset 0 1px var(--highlight), 0 1px var(--edge), 0 2px 2px #11160f45;
    filter: none;
    opacity: 1;
    translate: none;
    transform: none;
    transition: transform 135ms ease-out;
  }
  html[data-capa] :is(.site-header #main-nav + .menu-toggle, #inicio .hero .hero-escolhas > .action.action-primary)::after {
    content: none;
  }
  html[data-capa] :is(.site-header #main-nav + .menu-toggle, #inicio .hero .hero-escolhas > .action.action-primary):is(:active,.vt-cap-down)::before {
    background: var(--depression);
    box-shadow: inset 0 1px 2px #10150e30, 0 1px var(--edge);
    transform: translateY(1px);
    transition-duration: 0s;
  }
  html[data-capa] :is(.site-header #main-nav + .menu-toggle, #inicio .hero .hero-escolhas > .action.action-primary):focus-visible {
    outline: 2px solid #f3d598;
    outline-offset: 3px;
  }
}

/* A small caption on the outside edge of the selected point. Its partner,
   the full quote and booking action, remains on the margin below the study. */
.configurator .atlas-caption {
  position: absolute;
  z-index: 3;
  width: max-content;
  max-width: 112px;
  pointer-events: none;
  text-align: left;
  color: #faf4e8;
  background: #1e2822;
  border-inline-start: 1px solid #c3a372;
  padding: 3px 6px;
}
.configurator .atlas-caption[hidden] { display: none; }
.configurator .atlas-caption::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 100%;
  width: var(--leader-length);
  border-top: 1px solid #caaf7f;
}
.configurator .atlas-caption[data-leader="left"]::after { left: auto; right: 100%; }
.atlas-caption strong, .atlas-caption small { display: block; }
.atlas-caption strong { font: 550 15px/1.18 var(--sans); }
.atlas-caption small { color: #edd9b2; font: 450 13px/1.2 var(--sans); font-variant-numeric: tabular-nums; }
.configurator .body-stage > .map-quote:not([hidden]) {
  padding: 11px 3px 9px;
  border-top: 1px solid #8c826a;
  border-bottom: 0;
}
.configurator .map-quote .map-quote-names { font-size: clamp(19px, 4.8vw, 24px); }
.configurator .map-quote .map-quote-price { color: #f3dfb5; font-size: 1rem; }
.configurator .map-quote .map-quote-times { min-height: 44px; }
.configurator .region-choice[aria-pressed="true"] .region-copy > span { font-weight: 650; }

@media (prefers-reduced-motion: reduce) {
  html[data-capa] :is(.site-header #main-nav + .menu-toggle, #inicio .hero .hero-escolhas > .action.action-primary)::before {
    transition: none;
  }
}
