:root {
  --paper: #f4ede5;
  --surface: #eee3d8;
  --light: #fbf7f1;
  --terra: #914e2f;
  --terra-hover: #743a22;
  --ink: #252320;
  --muted: #625e59;
  --line: #cbb6a8;
  --cream: #fff8f0;
  --gutter: clamp(20px, 5.6vw, 80px);
  --editorial-heading: #302a26;
  --editorial-body: #514b45;
  --editorial-on-terra: #f7f0e7;
}

*,
*::before,
*::after {
  box-sizing: border-box
}

html {
  scroll-behavior: smooth
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--editorial-body);
  font-family: Manrope, Arial, sans-serif
}

img,
svg {
  display: block;
  max-width: 100%
}

a {
  color: inherit
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--terra);
  outline-offset: 4px
}

button {
  font: inherit
}

h1,
h2,
h3,
p {
  margin: 0
}

h1,
h2,
.service h3 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 500;
  letter-spacing: -.025em;
  color: var(--editorial-heading)
}

h1 {
  font-size: 72px;
  line-height: .9
}

h2 {
  font-size: 61px;
  line-height: .93
}

p {
  line-height: 1.48
}

.wrap {
  width: 100%;
  max-width: 1440px;
  padding-inline: var(--gutter);
  margin-inline: auto
}

.skip-link {
  position: absolute;
  top: -80px;
  left: 20px;
  z-index: 100;
  padding: 12px 20px;
  background: var(--ink);
  color: #fff
}

.skip-link:focus {
  top: 10px
}

.eyebrow {
  font-size: 12px;
  font-weight: 500;
  color: var(--editorial-body);
  letter-spacing: .17em;
  line-height: 1.2
}

.microcopy {
  font-size: 10px;
  line-height: 1.7;
  color: var(--editorial-body);
  letter-spacing: .22em;
  font-weight: 500
}

.microcopy__line {
  display: block;
  width: 54px;
  border-top: 1px solid var(--line);
  margin-bottom: 12px
}

.section-light {
  background: var(--light)
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 16px 22px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.1;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .2s ease
}

.button:hover {
  transform: translateY(-2px)
}

.button--solid {
  color: #fff;
  background: var(--terra);
  border-color: var(--terra)
}

.button--solid:hover {
  background: var(--terra-hover);
  border-color: var(--terra-hover)
}

.button--outline {
  color: var(--ink);
  background: transparent;
  border-color: #a98f80
}

.button--outline:hover {
  background: var(--surface)
}

.button--light-outline {
  color: var(--cream);
  border-color: var(--cream)
}

.button--light-outline:hover {
  color: var(--terra);
  background: var(--cream)
}

.text-link {
  padding-block: 8px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap
}

.text-link:hover {
  color: var(--terra)
}

/* Header */
.site-header {
  height: 100px;
  background: var(--paper);
  position: relative;
  z-index: 20
}

.site-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 24px
}

.site-header__brand {
  display: inline-flex;
  flex: none;
  align-items: center
}

.site-header__brand img {
  width: 220px;
  height: 82px;
  object-fit: contain;
  object-position: left center
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-left: auto
}

.site-nav a {
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: color .2s
}

.site-nav a:hover {
  color: var(--terra)
}

.menu-toggle {
  display: none
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 42.5% 57.5%;
  min-height: 680px;
  position: relative;
  isolation: isolate
}

.hero__copy {
  padding: 92px 42px 40px max(5.6vw, calc(50vw - 640px));
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0
}

.hero__description {
  max-width: 470px;
  margin-top: 26px;
  font-size: 18px
}

.hero__actions {
  display: flex;
  gap: 16px;
  margin-top: 24px
}

.hero__microcopy {
  margin-top: auto;
  padding-top: 34px
}

.hero__visual {
  position: relative;
  min-height: 680px;
  overflow: hidden
}

.hero__visual>img {
  width: 100%;
  height: 100%;
  min-height: 680px;
  object-fit: cover;
  object-position: 53% 50%
}

.hero__mask {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 49%;
  height: 25%;
  border-radius: 100% 0 0 0;
  background: var(--paper);
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 0 13% 30px 0
}

.hero__mask span {
  font-size: 9px;
  letter-spacing: .18em;
  line-height: 1.5;
  white-space: nowrap;
  color: var(--editorial-body)
}

.hero__curve {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 60%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
  overflow: visible
}

.hero__curve path {
  fill: none;
  stroke: #955438;
  stroke-width: 1.3
}

/* Projetos */
.projects {
  padding: 48px 0 52px
}

.projects__header {
  margin-bottom: 20px
}

.projects__header h2 {
  margin-top: 6px;
  line-height: .9
}

.projects__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px
}

