:root {
  --background: #070707;
  --surface: #0c0c0c;
  --text: rgba(253, 253, 253, 0.85);
  --muted-text: rgba(250, 250, 250, 0.6);
  --line: #1d1d1d;
  --soft-line: #2c2c2c;
  --pill: #b6b6b6;
  --content-max: 1800px;
  color: var(--text);
  background: var(--background);
}


* { 
  box-sizing: border-box; 
  padding: 0;
  margin: 0;
}

html { 
  background: var(--background); 
  scroll-behavior: smooth; 
}

body { 
  min-width: 320px; 
  overflow-x: hidden; 
  background: var(--background); 
}

button { 
  font: inherit; 
}

button:focus-visible { 
  outline: 2px solid var(--text); 
  outline-offset: 5px; 
}


.site-main { 
  position: relative; 
  z-index: 3; 
}

.hero{
  position: relative;
  height: 100svh;
  width: 100%;
}

.hero-viewport{
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
}

.hero__content{
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 120px;
  justify-content: center;
}


.site-header { 
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding-top: 60px;
  padding-right: 60px;
  padding-left: 60px;


}

.site-header span { 
  margin: 0; 
  font-family: 'Nohemi', sans-serif;
  color: rgba(253, 253, 253, 0.60);
  font-style: normal;
  letter-spacing: 2%;
  font-size: clamp(.57rem, .8vw, 1rem); 
  font-weight: 400; 
}


.display-title { 
  width: min(100%, 1100px); 
  margin-inline: auto; 
  text-align: center;
  text-transform: uppercase; 
  font-size: clamp(3.5rem, 4vw, 5rem); 
  font-weight: 400; 
  line-height: .95; 
  letter-spacing: -1%; 
  mix-blend-mode: difference; 
  font-family: 'Nohemi', sans-serif;
}
.display-title span { 
  font-style: normal;
  font-weight: 300;
}

.hero__footer { 
  display: flex; 
  justify-content: space-between; 
  align-items: end; 
  padding-left: 60px;
  padding-right: 60px;
}

.body-copy { 
  margin: 0; 
  font-size: clamp(.75rem, 1.08vw, 1.25rem); 
  line-height: 1.42; 
}
.body-copy--uppercase { 
  max-width: 26rem; 
  text-transform: uppercase; 
  text-align: justify; 
  font-family: 'Stack Sans Text', sans-serif;
  font-weight: 300;
  font-style: normal;
  color: rgba(253, 253, 253, 0.80);
}

.intro{
  width: 100%;
  height: 100%;
  padding: 60px;
}
.intro-viewport {
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 100px;
}

.intro__content { 
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding-top: clamp(6rem, 0.8vw, 9.5rem);
}

/* Componente "quote" (dot-pattern + moldura), título centralizado */
.intro__quote {
  --quote-border: #414141;
  position: relative;
  isolation: isolate;
  width: min(100%, 58rem);
  padding: clamp(2.75rem, 5vw, 5rem) clamp(2rem, 6vw, 5.5rem);
  border: 1px solid var(--quote-border);
  text-align: center;
}

/* SVG injetado via dot-pattern.js — cores adaptadas para o fundo preto da seção */
.intro__quote > svg.dot-pattern {
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  fill: rgba(253, 253, 253, 0.05);
  border-radius: inherit;
}

.intro__quote-corner {
  position: absolute;
  z-index: 1;
  width: 0.75rem;
  height: 0.75rem;
  background: var(--quote-border);
}

.intro__quote-corner--tl { top: -0.375rem; left: -0.375rem; }
.intro__quote-corner--bl { bottom: -0.375rem; left: -0.375rem; }
.intro__quote-corner--tr { top: -0.375rem; right: -0.375rem; }
.intro__quote-corner--br { bottom: -0.375rem; right: -0.375rem; }

.intro__quote-inner {
  position: relative;
  z-index: 2;
}


.intro__heading {
  margin: 0;
  font-family: 'Nohemi', sans-serif;
  font-size: clamp(1.9rem, 2.5vw, 3.35rem);
  font-weight: 400;
  line-height: 1.18;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  text-align: justify;
}

.intro__heading em {
  font-style: normal;
  font-weight: 300;
}

.intro__footer {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 2rem;
  margin-top: auto;
}

.intro__footer .body-copy {
  text-align: justify;
  font-size: clamp(.75rem, 1vw, 1.25rem);
}


.statement { 
  width: 100%;
  min-height: 100svh;
  display: flex;
  padding: 60px;
  margin-top: 100px;
}

