/* ---------- Cores e medidas (tirados do projeto no Framer) ---------- */
:root {
  --black: #0a0a0a;
  --ink: #171717;
  --gray-800: #262626;
  --gray-600: #525252;
  --gray-500: #737373;
  --gray-300: #d4d4d4;
  --gray-200: #e5e5e5;
  --off-white: #f5f5f5;
  --light: #fafafa;
  --white: #ffffff;

  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1440px;
  --section: clamp(80px, 10vw, 140px);
  --ease: cubic-bezier(0.77, 0, 0.175, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

/* Ao pular para uma seção (#sobre, #servicos), o título não fica escondido atrás do menu fixo */
[id] {
  scroll-margin-top: 88px;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
p,
ul,
dl,
dd,
blockquote {
  margin: 0;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.dark {
  background: var(--black);
  color: var(--off-white);
}

/* ---------- Tipografia ---------- */
.h1 {
  font-size: clamp(48px, 9vw, 128px);
  font-weight: 400;
  letter-spacing: -0.05em;
  line-height: 1;
}

.h2 {
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1;
}

.lead {
  font-size: clamp(18px, 1.6vw, 20px);
  color: var(--gray-500);
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 15px;
  white-space: nowrap;
  transition: background 0.3s, color 0.3s;
}

.btn .arrow {
  width: 14px;
  height: 14px;
  transition: transform 0.4s var(--ease);
}

.btn:hover .arrow {
  transform: rotate(45deg);
}

.btn-dark {
  background: var(--off-white);
  color: var(--black);
}

.btn-dark:hover {
  background: var(--white);
}

.btn-light {
  background: var(--black);
  color: var(--off-white);
}

.btn-light:hover {
  background: var(--gray-800);
}

/* ---------- Menu ---------- */
#site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--black);
  color: var(--off-white);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo img {
  height: 18px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

/* Efeito do Framer: o texto sobe e uma cópia entra por baixo */
.nav-link {
  display: inline-block;
  overflow: hidden;
  height: 1.5em;
  font-size: 15px;
}

.nav-link span {
  display: inline-block;
  position: relative;
  transition: transform 0.45s var(--ease);
}

.nav-link span::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 100%;
}

.nav-link:hover span {
  transform: translateY(-100%);
}

.nav-link sup {
  font-size: 0.65em;
}

.menu-toggle {
  display: none;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  position: relative;
}

.menu-toggle span {
  position: absolute;
  left: 4px;
  right: 4px;
  height: 1.5px;
  background: var(--light);
  transition: transform 0.35s var(--ease), top 0.35s var(--ease);
}

.menu-toggle span:first-child {
  top: 12px;
}

.menu-toggle span:last-child {
  top: 19px;
}

@media (max-width: 809px) {
  .menu-toggle {
    display: block;
  }

  #site-header .nav-links {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding: 8px var(--gutter) 32px;
    background: var(--black);
    clip-path: inset(0 0 100% 0);
    transition: clip-path 0.5s var(--ease);
  }

  #site-header.is-open .nav-links {
    clip-path: inset(0 0 0 0);
  }

  #site-header .nav-link {
    font-size: 28px;
    letter-spacing: -0.03em;
  }

  #site-header.is-open .menu-toggle span:first-child {
    top: 15px;
    transform: rotate(45deg);
  }

  #site-header.is-open .menu-toggle span:last-child {
    top: 15px;
    transform: rotate(-45deg);
  }
}

/* ---------- Troca de idioma (bandeiras) ---------- */
.nav-end {
  display: flex;
  align-items: center;
  gap: 28px;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 2px;
}

.lang-btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 32px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: none;
  cursor: pointer;
  opacity: 0.45;
  transition: opacity 0.2s;
}

.lang-btn svg {
  display: block;
  width: 20px;
  height: 14px;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.lang-btn:hover {
  opacity: 0.85;
}

.lang-btn[aria-pressed="true"] {
  opacity: 1;
}

/* risquinho embaixo da bandeira ativa */
.lang-btn[aria-pressed="true"]::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 1px;
  height: 2px;
  border-radius: 1px;
  background: var(--off-white);
}

