/**
 * Componentes reutilizáveis - Botões, tipografia, containers
 * Uso em homepage, páginas de cases e outras. ....
 */

/* Topbar fixa (global) – accent varia por página via --page-accent */
.site-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9990;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: none;
}

.site-topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 16px;
  padding-bottom: 16px;
}

.site-topbar__brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
}

.site-topbar__star {
  color: var(--page-accent, var(--color-accent-soft));
  width: 41px;
  height: 36px;
  display: inline-block;
  transform: rotate(0deg);
  transform-origin: 50% 50%;
  transition: transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.site-topbar__brand:hover .site-topbar__star {
  transform: rotate(-18deg);
}

.site-topbar__nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

.site-topbar__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: var(--font-bold);
  line-height: var(--leading-relaxed);
  letter-spacing: -0.07px;
  text-decoration: none;
  border: 1px solid var(--color-text);
  background: var(--color-bg);
  color: var(--color-text);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.site-topbar__btn:hover {
  transform: translate(2px, 2px);
  box-shadow: none;
}

.site-topbar__btn--inicio {
  border-color: var(--page-accent, var(--color-accent-soft));
  color: var(--page-accent, var(--color-accent-soft));
  box-shadow: var(--button-shadow) var(--page-accent, var(--button-shadow-color-alt));
}

.site-topbar__btn--contato {
  box-shadow: var(--button-shadow) var(--button-shadow-color);
}

/* Espaço para não sobrepor conteúdo */
body.has-topbar {
  padding-top: 52px;
}

@media (max-width: 520px) {
  .site-topbar__inner {
    padding-top: 12px;
    padding-bottom: 12px;
  }
  body.has-topbar {
    padding-top: 48px;
  }
  .site-topbar__nav {
    gap: 10px;
  }
  .site-topbar__btn {
    padding: 8px 10px;
  }

  .site-topbar__brand {
    gap: 4px;
  }

  .site-topbar__brand .poly-logo-svg--poly {
    width: 52px;
    height: auto;
  }

  .site-topbar__brand .poly-logo-svg--andrade {
    width: 96px;
    height: auto;
  }

  .site-topbar__brand .site-topbar__star {
    width: 26px;
    height: 23px;
  }
}

/* Container centralizado 900px */
.poly-container {
  width: 100%;
  max-width: var(--content-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--content-padding-x);
  padding-right: var(--content-padding-x);
}

/* Tipografia - Títulos de seção (layout: Regular 400, 32px) */
.poly-heading-section {
  font-family: var(--font-sans);
  font-size: var(--text-2xl);
  font-weight: var(--font-regular);
  line-height: var(--leading-snug);
  color: var(--color-text);
}

.poly-heading-section--light {
  color: var(--color-text-on-dark);
}

.poly-heading-section--accent {
  color: var(--color-accent);
}

/* Tipografia - Logo/Nome */
/* Logo POLY ANDRADE – fonte ED Nimpkish (hero e footer) */
.poly-logo {
  font-family: var(--font-logo);
  font-size: var(--text-3xl);
  font-weight: var(--font-regular);
  line-height: normal;
  color: var(--color-text);
  letter-spacing: -0.02em;
}

.poly-logo-svg {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  flex-shrink: 0;
}

/* Tipografia - Corpo (layout: Regular 400 para corpo padrão) */
.poly-body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: var(--font-regular);
  line-height: var(--leading-snug);
  color: var(--color-text);
}

.poly-body--muted {
  color: var(--color-text-muted);
  font-weight: var(--font-regular);
}

.poly-body--muted-light {
  color: var(--color-text-muted-light);
  font-weight: var(--font-regular);
}

.poly-body--light {
  color: var(--color-text-on-dark);
  font-weight: var(--font-regular);
}

.poly-body--light-muted {
  color: var(--color-text-on-dark-muted);
  font-weight: var(--font-light);
}

