/* ============================================================
   JOÃO ALBERTO — PÁGINA DE PROJETOS
   Revisão técnica mantendo o layout original.
   ============================================================ */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --ink: #0f0f0f;
  --paper: #f2f0eb;

  --bg: var(--ink);
  --fg: var(--paper);
  --muted: rgba(242, 240, 235, .5);
  --soft: rgba(242, 240, 235, .72);
  --line: rgba(242, 240, 235, .14);
  --chip: rgba(242, 240, 235, .07);
  --glass: rgba(15, 15, 15, .6);

  --font-sans: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "DM Mono", "JetBrains Mono", monospace;

  --radius: 10px;
  --pad: clamp(1.25rem, 4vw, 4rem);
  --container: 72rem;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
}

html {
  scroll-behavior: smooth;
}

html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.no-scroll {
  overflow: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: .03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px;
}

::selection {
  background: var(--fg);
  color: var(--bg);
}

.mono {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.dot {
  opacity: .35;
}

.skip-link {
  position: fixed;
  top: .75rem;
  left: .75rem;
  z-index: 100;
  padding: .75rem 1rem;
  border-radius: 8px;
  background: var(--fg);
  color: var(--bg);
  font-size: .82rem;
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-180%);
  transition: transform .2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}


/* ============ ESTADOS INICIAIS DAS ANIMAÇÕES ============
   A classe .js é aplicada no <head>, antes da primeira pintura.
   Assim, os elementos já nascem no estado inicial e não piscam
   antes de o GSAP assumir as animações. */
html.js:not(.reduce-motion):not(.motion-fallback) .site-nav:not(.is-visible) {
  opacity: 0;
  transform: translateY(-20px);
}

html.js:not(.reduce-motion):not(.motion-fallback) .hub-back-link:not(.is-visible) {
  opacity: 0;
  transform: translateY(12px);
}

html.js:not(.reduce-motion):not(.motion-fallback) .hub-label:not(.is-visible) {
  opacity: 0;
  transform: translateY(16px);
}

html.js:not(.reduce-motion):not(.motion-fallback) .hub-title:not(.is-visible) {
  opacity: 0;
  transform: translateY(40px);
}

html.js:not(.reduce-motion):not(.motion-fallback) .hub-desc:not(.is-visible) {
  opacity: 0;
  transform: translateY(20px);
}

html.js:not(.reduce-motion):not(.motion-fallback) .pcard:not(.is-visible) {
  opacity: 0;
  transform: translateY(44px);
}

html.js:not(.reduce-motion):not(.motion-fallback) .pcard:not(.is-visible) .pcard-preview {
  clip-path: inset(0 0 100% 0);
}

html.js:not(.reduce-motion):not(.motion-fallback) .pcard:not(.is-visible) .pcard-preview img {
  transform: scale(1.08);
}

html.js:not(.reduce-motion):not(.motion-fallback) .pcard:not(.is-visible) .pcard-body > * {
  opacity: 0;
  transform: translateY(14px);
}

html.js:not(.reduce-motion):not(.motion-fallback) .hub-back-section > *:not(.is-visible),
html.js:not(.reduce-motion):not(.motion-fallback) .hub-cta > *:not(.is-visible) {
  opacity: 0;
  transform: translateY(30px);
}

html.js:not(.reduce-motion):not(.motion-fallback) footer:not(.is-visible) {
  opacity: 0;
  transform: translateY(20px);
}