.statement__content { 
  width: 100%;
  flex: 1;
  display: flex;
  padding-bottom: 80px;
  gap: 60px;

}

.statement__heading {
  align-self: flex-start; 
  margin: 0;
  font-size: clamp(2.4rem, 1vw, 5rem);
  line-height: 1.05;
  font-weight: 400;
  font-family: 'Nohemi', sans-serif;
  letter-spacing: 0.6px;
  mix-blend-mode: difference; 
  padding-top: clamp(0rem, 4vw, 1rem);
}

.statement__copy { 
  align-self: center; 
  margin-top: clamp(10rem, 20vw, 24rem); 
  max-width: 38rem; 
  mix-blend-mode: difference;
  font-size: clamp(.75rem, 1vw, 1.25rem); 
}
#servicos,
.projects {
  width: 100%;
  height: auto; /* neutraliza uma possível altura fixa herdada */
  min-height: 100svh;
  box-sizing: border-box;
  padding: 60px;
}

#servicos .section-content,
.projects .section-content, .section-content {
  height: auto;
  min-height: 0;
}

/* -------------------- SERVIÇOS -------------------- */

#servicos {
  padding-top: clamp(5rem, 4vw, 8rem);
  padding-bottom: clamp(5rem, 7vw, 9rem);
}

.services__intro {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.85fr);
  align-items: start;
  gap: clamp(3rem, 5vw, 5rem);
}

.services__intro h2 {
  max-width: 64rem;
  margin: 0;
  font-family: 'Nohemi', sans-serif;
  font-size: clamp(2.2rem, 3vw, 4.25rem);
  font-weight: 400;
  line-height: 1.07;
  letter-spacing: 0.030em;
}

.services__intro p {
  max-width: 36rem;
  margin: 0.25rem 0 0 auto;
  text-align: right;
  font-family: 'Stack Sans Text', sans-serif;
  font-size: clamp(1rem, 1vw, 1.5rem);
  line-height: 1.42;
  color: rgba(253, 253, 253, 0.80);
}

.services__label {
  margin: clamp(4rem, 7vw, 7.5rem) 0 2.9rem;
  font-size: clamp(1.15rem, 1.45vw, 1.65rem);
  letter-spacing: 0.045em;
  font-family: 'Nohemi', sans-serif;
  font-weight: 300;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  gap: clamp(1.4rem, 3.15vw, 3.75rem);
  max-width: 108rem;
  margin-inline: auto;
}

.service-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 39.4rem;
  padding: 4.8rem 1.5rem 5.25rem;
  box-sizing: border-box;
  border: 1px solid var(--soft-line);
  border-radius: 40px;
  background: #0c0c0c;
}

.service-card__number {
  margin: 0;
  font-size: clamp(3.7rem, 3.5vw, 5rem);
  font-weight: 600;
  font-family: 'Nohemi', sans-serif;
  line-height: 0.;
  letter-spacing: -0.05em;
  background: linear-gradient(127deg, #212121 11.14%, #4b4a4a 50.82%, #757474 90.5%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.service-card__content {
  margin-top: auto;
}

.service-card h3 {
  margin: 0 0 2.5rem;
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 0.045em;
  font-family: 'Nohemi', sans-serif;
}

.service-card__content p {
  margin: 0;
  color: var(--muted-text);
  text-align: justify;
  text-transform: uppercase;
  font-size: 1rem;
  line-height: 1.4;
  font-family: 'Stack Sans Text', sans-serif;
  font-weight: 200;
}

/* -------------------- PROJETOS -------------------- */

.projects {
  padding-top: clamp(5.75rem, 12vw, 8.75rem);
  padding-bottom: clamp(5rem, 7vw, 9rem);
}

.projects__header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 26rem);
  align-items: start;
  gap: 2rem;
  margin-bottom: clamp(2.5rem, 3vw, 3.75rem);
}

.projects__title {
  max-width: 27rem;
  margin: 0;
  text-transform: uppercase;
  font-size: clamp(3rem, 4.4vw, 5.4rem);
  line-height: 0.84;
  letter-spacing: 0.035em;
  font-family: 'Nohemi', sans-serif;
  font-weight: 400;
}

.projects__title span {
  color: #4b4a4a;
}

.projects__header p {
  margin: 0;
  text-align: right;
  font-size: clamp(1rem, 1.25vw, 1.5rem);
  line-height: 1.22;
  font-family: 'Stack Sans Text', sans-serif;
  font-weight: 300;
  color: rgba(253, 253, 253, 0.80);
}