/* Intro hero: Light 300, 24px (layout Figma) */
.poly-body--lg {
  font-size: var(--text-xl);
  font-weight: var(--font-light);
}

/* Legendas, labels: 14px, Regular 400 */
.poly-body--sm {
  font-size: var(--text-sm);
  font-weight: var(--font-regular);
}

/* Destaque em negrito (ex.: "Princípios que guiam minha prática") */
.poly-body--semibold {
  font-weight: var(--font-semibold);
}

/* Botão primário (borda escura) */
.poly-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: var(--font-bold);
  line-height: var(--leading-relaxed);
  letter-spacing: -0.07px;
  text-decoration: none;
  border: 1px solid var(--color-text);
  background: var(--color-bg);
  color: var(--color-text);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.poly-btn:hover {
  transform: translate(2px, 2px);
  box-shadow: none;
}

.poly-btn--primary {
  box-shadow: var(--button-shadow) var(--button-shadow-color);
}

/* Botão secundário (borda accent) */
.poly-btn--secondary {
  border-color: var(--color-accent-soft);
  color: var(--color-accent-soft);
  box-shadow: var(--button-shadow) var(--button-shadow-color-alt);
}

.poly-btn--secondary:hover {
  box-shadow: none;
}

/* Botão em seção escura (layout: Medium 500, não Bold) */
.poly-btn--on-dark {
  border-color: var(--color-text-on-dark);
  background: transparent;
  color: var(--color-text-on-dark);
  box-shadow: var(--button-shadow-on-dark);
  font-weight: var(--font-medium);
}

.poly-btn--on-dark:hover {
  box-shadow: none;
}

/* Card de projeto (reutilizável em cases) */
.poly-project-card {
  display: grid;
  gap: var(--space-5);
  align-items: start;
  padding: var(--space-4) 0;
}

@media (min-width: 768px) {
  .poly-project-card {
    grid-template-columns: 265px 1fr;
  }
}

/* Card de projeto como link – hover: fundo #f5f5f5, título #000 */
a.poly-project-card {
  text-decoration: none;
  color: inherit;
  padding: var(--space-4) var(--space-5);
  margin-left: calc(-1 * var(--space-5));
  margin-right: calc(-1 * var(--space-5));
  border-radius: 4px;
  transition: background 0.2s ease, color 0.2s ease;
}

a.poly-project-card:hover {
  background: #f5f5f5;
}

a.poly-project-card:hover .poly-project-card__title {
  color: #000000;
}

/* Projetos Selecionados (home) – grid 2x2 com overlay hover */
.poly-project-grid {
  margin-top: 24px;
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .poly-project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.poly-project-tile {
  position: relative;
  display: block;
  height: 330px;
  overflow: hidden;
  text-decoration: none;
  background: #f5f5f5;
}

.poly-project-tile__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.7;
  transition: opacity 260ms ease, transform 480ms cubic-bezier(0.22, 1, 0.36, 1);
}

.poly-project-tile__image--placeholder {
  background: var(--color-placeholder);
}

.poly-project-tile__overlay {
  position: absolute;
  inset: 0;
  background: rgba(245, 245, 245, 0.9);
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 260ms ease, transform 320ms ease;
}

.poly-project-tile--feed .poly-project-tile__overlay {
  background: rgba(239, 189, 226, 0.9);
}

.poly-project-tile--hold .poly-project-tile__overlay {
  background: rgba(193, 107, 245, 0.88);
}

.poly-project-tile-stack {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 12px;
  height: 330px;
}

.poly-project-tile--split {
  height: auto;
  min-height: 0;
}

.poly-project-tile--split .poly-project-tile__overlay {
  padding: 20px;
}

.poly-project-tile:hover .poly-project-tile__overlay,
.poly-project-tile:focus-visible .poly-project-tile__overlay {
  opacity: 1;
  transform: translateY(0);
}

