/* Páginas de case e home da Isa, no vocabulário visual do template. */

/* O tema define a fonte de h1/p com #content-holder; a serifa precisa vencer. */
#content-holder .font_xxkggxbva {
  font-family: "Gallient", serif;
  font-weight: 200;
}

.case-wrap,
.home-wrap {
  max-width: 1230px;
  margin: 0 auto;
  padding: 0 30px;
  box-sizing: border-box;
}

#content-holder .case p,
#content-holder .case li,
#content-holder .home p,
#content-holder .home li {
  color: #141414;
}

/* Cabeçalho do case */
.case-header {
  padding-top: 9rem;
  padding-bottom: 3rem;
}
#content-holder .case-back {
  font-size: 0.8333rem;
  color: #141414;
  text-decoration: underline;
}
#content-holder .case-kicker {
  margin: 3rem 0 1rem;
  font-size: 1rem;
  letter-spacing: 0.0167rem;
}
#content-holder .case-title {
  font-size: 2.6667rem;
  line-height: 1.12;
  letter-spacing: -0.04rem;
  font-weight: 400;
  max-width: 24ch;
  margin: 0 0 3rem;
  color: #141414;
}
.case-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem 4rem;
  max-width: 920px;
}
#content-holder .case-label {
  font-size: 1rem;
  line-height: 1.3333rem;
  margin: 0 0 0.4rem;
}
#content-holder .case-small {
  font-size: 0.8333rem;
  line-height: 1.1111rem;
  margin: 0;
}

/* Painel de números */
.case-panel {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0 30px;
  padding-bottom: 4rem;
}
.case-panel[data-cols="3"] {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.case-stat {
  border-top: 1px solid #111;
  padding: 1rem 0 2rem;
}
#content-holder .case-stat-value {
  font-size: 2.6rem;
  line-height: 1;
  margin: 0 0 0.6rem;
  letter-spacing: -0.03rem;
}
#content-holder .case-stat-label {
  font-size: 0.8333rem;
  line-height: 1.1111rem;
  margin: 0;
}
#content-holder .case-stat-period {
  font-size: 0.7222rem;
  margin: 0.4rem 0 0;
  opacity: 0.55;
}

/* Seções */
.case-section {
  display: grid;
  grid-template-columns: 4fr 8fr;
  gap: 30px;
  padding-top: 1.5rem;
  padding-bottom: 3.5rem;
}
.case-section-head {
  border-top: 1px solid #111;
  padding-top: 1rem;
}
.case-section-body {
  border-top: 1px solid #111;
  padding-top: 1rem;
  max-width: 760px;
}
.case-section-n {
  display: block;
  font-size: 0.7778rem;
  opacity: 0.55;
  margin-bottom: 0.4rem;
}
#content-holder .case-section-title {
  font-size: 1.3333rem;
  line-height: 1.7778rem;
  margin: 0;
  font-weight: normal;
}
#content-holder .case-lead {
  font-size: 1.5rem;
  line-height: 2rem;
  letter-spacing: -0.01rem;
  margin: 0 0 1.4rem;
}
#content-holder .case-p {
  font-size: 1rem;
  line-height: 1.5556rem;
  margin: 0 0 1.2rem;
}
#content-holder .case-sub {
  font-size: 1rem;
  line-height: 1.4rem;
  font-style: italic;
  margin: 2rem 0 0.8rem;
}
#content-holder .case-sub:first-child {
  margin-top: 0;
}
.case-list {
  list-style: none;
  margin: 0 0 1.2rem;
  padding: 0;
}
#content-holder .case-list li {
  position: relative;
  font-size: 1rem;
  line-height: 1.5556rem;
  padding-left: 1.2rem;
  margin-bottom: 0.7rem;
}
.case-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  opacity: 0.45;
}
.case-steps {
  list-style: none;
  margin: 0 0 1.2rem;
  padding: 0;
}
#content-holder .case-steps li {
  display: grid;
  grid-template-columns: 2.2rem 1fr;
  font-size: 1rem;
  line-height: 1.5556rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid rgba(17, 17, 17, 0.15);
}
/* Lista numerada no fim da seção: sem o fio de baixo no último item, para
   não somar com o fio escuro que vem logo depois (ficavam duas linhas). */
#content-holder .case-steps:last-child li:last-child {
  border-bottom: 0;
}
.case-steps-n {
  font-size: 0.7778rem;
  opacity: 0.55;
  padding-top: 0.15rem;
}
#content-holder .case-quote {
  font-family: "Gallient", serif;
  font-size: 1.9rem;
  line-height: 2.3rem;
  margin: 1.8rem 0;
  padding: 0;
  border: 0;
  color: #141414;
}
.case-table-wrap {
  overflow-x: auto;
  margin: 0.4rem 0 1.6rem;
}
.case-table {
  width: 100%;
  border-collapse: collapse;
}
#content-holder .case-table th,
#content-holder .case-table td {
  text-align: left;
  vertical-align: top;
  font-size: 0.8889rem;
  line-height: 1.3rem;
  padding: 0.6rem 1rem 0.6rem 0;
  border-bottom: 1px solid rgba(17, 17, 17, 0.15);
}
#content-holder .case-table th {
  font-weight: 600;
  border-bottom-color: #111;
}
/* Primeira coluna pode quebrar linha (textos longos), mas não fica estreita demais. */
.case-table td:first-child {
  min-width: 7.5rem;
}

/* Mídia */
.case-media {
  margin: 1.6rem 0;
}
.case-media img {
  width: 100%;
  height: auto;
  display: block;
}
#content-holder .case-media figcaption {
  font-size: 0.7778rem;
  margin-top: 0.5rem;
  opacity: 0.6;
}