.lang-btn:focus-visible {
  outline-offset: 0;
}

@media (max-width: 809px) {
  .nav-end {
    gap: 12px;
  }
}

/* ---------- Hero ---------- */
.hero {
  padding: clamp(64px, 10vw, 140px) 0 48px;
  overflow: hidden;
}

.hero-title {
  max-width: 22ch;
  font-size: clamp(30px, 4.2vw, 60px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--white);
}

/* Digitação só visual: o texto "fantasma" reserva o espaço final e o texto digitado fica por cima */
.tw {
  display: grid;
}

.tw-ghost,
.tw-live {
  grid-area: 1 / 1;
}

.tw-ghost {
  visibility: hidden;
}

.tw-live::after {
  content: "|";
  margin-left: 2px;
  animation: blink 1s steps(1) infinite;
}

.tw-live.is-done::after {
  animation: blink 1s steps(1) 3 forwards;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.hero-carousel {
  margin: clamp(48px, 7vw, 96px) 0;
  mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
}

/* Carrossel com efeito de lente: mais largo que a tela, como no Framer */
.hero-carousel.is-bulge {
  position: relative;
  width: 113%;
  margin-left: -6.5%;
  height: 301px;
  overflow: visible;
  mask-image: none;
  touch-action: pan-y;
}

.hero-carousel.is-bulge canvas {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: block;
}

@media (max-width: 1439px) {
  .hero-carousel.is-bulge {
    width: 120%;
    margin-left: -10%;
  }
}

@media (max-width: 809px) {
  .hero-carousel.is-bulge {
    height: 175px;
  }
}

.hero-card {
  flex: 0 0 auto;
  width: clamp(200px, 26vw, 380px);
  aspect-ratio: 8 / 7;
  overflow: hidden;
}

.hero-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--gray-800);
}

.hero-bottom p {
  max-width: 52ch;
  color: #a1a1a1;
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 16px 24px;
}

.text-link {
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  white-space: nowrap;
}

/* ---------- Letreiro infinito (carrossel e logos) ---------- */
.marquee {
  overflow: hidden;
}

.marquee-track {
  display: flex;
  gap: var(--mq-gap, 8px);
  width: max-content;
  animation: marquee 50s linear infinite;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

@keyframes marquee {
  to {
    transform: translateX(calc(-50% - var(--mq-gap, 8px) / 2));
  }
}

/* ---------- Faixa de marcas ---------- */
.eyebrow {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 24px;
}

.brands {
  padding: clamp(48px, 6vw, 80px) 0;
  border-bottom: 1px solid var(--gray-200);
}

.brands .clients {
  margin-bottom: 0;
}

.marquee-copy {
  display: contents;
}

.section-foot {
  margin-top: 56px;
  display: flex;
  justify-content: center;
}

/* ---------- About ---------- */
.about {
  padding: var(--section) 0;
}

/* Título, abertura e bio ficam na coluna ao lado da foto */
.about-intro {
  display: grid;
  gap: 24px;
}

.about-intro .h2 {
  color: var(--black);
  max-width: 14ch;
}

.about-intro .lead {
  margin: 0;
}

.clients {
  --mq-gap: clamp(48px, 6vw, 96px);
  margin-bottom: 64px;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

/* Letreiro de logos controlado por js/main.js (dragMarquee): sem animação CSS, arrastável */
.clients.is-js {
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}

.clients.is-js .marquee-track {
  animation: none;
  will-change: transform;
}

.clients.is-js.is-dragging {
  cursor: grabbing;
}

.clients.is-js img {
  -webkit-user-drag: none;
  pointer-events: none;
}

.client {
  flex: 0 0 auto;
  height: 88px;
  display: grid;
  place-items: center;
  padding: 0;
}

.client img {
  max-width: none;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.75;
  transition: filter 0.3s, opacity 0.3s;
}

.client:hover img {
  filter: none;
  opacity: 1;
}

.about-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 5vw, 80px);
}