.poly-project-tile:hover .poly-project-tile__image,
.poly-project-tile:focus-visible .poly-project-tile__image {
  transform: scale(1.02);
}

.poly-project-tile__title {
  margin: 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 16px;
  line-height: 1;
  color: #000;
}

.poly-project-tile__tags {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: var(--font-light);
  font-size: var(--text-base);
  line-height: var(--leading-snug);
  color: rgba(0, 0, 0, 0.6);
}

.poly-project-tile__desc {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: var(--font-regular);
  font-size: var(--text-base);
  line-height: var(--leading-snug);
  color: #000;
}

.poly-project-card__thumb-wrap {
  width: 100%;
  max-width: 265px;
}

.poly-project-card__thumb {
  width: 100%;
  aspect-ratio: 265 / 181;
  max-width: 265px;
  background: var(--color-placeholder);
  object-fit: cover;
}

.poly-project-card__thumb--placeholder {
  display: block;
  width: 100%;
  aspect-ratio: 265 / 181;
  max-width: 265px;
  background: var(--color-placeholder);
}

.poly-project-card__title {
  font-family: var(--font-sans);
  font-size: var(--text-lg);
  font-weight: var(--font-medium);
  color: var(--color-project-title);
  line-height: var(--leading-snug);
}

.poly-project-card__tags {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: var(--font-light);
  color: var(--color-text-muted);
  line-height: var(--leading-snug);
}

.poly-project-card__desc {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: var(--font-light);
  color: var(--color-text);
  line-height: var(--leading-snug);
}

/* Item de trajetória / timeline – 24px entre os itens */
.poly-timeline-item {
  display: grid;
  gap: var(--space-8);
  padding-bottom: var(--space-5);
  border-bottom: 1px solid var(--color-border-dark);
  margin-bottom: 24px;
  font-size: var(--text-base);
}

.poly-timeline-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

@media (min-width: 768px) {
  .poly-timeline-item {
    grid-template-columns: 120px 1fr;
  }
}

.poly-timeline-item__period {
  font-family: var(--font-sans);
  font-weight: var(--font-light);
  color: var(--color-text-on-dark);
  line-height: var(--leading-snug);
}

.poly-timeline-item__title {
  font-family: var(--font-sans);
  font-weight: var(--font-medium);
  color: var(--color-accent-soft);
  line-height: var(--leading-snug);
}

.poly-timeline-item__company {
  font-family: var(--font-sans);
  font-weight: var(--font-light);
  color: var(--color-text-on-dark-muted);
  line-height: var(--leading-snug);
}

.poly-timeline-item__desc {
  font-family: var(--font-sans);
  font-weight: var(--font-light);
  color: var(--color-text-on-dark);
  line-height: var(--leading-snug);
}

/* Heading da seção Trajetória: título–subtítulo 0, subtítulo–botão 16px, botão–timeline 24px; botão não ocupa largura toda */
.poly-section-header {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 48px;
}

.poly-section-header .poly-heading-section {
  margin-bottom: 0;
}

.poly-section-header .poly-body {
  margin-bottom: 16px;
}

.poly-section-header .poly-btn {
  align-self: flex-start;
  margin-bottom: 0;
}

.poly-timeline {
  margin-top: 0;
}

/* Bloco título + descrição (duas colunas) – grupo com 24px entre as linhas */
.poly-block-row {
  display: grid;
  gap: var(--space-10);
  padding-bottom: var(--space-10);
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 24px;
}

.poly-block-row:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

@media (min-width: 768px) {
  .poly-block-row {
    grid-template-columns: 362px 1fr;
  }
}

.poly-block-row__title {
  font-family: var(--font-sans);
  font-weight: var(--font-bold);
  font-size: var(--text-base);
  color: var(--color-text);
}

.poly-block-row__text {
  font-family: var(--font-sans);
  font-weight: var(--font-regular);
  font-size: var(--text-base);
  color: var(--color-text);
  line-height: var(--leading-snug);
}