/* Rascunhos: só no ambiente local */
.case-media-placeholder {
  margin: 1.6rem 0;
  min-height: 9rem;
  border: 1px dashed #c4473a;
  background: #fbf3f1;
  color: #8a2f25;
  font-size: 0.8333rem;
  line-height: 1.2rem;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.3rem;
}
.case-media-placeholder span {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06rem;
  font-size: 0.6667rem;
}
#content-holder .case-draft-note {
  font-size: 0.8333rem;
  line-height: 1.2rem;
  color: #8a2f25;
  background: #fbf3f1;
  border-left: 2px solid #c4473a;
  padding: 0.5rem 0.8rem;
  margin: 0 0 1rem;
}
.case-drafts {
  margin-bottom: 3rem;
}
.case-drafts > p,
.case-drafts ul {
  background: #fbf3f1;
}
#content-holder .case-drafts > p {
  padding: 0.8rem 1rem 0.2rem;
  margin: 0;
  color: #8a2f25;
}
.case-drafts ul {
  margin: 0;
  padding: 0.2rem 1rem 0.9rem 2rem;
}
#content-holder .case-drafts li {
  font-size: 0.8333rem;
  line-height: 1.3rem;
  color: #8a2f25;
}

/* Próximo case */
.case-next {
  border-top: 1px solid #111;
  padding-top: 1rem;
  padding-bottom: 3rem;
  margin-top: 2rem;
}

/* Rodapé */
.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 2rem;
  /* Espaço para a seta fixa "voltar ao topo" do tema. */
  padding-bottom: 6rem;
  margin-top: 2rem;
}
#content-holder .site-footer p {
  font-size: 0.8333rem;
  line-height: 1.2rem;
  margin: 0;
}
.site-footer-name span {
  opacity: 0.55;
}
#content-holder .site-footer a {
  color: #141414;
  text-decoration: underline;
}
.site-footer-draft {
  color: #8a2f25;
  background: #fbf3f1;
  padding: 0.2rem 0.5rem;
}
#content-holder .case-next-link {
  font-size: 1.1667rem;
  line-height: 1.4;
  letter-spacing: -0.02rem;
  color: #141414;
  text-decoration: none;
}

/* ---------- Home ---------- */
.home-hero {
  padding-top: 9rem;
  padding-bottom: 3.5rem;
}
.home-work {
  padding-bottom: 2rem;
}
#content-holder .home-hello {
  font-size: 1rem;
  line-height: 1.3333rem;
  letter-spacing: 0.0167rem;
  margin: 0 0 1.4rem;
}
#content-holder .home-statement {
  font-size: 1.7778rem;
  line-height: 2.2222rem;
  max-width: 34ch;
  margin: 0 0 1.6rem;
}
#content-holder .home-anchors a {
  font-size: 1rem;
  line-height: 1.5556rem;
  color: #141414;
  text-decoration: underline;
}
#content-holder .home-huge {
  font-size: 14vw;
  line-height: 90%;
  text-align: center;
  letter-spacing: -0.3vw;
  padding: 2vw 0 1vw;
  margin: 0;
  color: #141414;
}
.home-group {
  padding-bottom: 3rem;
}
#content-holder .home-group-label {
  font-size: 1rem;
  line-height: 1.3333rem;
  border-bottom: 1px solid #111;
  padding-bottom: 0.8rem;
  margin: 0;
}
#content-holder a.home-case {
  display: grid;
  grid-template-columns: 3rem 6fr 5fr 1.5rem;
  gap: 30px;
  align-items: baseline;
  padding: 1.4rem 0;
  border-bottom: 1px solid rgba(17, 17, 17, 0.2);
  color: #141414;
  text-decoration: none;
  line-height: inherit;
}
a.home-case:hover .home-case-title {
  text-decoration: underline;
}
.home-case-n {
  font-size: 0.8333rem;
  opacity: 0.55;
}
.home-case-title {
  font-family: "elza", sans-serif;
  font-size: 1.3333rem;
  line-height: 1.7778rem;
  letter-spacing: -0.01rem;
}
.home-case-info {
  font-size: 0.8333rem;
  line-height: 1.1111rem;
}
.home-case-info b {
  display: block;
  font-weight: 600;
  margin-bottom: 0.25rem;
}
.home-case-arrow {
  font-size: 1.2rem;
  text-align: right;
}
.home-section {
  padding-top: 4rem;
  padding-bottom: 4rem;
}
#content-holder .home-section-title {
  font-size: 1.3333rem;
  line-height: 1.7778rem;
  margin: 0 0 1.6rem;
  font-weight: normal;
}
.home-two {
  display: grid;
  grid-template-columns: 4fr 8fr;
  gap: 30px;
  border-top: 1px solid #111;
  padding-top: 1rem;
}
#content-holder .home-text {
  font-size: 1.1111rem;
  line-height: 1.6667rem;
  max-width: 40ch;
  margin: 0 0 1.2rem;
}
#content-holder .home-link {
  font-size: 1rem;
  color: #141414;
  text-decoration: underline;
}

/* ---------- Responsivo ---------- */
@media (max-width: 991px) {
  #content-holder .case-title {
    font-size: 2.2rem;
  }
  .case-panel,
  .case-panel[data-cols="3"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .case-section,
  .home-two {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .case-section-body {
    border-top: 0;
    padding-top: 1.2rem;
  }
  #content-holder a.home-case {
    grid-template-columns: 2.2rem 1fr 1.2rem;
    gap: 0.4rem 16px;
  }
  .home-case-info {
    grid-column: 2 / 3;
    grid-row: 2;
  }
}