.project__image {
  height: 370px;
  overflow: hidden;
  border-radius: 4px;
}

.project__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease
}

.project:hover img {
  transform: scale(1.035)
}

.project h3 {
  margin-top: 18px;
  font: 500 17px/1.3 Manrope, Arial, sans-serif
}

.project p {
  font-size: 15px;
  color: var(--editorial-body)
}

/* Manifesto */
.manifesto {
  display: grid;
  grid-template-columns: 26% 56% 18%;
  align-items: center;
  min-height: 325px;
  background: var(--surface);
  overflow: hidden
}

.manifesto__art {
  align-self: stretch;
  background: url('assets/casal-forma.webp') left center/cover no-repeat
}

.manifesto__copy {
  max-width: 760px;
  padding: 45px 60px 40px 12px
}

.manifesto__copy h2 {
  font-size: 65px;
  line-height: .91
}

.manifesto__copy p {
  max-width: 550px;
  margin-top: 16px;
  font-size: 21px;
  color: var(--editorial-body)
}

/* Sobre */
.about {
  padding: 38px 0 20px
}

.about__inner {
  display: grid;
  grid-template-columns: 46% 42% 12%;
  min-height: 490px;
  align-items: center
}

.about__copy {
  padding-right: 48px
}

.about__copy h2 {
  margin-top: 22px
}

.about__intro {
  max-width: 440px;
  margin-top: 10px;
  font-size: 18px;
  color: var(--editorial-body)
}

.about__image img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  object-position: center 25%;
  filter: grayscale(1);
  border-radius: 4px;
}

.about__microcopy {
  padding-left: 20px
}

/* Serviços */
.services {
  padding: 50px 0 64px
}

.services__header h2 {
  margin-top: 6px
}

.services__header>p {
  max-width: 520px;
  margin-bottom: 20px;
  font-size: 16px;
  color: var(--editorial-body)
}

.services__list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) 55px;
  margin-top: 45px
}

.service {
  min-height: 130px;
  margin-right: 20px;
  padding: 14px 20px 0 0;
  border-top: 1px solid #a79c95;
  border-right: 1px solid var(--line)
}

.service:nth-child(4) {
  border-right: 0
}

.service>span {
  font-size: 18px
}

.service h3 {
  font-size: 32px;
  line-height: .99;
  letter-spacing: -.015em;
  margin-top: 4px
}

.services__arrow {
  align-self: center;
  justify-self: center;
  font-size: 42px;
  font-weight: 300
}

/* Processo */
.process {
  padding: 56px 0 72px
}

.process__header h2 {
  margin-top: 6px;
  font-size: 58px
}

.process__steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  margin: 45px 0 0;
  padding: 0;
  list-style: none
}

.process__steps::before {
  content: '';
  position: absolute;
  top: 32px;
  left: 6%;
  right: 6%;
  border-top: 1px solid var(--line)
}

.process__steps li {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 12px;
  text-align: center
}

.process__steps li>span {
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  font-size: 16px;
  font-weight: 500
}

.process__steps p {
  font-size: 16px
}

/* CTA */
.contact {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: 246px;
  background: var(--terra);
  color: var(--cream)
}

.contact::before,
.contact::after {
  content: '';
  position: absolute;
  border: 1px solid #d6a990;
  opacity: .6;
  pointer-events: none
}

.contact::before {
  left: -80px;
  top: -60px;
  width: 260px;
  height: 330px;
  border-radius: 52% 42% 70% 25%;
  transform: rotate(-34deg)
}

.contact::after {
  right: -50px;
  top: -90px;
  width: 350px;
  height: 300px;
  border-radius: 50%;
  transform: rotate(25deg)
}

.contact__inner {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px
}

.contact h2 {
  font-size: 58px;
  color: var(--editorial-on-terra)
}

.contact p {
  margin-top: 6px;
  color: var(--editorial-on-terra);
  font-size: 20px
}

/* Instagram */
.instagram {
  padding: 44px 0 48px
}

.instagram__header {
  margin-bottom: 32px
}

.instagram__header h2 {
  font-size: 54px;
  margin-top: 8px
}

.instagram__action {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 13px;
  font-weight: 500
}

.instagram__grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px
}

.instagram__grid a {
  display: block;
  overflow: hidden
}

.instagram__grid img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  transition: transform .35s;
  border-radius: 4px;
}

.instagram__grid a:hover img {
  transform: scale(1.035)
}

/* Footer */
.site-footer {
  padding: 60px 0 32px
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 16% 19% 19% 20% 26%;
  align-items: start;
  min-height: 145px
}

.site-footer__logo {
  width: 95px;
  height: auto;
  max-height: 147px;
  object-fit: contain;
  object-position: left top
}