/* Trecho antes de ":" em peso SemiBold (Figma) */
.poly-body__lead {
  font-weight: var(--font-semibold);
}

/* Seções da homepage */
.poly-section {
  background: var(--color-bg);
  padding-top: var(--section-padding-y-sm);
  padding-bottom: var(--section-padding-y-sm);
}

.poly-section--alt {
  background: var(--color-bg-alt);
}

/* Entre pesquisa: título–subtítulo 4px, subtítulo–rows 24px */
.poly-section--alt .poly-section__inner > .poly-heading-section--accent {
  margin-bottom: 4px;
}

.poly-section--alt .poly-section__inner > .poly-body--muted {
  margin-bottom: 24px;
}

.poly-skill-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 768px) {
  .poly-skill-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }
}

@media (min-width: 1024px) {
  .poly-skill-cards {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.poly-skill-card {
  background: #fff;
  border: 0px solid var(--color-border);
  padding: 24px;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.poly-skill-card__title {
  margin: 0 0 12px;
  font-family: var(--font-sans);
  font-weight: var(--font-semibold);
  font-size: 16px;
  line-height: 1.3;
  color: var(--color-text);
  text-transform: lowercase;
}

.poly-skill-card__text {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: var(--font-regular);
  font-size: var(--text-base);
  line-height: var(--leading-snug);
  color: var(--color-text);
}

.poly-section--dark {
  background: var(--color-bg-dark);
  color: var(--color-text-on-dark);
}

.poly-section__inner {
  padding-top: var(--space-5);
  padding-bottom: var(--space-5);
}

/* Mesmo padrão de poly-block-row (362px 1fr, gap 32px) para colunas alinhadas entre seções */
.poly-section__inner--two-cols {
  display: grid;
  gap: var(--space-10);
  align-items: stretch;
}

@media (min-width: 768px) {
  .poly-section__inner--two-cols {
    grid-template-columns: 362px 1fr;
  }
}

/* Hero */
.poly-section--hero .poly-section__inner {
  display: grid;
  gap: var(--space-8);
  align-items: center;
  min-height: 400px;
}

@media (min-width: 768px) {
  .poly-section--hero .poly-section__inner {
    grid-template-columns: 1fr auto;
  }
}

/* Hero content: 8px entre logo/tagline/intro, 32px antes dos botões (Figma) */
.poly-hero__content {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 520px;
}

.poly-hero__content > .poly-hero__brand {
  margin-bottom: 8px;
}

.poly-hero__content > .poly-body--muted-light {
  margin-bottom: 8px;
}

.poly-hero__content > .poly-body--lg {
  margin-bottom: 32px;
}

.poly-hero__brand {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.poly-hero__star,
.poly-hero__star-icon {
  color: var(--color-accent-soft);
  font-size: 1.5rem;
  line-height: 1;
  flex-shrink: 0;
}

.poly-hero__star-icon {
  width: 41px;
  height: 36px;
  transform: rotate(0deg);
  transform-origin: 50% 50%;
  transition: transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.poly-section--hero .poly-hero__brand:hover .poly-hero__star-icon {
  transform: rotate(-18deg);
}

.poly-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.poly-hero__media {
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 768px) {
  .poly-hero__media {
    justify-content: flex-end;
  }
}

.poly-hero__img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: min(400px, calc(100vh - 120px));
  object-fit: contain;
}

.poly-hero__media-frame {
  position: relative;
  display: inline-block;
  line-height: 0;
}

.poly-hero__video {
  background: transparent;
}

.poly-hero__img--placeholder {
  background: var(--color-placeholder);
}

/* Sobre mim: mini bento (#f5f5f5 + preto, rosa, vermelho, azul — sem traçado nos blocos) */
.poly-footer__bento-wrap {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-self: stretch;
}

@media (min-width: 768px) {
  #sobre .poly-footer__bento-wrap {
    min-height: 100%;
  }
}

.poly-bento {
  --bento-gray: #f5f5f5;
  --bento-pink: #efbde2;
  --bento-red: #cb462e;
  --bento-blue: #97adc6;

  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  width: 100%;
  font-family: var(--font-sans);
}

@media (min-width: 768px) {
  #sobre .poly-bento {
    flex: 1 1 auto;
    min-height: 0;
    grid-template-rows: auto minmax(0, 1fr) minmax(0, 1fr) auto;
  }
}

.poly-bento__cell {
  box-sizing: border-box;
  border: none;
  border-radius: 0;
  padding: 12px;
  min-height: 104px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  text-align: left;
  color: #000000;
  background: #ffffff;
}

.poly-bento__cell--link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.poly-bento__cell--link:hover {
  transform: translate(2px, 2px);
  box-shadow: none;
}

.poly-bento__cell--link:focus-visible {
  outline: 2px solid var(--bento-blue);
  outline-offset: 2px;
}

.poly-bento__kicker {
  font-size: var(--text-xs);
  font-weight: var(--font-bold);
  line-height: var(--leading-snug);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.55);
  margin-bottom: 8px;
}

.poly-bento__cell--location .poly-bento__kicker {
  color: rgba(255, 255, 255, 0.65);
}

.poly-bento__cell--music {
  grid-column: 1;
  grid-row: 1;
  background: var(--bento-gray);
}

.poly-bento__cell--music .poly-bento__spotify {
  color: #000000;
  flex-shrink: 0;
}

.poly-bento__music-top {
  display: flex;
  align-items: center;
  margin-bottom: 6px;
}

.poly-bento__music-title {
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  line-height: var(--leading-snug);
  display: block;
}

.poly-bento__music-artist {
  font-size: var(--text-xs);
  color: rgba(0, 0, 0, 0.6);
  margin-top: 2px;
}

.poly-bento__cell--book {
  grid-column: 2;
  grid-row: 1;
  background: var(--bento-pink);
  min-height: 120px;
}

.poly-bento__cell--book .poly-bento__kicker {
  color: rgba(0, 0, 0, 0.5);
}

.poly-bento__book-cover {
  width: 100%;
  max-width: 72px;
  margin-bottom: 8px;
  background: #ffffff;
  line-height: 0;
}

.poly-bento__book-img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: top;
}