@media (max-width: 575px) {
  .case-wrap,
  .home-wrap {
    padding-left: 16px;
    padding-right: 16px;
  }
  .case-header,
  .home-hero {
    padding-top: 7rem;
  }
  #content-holder .case-title {
    font-size: 1.7rem;
    letter-spacing: -0.02rem;
  }
  .case-meta {
    grid-template-columns: 1fr;
    gap: 1.4rem;
  }
  #content-holder .case-stat-value {
    font-size: 2rem;
  }
  #content-holder .case-lead {
    font-size: 1.2rem;
    line-height: 1.7rem;
  }
  #content-holder .case-quote {
    font-size: 1.5rem;
    line-height: 1.9rem;
  }
  #content-holder .case-next-link {
    font-size: 1.05rem;
  }
  #content-holder .home-statement {
    font-size: 1.35rem;
    line-height: 1.8rem;
  }
  .home-case-title {
    font-size: 1.15rem;
    line-height: 1.55rem;
  }
  #content-holder .home-huge {
    font-size: 4.2rem;
    line-height: 4.4rem;
  }
}

/* ---------- Home em seções (trabalho, liderança, estratégia, sobre) ---------- */
.home-block {
  padding-bottom: 4rem;
  /* Compensa o menu fixo ao chegar por âncora (#trabalho, #lideranca...). */
  scroll-margin-top: 70px;
}
/* Linha forte só abaixo do título da seção; entre cases da mesma seção,
   uma linha mais leve, para as duas divisões não se confundirem. */
.feature {
  padding: 1.2rem 0 4rem;
}
.home-huge + .feature {
  border-top: 1px solid #111;
}
.feature + .feature {
  border-top: 1px solid rgba(17, 17, 17, 0.15);
  padding-top: 2.4rem;
}
.feature-grid {
  display: grid;
  grid-template-columns: 6fr 3fr 3fr;
  gap: 30px;
}
#content-holder .feature-n {
  font-size: 0.7778rem;
  opacity: 0.55;
  margin: 0 0 0.4rem;
}
#content-holder .feature-title {
  font-size: 1.3333rem;
  line-height: 1.7778rem;
  font-weight: normal;
  margin: 0 0 0.2rem;
}
#content-holder .feature-title a {
  color: #141414;
  text-decoration: none;
  line-height: inherit;
}
#content-holder .feature-title a:hover {
  text-decoration: underline;
}
#content-holder .feature-where {
  font-size: 0.8333rem;
  opacity: 0.6;
  margin: 0 0 1rem;
}
#content-holder .feature-teaser {
  font-size: 0.9444rem;
  line-height: 1.4444rem;
  max-width: 46ch;
  margin: 0 0 1rem;
}
#content-holder .feature-link {
  font-size: 0.9444rem;
  color: #141414;
  text-decoration: underline;
}
#content-holder .feature-label {
  font-size: 1rem;
  line-height: 1.3333rem;
  margin: 0 0 0.5rem;
}
#content-holder .feature-small {
  font-size: 0.8333rem;
  line-height: 1.1111rem;
  margin: 0;
}
.feature-stat {
  display: flex;
  flex-direction: column;
  margin-bottom: 1rem;
}
#content-holder .feature-stat-value {
  font-size: 2rem;
  line-height: 1.1;
  letter-spacing: -0.02rem;
}
.feature-media {
  display: block;
  margin-top: 2.4rem;
}
.feature-media img {
  width: 100%;
  height: auto;
  display: block;
}
.feature-media-placeholder {
  margin-top: 2.4rem;
  min-height: 14rem;
}
.feature-about {
  grid-template-columns: 8fr 4fr;
  border-top: 1px solid #111;
  padding-top: 1.2rem;
}
#content-holder .about-lead {
  font-size: 1.5rem;
  line-height: 2rem;
  letter-spacing: -0.01rem;
  margin: 0 0 1.4rem;
}

@media (max-width: 991px) {
  .feature-grid,
  .feature-about {
    grid-template-columns: 1fr;
    gap: 1.4rem;
  }
  .feature-media-placeholder {
    min-height: 9rem;
  }
}
@media (max-width: 575px) {
  #content-holder .about-lead {
    font-size: 1.2rem;
    line-height: 1.7rem;
  }
}

/* Rótulos ("Papel", "Resultados", "Time"...): caixa alta e semibold,
   no mesmo estilo do menu. O texto de apoio abaixo fica em cinza. */
#content-holder .feature-label,
#content-holder .case-meta .case-label,
#content-holder .case-next .case-label {
  font-size: 0.7222rem;
  line-height: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08rem;
  margin: 0 0 0.7rem;
}
#content-holder .feature-small,
#content-holder .case-meta .case-small {
  color: #555;
}

/* Citações: fonte do texto, um pouco maior, com aspas e fio à esquerda.
   (Substitui a serifa grande, que pesava na leitura.) */
#content-holder .case-quote {
  font-family: "elza", sans-serif;
  font-size: 1.2222rem;
  line-height: 1.8333rem;
  letter-spacing: -0.005rem;
  margin: 1.4rem 0;
  padding: 0.1rem 0 0.1rem 1.2rem;
  border-left: 2px solid #141414;
}
.case-quote::before {
  content: "“";
}
.case-quote::after {
  content: "”";
}
@media (max-width: 575px) {
  #content-holder .case-quote {
    font-size: 1.1rem;
    line-height: 1.6rem;
  }
}