.site-footer__column {
  min-height: 125px;
  padding: 10px 30px;
  border-right: 1px solid #e0d3c8;
  display: flex;
  flex-direction: column;
  align-items: flex-start
}

.site-footer__column strong {
  font-size: 15px;
  font-weight: 500
}

.site-footer__column p,
.site-footer__column a {
  font-size: 14px;
  color: var(--editorial-body)
}

.site-footer__column p {
  margin-top: 8px
}

.site-footer__column a {
  text-decoration: none;
  line-height: 1.5
}

.site-footer__column a:hover {
  color: var(--terra)
}

.site-footer__column:nth-child(4) {
  border: 0
}

.site-footer__microcopy {
  padding: 10px 0 0 36px
}

.site-footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 60px;
  color: var(--editorial-body)
}

.site-footer__bottom small {
  font-size: 11px
}

.site-footer__credit a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px
}

.site-footer__credit a:hover {
  color: var(--terra)
}

/* Em monitores largos, o Hero acompanha a mesma área central das demais seções.
   A faixa do manifesto continua ocupando toda a largura da janela. */
@media (min-width: 1600px) {
  .hero {
    max-width: 1440px;
    margin-inline: auto;
  }

  .hero__copy {
    padding-left: var(--gutter);
  }

  .manifesto {
    grid-template-columns: calc(50% - 346px) 806px minmax(0, 1fr);
  }

  .manifesto__art {
    background-position: right center;
    background-size: 374px auto;
  }
}

@media(max-width:1024px) {
  :root {
    --gutter: 40px
  }

  .site-nav {
    gap: 17px
  }

  .site-header__brand img {
    width: 175px;
    height: auto
  }

  .site-header__cta {
    padding: 14px 16px
  }

  .hero {
    grid-template-columns: 46% 54%
  }

  .hero__copy {
    padding: 65px 25px 40px 40px
  }

  .hero h1 {
    font-size: 57px
  }

  .projects__grid {
    gap: 18px
  }

  .project__image {
    height: 300px
  }

  .about__inner {
    grid-template-columns: 48% 52%
  }

  .about__copy {
    padding-right: 25px
  }

  .about__microcopy {
    display: none
  }

  .service h3 {
    font-size: 27px
  }

  .instagram__grid img {
    height: 210px
  }

  .site-footer__grid {
    grid-template-columns: 17% 24% 24% 24%
  }

  .site-footer__microcopy {
    display: none
  }
}

@media(min-width:768px) and (max-width:1024px) {
  .hero__actions {
    width: 100%;
    flex-wrap: wrap
  }
}

