/* v23.20.6 — Sistema editorial do portfólio.
   Inspiração: fotografia em primeiro plano, hierarquia tipográfica clara,
   superfícies em sequência e interface discreta. A identidade Gilmar Amaro,
   as configurações do painel e o modo de fundo global são preservados. */

:root {
  /* Uma grade comum faz logo, capa, seções e rodapé compartilharem o mesmo eixo. */
  --container: 1440px;
  --gutter: clamp(22px, 4.4vw, 72px);
  --section-y: clamp(64px, 6.4vw, 96px);
  --measure: 66ch;

  /* Superfícies padrão derivadas da paleta original; o painel pode sobrescrevê-las. */
  --about-bg: #0E2D3A;
  --projects-bg: #0A161B;
  --illustrations-bg: #0F222A;
  --process-bg: #0A161B;
  --contact-bg: #0E2D3A;
  --intro-bg: #0A161B;
  --footer-bg: #070E11;

  /* Gramática consistente para ações, foco e imagens. */
  --site-action-color: var(--terracotta, #A8472E);
  --site-focus-color: var(--mustard, #C0924D);
  --site-image-shadow: 0 18px 42px -30px rgba(0, 0, 0, .82);
  --site-card-radius: 14px;
}

/* Não compete com uma imagem/fundo global escolhido no painel. */
html:not([data-gil-global-background="true"]) body#white-text-site > main#conteudo > section {
  background-image: none;
}

/* Ritmo editorial comum. As superfícies separam os capítulos sem molduras extras. */
body#white-text-site > main#conteudo > section:not(.hero) {
  scroll-margin-top: calc(var(--header-h, 76px) + 18px);
}
body#white-text-site .section-wrap {
  padding-inline: max(var(--gutter), calc((100% - var(--container)) / 2));
}
body#white-text-site .section-heading {
  grid-template-columns: minmax(0, 1.4fr) minmax(240px, .78fr);
  column-gap: clamp(28px, 5vw, 72px);
  padding-bottom: clamp(18px, 2vw, 26px);
  margin-bottom: clamp(26px, 3vw, 40px);
  border-color: rgba(238, 230, 211, .12);
}
body#white-text-site .section-heading .eyebrow {
  margin-bottom: clamp(12px, 1.4vw, 18px);
}
body#white-text-site .section-heading h2 {
  font-size: calc(clamp(2.45rem, 5.1vw, 4.8rem) * var(--site-title-scale, 1));
  line-height: .94;
  letter-spacing: -.025em;
  max-width: 20ch;
}
body#white-text-site .section-note {
  max-width: 42ch;
  font-size: clamp(.96rem, 1.1vw, 1.04rem);
  line-height: 1.58;
  opacity: .82;
}
body#white-text-site .eyebrow {
  font-size: .7rem;
  letter-spacing: .17em;
}
body#white-text-site .section-heading .eyebrow::before {
  content: "";
  width: 20px;
  height: 1px;
  background: currentColor;
  opacity: .75;
}

/* Corpo de texto com largura editorial e leitura estável. */
body#white-text-site :is(.section-note, .project-summary, .about-copy > p, .process-step p, .contact-bottom p, .custom-content-inner > p) {
  max-width: var(--measure);
  line-height: 1.62;
}
body#white-text-site .about-copy > p:not(.about-lead) {
  font-size: 1.02rem;
  line-height: 1.66;
}
body#white-text-site .about-lead {
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
  line-height: 1.25;
}

/* A fotografia carrega a hierarquia; os cartões deixam o chrome em segundo plano. */
body#white-text-site .project-grid[data-presentation="carousel"] > .project-card {
  flex-basis: clamp(320px, 43vw, 600px);
}
body#white-text-site .project-image,
body#white-text-site .illustration-art,
body#white-text-site .about-portrait-photo {
  border-radius: var(--site-card-radius);
  box-shadow: var(--site-image-shadow);
}
body#white-text-site .project-image {
  aspect-ratio: 4 / 3;
}
body#white-text-site .project-meta {
  padding-top: clamp(16px, 1.6vw, 20px);
}
body#white-text-site .project-type {
  font-size: .68rem;
  letter-spacing: .13em;
  margin-bottom: 7px;
}
body#white-text-site .project-meta h3 {
  font-size: clamp(1.45rem, 2.25vw, 2.05rem);
  line-height: 1.02;
}
body#white-text-site .project-summary {
  margin-top: 10px;
  font-size: .96rem;
  opacity: .82;
}
body#white-text-site .mock-label {
  top: 14px;
  left: 14px;
  padding: 7px 11px;
  border-radius: 8px;
  background: rgba(7, 14, 17, .68);
  font-size: .61rem;
  letter-spacing: .105em;
}
body#white-text-site .behance-open {
  padding: 10px 14px;
  background: var(--site-action-color);
  color: #fff;
  box-shadow: none;
}

/* Filtros e controles formam uma gramática única, discreta e acessível. */
body#white-text-site :is(.filter-button, .publication-filter) {
  min-height: 44px;
  padding-inline: 17px;
  border-color: rgba(238, 230, 211, .22);
  border-radius: 999px;
  font-size: .78rem;
  letter-spacing: .035em;
}
body#white-text-site :is(.filter-button.active, .publication-filter[aria-pressed="true"]) {
  background: var(--cream, #EEE6D3);
  color: var(--navy, #0E2D3A);
  border-color: var(--cream, #EEE6D3);
}
body#white-text-site :is(.portfolio-carousel-arrow, .publication-control, .viewer-close, .viewer-arrow) {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  box-shadow: none;
}
body#white-text-site .portfolio-carousel-controls {
  margin-top: 8px;
  padding-top: 12px;
}