/* ---------- Capa, galerias e vídeo ---------- */
.case-cover {
  margin: 0 auto 3rem;
}
.case-cover img,
.case-cover video,
.feature-media video {
  width: 100%;
  height: auto;
  display: block;
}
.case-gallery {
  margin: 1.8rem 0;
  background: #f2f2f0;
  padding: 2rem 1.5rem;
}
.case-gallery-row {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 1.5rem;
}
.case-gallery-phone img,
.case-gallery-phone video {
  height: 560px;
  width: auto;
  max-width: 100%;
  display: block;
}
/* Telas encolhem juntas quando não cabem lado a lado (ex.: três telas). */
.case-gallery-phone img {
  height: auto;
  max-height: 560px;
  flex: 0 1 auto;
  min-width: 0;
}
/* O vídeo tem fundo branco; "multiply" faz o branco assumir o cinza do painel. */
.case-gallery-phone video {
  mix-blend-mode: multiply;
}
/* Vídeo do Modo Carnaval já vem em mockup de celular: em vez de "multiply"
   (que acinzentava a tela), recorta o fundo branco no contorno do aparelho. */
.case-gallery-phone video[src*="carnaval/configuracao"] {
  mix-blend-mode: normal;
  clip-path: inset(0 6.86% 0 6.73% round 15.2% / 7.4%);
}
.case-gallery-art img {
  width: calc(50% - 0.75rem);
  height: auto;
  display: block;
}
/* Composições largas (slides do Figma): ocupam a coluna toda, sem moldura. */
.case-gallery-wide {
  padding: 0 0 1.2rem;
}
.case-gallery-wide img {
  width: 100%;
  height: auto;
  display: block;
}
#content-holder .case-gallery figcaption {
  font-size: 0.7778rem;
  line-height: 1.1rem;
  margin-top: 1rem;
  text-align: center;
  color: #555;
}

@media (max-width: 575px) {
  .case-gallery {
    padding: 1.2rem 0.8rem;
  }
  .case-gallery-row {
    gap: 0.8rem;
  }
  .case-gallery-phone img,
  .case-gallery-phone video {
    height: auto;
    width: 100%;
    max-width: 240px;
  }
  .case-gallery-phone[data-count="2"] img {
    max-width: calc(50% - 0.4rem);
  }
}

/* Lista de links externos (imprensa) */
.case-links {
  list-style: none;
  margin: 0 0 1.4rem;
  padding: 0;
  border-top: 1px solid rgba(17, 17, 17, 0.15);
}
.case-links li {
  border-bottom: 1px solid rgba(17, 17, 17, 0.15);
}
#content-holder .case-links a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.7rem 0;
  font-size: 1rem;
  line-height: 1.4rem;
  color: #141414;
  text-decoration: none;
}
#content-holder .case-links a:hover .case-links-label {
  text-decoration: underline;
}
#content-holder .case-links a {
  align-items: center;
}
.case-links-arrow {
  flex: none;
  width: 0.75rem;
  height: 0.75rem;
}
/* A seta diagonal anda na própria direção ao passar o mouse. */
a:hover .case-links-arrow {
  transform: translate(3px, -3px);
}

/* Botão "voltar ao topo": círculo com fundo, para não se misturar ao texto.
   No celular fica oculto (o próprio sistema já leva ao topo). */
.back-to-top a {
  width: 48px;
  height: 48px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 0 0 1px rgba(17, 17, 17, 0.12);
}
.back-to-top a svg {
  width: 26px;
  height: auto;
}
@media (max-width: 767px) {
  .back-to-top {
    display: none !important;
  }
}

/* Componentes de interface (ex.: como o cliente percebe o Modo Carnaval):
   recorte do componente sobre o cinza das galerias, com o texto ao lado. */
.case-components {
  margin: 1.4rem 0 2.4rem;
  border-top: 1px solid rgba(17, 17, 17, 0.15);
}
.case-component {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 1.8rem;
  align-items: center;
  margin: 0;
  padding: 1.4rem 0;
  border-bottom: 1px solid rgba(17, 17, 17, 0.15);
}
.case-component-media {
  /* Luz suave atrás do componente: o centro clareia e as bordas escurecem
     um pouco, para o card se destacar do fundo sem chamar atenção. */
  background:
    radial-gradient(ellipse 70% 75% at 50% 45%, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0) 70%),
    linear-gradient(180deg, #f4f3f0 0%, #e8e6e1 100%);
  padding: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 11rem;
}
/* O recorte fica sobre uma "tela" branca, como no app: as bordas brancas
   dos recortes se fundem a ela, sem cara de imagem colada. */
.case-component-surface {
  background: #fff;
  border-radius: 18px;
  padding: 18px;
  width: 100%;
  max-width: 420px;
  box-shadow:
    0 1px 2px rgba(17, 17, 17, 0.06),
    0 12px 32px -8px rgba(17, 17, 17, 0.14);
}
.case-component-media img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 260px;
  object-fit: contain;
}
.case-component figcaption {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
#content-holder .case-component-name {
  font-size: 0.7222rem;
  line-height: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08rem;
}
#content-holder .case-component-question {
  font-size: 1rem;
  line-height: 1.4rem;
  color: #141414;
}
#content-holder .case-component-text {
  font-size: 0.8889rem;
  line-height: 1.3333rem;
  color: #555;
}
/* No fim da seção, o fio de baixo do último componente encostava no fio
   escuro da próxima seção: ficavam duas linhas. Tira o de baixo. */
