/* =========================================================
   GLOBAL / FIXES
========================================================= */
*, *::before, *::after { box-sizing: border-box; }
body{
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}


html, body{
  height: auto;
  overflow-y: auto;
  overflow-x: hidden;
}
.mtn-stage,
.copy,
.copy__title,
.copy p{
  font-weight: 500; /* Inter Medium */
}
.mtn-after,
.mtn-after *{
  font-weight: 300; /* Inter Light */
}

body.is-maintenance{ margin: 0; }
main.mtn{ display:block; }

.pin-spacer{
  max-width: 100% !important;
  overflow-x: hidden !important;
}

/* =========================================================
   LANDING / VIEWPORT
========================================================= */
.wpcf7 form.sent .wpcf7-response-output {
  border-color: transparent;
}

body.is-maintenance [data-scroll-container],
body.is-maintenance main.mtn {
  width: 100%;
  max-width: 100vw;
  opacity: 1;
  visibility: visible;
  overflow-x: clip;
}

.bg.bg-color {
  background-color: #000;
}

/* =========================================================
   STAGE - COM EFEITO CORTINA
========================================================= */
.mtn-stage{
  position: relative;
  width: 100vw;
  max-width: 100%;
  height: 100vh;
  overflow: hidden;
  z-index: 10; /* ✅ fica por cima do contact */
  will-change: transform;
}

.bg{
  position:absolute;
  inset:0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.05);
  filter: saturate(1.05) contrast(1.05);
  pointer-events: none;
}

/* =========================================================
   CONTACT - POR BAIXO DO STAGE
========================================================= */
.mtn-after {
  position: relative;
  z-index: 1; /* ✅ fica por baixo */
  margin-top: -100vh; /* ✅ cola ao stage, ficando escondido */
}

/* =========================================================
   MOVERS
========================================================= */
.letters{
  position:absolute;
  inset:0;
  width: 100vw;
  max-width: 100%;
  overflow: hidden;
  z-index:3;
}

.mv{
  position:absolute;
  display:block;
  height: clamp(72px, 10vw, 170px);
  width: auto;
  max-width: none;
  filter: drop-shadow(0 12px 40px rgba(0,0,0,0.25));
  user-select:none;
  transform: translate3d(0,0,0);
  transform-origin: 50% 50%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  will-change: transform;
}

.mv--tl{ top: 28px; left: 28px; }
.mv--tr{
  top: 28px;
  right: max(28px, calc(100% - 100vw + 28px));
}
.mv--bl{ bottom: 28px; left: 28px; }
.mv--br{
  bottom: 28px;
  right: max(28px, calc(100% - 100vw + 28px));
}

.mv--dot {
    height: 30px;
    width: 30px;
    bottom: 35px;
    left: 150px;
}



.to-top{
  /* resto igual */
  position: fixed;
  right: -50px;
  bottom: -50px;
  aspect-ratio: 4/4;
  display: inline-flex;
  align-items: flex-start;
  gap: 0px;
  padding: 5px 10px 5px 5px;
  border: 0;
  border-radius: 0;
  background: rgb(0 0 0);
  color: #fff;
  cursor: pointer;
  z-index: 9999;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  align-content: flex-start;

  /* ✅ transições */
  transition:
    right .35s cubic-bezier(.2,.8,.2,1),
    bottom .35s cubic-bezier(.2,.8,.2,1),
    box-shadow .35s cubic-bezier(.2,.8,.2,1),
    transform .35s cubic-bezier(.2,.8,.2,1);
  will-change: right, bottom, transform;
}

.to-top:hover{
  right: 0px;
  bottom: 0px;
}

.to-top__text{
  text-align: left;
  font-size: 14px;
  padding: 25px 0px 0px;
  white-space: nowrap;
  font-weight: 300;
  line-height: 14px;
  opacity: 0;

  /* ✅ transições */
  transition: opacity .25s ease, transform .35s cubic-bezier(.2,.8,.2,1);
  transform: translateY(6px);
  will-change: opacity, transform;
}