.poly-bento__book-placeholder {
  width: 56px;
  height: 80px;
  margin-bottom: 8px;
  background: rgba(255, 255, 255, 0.45);
  flex-shrink: 0;
}

.poly-bento__book-title {
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  line-height: var(--leading-snug);
  display: block;
}

.poly-bento__book-author {
  font-size: var(--text-xs);
  color: rgba(0, 0, 0, 0.65);
  margin-top: 2px;
}

.poly-bento__cell--location {
  grid-column: 1;
  grid-row: 2;
  background: #000000;
  color: #ffffff;
  min-height: 0;
}

.poly-bento__location-icon {
  display: flex;
  margin-bottom: 6px;
  color: var(--bento-pink);
}

.poly-bento__location-text {
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  line-height: var(--leading-relaxed);
}

.poly-bento__cell--article {
  grid-column: 2;
  grid-row: 2 / span 2;
  padding: 0;
  min-height: 200px;
  overflow: hidden;
  background: #000000;
  align-items: stretch;
}

@media (min-width: 768px) {
  #sobre .poly-bento__cell--article {
    min-height: 0;
  }
}

.poly-bento__article-img {
  display: block;
  width: 100%;
  flex: 1;
  min-height: 120px;
  object-fit: cover;
  object-position: center top;
}

.poly-bento__article-cap {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  background: var(--bento-red);
  color: #ffffff;
  flex-shrink: 0;
}

