body { overflow-x: clip; }
#escritorio, #atuacao, #metodo, #perfil, #contato { scroll-margin-top: 122px; }

.demo-bar strong { color: var(--gold-soft); }
.demo-bar .demo-subscribe { padding: 5px 13px; border-radius: 999px; color: #1e2822; background: var(--gold-soft); font-weight: 800; text-decoration: none; }
.whatsapp-float { position: fixed; z-index: 140; right: 18px; bottom: 18px; display: grid; width: 48px; height: 48px; place-items: center; border: 3px solid #fff; border-radius: 50%; background: #25a866; box-shadow: 0 12px 28px rgba(20,78,48,.28); transition: transform .2s ease, box-shadow .2s ease; }
.whatsapp-float:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(20,78,48,.34); }
.whatsapp-float img { width: 25px; height: 25px; filter: brightness(0) invert(1); }

.hero { isolation: isolate; }
.hero-image { transform: scale(1.025); transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.hero::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background: radial-gradient(circle at 73% 46%, rgba(255,255,255,.18), transparent 28%);
  pointer-events: none;
}
.hero-copy { position: relative; z-index: 5; }
.hero-copy > * { animation: hero-enter .8s cubic-bezier(.2,.7,.2,1) both; }
.hero-copy > :nth-child(2) { animation-delay: .08s; }
.hero-copy > :nth-child(3) { animation-delay: .16s; }
.hero-copy > :nth-child(4) { animation-delay: .24s; }
.hero-copy > :nth-child(5) { animation-delay: .32s; }

.floating-board { position: absolute; z-index: 3; inset: 0; pointer-events: none; }
.piece {
  position: absolute;
  height: auto;
  object-fit: contain;
  mix-blend-mode: normal;
  filter: drop-shadow(0 26px 24px rgba(72,55,27,.16));
  will-change: transform;
}
.hero-pieces .piece-queen {
  right: -78px;
  bottom: -95px;
  width: clamp(190px, 18vw, 285px);
  opacity: .83;
  animation: float-queen 7.5s ease-in-out infinite;
}
.hero-pieces .piece-knight {
  right: 28%;
  bottom: -35px;
  width: clamp(100px, 10vw, 155px);
  opacity: .56;
  animation: float-knight 6.2s ease-in-out -1.8s infinite;
}
.hero-pieces .piece-pawn {
  left: -64px;
  bottom: -75px;
  width: clamp(120px, 12vw, 190px);
  opacity: .48;
  animation: float-pawn 8.5s ease-in-out -3s infinite;
}

.areas { isolation: isolate; }
.areas::before { display: none; }
.areas-word {
  position: absolute;
  z-index: -1;
  top: 230px;
  left: -18px;
  color: transparent;
  font-size: clamp(78px, 10vw, 155px);
  font-weight: 700;
  line-height: .78;
  letter-spacing: -.07em;
  -webkit-text-stroke: 1px rgba(173,139,79,.12);
  user-select: none;
}
.areas > .container { position: relative; z-index: 2; }
.areas-pieces .piece-knight {
  right: -24px;
  top: 22%;
  width: clamp(175px, 18vw, 280px);
  opacity: .9;
  transform: rotate(13deg);
  animation: float-knight 7s ease-in-out infinite;
}
.areas-pieces .piece-queen {
  right: -34px;
  bottom: -72px;
  width: clamp(205px, 21vw, 320px);
  opacity: .84;
  animation: float-queen 9s ease-in-out -2.5s infinite;
}
.areas-pieces .piece-pawn {
  left: -34px;
  top: 50%;
  width: clamp(145px, 15vw, 225px);
  opacity: .7;
  animation: float-pawn 7.4s ease-in-out -1s infinite;
}

.area-grid article { overflow: hidden; }
.area-grid article::after {
  position: absolute;
  right: -18px;
  bottom: -38px;
  color: rgba(173,139,79,.055);
  font-family: Georgia, serif;
  font-size: 150px;
  line-height: 1;
  content: "♟";
  transition: transform .45s ease, color .45s ease;
}
.area-grid article:nth-child(2)::after { content: "♞"; }
.area-grid article:nth-child(3)::after { content: "♜"; }
.area-grid article:nth-child(4)::after { content: "♛"; }
.area-grid article:hover::after { color: rgba(173,139,79,.1); transform: translate(-8px,-8px) rotate(-5deg); }
.area-grid article > * { position: relative; z-index: 1; }

.reveal {
  opacity: 0;
  transform: translateY(42px);
  transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1);
}
.reveal.reveal-left { transform: translateX(-44px); }
.reveal.reveal-right { transform: translateX(44px); }
.reveal.is-visible { opacity: 1; transform: translate(0,0); }
.principle-grid article:nth-child(2),
.area-grid article:nth-child(2),
.method-list li:nth-child(2),
.experience-list article:nth-child(2) { transition-delay: .1s; }
.principle-grid article:nth-child(3),
.area-grid article:nth-child(3),
.method-list li:nth-child(3),
.experience-list article:nth-child(3) { transition-delay: .2s; }
.area-grid article:nth-child(4), .method-list li:nth-child(4) { transition-delay: .3s; }