.to-top:hover .to-top__text{
  opacity: 1;
  transform: translateY(0);
}

.to-top__icon{
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  font-size: 18px;
  line-height: 1;
}

.to-top__icon img{
  transform: rotate(225deg);
  transform-origin: 50% 50%;

  /* ✅ transições */
  transition: transform .45s cubic-bezier(.2,.8,.2,1);
  will-change: transform;
}

.to-top:hover .to-top__icon img{
  transform: rotate(270deg);
}




/* =========================================================
   FINAL WORD TARGET
========================================================= */
.final-measure{
  position: absolute;
  top: 100px;
  left: 150px;
  display: flex;
  gap: 2px;
  visibility: hidden;
  pointer-events: none;
}

.final-measure .final__ch{
  display: block;
  height: 30px;
  width: auto;
}

.mtn-stage::after{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(
      80% 80% at 50% 50%,
      rgba(0,0,0,calc(0.10 + (var(--overlay-alpha, 0) * 0.18))),
      rgba(0,0,0,calc(0.60 + (var(--overlay-alpha, 0) * 0.45)))
    );
  pointer-events:none;
  will-change: opacity;
}

.final-measure .final__ch-dot{
  transform: translate(-14px, -12px);
}


/* =========================================================
   COPY
========================================================= */
.copy {
    position: absolute;
    left: 150px;
    top: calc(150px + 30px + 30px);
    z-index: 2;
    width: calc(100% - 300px);
    color: rgba(255,255,255,0.92);
    opacity: 0;
    pointer-events: none;
    will-change: transform, opacity;
}

.copy__title{
  margin:0 0 12px;
  font-size: 22px;
  font-weight:600;
}
.copy p {
    margin: 0 0 10px;
    font-size: 3.13vw;
    line-height: 1;
    margin-bottom: 50px;
}

/* =========================================================
   FORMULÁRIO
========================================================= */
.after-baixo{
    text-align: center !important;
    padding-bottom: 50px;
}

.after-footer {
    padding: 1%;
}
.cf-field textarea {
    max-height: 160px;
}
.cf-minimal {
    max-width: 25%;
    margin: 0 auto;
}

.cf-field{
  display:block;
}

.cf-field input,
.cf-field textarea{
  width:100%;
  border:0;
  border-bottom: 1px solid #111;
  padding: 10px 0;
    font-size: 1vw;
    line-height: 1.1vw;
  font-family: inherit;
  background: transparent;
  outline: none;
}

.cf-field textarea{
  resize: none;
  min-height: 60px;
}

.cf-field input::placeholder,
.cf-field textarea::placeholder{
  color: #9a9a9a;
    font-size: 1vw;
    line-height: 1.1vw;
}

.cf-submit input[type="submit"] {
    width: 100%;
    background: #000;
    color: #fff;
    border: 1px solid black;
    padding: 14px 0;
    font-weight: 500;
    font-size: 1vw;
    line-height: 1.1vw;
    cursor: pointer;
}
.cf-submit:hover input[type="submit"] {
    background: white;
    color: black;
}
.cf-field input, .cf-field textarea {
    text-align: center !important;
}

/* =========================================================
   AFTER
========================================================= */
.after-wrap {
    height: 100vh;
    display: flex;
    justify-content: space-between;
    flex-direction: column;
}
h1.after-title {
    font-size: 6.5vw;
    margin: auto !important;
    white-space: nowrap;
    text-align: center;
}

/* wrapper do campo textarea */
.cf-field--textarea {
  position: relative;
}

/* textarea */
.cf-field--textarea textarea {
  padding-bottom: 28px; /* espaço para o texto em baixo */
  resize: none;
}

