/* Conexão V3: a shorter narrative, with native touch motion and honest scope. */
.v3-routine {padding: clamp(64px, 7vw, 104px) 0; background: var(--paper);}
.v3-routine-grid {display: grid; grid-template-columns: 1fr 1fr; gap: 38px 7%; align-items: center;}
.v3-routine-copy h2, .v3-faq h2 {font-size: clamp(36px, 4vw, 58px); line-height: 1.08; letter-spacing: -.035em; margin: 20px 0 26px;}
.v3-routine-copy > p {font-size: 16px; color: var(--muted); line-height: 1.7; max-width: 48ch;}
.v3-routine-copy .v3-routine-answer {margin: 18px 0; color: var(--ink);}
.v3-routine-copy .text-link {gap: 18px;}
.v3-routine-photo {position: relative; margin: 0; height: 390px; overflow: hidden; border-radius: 10px; background: #20272f;}
.v3-routine-photo img {width: 100%; height: 100%; object-fit: cover; object-position: 62% center; transform: translateY(var(--v3-photo-y,0px)) scale(1.07);}
.v3-routine-photo::after {content: ''; position: absolute; inset: 30% 0 0; background: linear-gradient(transparent,#11191ce8); pointer-events: none;}
.v3-routine-photo figcaption {position: absolute; z-index: 1; bottom: 28px; left: 28px; right: 28px; color: white; display: flex; justify-content: space-between; align-items: end; gap: 20px;}
.v3-routine-photo figcaption > span {font-size: 18px; line-height: 1.45;}
.v3-routine-photo figcaption strong {font-weight: 500;}
.v3-routine-photo figcaption small {font-size: 10px; max-width: 10ch; color: #eee2d2;}
.v3-routine-points {grid-column: 1/-1; display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; margin: 0; padding: 28px 0 0; list-style: none; border-top: 1px solid var(--line);}
.v3-routine-points li {font-size: 15px; display: flex; gap: 16px; align-items: center;}
.v3-routine-points li > span {font-size: 11px; color: var(--red);}
.portfolio-stacked .demo-caption {font-size: 12px; max-width: 34ch; display: block; margin-top: 16px;}
.portfolio-stacked .property-top .demo-label {font-size: 11px; background: #151b22e6; border-color: #ffffff50;}
.portfolio-stacked .property-content p {max-width: 36ch;}
.portfolio-skip {white-space: nowrap;}
@media (min-width: 901px) {.js:not(.reduced) .portfolio-stacked {height: 230vh; min-height: 1550px;}}
.services .section-heading {flex-wrap: wrap; gap: 24px;}
.v3-services-note {flex-basis: 100%; max-width: 68ch; font-size: 15px; line-height: 1.65; color: var(--muted); margin: 0;}
.v3-service-summary {display: flex; flex-direction: column; gap: 22px;}
.v3-service-description {font-size: 16px; line-height: 1.6; color: #514e49;}
.v3-service-scope {display: flex; flex-direction: column; gap: 6px; padding-top: 16px; border-top: 1px solid #ded8ce; font-size: 13px; line-height: 1.6; color: #625e58;}
.v3-service-scope strong {font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--red-dark);}
.service-card:hover .v3-service-description, .service-card:focus-visible .v3-service-description {color: #f5f1ea;}
.service-card:hover .v3-service-scope, .service-card:focus-visible .v3-service-scope {color: #d7d6d2; border-color: #ffffff30;}
.service-card:hover .v3-service-scope strong, .service-card:focus-visible .v3-service-scope strong {color: #dfc7a8;}
.v3-dialog-scope {background: #ece7de;}
.v3-dialog-scope small {color: var(--red-dark);}
.method {border-bottom: 1px solid #ffffff20;}
.trust-motion .motion-proof {padding-top: 80px;}
.proof-intro #proof-title {font-size: clamp(36px, 3.8vw, 54px); line-height: 1.1;}
.proof-intro #proof-title em {font-weight: 400; color: #e2c8a7;}
.v3-faq {background: var(--paper); padding: 96px 0;}
.v3-faq-grid {display: grid; grid-template-columns: .85fr 1.25fr; gap: 8%; align-items: start;}
.v3-faq-intro > p {font-size: 16px; max-width: 32ch; color: var(--muted); margin-bottom: 26px;}
.v3-faq-list {border-top: 1px solid #c9c0b5;}
.v3-faq-list details {border-bottom: 1px solid #c9c0b5;}
.v3-faq-list summary {display: flex; justify-content: space-between; align-items: center; gap: 24px; font-size: 17px; line-height: 1.5; font-weight: 600; padding: 26px 0; cursor: pointer; list-style: none;}
summary::-webkit-details-marker {display: none;}
.v3-faq-list summary > span, .v3-location summary > span {flex: none; font-size: 24px; font-weight: 400; color: var(--red); transition: transform 220ms ease;}
.v3-faq-list details[open] summary > span, .v3-location[open] summary > span {transform: rotate(45deg);}
.v3-faq-answer {padding: 0 44px 26px 0; color: var(--muted); font-size: 15px; line-height: 1.75;}
.v3-faq-answer a, .v3-faq-answer button {display: inline-flex; min-height: 44px; align-items: center; color: var(--red-dark); margin-top: 12px; font-size: 14px;}
.v3-faq-list details[open] .v3-faq-answer {animation: v3-disclose 240ms ease-out;}
@keyframes v3-disclose {from {opacity: 0; transform: translateY(-6px);} to {opacity: 1; transform: none;}}
.v3-contact-location {margin-top: 36px;}
.v3-location {border-top: 1px solid #c6bfb3;}
.v3-location summary {display: flex; justify-content: space-between; gap: 24px; padding: 20px 0 0; font-size: 14px; cursor: pointer; list-style: none;}
.v3-location-body {padding-top: 24px; max-width: 620px;}
.v3-location .address-block {margin: 0 0 16px;}
.v3-location .location-note {margin-bottom: 20px;}
.v3-preview-badge {font-size: 10px; letter-spacing: .1em; color: #4e4541; padding: 0 10px; white-space: nowrap;}
.review-dock {padding: 6px 8px;}
/* The dock no longer links out of this self-contained version. */
body[data-collection="v6"].v6-dock-condensed .review-dock > :not(:first-child) {display: flex;}
@media(max-width: 900px) {
 .v3-routine-grid, .v3-faq-grid {grid-template-columns: 1fr; gap: 32px;}
 .v3-routine-copy > p {max-width: 65ch;}
 .v3-routine-photo {height: 340px;}
 .portfolio-heading {flex-direction: column;}
 .portfolio-stacked .portfolio-sub, .portfolio-stacked .demo-caption {max-width: 56ch;}
 .v3-faq {padding: 64px 0;}
 .v3-faq-intro > p {max-width: 50ch;}
}
@media(max-width: 700px) {
 .v3-routine-grid {gap: 28px;}
 .v3-routine-copy h2, .v3-faq h2 {font-size: clamp(35px,9vw,44px);}
 .v3-routine-photo {height: 280px;}
 .v3-routine-photo figcaption {left: 22px; right: 22px; bottom: 22px;}
 .v3-routine-photo figcaption > span {font-size: 16px;}
 .v3-routine-points {grid-template-columns: 1fr; gap: 14px; padding-top: 22px;}
 .v3-routine-points li {font-size: 14px;}
 .portfolio-stacked .portfolio-heading h2 {font-size: 37px;}
 .portfolio-stacked .property-card {width: calc(100vw - 44px); min-width: 0;}
 .portfolio-stacked .property-card-inner {height: 430px !important;}
 .portfolio-stacked .property-content {left: 24px; right: 24px; bottom: 26px;}
 .portfolio-stacked .property-content h3 {font-size: 34px !important;}
 .portfolio-stacked .property-content p {font-size: 14px; line-height: 1.5; max-width: 28ch;}
 .portfolio-stacked .property-open {top: 22px; bottom: auto; right: 20px;}
 .portfolio-stacked .property-num {display: none;}
 .portfolio-controls {flex-wrap: wrap; justify-content: space-between;}
 .portfolio-controls .portfolio-direction {width: auto; font-size: 11px;}
 .portfolio-controls .portfolio-skip {order: 5; width: 100%; justify-content: space-between; border-top: 1px solid #ffffff26; margin-top: 8px; padding-top: 16px;}
 .portfolio-stacked .property-photo {transform: translateY(var(--v3-photo-y,0px)) scale(1.055);}
 body[data-collection="v6"] .service-card .service-info {padding: 24px;}
 .v3-service-summary {gap: 18px;}
 .v3-service-description {font-size: 16px;}
 .v3-service-scope {font-size: 13px;}
 .v3-services-note {font-size: 14px;}
 .v3-faq-list summary {font-size: 16px; padding: 22px 0; gap: 18px;}
 .v3-faq-answer {padding-right: 12px;}
 .trust-motion .motion-proof {padding-top: 58px;}
 .v3-location summary {font-size: 13px; align-items: start;}
 .service-dialog .dialog-copy {padding-top: 30px;}
}
@media(max-width: 360px) {
 .portfolio-stacked .property-card-inner {height: 445px !important;}
 .portfolio-stacked .property-content h3 {font-size: 30px !important;}
 .portfolio-stacked .property-tags {gap: 5px;}
 .portfolio-stacked .property-tags span {font-size: 9px;}
}
.reduced .v3-routine-photo img, .reduced .property-photo {transform: none !important;}
.reduced .v3-faq-answer {animation: none !important;}
.reduced .v3-faq-list summary > span, .reduced .v3-location summary > span {transition: none;}
@media(prefers-reduced-motion: reduce) {
 .v3-routine-photo img, .property-photo {transform: none !important;}
 .v3-faq-answer {animation: none !important;}
 .v3-faq-list summary > span, .v3-location summary > span {transition: none;}
}
/* Strong contrast on ivory, preserving the warm accent for dark chapters. */
.v3-routine h2 em, .v3-faq h2 em, .services h2 em {color: #9e0b22;}
.portfolio-stacked .property-top .demo-label {color: #f2e5d2;}
@media(max-width: 700px) {.portfolio-controls .portfolio-skip {display: flex;}}
/* Explicit photo stacking avoids a painted background covering transformed images. */
.portfolio-stacked .property-photo {position: absolute; inset: 0; z-index: 0;}
.portfolio-stacked .property-card-inner::after {z-index: 1;}
/* The stack animates in 2D. Flatten nested perspective to keep every photo painted. */
.portfolio-stacked .portfolio-display {perspective: none !important;}
.portfolio-stacked .portfolio-track {perspective: none; transform-style: flat !important;}
.portfolio-stacked .property-card-inner {transform: none;}

/* V3 alignment system: one broad content rail from the opening to the footer.
   Images remain full bleed; only editorial content shares this inset. */
body[data-version="3"] {
  --gutter: max(24px, 6vw, calc((100vw - 1920px) / 2));
}
body[data-version="3"] .wrap,
body[data-version="3"] .services .wrap.wide {
  width: calc(100% - 2 * var(--gutter));
  max-width: none;
  margin-inline: auto;
}
body[data-version="3"] .glyph-front {left: var(--gutter);}
body[data-version="3"] .glyph-caption {left: var(--gutter); right: var(--gutter);}
body[data-version="3"] .portal-side-note {right: var(--gutter);}
/* Desktop stacked environments already use the same inset on their parent. */
@media (min-width: 901px) {
  .js:not(.reduced) body[data-version="3"] .portfolio-stacked .portfolio-heading {
    width: 100%; max-width: 440px; margin-inline: 0;
  }
  .js:not(.reduced) body[data-version="3"] .portfolio-stacked .portfolio-controls {
    width: 100%; margin-inline: 0;
  }
}
@media (max-width: 700px) {
  body[data-version="3"] {--gutter: 24px;}
  body[data-version="3"] .glyph-front {right: var(--gutter);}
}
body[data-version="3"] .trust-motion .motion-proof .proof-grid {
  width: calc(100% - 2 * var(--gutter)); max-width: none;
}
