/* Hierarquia de leitura e alinhamento dos controles. */
#projetos .project-body h3 {
  font-size: clamp(1.375rem, 2.1vw, 1.875rem);
  font-weight: 750;
  line-height: 1.06;
  letter-spacing: -0.045em;
  overflow-wrap: anywhere;
}
#projetos .project-body .project-category {
  font-size: 0.8125rem;
}
#projetos .visit {
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.15;
}
#projetos .visit svg,
#processo .jr-actions svg {
  width: 16px;
  height: 16px;
  flex: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.header .nav > .btn svg,
.hero-v10 .actions .btn svg,
#contato #send svg {
  stroke-linecap: round;
  stroke-linejoin: round;
}
#servicos .service-icon svg {
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.hero-v10 .visibility-business small,
#contato .contact-offer > span:first-child,
#contato .contact-offer small,
#contato .conversation-note,
#sobre .location-badge,
#processo .jr-tab-label,
#processo .timeline-tab .jr-node {
  font-size: 0.8125rem;
}
#contato .conversation-note {
  line-height: 1.4;
}
.hero-v10 .actions .learn-more svg path {
  stroke-width: 1.8;
}
@media (prefers-reduced-motion: no-preference) {
  .hero-v10 .actions .learn-more svg path {
    animation: invite-scroll 1.42s cubic-bezier(0.36, 0, 0.24, 1) 3;
  }
  .hero-v10 .actions .learn-more:is(:hover, :focus-visible) svg path {
    animation: invite-scroll-interaction 650ms ease 1;
  }
}
@keyframes invite-scroll {
  0%,
  100% {
    translate: 0 0;
  }
  38% {
    translate: 0 3px;
  }
  66% {
    translate: 0 -1px;
  }
}
@keyframes invite-scroll-interaction {
  50% {
    translate: 0 3px;
  }
}

@media (max-width: 440px) {
  #projetos .project-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    justify-items: start;
    align-content: start;
    gap: 6px;
    min-height: 120px;
  }
  #projetos .visit {
    min-height: 32px;
  }
}

@media (max-width: 760px) {
  #processo .compact-journey .process-heading {
    gap: 5px;
    margin-bottom: 12px;
  }
  #processo .compact-journey .process-heading h2 {
    font-size: clamp(1.65rem, 6.4vw, 2.2rem);
    max-width: 19ch;
    margin-inline: auto;
  }
  #processo .compact-journey .jr-break {
    display: none;
  }
  #processo .compact-journey .process-heading p {
    font-size: 0.875rem;
    line-height: 1.4;
  }
  #processo .compact-journey .jr-layout {
    gap: 9px;
  }
  #processo .compact-journey .timeline-tabs {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 4px;
  }
  #processo .compact-journey .jr-line {
    display: none;
  }
  #processo .compact-journey .timeline-tab {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    align-content: center;
    background: transparent;
    border-radius: 10px;
    min-width: 0;
    min-height: 44px;
  }
  #processo .compact-journey .timeline-tab .jr-node {
    width: 33px;
    height: 33px;
    font-size: 0.8125rem;
    font-variant-numeric: tabular-nums;
  }
  #processo .compact-journey .jr-tab-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  #processo .compact-journey .process-stage {
    grid-template-rows: auto;
  }
  #processo .compact-journey .jr-content {
    min-height: 276px;
    padding: 15px clamp(14px, 4vw, 22px);
    gap: 8px;
  }
  #processo .compact-journey .jr-text h3 {
    font-size: clamp(1.45rem, 6vw, 1.9rem);
    line-height: 1.07;
  }
  #processo .compact-journey .jr-text p {
    font-size: 0.9375rem;
    line-height: 1.42;
  }
  #processo .compact-journey .jr-art {
    display: none;
  }
  #processo .compact-journey .jr-bottom {
    margin-top: 9px;
  }
}
@media (max-width: 760px) and (min-height: 820px) {
  #processo .compact-journey .process-stage {
    grid-template-rows: auto 225px;
  }
  #processo .compact-journey .jr-art {
    display: grid;
    min-height: 0;
  }
}

/* Realce de interação sem deslocar a superfície. */
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  #servicos .service,
  #projetos .project-window,
  #projetos .visit,
  #processo .jr-actions > :is(button, a),
  #contato #send {
    transition:
      background-color 240ms ease,
      border-color 240ms ease,
      box-shadow 340ms ease;
  }
  #projetos .project.is-active:has(.visit:hover) .project-window {
    box-shadow: 0 7px 18px #142f1c2b;
  }
}
@media (max-width: 760px) and (max-height: 620px) {
  #processo .compact-journey .jr-bottom {
    display: none;
  }
}
@media (max-width: 760px) and (min-height: 820px) {
  #processo .compact-journey .jr-art .jr-scene {
    scale: 0.76;
  }
}

@media (max-width: 350px) {
  #processo .compact-journey .jr-content {
    min-height: 320px;
  }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .showcase-link > span {
    transition:
      translate 280ms cubic-bezier(0.2, 0.8, 0.2, 1),
      color 180ms ease;
  }
  .showcase-link > span {
    display: inline-block;
  }
  .showcase-link:hover > span {
    translate: 2px -2px;
  }
}

/* Mantém o fim do documento no rodapé, inclusive durante as entradas. */
html {
  background-color: var(--dark);
  overscroll-behavior-y: none;
}
.footer {
  overflow: clip;
}

/* A mesma origem permanece antes e depois de cada entrada. */
:is(#inicio, #projetos, #processo, #servicos, #sobre, #contato, .footer) [data-entry-motion] {
  translate: 0px 0px;
}

.hero-v10 .actions :is(.btn.primary, .btn.outline):hover,
#servicos .service:hover,
#projetos .visit:hover,
#processo .jr-actions > :is(button, a):hover,
#contato #send:hover,
.footer .btn:hover {
  transform: none;
}

/* A escala é visual, com a mesma composição gráfica nos dois estados do card. */
#projetos .project {
  transform: translateZ(0) scale(0.95);
  transform-origin: center;
  transition:
    transform 540ms cubic-bezier(0.24, 0.65, 0.28, 1),
    opacity 420ms ease,
    border-color 420ms ease,
    box-shadow 420ms ease;
}
#projetos .project.is-highlighted {
  transform: translateZ(0) scale(1);
}
#processo .timeline-tab .jr-node {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
#processo .timeline-tab .jr-num {
  display: block;
  font-weight: inherit;
}
@media (prefers-reduced-motion: reduce) {
  #projetos .project,
  #projetos .project.is-highlighted {
    transform: none;
  }
}