.projects__list {
  display: grid;
  gap: clamp(2rem, 3.3vw, 4rem);
}

.project-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.58fr) minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr);
  gap: 180px;
  min-height: clamp(42rem, 52vw, 62rem);

  /* Mantém a proporção original: 24px vertical e 34px horizontal */
  padding: 24px 34px;
  box-sizing: border-box;

  border: 1.5px solid var(--line);
  border-radius: clamp(2rem, 3vw, 3.4rem);
  overflow: hidden;
}

.project-card__meta {
  position: relative;
  z-index: 1;
  grid-column: 1;
  grid-row: 1;
  align-self: start;

  /* Permite que todas as tags fiquem na mesma linha no desktop */
  max-width: none;
  padding-top: 0.75rem;
}

.project-card picture {
  display: flex;
  min-width: 0;
  min-height: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  align-items: flex-end;
}

.project-card picture img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left bottom;
}

/* ADVOCACIA E MARKETING */
.project-card--advocacia picture:first-of-type,
.project-card--marketing picture:first-of-type {
  grid-column: 1;
  grid-row: 2;
}

.project-card--advocacia picture:nth-of-type(2),
.project-card--marketing picture:nth-of-type(2) {
  grid-column: 2;
  grid-row: 1 / 3;
}

/* ODONTO */
.project-card--odonto {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.58fr);
}

.project-card--odonto .project-card__meta {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  text-align: right;
}

.project-card--odonto picture:first-of-type {
  grid-column: 1;
  grid-row: 1 / 3;
}

.project-card--odonto picture:nth-of-type(2) {
  grid-column: 2;
  grid-row: 2;
}

.project-card--odonto picture img {
  object-position: right bottom;
}

/* TAGS */
.project-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.project-card__tags span {
  padding: 8px 24px;
  border-radius: 999px;
  color: #0b0b0b;
  background: #e7e7e7;
  font-family: "Stack Sans Text", sans-serif;
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
}

.project-card--odonto .project-card__tags {
  justify-content: flex-end;
}

.project-card--odonto .project-card__tags span {
  color: #fff;
  background: #0d2cc6;
}

.project-card--marketing .project-card__tags span {
  color: #fff;
  background: #ff5808;
}

/* TEXTO */
.project-card__meta p {
  max-width: 34rem;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.8);
  font-family: "Stack Sans Text", sans-serif;
  font-size: 18px;
  font-weight: 300;
  line-height: 1.4;
}

/* No card de advocacia, texto antes das tags */
.project-card--advocacia .project-card__meta {
  display: flex;
  flex-direction: column;
}

.project-card--advocacia .project-card__meta p {
  order: 1;
  margin: 0 12 16px;
}

.advocacia-mobile,
.odonto-mobile,
.marketing-mobile {
    display: block;
    width: min(316px, 100%);
    height: auto;
    max-height: 611px;
    object-fit: contain;
}


/* -------------------- CTA FINAL -------------------- */

.final-cta {
 position: relative;
  height: 100svh;
  width: 100%;
}

.final-cta-viewport{
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
}

.final-cta__content{
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 200px;
  
}

.display-title h2{
  width: min(100%, 1100px); 
  margin-inline: auto; 
  text-align: center;
  text-transform: uppercase; 
  font-size: clamp(3.5rem, 4vw, 5rem); 
  font-weight: 400; 
  line-height: .95; 
  letter-spacing: -1%; 
  mix-blend-mode: difference; 
  font-family: 'Nohemi', sans-serif;
}

.display-title span{
  font-style: normal;
  font-weight: 300;
}

.final-cta__footer{
  display: flex; 
  justify-content: space-between; 
  align-items: flex-end; 
  padding-left: 60px;
  padding-right: 60px;
}



/* ------- RESPONSIVIDADE ------- */

