/* Página inicial — composição editorial da capa */
@keyframes hero-botanical-enter {
  from {
    opacity: 0;
    transform: translate(50px, 45px) rotate(3deg);
  }
  to {
    opacity: 0.3;
    transform: none;
  }
}

/* Abertura editorial — composição exclusiva da home */
.home-intro {
  min-height: 760px;
  padding: 118px 8vw 92px 18.2vw;
  isolation: isolate;
  overflow: hidden;
}

.home-intro .copy {
  position: relative;
  z-index: 4;
  width: min(100%, 970px);
  max-width: none;
  margin: 0;
}

.home-intro .copy > .eyebrow {
  margin: 0 0 28px;
  color: var(--olive);
  font-size: 11px;
  letter-spacing: 0.34em;
}

.home-intro h2 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(68px, 5.25vw, 84px);
  line-height: 0.99;
  letter-spacing: -0.045em;
}

.home-intro h2 em {
  display: inline;
  color: var(--olive);
}

.home-intro > .home-intro-text {
  position: absolute;
  z-index: 4;
  left: 38.5%;
  bottom: 118px;
  width: min(38vw, 620px);
  margin: 0;
  color: rgba(41, 53, 40, 0.72);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  line-height: 1.75;
}

.home-intro > .home-intro-side {
  position: absolute;
  z-index: 4;
  top: 39%;
  left: 4.2vw;
  color: rgba(57, 66, 42, 0.68);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}

.home-intro > .home-intro-branch,
.home-intro > .home-intro-mountains,
.home-intro > .home-intro-flower {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.home-page .project-link {
  width: 170px;
  margin-top: 42px;
  padding: 0 0 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(64, 72, 49, 0.72);
  color: #565d45;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.25s ease, width 0.3s ease;
}

.home-page .project-link span {
  font-size: 14px;
  font-weight: 400;
  transition: transform 0.25s ease;
}

.home-page .project-link:hover {
  width: 182px;
  color: var(--olive);
}

.home-page .project-link:hover span {
  transform: translateX(4px);
}

.home-page .full-photo .caption {
  width: min(1050px, calc(100% - 16vw));
  max-width: none;
  bottom: 78px;
  font-size: clamp(58px, 5vw, 80px);
  line-height: 1.02;
  letter-spacing: -0.025em;
}

.home-page .full-photo .caption small {
  margin-bottom: 25px;
  font-size: 9px;
  letter-spacing: 0.25em;
}

.home-page .full-photo .caption em {
  color: #ece8bd;
  font-size: 1em;
}

/* Arquivo visual — composição assimétrica da referência aprovada */
.home-archive {
  position: relative;
  min-height: 1480px;
  padding: 116px 7vw 110px;
  display: grid;
  grid-template-columns: minmax(230px, 0.72fr) minmax(340px, 0.98fr) minmax(470px, 1.35fr);
  align-items: start;
  gap: 24px;
  overflow: hidden;
}

/* Esta composição nunca depende do JavaScript para permanecer visível. */
.home-archive.reveal,
.home-archive .home-archive-copy,
.home-archive .archive-photo {
  opacity: 1;
  transform: none;
}

.home-archive-copy {
  position: sticky;
  top: 150px;
  z-index: 2;
  padding-top: 225px;
}

.home-archive-copy .eyebrow {
  margin: 0 0 26px;
  color: var(--olive);
  font-size: 9px;
  letter-spacing: 0.3em;
}

.home-archive-copy h2 {
  max-width: 270px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: clamp(58px, 4.3vw, 74px);
  line-height: 1;
  letter-spacing: -0.035em;
}

.home-archive-copy h2 em {
  color: var(--olive);
}

.archive-link {
  width: max-content;
  margin-top: 105px;
  padding-bottom: 9px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: rgba(49, 59, 43, 0.78);
  border-bottom: 1px solid transparent;
  font: 600 9px/1 Arial, sans-serif;
  letter-spacing: 0.18em;
  text-decoration: none;
  text-transform: uppercase;
  transition: border-color 0.3s ease;
}

.archive-link:hover {
  border-color: rgba(49, 59, 43, 0.55);
}

.archive-photo {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: #d7d19b;
}

.archive-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  filter: saturate(0.86) contrast(0.96);
  transition: transform 1.1s cubic-bezier(0.2, 0.7, 0.2, 1), filter 0.6s ease;
}

.archive-photo:hover img {
  transform: scale(1.025);
  filter: saturate(0.98) contrast(1);
}