/* No desktop a foto acompanha a altura da coluna de texto; no celular volta a 4:5 */
.profile {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  background: var(--off-white);
}

.profile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 25%;
}

.about-text {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 48px;
}

/* Números e ferramentas ficam juntos, alinhados ao pé da foto */
.about-facts {
  display: grid;
  gap: 40px;
}

.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.stat-text {
  font-size: clamp(28px, 3vw, 40px);
  letter-spacing: -0.03em;
}


.exp-list,
.tag-list,
.plain-list {
  list-style: none;
  padding: 0;
}

.exp-list li {
  display: grid;
  grid-template-columns: 9em 1fr;
  gap: 4px 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-200);
}

.exp-period {
  color: var(--gray-500);
  grid-row: span 3;
}

.exp-role {
  color: var(--black);
}

.exp-company {
  color: var(--gray-600);
}

.exp-summary {
  grid-column: 2;
  font-size: 15px;
  color: var(--gray-600);
}

.exp-badge {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--black);
  color: var(--off-white);
  font-size: 12px;
  vertical-align: 1px;
}

.exp-list li.is-current .exp-role {
  font-weight: 500;
}

.exp-list li:not(.is-current):nth-child(n + 4) .exp-summary {
  font-size: 14px;
}

.edu-list {
  font-size: 15px;
  gap: 8px;
}

.eyebrow-spaced {
  margin-top: 40px;
}

/* ---------- CTA no fim de Serviços ---------- */
.services-cta {
  margin-top: var(--section);
  padding: clamp(32px, 5vw, 64px);
  background: var(--black);
  color: var(--off-white);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
}

.services-cta h3 {
  font-size: clamp(28px, 3.2vw, 44px);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.1;
  max-width: 18ch;
  margin-bottom: 12px;
}

.services-cta p {
  color: #a1a1a1;
  max-width: 46ch;
}

/* Na home, o card de contato fica numa seção própria, entre Trabalhos e Sobre */
.home-cta {
  padding-top: var(--section);
}

.home-cta .services-cta {
  margin-top: 0;
}

.services-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn-outline-light {
  border: 1px solid var(--off-white);
  color: var(--off-white);
}

.btn-outline-light:hover {
  background: var(--off-white);
  color: var(--black);
}

.case-highlight {
  display: inline-block;
  margin-top: 20px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--black);
  color: var(--off-white) !important;
  font-size: 16px !important;
  font-weight: 500;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-list li {
  padding: 6px 14px;
  border: 1px solid var(--gray-300);
  border-radius: 999px;
  font-size: 15px;
}

.plain-list {
  display: grid;
  gap: 12px;
  color: var(--ink);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--gray-200);
}

.stat-number {
  font-size: clamp(56px, 7vw, 96px);
  letter-spacing: -0.05em;
  line-height: 1;
  color: var(--black);
}

.stat-label {
  font-size: 16px;
  line-height: 1.4;
  color: var(--ink);
  max-width: 22ch;
}

.about-tools .eyebrow {
  margin-bottom: 16px;
}

/* ---------- Projetos ---------- */
.work {
  padding: var(--section) 0;
}

.section-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: end;
  margin-bottom: 56px;
}

.section-head p {
  color: var(--gray-500);
  font-size: 18px;
  max-width: 40ch;
}

.dark .section-head p {
  color: #a1a1a1;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 56px 24px;
}

.project-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.project-image {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--gray-800);
}

/* Selo de projeto pessoal (card e topo do case) */
.badge-personal {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
  padding: 4px 10px;
  border: 1px solid #7ec8a4;
  border-radius: 999px;
  background: rgba(7, 8, 10, 0.85);
  color: #7ec8a4;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.badge-inline {
  position: static;
  display: inline-block;
  margin-right: 10px;
  vertical-align: 1px;
  background: var(--black);
}

.case-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}

.project-card:hover .project-image img {
  transform: scale(1.05);
}

.project-info {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-top: 16px;
}

.project-info h3 {
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 400;
  letter-spacing: -0.04em;
}

.project-info span {
  color: var(--gray-500);
  font-size: 15px;
}