html.js:not(.reduce-motion):not(.motion-fallback) .site-nav:not(.is-visible),
html.js:not(.reduce-motion):not(.motion-fallback) .hub-back-link:not(.is-visible),
html.js:not(.reduce-motion):not(.motion-fallback) .hub-label:not(.is-visible),
html.js:not(.reduce-motion):not(.motion-fallback) .hub-title:not(.is-visible),
html.js:not(.reduce-motion):not(.motion-fallback) .hub-desc:not(.is-visible),
html.js:not(.reduce-motion):not(.motion-fallback) .pcard:not(.is-visible),
html.js:not(.reduce-motion):not(.motion-fallback) .pcard:not(.is-visible) .pcard-preview,
html.js:not(.reduce-motion):not(.motion-fallback) .pcard:not(.is-visible) .pcard-preview img,
html.js:not(.reduce-motion):not(.motion-fallback) .pcard:not(.is-visible) .pcard-body > *,
html.js:not(.reduce-motion):not(.motion-fallback) .hub-back-section > *:not(.is-visible),
html.js:not(.reduce-motion):not(.motion-fallback) .hub-cta > *:not(.is-visible),
html.js:not(.reduce-motion):not(.motion-fallback) footer:not(.is-visible) {
  will-change: opacity, transform;
}

/* ============ 3D STAGE ============ */
#stage {
  position: fixed;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

main,
.site-nav,
footer {
  position: relative;
  z-index: 3;
}

/* ============ HUD ============ */
.hud {
  position: fixed;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  transition: opacity .5s ease;
}

.hud.hud-hidden {
  opacity: 0;
}

.hud-corner {
  position: fixed;
  display: flex;
  flex-direction: column;
  gap: .3rem;
  color: var(--muted);
  font-size: .6rem;
}

.hud-bl {
  bottom: 1.4rem;
  left: var(--pad);
}

.hud-br {
  right: var(--pad);
  bottom: 1.4rem;
  text-align: right;
}

/* ============ NAVBAR ============ */
.site-nav {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 10;
  display: flex;
  width: 100%;
  max-width: 100%;
  margin-inline: auto;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  padding: 1.2rem var(--pad);
  border: 1px solid transparent;
  border-radius: 0;
  transition:
    max-width .55s var(--ease-out),
    top .55s var(--ease-out),
    padding .55s var(--ease-out),
    border-radius .55s var(--ease-out),
    background-color .45s ease,
    border-color .45s ease;
}

