/* Ajustes v29: página Sobre + abertura animada da mudança de marca */

/* Abertura: composição vertical, branca e editorial. */
body.rebrand-lock {
  overflow: hidden !important;
}

.rebrand-intro {
  position: fixed;
  inset: 0;
  z-index: 100000;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #fff;
  color: #171717;
  cursor: pointer;
  transform: translate3d(0, 0, 0);
  will-change: transform;
}

.rebrand-intro.is-leaving {
  pointer-events: none;
  animation: rebrandCurtainUp .92s cubic-bezier(.76, 0, .24, 1) forwards;
}

.rebrand-intro__stage {
  width: min(86vw, 980px);
  min-height: min(78vh, 760px);
  min-height: min(78dvh, 760px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 3.1vh, 34px);
  padding: clamp(30px, 6vh, 72px) 4vw;
  text-align: center;
}

.rebrand-intro__word {
  display: block;
  font-family: "Noto Sans", sans-serif;
  font-size: clamp(1.35rem, 2.05vw, 2rem);
  font-weight: 250;
  line-height: 1;
  letter-spacing: -.035em;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(16px);
  filter: blur(5px);
}

.rebrand-intro__word--first {
  animation: rebrandWordIn .72s cubic-bezier(.2, .75, .25, 1) .18s forwards;
}

.rebrand-intro__logo-frame {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  overflow: hidden;
}

.rebrand-intro__logo {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  backface-visibility: hidden;
  will-change: transform, opacity, clip-path, filter;
}

.rebrand-intro__logo--old {
  width: clamp(390px, 52vw, 760px);
  opacity: 0;
  clip-path: inset(0 100% 0 0);
  transform: translateY(10px) scale(.992);
  filter: blur(4px);
  animation: rebrandLogoOldIn 1.05s cubic-bezier(.22, .78, .2, 1) .72s forwards;
}

.rebrand-intro__transition {
  width: min(78%, 620px);
  display: grid;
  grid-template-columns: minmax(36px, 1fr) auto minmax(36px, 1fr);
  align-items: center;
  gap: clamp(14px, 2.1vw, 26px);
}

.rebrand-intro__word--transition {
  animation: rebrandWordIn .72s cubic-bezier(.2, .75, .25, 1) 1.82s forwards;
}

.rebrand-intro__rule {
  display: block;
  height: 1px;
  background: rgba(23, 23, 23, .26);
  transform: scaleX(0);
  opacity: 0;
}

.rebrand-intro__rule:first-child {
  transform-origin: right center;
  animation: rebrandRuleIn .78s cubic-bezier(.25, .8, .25, 1) 1.98s forwards;
}

.rebrand-intro__rule:last-child {
  transform-origin: left center;
  animation: rebrandRuleIn .78s cubic-bezier(.25, .8, .25, 1) 1.98s forwards;
}

.rebrand-intro__logo--new {
  width: clamp(285px, 35vw, 510px);
  opacity: 0;
  clip-path: inset(0 100% 0 0);
  transform: translateY(18px) scale(.97);
  filter: blur(6px);
  animation:
    rebrandLogoNewIn 1.18s cubic-bezier(.16, .82, .22, 1) 2.45s forwards,
    rebrandLogoBreathe 2.6s ease-in-out 3.78s infinite alternate;
}

/* Sobre: o primeiro texto é um único bloco, sem hierarquia de título. */
body.sobre-page .hero-manifesto .manifesto-intro {
  margin-top: 26px;
  margin-bottom: 22px;
  font-size: clamp(14px, 1.85vw, 21px);
  font-weight: 300;
  line-height: 1.55;
}

body.sobre-page .sobre-titulo > span,
body.sobre-page .sobre-titulo > em {
  text-transform: none !important;
}

@keyframes rebrandWordIn {
  from { opacity: 0; transform: translateY(16px); filter: blur(5px); }
  to   { opacity: 1; transform: translateY(0); filter: blur(0); }
}

@keyframes rebrandLogoOldIn {
  0%   { opacity: 0; clip-path: inset(0 100% 0 0); transform: translateY(10px) scale(.992); filter: blur(4px); }
  45%  { opacity: 1; }
  100% { opacity: 1; clip-path: inset(0 0 0 0); transform: translateY(0) scale(1); filter: blur(0); }
}

@keyframes rebrandRuleIn {
  from { opacity: 0; transform: scaleX(0); }
  to   { opacity: 1; transform: scaleX(1); }
}

@keyframes rebrandLogoNewIn {
  0%   { opacity: 0; clip-path: inset(0 100% 0 0); transform: translateY(18px) scale(.97); filter: blur(6px); }
  40%  { opacity: 1; }
  100% { opacity: 1; clip-path: inset(0 0 0 0); transform: translateY(0) scale(1); filter: blur(0); }
}

@keyframes rebrandLogoBreathe {
  from { transform: translateY(0) scale(1); }
  to   { transform: translateY(-3px) scale(1.012); }
}

@keyframes rebrandCurtainUp {
  0%   { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(0, -102%, 0); }
}

@media (max-width: 760px) {
  .rebrand-intro__stage {
    width: 100%;
    min-height: 100%;
    gap: clamp(17px, 3.2vh, 27px);
    padding: max(42px, 7vh) 7vw max(56px, 9vh);
  }

  .rebrand-intro__word {
    font-size: clamp(1.25rem, 5.2vw, 1.72rem);
  }

  .rebrand-intro__logo--old {
    width: min(88vw, 560px);
  }

  .rebrand-intro__transition {
    width: min(82vw, 500px);
    grid-template-columns: minmax(28px, 1fr) auto minmax(28px, 1fr);
    gap: 14px;
  }

  .rebrand-intro__logo--new {
    width: min(68vw, 400px);
  }

  body.sobre-page .hero-manifesto .manifesto-intro {
    font-size: clamp(14px, 4vw, 18px);
    line-height: 1.55;
  }
}

@media (max-height: 610px) and (orientation: landscape) {
  .rebrand-intro__stage {
    min-height: 100%;
    gap: 10px;
    padding: 18px 6vw 24px;
  }

  .rebrand-intro__word {
    font-size: clamp(1rem, 3vh, 1.35rem);
  }

  .rebrand-intro__logo--old {
    width: min(58vw, 560px);
    max-height: 19vh;
  }

  .rebrand-intro__transition {
    width: min(58vw, 520px);
  }

  .rebrand-intro__logo--new {
    width: min(32vw, 360px);
    max-height: 19vh;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rebrand-intro__word,
  .rebrand-intro__logo,
  .rebrand-intro__rule {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    clip-path: none !important;
  }

  .rebrand-intro.is-leaving {
    animation-duration: .01ms;
  }
}