/* Processo: cartões utilitários simples, sem competir com a fotografia do portfólio. */
body#white-text-site .process-step {
  min-height: 260px;
  padding: clamp(22px, 2.3vw, 30px);
  border-color: rgba(238, 230, 211, .14);
  border-radius: var(--site-card-radius);
  background: rgba(238, 230, 211, .025);
  box-shadow: none;
  transform: none;
}
body#white-text-site .process-step:hover {
  background: rgba(238, 230, 211, .055);
  transform: translateY(-3px);
}
body#white-text-site .process-step h3 {
  margin-top: clamp(24px, 3vw, 38px);
  font-size: clamp(1.45rem, 2vw, 1.9rem);
}

/* Sobre e contato: informação em colunas consistentes, separadores suaves. */
body#white-text-site .profile-details {
  gap: clamp(24px, 3.2vw, 48px);
  border-color: rgba(238, 230, 211, .13);
}
body#white-text-site .profile-column h3 {
  font-size: .78rem;
  letter-spacing: .13em;
}
body#white-text-site .detail-list,
body#white-text-site .plain-detail {
  gap: 13px;
}
body#white-text-site .contact h2 {
  max-width: 20ch;
  line-height: .95;
  letter-spacing: -.025em;
}
body#white-text-site .contact-bottom {
  border-color: rgba(238, 230, 211, .14);
}
body#white-text-site .contact-form {
  width: 100%;
  max-width: none;
  margin-inline: 0;
  justify-self: stretch;
  box-sizing: border-box;
}

/* Cabeçalho e rodapé compartilham o mesmo alinhamento da galeria. */
body#white-text-site .site-header {
  padding-inline: max(var(--gutter), calc((100% - var(--container)) / 2));
}
body#white-text-site > .site-footer {
  padding-inline: max(var(--gutter), calc((100% - var(--container)) / 2));
  border-top-color: rgba(238, 230, 211, .12);
}

/* Evita sombras em chrome; mantém profundidade apenas em imagens e retratos. */
body#white-text-site :is(.filter-button, .publication-filter, .portfolio-carousel-arrow, .publication-control, .nav-contact, .hero-secondary-link, .contact-links a, .process-step) {
  box-shadow: none;
}
body#white-text-site :is(.button, .hero-secondary-link, .nav-contact, .contact-links a, .filter-button, .publication-filter) {
  transition-duration: .22s;
}
body#white-text-site :is(a, button):focus-visible {
  outline-color: var(--site-focus-color);
  outline-offset: 3px;
}

/* Notebooks e desktops compactos: a coluna do texto auxiliar não deve comprimir
   o título nem criar cabeçalhos desproporcionais entre 861px e 1068px. */
@media (min-width: 861px) and (max-width: 1068px) {
  body#white-text-site .section-heading {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    row-gap: 14px;
  }
  body#white-text-site .section-note {
    justify-self: start;
    max-width: 58ch;
  }
}

/* Tablet e celular: uma coluna editorial e cards dimensionados pela viewport. */
@media (max-width: 860px) {
  body#white-text-site .section-heading {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 14px;
  }
  body#white-text-site .section-heading h2 {
    max-width: 18ch;
    font-size: clamp(2.35rem, 7vw, 4rem);
  }
  body#white-text-site .section-note {
    max-width: 58ch;
    justify-self: start;
  }
  body#white-text-site .project-grid[data-presentation="carousel"] > .project-card {
    flex-basis: min(82vw, 540px);
  }
}
@media (max-width: 640px) {
  body#white-text-site .section-heading {
    padding-bottom: 17px;
    margin-bottom: 24px;
  }
  body#white-text-site .section-heading h2 {
    font-size: clamp(2.15rem, 9vw, 3.35rem);
    max-width: 20ch;
  }
  body#white-text-site .section-note {
    font-size: .94rem;
    line-height: 1.58;
  }
  body#white-text-site .project-grid[data-presentation="carousel"] > .project-card {
    flex-basis: 86vw;
  }
  body#white-text-site .project-image {
    border-radius: 12px;
  }
  body#white-text-site .project-meta h3 {
    font-size: clamp(1.35rem, 6vw, 1.7rem);
  }
  body#white-text-site .process-step {
    min-height: 220px;
  }
  body#white-text-site .about-portrait {
    max-width: min(100%, 420px);
  }
  body#white-text-site .contact-form {
    width: 100%;
  }
}

/* v23.20.8 — O formulário acompanha todo o eixo de conteúdo da seção.
   A largura máxima anterior de 900px deixava a caixa visualmente deslocada
   e curta em relação ao cabeçalho e à faixa superior do contato. */
body#white-text-site #contato > .contact-form {
  display: grid;
  width: 100%;
  max-width: none;
  margin-inline: 0;
  justify-self: stretch;
  box-sizing: border-box;
}
body#white-text-site #contato > .contact-form > .contact-form-grid,
body#white-text-site #contato > .contact-form > label,
body#white-text-site #contato > .contact-form > .contact-form-actions,
body#white-text-site #contato > .contact-form > .contact-form-fallback,
body#white-text-site #contato > .contact-form > .contact-privacy {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

@media (min-width: 1441px) {
  body#white-text-site .hero-copy {
    max-width: 900px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body#white-text-site :is(.project-image, .illustration-art, .process-step, .behance-open) {
    transition: none !important;
  }
}