/* ---------- Serviços e processo ---------- */
.services {
  padding: var(--section) 0;
}

.services .h2 {
  color: var(--black);
}

.services-grid {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.service-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: clamp(24px, 3vw, 40px);
  background: var(--light);
  border: 1px solid var(--gray-200);
}

.service-index {
  font-size: 14px;
  color: var(--gray-500);
  font-variant-numeric: tabular-nums;
}

.service-card h3,
.process-step h3 {
  font-size: clamp(26px, 2.6vw, 36px);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1.1;
  color: var(--black);
}

.service-card p,
.process-step p {
  color: var(--gray-600);
}

.service-deliverables {
  padding-left: 1.1em;
  color: var(--ink);
  display: grid;
  gap: 4px;
}

.process {
  margin-top: var(--section);
}

.process .h2 {
  margin-bottom: 48px;
}

.process-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.process-step {
  display: grid;
  align-content: start;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--black);
}

/* ---------- CTA ---------- */
#cta {
  background: var(--light);
  padding: var(--section) 0;
}

.cta-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: end;
}

.cta-inner .h2 {
  color: var(--black);
  max-width: 11ch;
}

.cta-text p {
  color: var(--gray-600);
  font-size: 18px;
  margin-bottom: 28px;
  max-width: 44ch;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.btn-outline {
  border: 1px solid var(--black);
  color: var(--black);
}

.btn-outline:hover {
  background: var(--black);
  color: var(--off-white);
}

/* Lista de links de contato (CTA e rodapé) */
.contact-links {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
}

.contact-links-dark {
  color: var(--black);
}

.footer-contact {
  margin-top: 32px;
}

/* ---------- Rodapé ---------- */
#site-footer {
  background: var(--black);
  color: var(--off-white);
  padding: 64px 0 32px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-logo {
  width: 100%;
  margin: clamp(48px, 8vw, 120px) 0 24px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--gray-800);
  font-size: 14px;
  color: #a1a1a1;
}

/* ---------- Página de projetos ---------- */
.page-head {
  padding: clamp(64px, 10vw, 140px) 0 64px;
}

.page-head .h1 {
  color: var(--white);
  margin-bottom: 32px;
}

.page-head p {
  max-width: 48ch;
  color: #a1a1a1;
  font-size: 18px;
}

.projects-page {
  padding-bottom: var(--section);
}

/* ---------- Página de um projeto ---------- */
.case-hero {
  padding-top: clamp(64px, 9vw, 120px);
}

.case-hero .h1 {
  color: var(--black);
  margin-bottom: 48px;
}

.case-intro {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  margin-bottom: 56px;
}

.case-intro > p,
.case-intro > div > p {
  font-size: clamp(18px, 1.6vw, 22px);
  color: var(--gray-600);
  max-width: 52ch;
}

.case-meta {
  display: grid;
  gap: 16px;
}

.case-meta div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--gray-200);
}

.case-meta dt {
  color: var(--gray-500);
}

.case-cover img,
.case-wide img {
  width: 100%;
}

.case-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 16px;
}

.case-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* Sequência de imagens no estilo Behance (projetos com "flow" em data.js) */
.case-flow {
  display: flex;
  flex-direction: column;
  margin-top: var(--section);
}

.case-flow > img,
.case-flow > video {
  display: block;
  width: 100%;
  height: auto;
}

.case-embed {
  width: 100%;
  background: #000;
}

.case-embed iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.case-text {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding-top: var(--section);
  padding-bottom: 64px;
}

.case-text .h2 {
  color: var(--black);
}

.rich {
  font-size: 18px;
  color: var(--gray-600);
}

.rich p + p,
.rich p + ul,
.rich ul + p {
  margin-top: 1em;
}

.rich ul {
  padding-left: 1.2em;
}

.rich strong {
  color: var(--ink);
  font-weight: 600;
}

.testimonial {
  padding-top: var(--section);
  padding-bottom: var(--section);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.testimonial blockquote {
  max-width: 28ch;
  font-size: clamp(26px, 3vw, 40px);
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--black);
}

