/* As duas camadas usam a mesma foto e o mesmo enquadramento. */
.intro-photo { container-type: size; }
.intro-photo-canvas { position: absolute; width: max(100cqw, calc(100cqh * 1000 / 1499)); height: max(100cqh, calc(100cqw * 1499 / 1000)); left: calc((100cqw - max(100cqw, calc(100cqh * 1000 / 1499))) / 2); top: calc((100cqh - max(100cqh, calc(100cqw * 1499 / 1000))) * .20); }
.intro-photo-canvas img { inset: 0; width: 100%; height: 100%; object-fit: fill; object-position: initial; }
.intro-scene-layer { z-index: 0; }
.intro-photo::before { z-index: 2; }
.intro-subject-layer { z-index: 3; pointer-events: none; }
.intro-subject-layer svg { position: absolute; inset: 0; width: 100%; height: 100%; filter: saturate(.9); }

/* Apenas a cabeça atravessa a borda superior; braços e base ficam na moldura. */
.method-portrait { position: relative; isolation: isolate; width: 100%; aspect-ratio: 4 / 5; }
.method-backdrop { position: absolute; z-index: 0; inset: 15% 4% 1%; overflow: hidden; border-radius: 22px; background: #bbc4ce; }
.method-visual .method-backdrop img { position: absolute; width: calc(100% / .92); height: calc(100% / .84); max-width: none; left: calc(-100% * .04 / .92); top: calc(-100% * .15 / .84); object-fit: fill; border-radius: 0; }
.method-visual .method-subject { position: absolute; z-index: 3; inset: 0; width: 100%; height: 100%; object-fit: fill; border-radius: 0; pointer-events: none; clip-path: inset(0 4% 1% round 0 0 22px 22px); }
.method-frame { position: absolute; z-index: 2; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; color: var(--gold); }
.method-frame-outline { fill: none; stroke: currentColor; stroke-width: 1.3; vector-effect: non-scaling-stroke; }
.frame-traveler { fill: var(--gold-light); stroke: var(--gold); stroke-width: 1; }
.method-stamp { z-index: 5; }
.area-mobile-summary { display: none; }
.area-orbit-node { touch-action: pan-y; }

/* Cabeçalho com uma única ação, que acompanha a mudança de formato da barra. */
.header-contact { display: inline-flex; align-items: center; justify-content: center; gap: 9px; flex-shrink: 0; min-height: 42px; padding: 10px 16px; border: 1px solid var(--gold); border-radius: 0; background: var(--paper); color: var(--navy); font-size: .73rem; font-weight: 600; line-height: 1.3; transition: border-radius .4s var(--ease), background .25s, color .25s; }
.header-contact svg, .contact-actions svg { width: 20px; height: 20px; flex-shrink: 0; }
.site-header.is-floating .header-contact { border-radius: 999px; }
.header-contact:hover, .header-contact:focus-visible, .header-contact:active, .header-contact.is-activated { background: var(--gold); color: #fff; }

/* O desktop apresenta a sequência somente na descida. */
@media (min-width: 1100px) and (min-height: 650px) {
  .areas-section.is-scroll-story { height: 600svh; overflow-anchor: none; }
  .is-scroll-story .areas-frame { position: sticky; top: 0; height: 100svh; }
  .areas-section.is-returning { height: 100svh; }
  .is-returning .areas-frame { position: relative; top: auto; }
  .areas-layout { padding-top: clamp(30px, 4svh, 48px); }
  .areas-section .section-heading h2 { font-size: clamp(3.35rem, 4.8vw, 4.65rem); line-height: 1.03; }
  .areas-section .section-subtitle { margin-top: 7px; font-size: clamp(1.3rem, 1.6vw, 1.65rem); }
  .area-detail { align-self: start; padding-top: 36px; padding-bottom: 10px; }
  .area-detail.is-changing { animation: area-content-in .3s var(--ease); }
}
@media (min-width: 1100px) and (min-height: 650px) and (max-height: 780px) {
  .areas-layout { padding-top: 24px; }
  .areas-section .section-heading h2 { font-size: 3.4rem; }
  .areas-section .section-subtitle { font-size: 1.3rem; }
  .area-detail { padding-top: 25px; }
}

/* O carrossel repete grupos inteiros, medidos antes da animação. */
.article-track { gap: 24px; animation: article-loop var(--article-loop-duration, 40s) linear infinite; }
.article-group { display: flex; align-items: stretch; gap: 24px; flex: 0 0 auto; }
@keyframes article-loop { to { transform: translateX(calc(-1 * var(--article-loop-distance, 1122px))); } }

/* O contato combina duas ações equivalentes com uma geometria em movimento. */
.contact-section { background: radial-gradient(ellipse at 80% 70%, #20476a70, transparent 65%), var(--navy); }
.contact-lines { inset: 0; width: 100%; height: 100%; border: 0; overflow: hidden; }
.contact-lines span { position: absolute; display: block; width: 680px; aspect-ratio: 1; border: 1px solid #dec89935; border-radius: 50%; left: -350px; top: -190px; animation: contact-orbit 36s linear infinite; }
.contact-lines span::after { content: ''; position: absolute; left: 50%; top: -3px; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 12px #dec89975; }
.contact-lines span:nth-child(2) { width: 920px; left: auto; right: -320px; top: -540px; animation-duration: 52s; animation-direction: reverse; }
.contact-lines span:nth-child(3) { width: 760px; left: 30%; top: 100px; animation-duration: 43s; }
.contact-grid { position: relative; z-index: 1; }
.contact-actions { gap: 13px; }
.contact-actions .button { min-height: 55px; }
.contact-actions .button-email { min-width: 175px; }
.contact-reassurance { display: block; margin-top: 20px; max-width: 470px; color: #a9bac6; font-size: .66rem; line-height: 1.85; }
@keyframes contact-orbit { from { transform: translate(0, 0) rotate(0); } 50% { transform: translate(18px, -12px) rotate(180deg); } to { transform: translate(0, 0) rotate(360deg); } }

/* A marca completa tem uma área própria, com navegação e formas de atendimento. */
.footer-top { grid-template-columns: 1.25fr .7fr 1fr 1fr; gap: 35px; padding-bottom: 45px; }
.footer-brand-lockup { display: inline-flex; justify-content: center; width: 176px; height: 122px; padding: 12px; border: 1px solid #dec8996b; border-radius: 18px; background: var(--paper); }
.footer-brand-lockup img { display: block; width: 100%; height: 100%; object-fit: contain; }
.footer-brand > p { margin-top: 21px; font-size: 1.4rem; }
.footer-areas { display: flex; flex-direction: column; align-items: start; gap: 10px; color: #b8c5ce; font-size: .72rem; line-height: 1.7; }
.footer-areas strong { margin-bottom: 8px; color: var(--gold); font-size: .63rem; letter-spacing: .13em; text-transform: uppercase; }
.footer-nav a, .footer-areas a, .footer-contact a { transition: color .2s; }
.footer-areas a:hover { color: var(--gold); }
.footer-guidance { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding-block: 24px; border-top: 1px solid #ffffff18; }
.footer-guidance p { max-width: 740px; color: #9caebc; font-size: .65rem; line-height: 1.85; }
.footer-guidance p strong { color: #d8e1e7; font-weight: 500; }
.footer-guidance > span { color: var(--gold-light); font-family: var(--serif); font-size: 1.3rem; line-height: 1.25; }
@media (min-width: 768px) and (max-width: 1099px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 35px 60px; }
}
@media (max-width: 767px) {
  .header-shell { gap: 10px; }
  .header-contact { min-height: 37px; padding: 9px 11px; gap: 7px; font-size: .61rem; }
  .header-contact svg { width: 17px; height: 17px; }
  .intro-photo-canvas { top: calc((100cqh - max(100cqh, calc(100cqw * 1499 / 1000))) * .31); }
  .method-visual { max-width: 390px; }
  .contact-actions { justify-content: center; }
  .contact-actions .button { width: 100%; max-width: 300px; }
  .contact-reassurance { max-width: 330px; margin-inline: auto; font-size: .64rem; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 34px 20px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-brand-lockup { width: 166px; height: 114px; }
  .footer-areas { font-size: .66rem; }
  .footer-contact { grid-column: 1 / -1; }
  .footer-guidance { flex-direction: column; align-items: start; gap: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  .frame-traveler { display: none; }
  .contact-lines span, .article-track { animation: none; }
  .article-marquee { overflow-x: auto; }
  .article-group[aria-hidden="true"] { display: none; }
  .areas-section.is-scroll-story { height: auto; }
  .is-scroll-story .areas-frame { position: relative; height: auto; }
  .areas-section .area-experience, .areas-section .area-backgrounds { display: none; }
  .areas-section .area-grid { display: grid; }
  .area-detail.is-changing { animation: none; }
}