.poly-bento__article-title {
  font-size: var(--text-xs);
  font-weight: var(--font-bold);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.poly-bento__article-sub {
  font-size: var(--text-xs);
  font-weight: var(--font-regular);
  line-height: var(--leading-relaxed);
  opacity: 0.95;
}

.poly-bento__cell--lightroom {
  grid-column: 1;
  grid-row: 3;
  background: var(--bento-blue);
  color: #000000;
  min-height: 0;
}

.poly-bento__cell--forthcoming {
  grid-column: 1 / -1;
  grid-row: 4;
  background: var(--bento-gray);
  min-height: 0;
}

.poly-bento__forthcoming-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  width: 100%;
}

.poly-bento__forthcoming-title {
  font-size: var(--text-xs);
  font-weight: var(--font-medium);
  line-height: var(--leading-relaxed);
  margin: 0;
}

.poly-bento__cell--forthcoming .poly-bento__kicker {
  margin-bottom: 6px;
}

#sobre .poly-bento__cell--location,
#sobre .poly-bento__cell--lightroom {
  justify-content: center;
}

.poly-bento__cell--lightroom .poly-bento__kicker {
  color: rgba(0, 0, 0, 0.5);
}

.poly-bento__lightroom-label {
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  line-height: var(--leading-snug);
  margin-top: auto;
}

/* Declaração */
.poly-statement {
  font-family: var(--font-sans);
  font-size: var(--text-2xl);
  font-weight: var(--font-regular);
  line-height: var(--leading-normal);
  color: var(--color-text-on-dark);
  margin: 0;
}

/* Statement: palavras em DM Serif Display itálico e sublinhado (Figma) */
.poly-statement em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: var(--font-regular);
}

.poly-statement u {
  text-decoration: underline;
  text-decoration-skip-ink: none;
}

.poly-statement-keyword {
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  text-decoration-skip-ink: none;
  cursor: default;
  padding: 0;
}

.poly-statement-keyword--criatividade:hover,
.poly-statement-keyword--criatividade:focus-visible {
  color: #cb462e;
}

.poly-statement-keyword--curiosidade:hover,
.poly-statement-keyword--curiosidade:focus-visible {
  color: #efbde2;
}

.poly-statement-keyword--criticidade:hover,
.poly-statement-keyword--criticidade:focus-visible {
  color: #97adc6;
}

.poly-statement-hover-card {
  position: fixed;
  width: min(230px, 70vw);
  min-height: 180px;
  transform: translate(-50%, -100%);
  background-size: cover;
  background-position: center;
  z-index: 10020;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.poly-statement-hover-card[hidden] {
  display: none !important;
}

.poly-statement-hover-card__overlay {
  position: absolute;
  inset: 0;
  opacity: 0.63;
}

.poly-statement-hover-card__text {
  position: relative;
  margin: 0;
  text-align: center;
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.25;
  font-weight: var(--font-regular);
}

/* Tecnologias lead */
.poly-tech-lead {
  font-family: var(--font-sans);
  font-size: var(--text-2xl);
  font-weight: var(--font-regular);
  line-height: var(--leading-snug);
  color: var(--color-text);
  margin: 0 0 var(--space-4);
}

/* Tech-lead: "não existem isolados" em DM Serif itálico e cor #97adc6 (Figma) */
.poly-tech-lead em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: var(--font-regular);
  color: var(--color-project-title);
}

/* Subtítulo em destaque (ex.: "Princípios que guiam minha prática" - Bold 700, #cb462e) */
.poly-body--accent {
  color: var(--color-accent);
  font-weight: var(--font-bold);
}

/* Ancora do hero “Sobre mim”: desconto da topbar fixa quando existir */
body.has-topbar #sobre {
  scroll-margin-top: clamp(3.25rem, 10vw, 4.75rem);
}

body.no-topbar #sobre {
  scroll-margin-top: 1rem;
}

/* Footer (home: seção dentro da página) */
.poly-footer__bio {
  margin-top: var(--space-2);
  margin-bottom: var(--space-5);
  max-width: 520px;
}