@media screen and (max-width: 1024px) {

  .intro, .statement, .projects{
    padding: 24px 60px;
  }

  #servicos{
    padding: 100px 24px;
  }

  #sobre{
    padding: 100px 24px
  }

  #estrategia{
    padding: 100px 24px
  }

  #projetos{
    padding: 100px 24px;
  }

  #hero {
    padding: 0;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  .hero-viewport {
    padding-left: 24px;
    padding-right: 24px;
  }


  .site-header{
    padding: 24px;
    padding-top: 60px;
  }

  .hero__footer{
    padding-left: 24px;
    padding-right: 24px;
  }

  .display-title{
    font-size: 4vw;
    max-width: 44rem;
  }

  .shiny-cta span{
    font-size: 16px;
  }

  .statement__heading{
    font-size: 3vw;
    max-width: 44rem;
  }

  .statement__copy{
    margin-top: 40%;
  } 

  .services__intro h2{
    font-size: 3vw;
  }

  .services__intro p{
    font-size: 12px;
    font-weight: 200;
  }

  .services__label{
    font-size: 14px;
  }

  .service-card{
    min-height: 30rem;
  }

  .services__grid{
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }

  .service-card__content h3{
    font-size: 18px;
  }

  .service-card__content p{
    font-size: 14px;
  }

  .projects__title img{
    width: 52px;
    height: 52px;
  }

  article{
    padding: 12px 24px;
    gap: 40px;
  }

  .projects__header p{
    font-size: 14px;
    max-width: 25rem;
  }

  .project-card__meta p{
    font-size: 14px;
  }

  .project-card__tags{
    flex-wrap: nowrap;
  }

  .advocacia-mobile, .marketing-mobile, .odonto-mobile{
    width: min(280px, 100%);
    max-height: 480px;
  }

  .body-copy{
    font-size: 14px;
  }

  .final-cta__footer p{
    font-size: 16px;
  }

  .final-cta__footer{
    padding-left: 24px;
    padding-right: 24px;
  }

} 

@media screen and (max-width: 767px) {
  #servicos{
    padding: 0px 16px;
  }

  #sobre{
    padding: 60px  16px
  }

  #estrategia{
    padding: 16px;
  }

  #projetos{
    padding: 120px 16px;
  }

  #hero {
    padding: 0;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  .hero-viewport {
    padding-left: 16px;
    padding-right: 16px;
  }

  .site-header{
    padding: 16px;
    padding-top: 44px;
  }

  .hero__footer{
    padding-left: 16px;
    padding-right: 16px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 54px;
  }

  .display-title{
    font-size: 6.5vw;
    max-width: 44em;
    padding: 16px;
    letter-spacing: 1%;
  }

  .body-copy{
    font-size: 12px;
    text-align: justify;
  }

  .shiny-cta span{
    font-size: 16px;
  }

  .intro__heading{
    font-size: 6vw;
  }

  .intro__footer{
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 54px;
  }

  .statement__content{
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 80px;
  }

  .statement__heading{
    font-size: 6vw;
    max-width: 44rem;
    text-align: center;
  }

  .statement__copy{
    align-items: center;
    font-size: 14px;
    font-weight: 200;
    margin-top: 0;
    text-align: justify;
  }

  .services__intro{
    flex-direction: column;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .services__intro h2{
    font-size: 6vw;
    text-align: center;
  }

  .services__intro p{
    font-size: 12px;
    text-align: center;
  }

  .services__label{
    text-align: center;
    font-size: 12px;
  }

  .services__grid{
    display: flex;
    flex-direction: column;
  }

  .service-card{
    border-radius: 24px;
    min-height: 24rem;
    gap: 20px;
  }

  .service-card__number{
    font-size: 36px;
  }

  .service-card__content h3{
    font-size: 16px;
  }

  .service-card__content p{
    font-size: 12px;
  }

  .projects__header {
    display: flex;
    flex-direction: column;
    text-align: center;
  }

  .projects__header img{
    width: 24px;
    height: 24px;
  }

  .projects__header h2{
    font-size: 8vw;
  }

  .projects__header p{
    font-size: 12px;
    text-align: center;
  }

  .projects__list{
    display: flex;
    flex-direction: column;
  }

  .project-card {
    display: flex;
    flex-direction: column;
    gap: 60px;
    border-radius: 24px;
  }

  .project-card__tags{
    flex-wrap: wrap;
  }

  .project-card__meta p{
    font-size: 10px;
    text-align: center;
  }

  .odonto-mobile, .marketing-mobile, .advocacia-mobile{
    min-height: 360px;
    align-items: center;
  }

  .project-card__tags span{
    font-size: 10px;
  }

  .light-rays-container{
    height: 100%;
  }

  .final-cta__footer{
    flex-direction: column;
    gap: 54px;
    align-items: center;
    justify-content: center;
  }

  .final-cta__content .display-title{
    font-size: 7.6vw;
  }

  .final-cta__content .body-copy{
    text-align: justify;
    font-size: 18px;
  }

  .light-rays-container canvas {
    width: 100%;
    height: 100%;
  }

}