.site-nav.scrolled {
  top: 1rem;
  max-width: min(96%, 56rem);
  padding: .8rem .6rem .8rem 1.25rem;
  border-color: var(--line);
  border-radius: 14px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

/* telas um pouco acima do menu de celular: na cápsula rolada, itens mais juntos para caber tudo */
@media (min-width: 861px) and (max-width: 1000px) {
  .site-nav.scrolled .nav-links {
    gap: .4rem;
  }

  .site-nav.scrolled .nav-links > li > a {
    padding-inline: .75rem;
  }
}

.nav-logo {
  color: var(--fg);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -.02em;
  text-decoration: none;
  white-space: nowrap;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* menu suspenso de Projetos: escondido até o nav-projects.css (carregado sem bloquear)
   chegar; sem isto ele aparece aberto por um instante ao abrir a página */
.proj-menu {
  display: none;
}

.nav-links {
  display: flex;
  gap: .65rem;
  list-style: none;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .6rem .9rem;
  border-radius: var(--radius);
  background: var(--chip);
  color: var(--soft);
  font-size: .9rem;
  font-weight: 400;
  text-decoration: none;
  transition: color .25s ease, background-color .25s ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  background: var(--line);
  color: var(--fg);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .55rem 1.05rem;
  border: 1px solid var(--fg);
  border-radius: var(--radius);
  background: var(--fg);
  color: var(--bg);
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .3s ease, color .3s ease;
}

.nav-cta i {
  display: inline-flex;
  align-items: center;
  font-size: .7rem;
  line-height: 0;
  transition: transform .3s ease;
}

.nav-cta:hover {
  background: var(--bg);
  color: var(--fg);
}

.nav-cta:hover i {
  transform: translateX(2px);
}

.nav-mobile-toggle {
  position: relative;
  z-index: 12;
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: .5rem;
  border: 0;
  background: none;
  color: var(--fg);
  cursor: pointer;
}

.nav-mobile-toggle span {
  width: 24px;
  height: 1.5px;
  background: currentColor;
  transition: transform .3s ease;
}

.nav-mobile-toggle.open span:nth-child(1) {
  transform: translateY(3.75px) rotate(45deg);
}

.nav-mobile-toggle.open span:nth-child(2) {
  transform: translateY(-3.75px) rotate(-45deg);
}

/* ============ BOTÃO ============ */
.btn {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  padding: 4px 4px 4px 1.4rem;
  border: 1px solid var(--fg);
  border-radius: 12px;
  background: var(--fg);
  text-decoration: none;
  transition: background-color .3s ease, border-color .3s ease;
}

.btn span {
  color: var(--bg);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color .3s ease;
}

.btn i {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 8px;
  background: var(--bg);
  color: var(--fg);
  font-size: .9rem;
  transition: background-color .3s ease, color .3s ease;
}

.btn:hover {
  background: var(--bg);
}

.btn:hover span {
  color: var(--fg);
}

.btn:hover i {
  background: var(--fg);
  color: var(--bg);
}

/* ============ BOTÃO DE RETORNO (sweep da Home) ============ */
.btn-sweep {
  position: relative;
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  overflow: hidden;
  padding: 4px 62px 4px 1.4rem;
  border: 1px solid var(--fg);
  border-radius: 12px;
  background: var(--fg);
  text-decoration: none;
  cursor: pointer;
}

.btn-sweep > span:first-child {
  position: relative;
  z-index: 1;
  color: var(--bg);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.btn-sweep .sweep-ic {
  position: absolute;
  top: 50%;
  right: 5px;
  z-index: 2;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 8px;
  background: var(--bg);
  color: var(--fg);
  transform: translateY(-50%);
  transition: width .4s var(--ease-out);
}

.btn-sweep .sweep-ic i {
  font-size: .9rem;
  transition: transform .35s ease;
}

@media (hover: hover) and (pointer: fine) {
  .btn-sweep:hover .sweep-ic {
    width: calc(100% - 10px);
  }

  .btn-sweep-back:hover .sweep-ic i {
    transform: translateX(-3px);
  }
}

.btn-sweep:active .sweep-ic {
  transform: translateY(-50%) scale(.96);
}

/* ============ CONTAINER ============ */
.hub-head,
.hub-grid,
.hub-back-section,
.hub-cta {
  padding-inline: max(var(--pad), calc((100vw - var(--container)) / 2));
}

/* ============ CABEÇALHO ============ */
.hub-head {
  display: flex;
  min-height: 56svh;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: 9rem;
  padding-bottom: 3.5rem;
}

.hub-back-link {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: .6rem;
  margin-bottom: 1.2rem;
  color: var(--muted);
  text-decoration: none;
  transition: color .25s ease;
}

.hub-back-link i {
  font-size: .72rem;
  transition: transform .3s var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .hub-back-link:hover {
    color: var(--fg);
  }

  .hub-back-link:hover i {
    transform: translateX(-3px);
  }
}

.hub-label {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.6rem;
  color: var(--muted);
}

.hub-label span {
  width: 42px;
  height: 1px;
  background: var(--line);
}

.hub-title {
  font-size: clamp(3.4rem, 10vw, 8.5rem);
  font-weight: 600;
  letter-spacing: -.035em;
  line-height: .98;
}

.hub-desc {
  max-width: 52ch;
  margin-top: 1.4rem;
  color: var(--soft);
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  line-height: 1.55;
}

/* ============ GRID DE CARDS ============ */
.hub-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  padding-bottom: 5rem;
}

.pcard {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--chip);
  color: var(--fg);
  text-decoration: none;
  transition:
    transform .4s var(--ease-out),
    box-shadow .4s var(--ease-out),
    border-color .3s ease;
}

.pcard-preview {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #000;
}

.pcard-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease-out);
}

.pcard-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: .7rem;
  padding: 1.8rem;
}

.pcard-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1;
}