@media(max-width:767px) {
  :root {
    --gutter: 20px
  }

  h2 {
    font-size: 45px
  }

  .site-header {
    height: 72px
  }

  .site-header__brand img {
    width: 135px;
    height: auto;
    max-height: 57px
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    margin: 0;
    padding: 22px 20px 26px;
    background: var(--paper);
    box-shadow: 0 15px 25px #0002;
    flex-direction: column;
    align-items: stretch;
    gap: 18px
  }

  .site-nav.is-open {
    display: flex
  }

  .site-nav a {
    font-size: 17px
  }

  .site-header__cta {
    display: none
  }

  .menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    margin-left: auto;
    border: 0;
    background: none;
    cursor: pointer
  }

  .menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--terra);
    transition: transform .2s, opacity .2s
  }

  .menu-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(7px) rotate(45deg)
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0
  }

  .menu-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-7px) rotate(-45deg)
  }

  .hero {
    display: flex;
    flex-direction: column;
    min-height: 0
  }

  .hero__copy {
    padding: 58px 20px 38px
  }

  .hero h1 {
    font-size: 52px
  }

  .hero__description {
    margin-top: 18px;
    font-size: 16px
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 11px;
    margin-top: 21px
  }

  .hero__actions .button {
    width: 100%
  }

  .hero__microcopy {
    margin-top: 24px;
    padding: 0
  }

  .hero__visual {
    order: -1;
    min-height: 400px
  }

  .hero__visual>img {
    height: 400px;
    min-height: 400px
  }

  .hero__mask {
    width: 47%;
    height: 18%;
    padding: 0 10% 15px 0
  }

  .hero__mask span {
    font-size: 7px
  }

  .hero__curve {
    display: none
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start
  }

  .projects {
    padding: 58px 0 62px
  }

  .projects__header {
    gap: 14px
  }

  .projects__grid {
    grid-template-columns: 1fr;
    gap: 34px
  }

  .project__image {
    height: 310px
  }

  .manifesto {
    display: block;
    min-height: 0;
    padding: 54px 20px 45px
  }

  .manifesto__art {
    display: none
  }

  .manifesto__copy {
    width: 100%;
    padding: 0
  }

  .manifesto__copy h2 {
    font-size: 51px
  }

  .manifesto__copy p {
    font-size: 17px
  }

  .manifesto__microcopy {
    margin-top: 32px
  }

  .about {
    padding: 64px 0
  }

  .about__inner {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 28px
  }

  .about__copy {
    display: contents
  }

  .about__lead {
    order: 1
  }

  .about__copy h2 {
    font-size: 50px
  }

  .about__image {
    order: 2
  }

  .about__intro {
    order: 3;
    margin-top: 0;
    font-size: 16px
  }

  .about__microcopy {
    order: 4
  }

  .about__image img {
    height: 360px
  }

  .services {
    padding: 60px 0
  }

  .services__header {
    gap: 26px
  }

  .services__list {
    display: block;
    margin-top: 36px
  }

  .service {
    min-height: 98px;
    margin: 0;
    padding: 15px 0;
    border-right: 0
  }

  .service h3 {
    font-size: 30px
  }

  .services__arrow {
    display: none
  }

  .process {
    padding: 60px 0 65px
  }

  .process__header h2 {
    font-size: 47px
  }

  .process__microcopy {
    display: none
  }

  .process__steps {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 30px
  }

  .process__steps::before {
    top: 25px;
    bottom: 25px;
    left: 25px;
    right: auto;
    border-top: 0;
    border-left: 1px solid var(--line)
  }

  .process__steps li {
    flex-direction: row;
    text-align: left;
    gap: 20px
  }

  .process__steps li>span {
    width: 52px;
    height: 52px;
    flex: 0 0 52px
  }

  .contact {
    padding: 58px 0
  }

  .contact__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 28px
  }

  .contact h2 {
    font-size: 47px
  }

  .contact p {
    font-size: 17px
  }

  .contact .button {
    width: 100%;
    white-space: normal;
    text-align: center
  }

  .instagram {
    padding: 60px 0
  }

  .instagram__header {
    gap: 22px
  }

  .instagram__header h2 {
    font-size: 45px
  }

  .instagram__action {
    justify-content: space-between;
    width: 100%;
    gap: 8px
  }

  .instagram__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px
  }

  .instagram__grid img {
    height: 230px
  }

  .site-footer {
    padding: 60px 0 25px
  }

  .site-footer__grid {
    display: flex;
    flex-direction: column;
    gap: 25px;
    align-items: center;
    text-align: center
  }

  .site-footer__column {
    min-height: 0;
    padding: 0;
    border: 0;
    align-items: center
  }

  .site-footer__bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    margin-top: 40px
  }

  /* Centralização da composição mobile sem alterar a ordem dos blocos. */
  .site-nav {
    text-align: center
  }

  .hero__copy {
    align-items: center;
    text-align: center
  }

  .hero__description {
    margin-inline: auto
  }

  .hero__microcopy {
    text-align: center
  }

  .microcopy__line {
    margin-inline: auto
  }

  .section-header {
    align-items: center;
    text-align: center
  }

  .project {
    text-align: center
  }

  .manifesto__copy,
  .manifesto__microcopy {
    text-align: center
  }

  .manifesto__copy p {
    margin-inline: auto
  }

  .about__lead,
  .about__intro {
    text-align: center
  }

  .about__intro {
    margin-inline: auto
  }

  .services__header>p {
    margin-inline: auto
  }

  .service {
    text-align: center;
    width: max-content;
    max-width: 100%;
    margin-inline: auto
  }

  .process__steps {
    width: max-content;
    max-width: 100%;
    margin-inline: auto;
    align-items: flex-start
  }

  .contact__inner {
    align-items: center;
    text-align: center
  }

  .contact__inner>div {
    width: 100%
  }

  .instagram__action {
    justify-content: center;
    flex-wrap: wrap
  }
}

@media(prefers-reduced-motion:reduce) {
  html {
    scroll-behavior: auto
  }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important
  }
}

/* Entrada de seções: as classes são adicionadas somente quando o JS está ativo. */
.reveal-pending {
  opacity: 0;
}

.reveal-pending.reveal-active {
  transition: opacity 1.2s ease-out;
}

.reveal-pending.is-revealed {
  opacity: 1;
}

@media (max-width: 1024px) {
  .reveal-pending.reveal-active {
    transition-duration: 1.1s;
  }
}

@media (max-width: 767px) {
  .reveal-pending.reveal-active {
    transition-duration: 1s;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal-pending {
    opacity: 1 !important;
    transition: none !important;
  }
}

/* Opcional: Garante consistência visual no carregamento inicial */
.reveal {
  opacity: 0;
  will-change: transform, opacity;
}