.case-components:last-child .case-component:last-child {
  border-bottom: 0;
}
.case-components:last-child {
  margin-bottom: 0;
}
@media (max-width: 767px) {
  .case-component {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .case-component-media {
    padding: 1.2rem;
    min-height: 0;
  }
}

/* Gráfico do mapa de maturidade (Esteira agêntica) */
.case-maturity {
  padding: 2rem 1.5rem 1.4rem;
}
.maturity-chart {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}
.maturity-grid {
  stroke: rgba(17, 17, 17, 0.08);
  stroke-width: 1;
}
.maturity-axis {
  stroke: #141414;
  stroke-width: 1;
}
.maturity-line {
  fill: none;
  stroke: #141414;
  stroke-width: 2;
}
.maturity-dot {
  fill: #fff;
  stroke: #141414;
  stroke-width: 1.5;
}
.maturity-dot.is-reached {
  fill: #141414;
}
.maturity-halo {
  fill: rgba(17, 17, 17, 0.08);
}
.maturity-next {
  fill: none;
  stroke: #141414;
  stroke-width: 1;
  stroke-dasharray: 3 4;
}
.maturity-axis-label,
.maturity-tag {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  fill: #141414;
}
.maturity-axis-label {
  fill: #777;
}
.maturity-tag.is-next {
  fill: #777;
}
.maturity-level {
  font-family: "Gallient", serif;
  font-size: 26px;
  fill: #141414;
}
.maturity-name {
  font-size: 12px;
  fill: #555;
}
@media (max-width: 575px) {
  .case-maturity {
    padding: 1.2rem 0.6rem 1rem;
  }
  .maturity-name {
    display: none;
  }
  .maturity-axis-label,
  .maturity-tag {
    font-size: 16px;
  }
  .maturity-level {
    font-size: 30px;
  }
}

/* Legendas: respiro curto em relação às bordas do bloco cinza. Os blocos
   com padding lateral já dão esse respiro; os largos (sem padding) ganham
   a mesma margem na própria legenda. */
#content-holder .case-gallery figcaption {
  margin: 1rem auto 0;
  text-wrap: pretty;
}
#content-holder .case-gallery-wide figcaption {
  padding: 0 1.5rem;
}
.case-gallery-wide {
  padding-bottom: 1.4rem;
}
@media (max-width: 575px) {
  #content-holder .case-gallery-wide figcaption {
    padding: 0 0.8rem;
  }
  .case-gallery-wide {
    padding-bottom: 1.2rem;
  }
}

/* ---------- Princípios (home) ---------- */
.principles {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid #111;
  counter-reset: none;
}
.principle {
  display: grid;
  grid-template-columns: 1fr 5fr 6fr;
  gap: 30px;
  align-items: start;
  padding: 2.4rem 0 2.6rem;
  border-bottom: 1px solid rgba(17, 17, 17, 0.15);
}
.principle:last-child {
  border-bottom: 0;
}
#content-holder .principle-n {
  font-size: 0.7778rem;
  opacity: 0.55;
  margin: 0.6rem 0 0;
}
#content-holder .principle-title {
  font-family: "Gallient", serif;
  font-weight: 200;
  font-size: 2.6rem;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0 0 0.9rem;
  color: #141414;
}
#content-holder .principle-pt {
  font-size: 0.7222rem;
  line-height: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08rem;
  color: #777;
  margin: 0;
}
#content-holder .principle-text {
  font-size: 0.9444rem;
  line-height: 1.4444rem;
  margin: 0.5rem 0 0;
  max-width: 46ch;
}
@media (max-width: 991px) {
  .principle {
    grid-template-columns: 1fr 6fr 6fr;
  }
  #content-holder .principle-title {
    font-size: 2.1rem;
  }
}
@media (max-width: 767px) {
  .principle {
    grid-template-columns: 1fr;
    gap: 0.4rem;
    padding: 1.8rem 0 2rem;
  }
  #content-holder .principle-n {
    margin: 0 0 0.4rem;
  }
  #content-holder .principle-title {
    font-size: 2rem;
  }
  #content-holder .principle-text {
    margin-top: 1rem;
    max-width: none;
  }
}

/* Citação no rodapé (Charles Eames) */
.site-quote {
  flex: 0 0 100%;
  margin: 0 0 3.2rem;
  padding: 3rem 0 0;
  border-top: 1px solid #111;
}
#content-holder .site-quote-text {
  font-family: "Gallient", serif;
  font-weight: 200;
  font-size: 3.4rem;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: #141414;
  margin: 0 0 1.2rem;
  padding: 0;
  border: 0;
  max-width: 16em;
}
#content-holder .site-quote-author {
  font-size: 0.7222rem;
  line-height: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08rem;
  color: #777;
}
@media (max-width: 767px) {
  .site-quote {
    padding: 2.2rem 0 0;
    margin-bottom: 2.4rem;
  }
  #content-holder .site-quote-text {
    font-size: 2.2rem;
  }
}

/* Cabeçalho do case com três campos (Papel, Time, Antes) */
.case-meta:has(> :nth-child(3)) {
  grid-template-columns: 2fr 1fr 1fr;
  max-width: none;
  gap: 2rem 3rem;
}
@media (max-width: 767px) {
  .case-meta:has(> :nth-child(3)) {
    grid-template-columns: 1fr;
    gap: 1.4rem;
  }
}

/* Números contados como história (Modo Carnaval) */
.case-story {
  padding-bottom: 4rem;
}
.case-story-group {
  padding: 1.6rem 0 2rem;
  border-bottom: 1px solid rgba(17, 17, 17, 0.15);
}
.case-story-group:first-child {
  border-top: 1px solid #111;
}
#content-holder .case-story-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.7222rem;
  line-height: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08rem;
  color: #666;
  margin: 0 0 1.4rem;
}
.case-story-icon {
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.case-story-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.4rem 30px;
}
.case-story .case-stat {
  border-top: 0;
  padding: 0;
}
#content-holder .case-story .case-stat-label {
  font-size: 0.9444rem;
  line-height: 1.4444rem;
  max-width: 40ch;
}
@media (max-width: 575px) {
  .case-story-stats {
    grid-template-columns: 1fr;
  }
}