.pcard-desc {
  color: var(--soft);
  font-size: .96rem;
  line-height: 1.6;
}

.pcard-link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-top: auto;
  padding-top: 1rem;
  color: var(--fg);
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.pcard-link i {
  transition: transform .35s var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .pcard:hover {
    border-color: var(--muted);
    box-shadow: 12px 12px 0 rgba(0, 0, 0, .35);
    transform: translate(-4px, -4px);
  }

  .pcard:hover .pcard-link i {
    transform: translateX(4px);
  }
}

/* ============ RETORNO PARA A PÁGINA PAI ============ */
.hub-back-section {
  display: flex;
  justify-content: center;
  padding-top: 1rem;
  padding-bottom: 2rem;
}

/* ============ CTA ============ */
.hub-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  padding-block: 6rem 8rem;
  text-align: center;
}

.hub-cta h2 {
  font-size: clamp(2.2rem, 6vw, 4.5rem);
  font-weight: 600;
  letter-spacing: -.03em;
  line-height: 1;
}

/* ============ FOOTER ============ */
footer {
  z-index: 5;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-block: 2.8rem;
  padding-inline: max(var(--pad), calc((100vw - var(--container)) / 2));
  background: var(--ink);
  color: rgba(242, 240, 235, .85);
}

.footer-info p:first-child {
  font-size: .95rem;
  font-weight: 500;
}

.footer-info .mono {
  margin-top: .4rem;
  color: rgba(242, 240, 235, .4);
}

.to-top {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(242, 240, 235, .2);
  border-radius: var(--radius);
  color: rgba(242, 240, 235, .85);
  text-decoration: none;
  transition: background-color .3s ease, color .3s ease, transform .3s ease;
}

.to-top:hover {
  background: var(--paper);
  color: var(--ink);
  transform: translateY(-3px);
}

/* ============ RESPONSIVIDADE ============ */
@media (max-width: 860px) {
  .nav-mobile-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    inset: 0;
    z-index: 11;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.6rem;
    background: var(--bg);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .35s ease, visibility .35s ease;
  }

  .nav-menu.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav-links {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .nav-links a {
    padding: .7rem 1.3rem;
    font-size: 1.05rem;
  }

  .nav-cta {
    padding: .8rem 1.5rem;
    font-size: .9rem;
  }
}

@media (max-width: 820px) {
  .hub-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .hud-bl,
  .hud-br {
    display: none;
  }
}

@media (max-width: 560px) {
  .site-nav {
    padding-top: 1rem;
    padding-bottom: 1rem;
  }

  .site-nav.scrolled {
    max-width: calc(100% - 1.25rem);
    padding-left: 1rem;
  }

  .nav-logo {
    font-size: 1.2rem;
  }

  .hub-head {
    min-height: 0;
    justify-content: flex-start;
    padding-top: 7.25rem;
    padding-bottom: 1.75rem;
  }

  .hub-back-link {
    margin-bottom: .85rem;
  }

  .hub-label {
    margin-bottom: .9rem;
  }

  .hub-title {
    font-size: clamp(2.9rem, 13vw, 3.4rem);
  }

  .hub-desc {
    margin-top: .95rem;
    font-size: .96rem;
    line-height: 1.5;
  }

  .hub-grid {
    gap: 1.15rem;
  }

  .pcard-body {
    padding: 1.4rem;
  }

  .hub-back-section {
    padding-top: .5rem;
    padding-bottom: 1.25rem;
  }

  .hub-cta {
    padding-block: 5rem 6.5rem;
  }

  footer {
    align-items: flex-end;
    padding-block: 2.25rem;
  }

  .footer-info p:first-child {
    max-width: 22ch;
    line-height: 1.45;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* ============ ACESSIBILIDADE MOBILE: área de toque e leitura ============ */
.nav-mobile-toggle { min-width: 44px; min-height: 44px; align-items: center; justify-content: center; }
.nav-logo,
.hub-back-link,
.case-back-link { position: relative; }
.nav-logo::after,
.hub-back-link::after,
.case-back-link::after { content: ""; position: absolute; inset: -12px -8px; }

@media (max-width: 760px) {
  .mono { font-size: .72rem; }
}

/* ============ SELO "EM CONSTRUÇÃO" ============ */
.build-badge {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  width: fit-content;
  padding: .45rem .75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--chip);
  color: var(--soft);
  font-size: .64rem;
  line-height: 1;
  white-space: nowrap;
}

.build-badge i {
  position: relative;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #e8b04a;
}

.build-badge i::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1px solid #e8b04a;
  opacity: 0;
  animation: build-pulse 2s ease-out infinite;
}