.archive-photo figcaption {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 14px 17px;
  background: rgba(244, 240, 216, 0.94);
  color: rgba(55, 62, 47, 0.72);
  font: 500 8px/1 Arial, sans-serif;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.archive-photo-main {
  height: 980px;
}

.home-archive-column {
  display: grid;
  gap: 26px;
}

.archive-photo-square {
  height: 560px;
}

.archive-photo-gateway {
  height: 760px;
}

.home-archive-fern {
  position: absolute;
  z-index: 3;
  top: 60px;
  right: -36px;
  width: 300px;
  height: 250px;
  object-fit: contain;
  object-position: top right;
  opacity: 0.25;
  mix-blend-mode: multiply;
  pointer-events: none;
  transform: rotate(7deg);
}

/* Chamada para a linha do tempo — sequência direta da seção de registros */
.home-evolution-preview {
  position: relative;
  min-height: 765px;
  padding: 82px 8vw 62px;
  display: grid;
  grid-template-columns: minmax(250px, 0.8fr) minmax(390px, 1.08fr) minmax(390px, 1.08fr);
  align-items: start;
  gap: 34px;
  overflow: hidden;
  background: #e3dfbd;
}

.home-evolution-preview.reveal,
.home-evolution-preview .evolution-preview-copy,
.home-evolution-preview .evolution-preview-photo {
  opacity: 1;
  transform: none;
}

.evolution-preview-copy {
  padding-top: 3px;
}

.evolution-preview-copy .eyebrow {
  margin: 0 0 28px;
  color: var(--olive);
  font-size: 9px;
  letter-spacing: 0.28em;
}

.evolution-preview-copy h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(58px, 4.5vw, 74px);
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.evolution-preview-copy h2 em {
  color: var(--olive);
}

.evolution-preview-link {
  width: 238px;
  height: 52px;
  margin-top: 332px;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  border: 1px solid rgba(39, 55, 36, 0.78);
  border-radius: 100px;
  color: #34452f;
  font: 600 9px/1 Arial, sans-serif;
  letter-spacing: 0.17em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.evolution-preview-link:hover {
  color: var(--paper);
  background: var(--pine);
  transform: translateY(-2px);
}

.evolution-preview-photo {
  position: relative;
  height: 520px;
  margin: 0;
  overflow: hidden;
  background: #d7d19b;
}

.evolution-preview-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  filter: saturate(0.84) contrast(0.97);
  transition: transform 1s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.evolution-preview-photo:hover img {
  transform: scale(1.025);
}

.evolution-preview-photo figcaption {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 14px 17px;
  color: rgba(55, 62, 47, 0.72);
  background: rgba(244, 240, 216, 0.95);
  font: 500 8px/1 Arial, sans-serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.evolution-preview-finish {
  margin-top: 100px;
}

/* Encerramento da página inicial — transição para o legado */
.home-legacy-cta {
  position: relative;
  min-height: 570px;
  padding: 170px 24px 70px;
  overflow: hidden;
  background: var(--cream);
  text-align: center;
  isolation: isolate;
}

.home-legacy-cta h2 {
  position: relative;
  z-index: 3;
  margin: 0;
  color: var(--ink);
  font: 400 clamp(58px, 5vw, 80px) / 1.04 Georgia, "Times New Roman", serif;
  letter-spacing: -0.035em;
}

.home-legacy-cta h2 em {
  color: var(--olive);
}

.home-legacy-cta a {
  position: relative;
  z-index: 4;
  display: inline-block;
  margin-top: 42px;
  color: rgba(49, 59, 43, 0.8);
  font: 500 9px/1 Arial, sans-serif;
  letter-spacing: 0.16em;
  text-decoration: none;
  text-transform: uppercase;
}

.home-legacy-cta img {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  object-fit: contain;
  opacity: 0.22;
  filter: grayscale(1);
  mix-blend-mode: multiply;
}

.home-legacy-flower {
  left: 35px;
  bottom: -135px;
  width: 190px;
  height: 390px;
}

.home-legacy-tree {
  left: 50%;
  bottom: -205px;
  width: 390px;
  height: 440px;
  transform: translateX(-50%);
}

.home-legacy-branch {
  right: -15px;
  bottom: -75px;
  width: 245px;
  height: 180px;
  transform: rotate(8deg);
}

.home-intro > .home-intro-branch {
  top: 54px;
  left: -34px;
  width: 305px;
  height: 180px;
  opacity: 0.3;
  transform: rotate(-4deg);
}

.home-intro > .home-intro-mountains {
  right: 5%;
  bottom: -42px;
  width: 49%;
  max-width: 810px;
  opacity: 0.18;
}

.home-intro > .home-intro-flower {
  right: -18px;
  bottom: -78px;
  width: 190px;
  height: 430px;
  opacity: 0.3;
  object-position: bottom right;
}

@media (prefers-reduced-motion: no-preference) {
  .home-intro > .home-intro-branch {
    animation: homeIntroBranch 9s ease-in-out infinite alternate;
  }

  .home-intro > .home-intro-flower {
    animation: homeIntroFlower 11s ease-in-out infinite alternate;
  }

  @keyframes homeIntroBranch {
    to { transform: translate3d(8px, 5px, 0) rotate(-2deg); }
  }

  @keyframes homeIntroFlower {
    to { transform: translate3d(-5px, -7px, 0) rotate(-1deg); }
  }
}

/* Ajuste de fidelidade da capa: texto de apoio conforme o design aprovado */
.home-page .hero-copy > p:last-of-type {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.65;
  letter-spacing: 0;
  max-width: 610px;
}


/* Hero da home com foto do portal de entrada — enquadramento mais leve */
.home-page .hero {
  background: var(--night);
}

.home-page .hero .veil {
  background:
    linear-gradient(
      90deg,
      rgba(8, 42, 28, 0.52) 0%,
      rgba(8, 42, 28, 0.28) 30%,
      rgba(8, 42, 28, 0.1) 58%,
      rgba(8, 42, 28, 0.04) 100%
    ),
    linear-gradient(0deg, rgba(5, 30, 20, 0.22), transparent 44%);
}

.home-page .hero > img:first-of-type {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 62%;
  -webkit-mask-image: none;
  mask-image: none;
}

@media (max-width: 900px) {
  .home-page .hero > img:first-of-type {
    width: 100%;
    -webkit-mask-image: none;
    mask-image: none;
    object-position: center 62%;
  }
}