/* Funil de adoção (Modo Carnaval) */
.case-funnel {
  margin: 1.4rem 0 2.4rem;
  padding: 1.6rem 1.6rem 1.4rem;
  border: 1px solid rgba(17, 17, 17, 0.12);
  border-radius: 16px;
}
#content-holder .case-funnel-title {
  font-size: 0.7222rem;
  line-height: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08rem;
  color: #666;
  margin: 0 0 1.2rem;
}
.case-funnel-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.case-funnel-list li + li {
  margin-top: 0.4rem;
}
#content-holder .case-funnel-step {
  font-size: 0.7778rem;
  line-height: 1.1rem;
  color: #666;
  margin: 0.9rem 0 0.9rem 0.2rem;
}
.case-funnel-step span {
  display: inline-block;
  margin-right: 0.4rem;
}
.case-funnel-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 0.5rem;
}
#content-holder .case-funnel-label {
  font-size: 0.9444rem;
  line-height: 1.3rem;
  color: #141414;
}
#content-holder .case-funnel-value {
  font-size: 1.7rem;
  line-height: 1;
  color: #141414;
  white-space: nowrap;
}
.case-funnel-track {
  height: 14px;
  border-radius: 999px;
  background: #f0efec;
  overflow: hidden;
}
.case-funnel-bar {
  height: 100%;
  border-radius: 999px;
  background: #ec7000;
  opacity: calc(1 - var(--n, 0) * 0.14);
  transform-origin: left center;
}
.case-funnel-list li:last-child .case-funnel-bar {
  opacity: 1;
}
#content-holder .case-funnel figcaption {
  font-size: 0.7778rem;
  line-height: 1.15rem;
  color: #666;
  margin: 1.2rem 0 0;
}
/* Motion: as barras crescem da esquerda, uma depois da outra. */
.motion-ready .reveal .case-funnel-bar {
  transform: scaleX(0);
  transition: transform 1.1s var(--ease-out) calc(var(--n, 0) * 160ms + 200ms);
}
.motion-ready .reveal.is-in .case-funnel-bar {
  transform: none;
}
@media (max-width: 575px) {
  .case-funnel {
    padding: 1.2rem 1rem 1.1rem;
  }
  #content-holder .case-funnel-value {
    font-size: 1.4rem;
  }
}

.feature-stat-period {
  display: block;
  opacity: 0.55;
}
#content-holder .case-story .case-stat-period {
  margin-top: 0.4rem;
}
#content-holder .case-story-note {
  font-size: 0.7778rem;
  line-height: 1.15rem;
  color: #777;
  margin: 1.2rem 0 0;
}

/* Título de bloco dentro de uma seção (ex.: Decisão 1, 2, 3...). Fica acima
   do subtítulo em itálico, com linha e numeração próprias. */
.case-h3 {
  margin: 3.2rem 0 1.2rem;
  padding-top: 1.2rem;
  border-top: 1px solid #111;
}
.case-h3:first-child {
  margin-top: 0;
}
#content-holder .case-h3-kicker {
  font-size: 0.7222rem;
  line-height: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08rem;
  color: #777;
  margin: 0 0 0.5rem;
}
#content-holder .case-h3-title {
  font-size: 1.45rem;
  line-height: 1.95rem;
  font-weight: normal;
  letter-spacing: -0.01em;
  margin: 0;
  color: #141414;
}
@media (max-width: 575px) {
  #content-holder .case-h3-title {
    font-size: 1.25rem;
    line-height: 1.7rem;
  }
}

/* Imagem com fundo branco próprio: sem o bloco cinza em volta. */
.case-gallery-clean {
  background: none;
  padding: 0;
}
.case-gallery-clean img {
  width: 100%;
  height: auto;
  display: block;
}
/* Legenda da imagem sem fundo: mesma faixa cinza das outras legendas. */
#content-holder .case-gallery-clean figcaption {
  background: #f2f2f0;
  margin: 0;
  padding: 1.1rem 1.5rem 1.4rem;
}
@media (max-width: 575px) {
  #content-holder .case-gallery-clean figcaption {
    padding: 1rem 0.8rem 1.2rem;
  }
}
/* Quando o bloco abre a seção, a linha da própria seção já basta. */
.case-h3:first-child {
  border-top: 0;
  padding-top: 0;
}
/* O último bloco de números não leva linha: a seção seguinte já abre com a dela. */
.case-story-group:last-child {
  border-bottom: 0;
}