.testimonial {
  margin: 0 auto;
}

.testimonial figcaption {
  color: var(--gray-500);
}

.testimonial figcaption strong {
  color: var(--ink);
  font-weight: 500;
}

.case-eyebrow {
  font-size: 15px;
  color: var(--gray-500);
  margin-bottom: 16px;
}

.case-credits {
  font-size: 15px;
  color: var(--gray-500);
}

.case-wide img,
.case-wide video {
  display: block;
  width: 100%;
  height: auto;
}

.more-projects {
  padding: var(--section) 0;
  border-top: 1px solid var(--gray-200);
}

.more-projects .h2 {
  color: var(--black);
  margin-bottom: 48px;
}

.more-projects .project-image {
  background: var(--off-white);
}

/* ---------- 404 ---------- */
.not-found {
  min-height: 70vh;
  display: grid;
  place-content: center;
  text-align: center;
  gap: 24px;
  justify-items: center;
}

.not-found p {
  color: #a1a1a1;
  max-width: 40ch;
}

.not-found-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 24px;
}

/* ---------- Animação de entrada ---------- */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .marquee-track,
  .tw-live::after {
    animation: none;
  }

  .marquee:not(.is-js) {
    overflow-x: auto;
  }
}

/* ---------- Acessibilidade ---------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--white);
  color: var(--black);
  border-radius: 8px;
}

.skip-link:focus {
  top: 12px;
}

:focus-visible {
  outline: 2px solid #3b82f6;
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- Marcadores de conteúdo pendente ([PREENCHER] / [CONFIRMAR]) ---------- */
mark.todo {
  background: #ffe24a;
  color: #111;
  padding: 0 0.2em;
  border-radius: 3px;
  font-size: 0.9em;
  letter-spacing: 0;
}

a[data-todo] {
  outline: 2px dashed #ffb800;
  outline-offset: 3px;
}

/* ---------- Tablet e celular ---------- */
@media (max-width: 1199px) {
  .project-grid-3,
  .process-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .process-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 809px) {
  .profile {
    min-height: 0;
    aspect-ratio: 4 / 5;
  }

  .about-body,
  .section-head,
  .cta-inner,
  .case-intro,
  .case-text {
    grid-template-columns: 1fr;
  }

  .section-head {
    gap: 20px;
  }

  .hero-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .project-grid,
  .project-grid-3,
  .case-gallery {
    grid-template-columns: 1fr;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .hero-links {
    justify-content: flex-start;
  }

  .exp-list li {
    grid-template-columns: 1fr;
  }

  .exp-period {
    grid-row: auto;
  }

  .exp-summary {
    grid-column: auto;
  }

  .footer-top .nav-links {
    flex-wrap: wrap;
    gap: 20px;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

/* ---------- Botão flutuante do WhatsApp ---------- */
.wa-fab {
  position: fixed;
  right: calc(20px + env(safe-area-inset-right, 0px));
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  z-index: 40; /* abaixo do menu (50) */
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px 12px 14px;
  border-radius: 999px;
  background: var(--black);
  color: var(--off-white);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
  font-size: 15px;
  line-height: 1;
  transition: background 0.3s, transform 0.3s var(--ease);
}

.wa-fab:hover {
  background: var(--gray-800);
  transform: translateY(-2px);
}

.wa-icon {
  width: 22px;
  height: 22px;
  color: #25d366;
  flex: none;
}

.wa-fab.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.wa-fab {
  transition: background 0.3s, transform 0.3s var(--ease), opacity 0.3s, visibility 0.3s;
}

/* Com o menu mobile aberto, o botão some para não sobrepor */
body.menu-open .wa-fab {
  display: none;
}

@media (max-width: 809px) {
  .wa-fab {
    right: calc(16px + env(safe-area-inset-right, 0px));
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    padding: 13px;
  }

  .wa-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }

  .wa-icon {
    width: 24px;
    height: 24px;
  }

  /* espaço extra no fim da página para o botão não cobrir o rodapé */
  body.has-wa-fab #site-footer {
    padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px));
  }
}