.poly-footer__bio > p {
  margin: 0;
  font: inherit;
  color: inherit;
}

.poly-footer__bio > p + p {
  margin-top: var(--space-5);
}

/* Site footer global – conforme Figma 4004-814 */
.site-footer {
  background: var(--color-bg);
  padding-top: 40px;
  margin-bottom: 32px;
}

.site-footer__inner {
  display: grid;
  gap: 24px;
  padding-top: 24px;
  padding-bottom: 24px;
  font-size: var(--text-base);
  border-top: none;
}

@media (min-width: 768px) {
  .site-footer__inner {
    grid-template-columns: 1fr 1fr;
    gap: 160px;
    align-items: center;
  }
}

.site-footer__col--left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.site-footer__col--right {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-end;
  text-align: right;
}

.site-footer__name {
  font-family: var(--font-sans);
  font-weight: var(--font-regular);
  font-size: var(--text-base);
  line-height: var(--leading-snug);
  color: var(--color-text);
  margin: 0;
}

.site-footer__tagline {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-snug);
  color: var(--color-text-muted-light);
  margin: 0;
}

.site-footer__contact {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  justify-content: flex-end;
}

.site-footer__social {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  color: var(--color-text);
  text-decoration: none;
}

.site-footer__social:hover {
  opacity: 0.85;
}

.site-footer__social:focus-visible {
  outline: 2px solid var(--color-text);
  outline-offset: 2px;
}

.site-footer__icon {
  flex-shrink: 0;
  color: var(--color-text);
}

.site-footer__icon--linkedin {
  display: block;
}

.site-footer__email {
  font-family: var(--font-sans);
  font-weight: var(--font-regular);
  font-size: var(--text-base);
  line-height: var(--leading-snug);
  color: var(--color-text);
  text-decoration: none;
}

.site-footer__email:hover {
  text-decoration: underline;
}

.site-footer__credit {
  font-family: var(--font-sans);
  font-weight: var(--font-regular);
  font-size: var(--text-base);
  line-height: var(--leading-snug);
  color: var(--color-text-muted-light);
  margin: 0;
}

/* Overlay #contato (topbar, hero, etc.) */
.contact-overlay {
  position: fixed;
  inset: 0;
  z-index: 100003;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(24px, 5vw, 48px);
  box-sizing: border-box;
  background: rgba(0, 0, 0, 0.9);
  color: #fff;
  -webkit-font-smoothing: antialiased;
}

.contact-overlay[hidden] {
  display: none;
}

.contact-overlay__close {
  position: absolute;
  top: clamp(16px, 4vw, 32px);
  right: clamp(16px, 4vw, 32px);
  width: 48px;
  height: 48px;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: #fff;
  cursor: pointer;
  transition: opacity 0.2s ease, background 0.2s ease;
}

.contact-overlay__close:hover {
  opacity: 0.9;
  background: rgba(255, 255, 255, 0.08);
}

.contact-overlay__close:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.contact-overlay__close-icon {
  display: block;
}

.contact-overlay__inner {
  text-align: center;
  max-width: 32rem;
}

.contact-overlay__heading {
  font-family: var(--font-sans);
  font-size: 32px;
  font-weight: var(--font-regular);
  line-height: 1.2;
  margin: 0 0 1.5rem;
  color: #fff;
}

.contact-overlay__links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.contact-overlay__link {
  font-family: var(--font-sans);
  font-size: 32px;
  font-weight: var(--font-regular);
  line-height: 1.3;
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: opacity 0.2s ease, border-color 0.2s ease;
}

.contact-overlay__link:hover {
  opacity: 0.92;
  border-bottom-color: rgba(255, 255, 255, 0.45);
}

.contact-overlay__link:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
  border-radius: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .contact-overlay__close,
  .contact-overlay__link {
    transition: none;
  }
}