/* ---------- Hero da home ---------- */
.home-hero {
  padding-top: 6.5rem;
  padding-bottom: 3.5rem;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.hero-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem 2rem;
  flex-wrap: wrap;
  padding-bottom: 1.4rem;
  margin-bottom: 2.6rem;
  border-bottom: 1px solid #111;
}
#content-holder .hero-name {
  font-family: "Gallient", serif;
  font-weight: 200;
  font-size: 5.6rem;
  line-height: 0.9;
  letter-spacing: -0.02em;
  margin: 0;
  color: #141414;
}
#content-holder .hero-kicker {
  font-size: 0.7778rem;
  line-height: 1.1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1rem;
  color: #555;
  margin: 0 0 0.5rem;
}
#content-holder .hero-headline {
  font-size: 3.7rem;
  line-height: 1.06;
  letter-spacing: -0.035em;
  font-weight: 400;
  color: #141414;
  max-width: 20ch;
  margin: 0 0 2.4rem;
}
#content-holder .hero-headline .hero-serif {
  font-family: "Gallient", serif;
  font-weight: 200;
  font-size: 1.12em;
  letter-spacing: -0.01em;
}
#content-holder .hero-intro {
  font-size: 1.1111rem;
  line-height: 1.6667rem;
  color: #333;
  max-width: 50ch;
  margin: 0 0 2rem;
}
#content-holder .hero-cta {
  align-self: flex-start;
  font-size: 0.8333rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1rem;
  color: #141414;
  text-decoration: none;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid #141414;
}
a:hover .arrow-down {
  transform: translateY(4px);
}
@media (max-width: 991px) {
  #content-holder .hero-name {
    font-size: 4.2rem;
  }
  #content-holder .hero-headline {
    font-size: 3.1rem;
  }
}
@media (max-width: 575px) {
  .home-hero {
    padding-top: 6.5rem;
    padding-bottom: 3rem;
    min-height: 0;
  }
  .hero-top {
    margin-bottom: 1.8rem;
  }
  #content-holder .hero-name {
    font-size: 3.2rem;
  }
  #content-holder .hero-headline {
    font-size: 2.15rem;
    line-height: 1.1;
  }
  #content-holder .hero-intro {
    font-size: 1rem;
    line-height: 1.55rem;
  }
}

/* Sans e serifada na mesma linha: alinhadas pela linha de base. */
.hero-headline .split-mask {
  vertical-align: baseline;
}

.hero-headline .split-mask {
  line-height: 1;
}
#content-holder .hero-headline .hero-serif {
  font-size: 1.08em;
}
#content-holder .hero-headline {
  max-width: 22ch;
}
.hero-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.4rem 3rem;
  flex-wrap: wrap;
}
#content-holder .hero-bottom .hero-intro {
  margin: 0;
}
@media (max-width: 575px) {
  .hero-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}
/* Ajuste fino: mesma altura de linha para as duas fontes, alinhadas pelo topo. */
.hero-headline .split-mask {
  vertical-align: top;
}
#content-holder .hero-headline .split-item {
  line-height: 1.06;
}
#content-holder .hero-headline .hero-serif {
  font-size: 1em;
  line-height: 1.06;
}
/* A serifada tem a linha de base mais baixa: sobe um pouco para alinhar com a sans. */
#content-holder .hero-headline .hero-serif {
  font-size: 1.08em;
  line-height: 0.98;
  position: relative;
  top: -0.1em;
}
@media (max-width: 575px) {
  #content-holder .hero-kicker {
    font-size: 0.66rem;
    letter-spacing: 0.05rem;
  }
}
/* Quebra de linha dentro de uma célula (ex.: "Itaú" / "2022–2024"). */
#content-holder .case-table td {
  white-space: pre-line;
}

/* Hero sem o nome (ele já está no menu): rótulo com traço, headline e apresentação. */
#content-holder .hero-kicker {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0 0 2rem;
  color: #666;
}
#content-holder .hero-kicker::before {
  content: "";
  width: 2.5rem;
  height: 1px;
  background: currentColor;
  flex: none;
}
#content-holder .hero-headline {
  font-size: 4.4rem;
  max-width: 19ch;
}
/* Entrada mais rápida da headline. */
.motion-ready .hero-headline .split-item {
  transition:
    transform 0.9s var(--ease-out) calc(var(--i) * 28ms),
    opacity 0.5s var(--ease-soft) calc(var(--i) * 28ms);
}
@media (max-width: 991px) {
  #content-holder .hero-headline {
    font-size: 3.3rem;
  }
}
@media (max-width: 575px) {
  #content-holder .hero-headline {
    font-size: 2.3rem;
  }
  #content-holder .hero-kicker {
    gap: 0.6rem;
    margin-bottom: 1.4rem;
  }
  #content-holder .hero-kicker::before {
    width: 1.4rem;
  }
}
/* Headline em duas frases curtas: pode ocupar mais largura. */
#content-holder .hero-headline {
  max-width: none;
}
@media (min-width: 992px) {
  #content-holder .hero-headline {
    font-size: 4rem;
  }
}
/* Com a headline mais curta, o conteúdo fica centralizado na primeira tela. */
.home-hero {
  justify-content: center;
}
/* Hero sem altura de tela cheia: começa logo abaixo do menu, com respiro fixo. */
.home-hero {
  min-height: 0;
  justify-content: flex-start;
  padding-top: 9rem;
  padding-bottom: 5rem;
}
/* A headline acompanha a largura da tela, para cada frase caber numa linha. */
@media (min-width: 768px) {
  #content-holder .hero-headline {
    font-size: clamp(2.6rem, 5.2vw, 4rem);
  }
}
@media (max-width: 575px) {
  .home-hero {
    padding-top: 6.5rem;
    padding-bottom: 3rem;
  }
}

/* Foto no "sobre": discreta, na coluna da direita, sem dominar o texto. */
.feature-about {
  align-items: start;
}
.about-photo {
  margin: 0;
  justify-self: end;
  width: 100%;
  max-width: 300px;
}
.about-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 30%;
}
@media (max-width: 767px) {
  .about-photo {
    justify-self: start;
    max-width: 220px;
    margin-top: 1.6rem;
  }
}
/* Hero volta a ocupar a primeira tela inteira, com o conteúdo centralizado. */
.home-hero {
  min-height: 100vh;
  min-height: 100svh;
  justify-content: center;
  padding-top: 6.5rem;
  padding-bottom: 3.5rem;
}
@media (max-width: 575px) {
  .home-hero {
    min-height: 0;
    padding-top: 6.5rem;
    padding-bottom: 3rem;
  }
}