@media (prefers-reduced-motion: reduce) {
  .wa-fab,
  .wa-fab:hover {
    transition: none;
    transform: none;
  }
}

/* ---------- Accordion de projetos (home e Trabalhos) ----------
   js/work-accordion.js monta o HTML. "cols" = colunas com título vertical (home);
   "rows" = linhas empilhadas (Trabalhos e sempre no celular). */
.project-grid.ac-host {
  display: block;
}

.ac {
  --ac-gap: 8px;
  --ac-head: 76px;
}

.ac-item {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--gray-800);
  background: #111;
  transition: border-color 0.3s, flex-grow 0.9s var(--ease);
}

.ac-item:not(.is-open):hover {
  border-color: var(--gray-500);
}

.ac-head {
  all: unset;
  box-sizing: border-box;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

.ac-head:focus-visible {
  outline: 2px solid var(--off-white);
  outline-offset: -4px;
}

.ac-num {
  font-size: 13px;
  color: var(--gray-500);
  font-variant-numeric: tabular-nums;
}

.ac-thumb {
  width: 48px;
  height: 48px;
  object-fit: cover;
  flex: none;
  transition: opacity 0.3s;
}

/* Sinal de mais que vira menos quando o item abre */
.ac-plus {
  position: relative;
  width: 14px;
  height: 14px;
  flex: none;
}

.ac-plus::before,
.ac-plus::after {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  height: 1.5px;
  margin-top: -0.75px;
  background: currentColor;
  transition: transform 0.5s var(--ease);
}

.ac-plus::after {
  transform: rotate(90deg);
}

.is-open .ac-plus::after {
  transform: rotate(0deg);
}

/* Capa grande do item aberto */
.ac-media {
  display: block;
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: var(--gray-800);
}

.ac-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  transition: transform 1.4s var(--ease);
}

.is-open .ac-media img {
  transform: scale(1);
}

.ac-media-title {
  position: absolute;
  color: var(--white);
  letter-spacing: -0.04em;
  line-height: 1;
  text-shadow: 0 2px 24px rgb(0 0 0 / 0.35);
}

/* Cartão claro com número, categoria, resumo e botão Ver case */
.ac-card {
  display: flex;
  flex-direction: column;
  padding: 20px;
  background: var(--off-white);
  color: var(--black);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.4s, transform 0.6s var(--ease);
}

.is-open .ac-card {
  opacity: 1;
  transform: none;
  transition-delay: 0.35s;
}

.ac-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ac-card-num {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--gray-500);
  font-variant-numeric: tabular-nums;
}

.ac-card-num::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 1px rgb(0 0 0 / 0.08);
}

.ac-badge {
  padding: 2px 8px;
  border: 1px solid var(--gray-300);
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0;
}

.ac-card-go {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--black);
  color: var(--off-white);
  flex: none;
}

.ac-card-go svg {
  width: 13px;
  height: 13px;
  transition: transform 0.4s var(--ease);
}

.ac-card-go:hover svg {
  transform: rotate(45deg);
}

.ac-card-cat {
  margin-top: 16px;
  font-size: clamp(22px, 1.9vw, 28px);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.ac-card-bottom {
  display: grid;
  justify-items: start;
  gap: 16px;
  margin-top: auto;
  padding-top: 24px;
}

.ac-card-bottom p {
  font-size: 14px;
  line-height: 1.45;
  color: var(--gray-600);
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ----- Colunas (home, desktop) ----- */
.ac--cols {
  --ac-card: clamp(250px, 22vw, 320px);
  display: flex;
  gap: var(--ac-gap);
  height: clamp(460px, 40vw, 600px);
}

/* A capa anda meio cartão para a esquerda, sem ampliar: o centro dela (onde fica o aparelho)
   cai no meio do espaço livre ao lado do cartão */
.ac--cols .ac-media img {
  left: calc(-1 * (var(--ac-card) + 16px) / 2);
}

.ac--cols .ac-item {
  flex: 1 1 0;
  min-width: 0;
}

.ac--cols .ac-item.is-open {
  flex-grow: 6.5;
  border-color: transparent;
}

.ac--cols .ac-head {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 16px 0 20px;
  transition: opacity 0.3s, visibility 0s;
}

.ac--cols .ac-num {
  display: none;
}

.ac--cols .ac-thumb {
  order: -2;
}

.ac--cols .ac-plus {
  order: -1;
}

.ac--cols .ac-title {
  margin-top: auto;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: clamp(22px, 2vw, 30px);
  letter-spacing: -0.03em;
  line-height: 1;
  white-space: nowrap;
  max-height: calc(100% - 100px);
  overflow: hidden;
  text-overflow: ellipsis;
}

.ac--cols .is-open .ac-head {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0s 0.2s;
}

.ac--cols .ac-panel {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0s 0.3s;
}

.ac--cols .is-open .ac-panel {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.6s 0.2s, visibility 0s;
}

.ac--cols .ac-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgb(0 0 0 / 0.45), transparent 40%);
}