.nav > a:not(.nav-cta) { position: relative; }
.nav > a:not(.nav-cta)::after {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 1px;
  content: "";
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .3s ease;
}
.nav > a:not(.nav-cta):hover::after { transform: scaleX(1); transform-origin: left; }
.button span { transition: transform .25s ease; }
.button:hover span { transform: translate(3px,-3px); }

.contact-form-section { padding: 125px 0 110px; }
.contact-form-section .contact-grid { grid-template-columns: .68fr 1.32fr; gap: 70px; align-items: start; }
.contact-intro { position: sticky; top: 150px; }
.contact-intro h2 { font-size: clamp(50px,5.2vw,72px); }
.contact-assurance { display: grid; gap: 11px; margin-top: 30px; color: #c2cac3; font-size: 10px; }
.contact-assurance span::first-letter { color: var(--gold-soft); }
.contact-form-shell { position: relative; z-index: 2; display: grid; grid-template-columns: 1.1fr .9fr; gap: 14px; }
.legal-form, .message-preview { border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.055); backdrop-filter: blur(12px); }
.legal-form { display: grid; gap: 15px; padding: 30px; }
.form-heading { display: grid; gap: 9px; margin-bottom: 9px; }
.form-heading strong { font-family: var(--serif); font-size: 32px; font-weight: 500; }
.legal-form label { display: grid; gap: 8px; color: #c7cec8; font-size: 8px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.legal-form input:not([type="checkbox"]), .legal-form select, .legal-form textarea {
  width: 100%;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 0;
  outline: 0;
  color: #fff;
  background: rgba(0,0,0,.12);
  font-size: 11px;
  letter-spacing: 0;
  text-transform: none;
  transition: border-color .25s ease, background .25s ease;
}
.legal-form input:not([type="checkbox"]), .legal-form select { height: 48px; padding: 0 13px; }
.legal-form textarea { min-height: 112px; padding: 13px; resize: vertical; }
.legal-form input:focus, .legal-form select:focus, .legal-form textarea:focus { border-color: var(--gold-soft); background: rgba(0,0,0,.22); }
.legal-form option { color: #1e2822; background: #fff; }
.form-consent { display: flex !important; grid-template-columns: 17px 1fr; align-items: start; gap: 10px !important; text-transform: none !important; letter-spacing: 0 !important; line-height: 1.5; }
.form-consent input { width: 16px; height: 16px; margin: 1px 0 0; accent-color: var(--gold-soft); }
.legal-form-status { min-height: 16px; margin: -3px 0; color: #efc7b9; font-size: 9px; }
.legal-form .button { border: 0; cursor: pointer; }

.message-preview { overflow: hidden; align-self: start; color: #202622; background: #efece4; }
.preview-top { display: flex; min-height: 43px; align-items: center; gap: 6px; padding: 0 15px; color: #fff; background: #24372e; font-size: 8px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.preview-top span { margin-right: auto; }
.preview-top i { width: 5px; height: 5px; border-radius: 50%; background: #d5c39c; }
.preview-body { padding: 22px 18px; }
.preview-body > p { margin: 0 0 17px; color: #424b45; font-size: 10px; }
.preview-body dl { display: grid; gap: 8px; margin: 0; }
.preview-body dl > div { padding: 11px 12px; border-radius: 5px 5px 5px 0; background: #fff; box-shadow: 0 6px 18px rgba(28,41,33,.06); }
.preview-body dt { color: #a08048; font-size: 7px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.preview-body dd { overflow-wrap: anywhere; margin: 4px 0 0; color: #3c443f; font-size: 9px; line-height: 1.55; }
.message-preview > small { display: block; padding: 0 18px 20px; color: #858b86; font-size: 7px; line-height: 1.55; }
.contact-pieces { display: none; }

@keyframes hero-enter { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: translateY(0); } }
@keyframes float-queen { 0%,100% { transform: translate3d(0,0,0) rotate(5deg); } 50% { transform: translate3d(-12px,-24px,0) rotate(-2deg); } }
@keyframes float-knight { 0%,100% { transform: translate3d(0,0,0) rotate(12deg); } 50% { transform: translate3d(11px,-19px,0) rotate(5deg); } }
@keyframes float-pawn { 0%,100% { transform: translate3d(0,0,0) rotate(-9deg); } 50% { transform: translate3d(9px,-17px,0) rotate(-3deg); } }

@media (max-width: 1100px) {
  .contact-form-section .contact-grid { grid-template-columns: 1fr; }
  .contact-intro { position: static; max-width: 760px; }
  .contact-form-shell { max-width: 900px; }
}
@media (max-width: 840px) {
  .hero-pieces .piece-queen { right: -65px; bottom: -45px; width: 205px; }
  .hero-pieces .piece-knight { right: 17%; bottom: -18px; width: 110px; }
  .hero-pieces .piece-pawn { display: none; }
  .areas-pieces .piece-knight { right: -22px; top: 22%; width: 182px; opacity: .82; }
  .areas-pieces .piece-queen { right: -26px; bottom: -6px; width: 194px; opacity: .78; }
  .areas-pieces .piece-pawn { display: block; left: -30px; top: 59%; width: 118px; opacity: .62; }
  .contact-form-shell { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .hero-image { z-index: 0; }
  .hero-copy { z-index: 4; }
  .hero-pieces { z-index: 2; top: 0; height: 390px; }
  .hero-pieces .piece-queen { right: -57px; bottom: -38px; width: 145px; opacity: .7; }
  .hero-pieces .piece-knight { right: auto; left: -35px; bottom: -28px; width: 95px; opacity: .5; }
  .areas-word { top: 210px; left: -8px; font-size: 72px; }
  .areas-pieces .piece-knight { right: -18px; top: 20%; width: 150px; opacity: .76; }
  .areas-pieces .piece-queen { right: -18px; bottom: 3px; width: 160px; opacity: .72; }
  .areas-pieces .piece-pawn { left: -27px; top: 61%; width: 94px; opacity: .58; }
  .contact-form-section { padding: 90px 0 80px; }
  .contact-form-section .contact-grid { gap: 45px; }
  .legal-form { padding: 24px 19px; }
  .field-row { grid-template-columns: 1fr; }
  .message-preview { display: block; }
  .demo-bar { gap: 7px 12px; padding: 7px 10px; text-align: center; }
  .demo-bar .demo-subscribe { padding: 4px 9px; }
  .whatsapp-float { right: 12px; bottom: 12px; width: 42px; height: 42px; border-width: 2px; }
  .whatsapp-float img { width: 22px; height: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-copy > *, .piece { animation: none !important; }
  .reveal, .reveal.reveal-left, .reveal.reveal-right { opacity: 1; transform: none; transition: none; }
  .hero-image { transform: none !important; transition: none; }
}