/* "Sobre" equilibrado: foto à esquerda e texto à direita, em colunas próximas. */
.feature-about {
  grid-template-columns: 5fr 7fr;
  gap: 4rem;
  align-items: center;
}
.about-photo {
  order: -1;
  justify-self: stretch;
  max-width: 460px;
}
@media (max-width: 767px) {
  .feature-about {
    grid-template-columns: 1fr;
    gap: 1.6rem;
  }
  .about-photo {
    order: 0;
    max-width: 260px;
    margin-top: 0;
  }
}
.feature-about {
  grid-template-columns: 4fr 7fr;
}
.about-photo {
  max-width: 400px;
}
#content-holder .feature-about .feature-teaser {
  font-size: 1.05rem;
  line-height: 1.65rem;
  max-width: 54ch;
}
#content-holder .feature-about .about-lead {
  margin-bottom: 1.2rem;
}
@media (max-width: 767px) {
  .feature-about {
    grid-template-columns: 1fr;
  }
}
/* Botão "Explorar projetos" logo abaixo da apresentação. */
.hero-bottom {
  flex-direction: column;
  align-items: flex-start;
  gap: 1.8rem;
}
/* "Sobre": mesmo respiro acima e abaixo do bloco foto + texto. */
#content-holder .feature-about {
  padding-top: 3rem;
}
.home-about.home-block {
  padding-bottom: 0;
}
#content-holder .feature-about {
  padding-top: 4rem;
}

/* Chave de idioma no menu (EN / PT). */
.lang-switch a span {
  opacity: 0.45;
  transition: opacity 0.3s ease;
}
.lang-switch a span.is-current,
.lang-switch a:hover span {
  opacity: 1;
}
.lang-switch .lang-sep {
  margin: 0 0.35em;
  opacity: 0.3;
}

/* ---------- Página de senha ---------- */
.access {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 8rem;
  padding-bottom: 5rem;
  max-width: 640px;
}
#content-holder .access-kicker {
  font-size: 0.7222rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1rem;
  color: #666;
  margin: 0 0 1rem;
}
#content-holder .access-title {
  font-size: 2.4rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 400;
  margin: 0 0 1rem;
}
#content-holder .access-lead {
  font-size: 1.05rem;
  line-height: 1.6rem;
  color: #333;
  margin: 0 0 2rem;
}
#content-holder .access-label {
  display: block;
  font-size: 0.7222rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08rem;
  margin: 0 0 0.6rem;
}
.access-row {
  display: flex;
  gap: 0.8rem;
  align-items: stretch;
}
.access-row input {
  flex: 1;
  min-width: 0;
  font: inherit;
  font-size: 1rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid #141414;
  border-radius: 0;
  background: #fff;
  color: #141414;
}
.access-row input[aria-invalid="true"] {
  border-color: #b3261e;
}
.access-row button {
  font: inherit;
  font-size: 0.8333rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08rem;
  padding: 0 1.3rem;
  border: 1px solid #141414;
  background: #141414;
  color: #fff;
  cursor: pointer;
}
.access-row button:disabled {
  opacity: 0.4;
  cursor: default;
}
#content-holder .access-error {
  color: #b3261e;
  font-size: 0.8889rem;
  margin: 0.7rem 0 0;
}
#content-holder .access-back {
  margin-top: 2.6rem;
  font-size: 0.8889rem;
  color: #141414;
  text-decoration: none;
}
@media (max-width: 575px) {
  .access-row {
    flex-direction: column;
  }
  .access-row button {
    padding: 0.8rem 1rem;
  }
  #content-holder .access-title {
    font-size: 1.8rem;
  }
}

/* Celular: o hero ocupa a tela inteira, e "work" só aparece com o scroll. */
@media (max-width: 767px) {
  .home-hero {
    min-height: 100vh;
    min-height: 100svh;
    justify-content: center;
    padding-top: 6.5rem;
    padding-bottom: 4rem;
  }
}

/* Seta fina entre números na capa (ex.: "88 → 5"), no peso da Gallient. */
.feature-stat-arrow {
  display: inline-block;
  width: 0.85em;
  height: 0.45em;
  margin: 0 0.04em;
  vertical-align: 0.18em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.1px;
  vector-effect: non-scaling-stroke;
  stroke-linecap: round;
  stroke-linejoin: round;
  overflow: visible;
}
.feature-stat-arrow path { vector-effect: non-scaling-stroke; }

/* Monograma "ID." no rodapé: pequeno, em preto, acima do nome. */
.site-footer-mark {
  display: block;
  width: 1.4rem;
  height: 1.4rem;
  margin-bottom: 0.9rem;
  fill: #111;
}

/* Seta "voltar ao topo" no fim do rodapé dos cases (no lugar da seta fixa). */
.site-footer-top {
  flex-basis: 100%;
  display: flex;
  justify-content: flex-end;
  margin-top: 1.6rem;
}
#content-holder .site-footer-top a {
  display: block;
  text-decoration: none;
  line-height: 0;
}
.site-footer-top svg {
  width: 48px;
  height: 48px;
  padding: 14px 11px;
  box-sizing: border-box;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 0 0 1px rgba(17, 17, 17, 0.12);
  fill: #141414;
  overflow: visible;
}
.site-footer:has(.site-footer-top) {
  padding-bottom: 3rem;
}
body:has(.site-footer-top) .back-to-top {
  display: none !important;
}
#topo {
  position: absolute;
  top: 0;
  left: 0;
}