.ac--cols .ac-media-title {
  left: 20px;
  bottom: 20px;
  z-index: 1;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: clamp(28px, 2.8vw, 44px);
  white-space: nowrap;
  max-height: calc(100% - 40px);
  overflow: hidden;
  text-overflow: ellipsis;
}

.ac--cols .ac-card {
  position: absolute;
  top: 16px;
  right: 16px;
  bottom: 16px;
  width: var(--ac-card);
}

/* ----- Linhas (Trabalhos e celular) ----- */
.ac--rows {
  display: flex;
  flex-direction: column;
  gap: var(--ac-gap);
}

.ac--rows .ac-item {
  display: grid;
}

.ac--rows .ac-head {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 16px;
  height: var(--ac-head);
  padding: 0 14px 0 20px;
  transition: color 0.3s;
}

.ac--rows .ac-num {
  width: 24px;
  transition: color 0.3s;
}

.ac--rows .ac-title {
  flex: 1;
  min-width: 0;
  font-size: clamp(18px, 1.8vw, 24px);
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: transform 0.5s var(--ease);
}

.ac--rows .ac-item:not(.is-open):hover .ac-title {
  transform: translateX(6px);
}

.ac--rows .is-open .ac-head {
  color: var(--white);
}

.ac--rows .is-open .ac-num {
  color: rgb(255 255 255 / 0.7);
}

.ac--rows .is-open .ac-thumb {
  opacity: 0;
}

.ac--rows .ac-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.8s var(--ease);
}

.ac--rows .is-open .ac-panel {
  grid-template-rows: 1fr;
}

/* A capa sobe por trás do cabeçalho da linha, como na referência */
.ac--rows .ac-panel-in {
  position: relative;
  min-height: 0;
  overflow: hidden;
  margin-top: calc(-1 * var(--ac-head));
  transition: opacity 0.4s, visibility 0s;
}

/* Fechada, a capa some (senão uma faixa dela apareceria atrás do título) */
.ac--rows .ac-item:not(.is-open) .ac-panel-in {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0s 0.8s;
}

.ac--rows .ac-media {
  position: relative;
  aspect-ratio: 21 / 9;
}

.ac--rows .ac-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgb(0 0 0 / 0.55), transparent 30%);
}

.ac--rows .ac-media-title {
  display: none;
}

.ac--rows .ac-card {
  position: absolute;
  top: calc(var(--ac-head) + 8px);
  right: 16px;
  bottom: 16px;
  width: clamp(260px, 24vw, 340px);
}

.projects-page .ac-host {
  margin-top: -16px;
}

@media (max-width: 1100px) {
  .ac--rows .ac-media {
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 809px) {
  .ac {
    --ac-head: 64px;
    --ac-gap: 6px;
  }

  .ac--rows .ac-head {
    gap: 12px;
    padding: 0 8px 0 14px;
  }

  .ac--rows .ac-media {
    aspect-ratio: 4 / 3;
  }

  .ac--rows .ac-card {
    position: static;
    width: auto;
  }

  .ac-card-bottom p {
    -webkit-line-clamp: 4;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ac-item,
  .ac-item * {
    transition: none !important;
  }
}