.cf-field--textarea::after {
    content: "mensagem";
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1vw;
    line-height: 1.1vw;
    color: rgb(119 119 119);
    pointer-events: none;
    text-transform: lowercase;
    transition: opacity .2s ease;
}

/* esconder ao focar */
.cf-field--textarea:has(textarea:focus)::after {
  opacity: 0;
}

/* esconder quando tem conteúdo */
.cf-field--textarea:has(textarea:not(:empty))::after {
  opacity: 0;
}

/* =========================================================
   DECORAÇÃO
========================================================= */
.decor-dots{
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}

.decor-dot{
  position: absolute;
  width:25px;
  height: 25px;
  background: #fff;
  opacity: 1;
  will-change: opacity, transform;
}

/* posições aproximadas (ajusta à vista) */
.decor-dot--a{
  top: 45%;
  left: 70%;
}
.mtn-stage { position: relative; z-index: 10; }
.mtn-after { position: relative; z-index: 1; }

.decor-dot--b{
  bottom: 15%;
  left: 70%;
}

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 1680px) {
  .copy p {
      font-size: 3vw;
  }
  .cf-field textarea {
    max-height: 130px;
  }
}


/* =========================================================
   MOBILE
========================================================= */
@media (max-width: 768px) {
	
.cf-field input,
.cf-field textarea,
.cf-field input::placeholder,
.cf-field textarea::placeholder,
.cf-field--textarea::after,
.cf-submit input[type="submit"] {

    font-size: 16px;
    line-height: 18px;
}
  /* STAGE */
  .mtn-stage{
    height: 100dvh; /* melhor em mobile */
  }

  /* TARGET FINAL (medição) */
  .final-measure{
    top: 32px;
    left: 40px;
  }

  /* COPY */
.copy {
    left: 40px;
    top: calc(100px + 24px + 24px);
    width: calc(100% - 80px);
}

  .copy p{
    font-size: 6vw;
    line-height: 1.05;
  }

  /* MOVERS */
  .mv{
    height: clamp(56px, 18vw, 110px);
  }

  .mv--tl{ top: 16px; left: 16px; }
  .mv--tr{
    top: 16px;
    right: max(24px, calc(100% - 100vw + 24px), calc(env(safe-area-inset-right, 0px) + 16px));
  }
  .mv--bl{ bottom: 16px; left: 16px; }
  .mv--br{
    bottom: 16px;
    right: max(24px, calc(100% - 100vw + 24px), calc(env(safe-area-inset-right, 0px) + 16px));
  }

.mv--dot {
    height: 15px;
    bottom: 26px;
    left: 95px;
}

  /* CONTACT */
  .mtn-after{
    margin-top: -100dvh;
  }

  .cf-minimal{
    max-width: 90%;
  }

  .cf-field input,
  .cf-field textarea,
  .cf-submit input[type="submit"]{
    font-size: 4vw;
    line-height: 1.1;
  }

  /* BACK TO TOP */
 .to-top {
        right: -40px;
        bottom: -40px;
    }
.after-wrap {
    min-height: 100vh;
    height: auto;
    justify-content: flex-end;
    flex-direction: column;
}
	 
  .to-top:hover{
    right: 0;
    bottom: 0;
  }
h1.after-title {
    margin-top: 10%;
    white-space: normal;
    margin-left: unset;
    margin-bottom: 5%;
    font-size: 6vw;
    text-align: center;
}

  .to-top__text{
    font-size: 13px;
  }
}

@supports (-webkit-touch-callout: none) {
	@media (max-width: 768px) {
		body {
		  background: black;
		  padding-bottom: env(safe-area-inset-bottom);
		}
	
		.after-wrap {
			background: white;        
			min-height: calc(100dvh - env(safe-area-inset-bottom));
		}

		.to-top {
			right: -50px;
			bottom: 0px;
		}
		.to-top:hover{
			right: -50px;
			bottom: 0px;
		  }
		.to-top__text{
			color: transparent;
		  }
	}
	
}