@keyframes build-pulse {
  0% { transform: scale(.5); opacity: .8; }
  100% { transform: scale(1.8); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .build-badge i::after { animation: none; }
}


.pcard-body .build-badge {
  margin: -.2rem 0 .8rem;
}


/* ============ GRID COMPACTO (página Projetos) ============
   Três cards por fileira no desktop (3 + 2), com espaço para título e texto;
   as imagens (720px) ficam nítidas também em telas retina. */
.hub-grid--compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.hub-grid--compact .pcard {
  border-radius: 14px;
}

.hub-grid--compact .pcard-preview {
  aspect-ratio: 4 / 3;
}

.hub-grid--compact .pcard-body {
  gap: .55rem;
  padding: 1.25rem 1.25rem 1.35rem;
}

.hub-grid--compact .pcard-title {
  font-size: clamp(1.25rem, 1.55vw, 1.5rem);
  letter-spacing: -.025em;
}

.hub-grid--compact .pcard-desc {
  font-size: .88rem;
  line-height: 1.5;
}

.hub-grid--compact .pcard-link {
  padding-top: .6rem;
}

.hub-grid--compact .pcard-body .build-badge {
  margin: 0;
}

@media (hover: hover) and (pointer: fine) {
  .hub-grid--compact .pcard:hover {
    box-shadow: 8px 8px 0 rgba(0, 0, 0, .35);
  }
}

@media (max-width: 1100px) {
  .hub-grid--compact {
    gap: 1rem;
  }

  .hub-grid--compact .pcard-body {
    padding: 1.1rem 1.1rem 1.2rem;
  }
}

@media (max-width: 900px) {
  .hub-grid--compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hub-grid--compact .pcard-preview {
    aspect-ratio: 16 / 10;
  }
}

@media (max-width: 560px) {
  .hub-grid--compact {
    grid-template-columns: 1fr;
  }
}

/* Máscaras do SplitText: folga para "j", "g" e curvas não serem cortadas na subida.
   A margem negativa devolve o espaço, então o layout não muda. */
.split-word-mask {
  padding: .06em .12em .22em;
  margin: -.06em -.12em -.22em;
}

/* ============ MENU MOBILE ABERTO DEPOIS DE ROLAR ============
   A barra rolada usa backdrop-filter, que prende elementos "fixed" dentro
   dela: o menu de tela cheia abria espremido dentro da barra. Enquanto o
   menu está aberto (body.no-scroll), a barra fica sem o desfoque. */
@media (max-width: 860px) {
  body.no-scroll .site-nav {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

/* ============ ESCALA DE TEXTO: parágrafos maiores (páginas internas) ============ */
:root {
  /* escala de texto corrido do site (cresce com a largura da tela) */
  --fs-body: clamp(1.0625rem, .95rem + .45vw, 1.1875rem);
  --fs-lead: clamp(1.15rem, 1rem + .6vw, 1.375rem);
  --fs-small: clamp(.95rem, .9rem + .2vw, 1.03rem);
}

.hub-desc {
  font-size: var(--fs-lead);
  line-height: 1.55;
}

.pcard-desc {
  font-size: var(--fs-small);
  line-height: 1.55;
}

.hub-grid--compact .pcard-desc {
  font-size: var(--fs-small);
}
