/* ==========================================================================
   Felipe Salton — Salton Design
   Fontes reais (Melodrame / Aeonik Pro) via assets/fonts/ — ver README ali.
   Até os arquivos chegarem, usa fallback de sistema equivalente.
   ========================================================================== */

@font-face {
  font-family: "Melodrame";
  src: url("../assets/fonts/Melodrame-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Aeonik Pro";
  src: url("../assets/fonts/AeonikPro-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Aeonik Pro";
  src: url("../assets/fonts/AeonikPro-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Aeonik Pro";
  src: url("../assets/fonts/AeonikPro-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* Temporário: só temos o peso Bold da Aeonik Pro por enquanto. Cobre
   também o peso 400 (texto de corpo) com o mesmo arquivo pra usar a
   tipografia real da marca em vez do fallback do sistema. Remover
   assim que os pesos Regular/Medium chegarem (ver README em assets/fonts/). */
@font-face {
  font-family: "Aeonik Pro";
  src: url("../assets/fonts/AeonikPro-Bold.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --black: #000000;
  --white: #f9f9f9;
  --gray: #646464;
  --gray-light: #a7a7a7;
  --gray-dark: #333333;
  --gray-border: #2a2a2a;
  --orange: #e85002;
  --orange-2: #f16001;
  --red: #c10801;

  --gradient: linear-gradient(90deg, var(--orange) 0%, var(--red) 55%, var(--orange-2) 100%);

  --font-display: "Melodrame", Georgia, "Times New Roman", serif;
  --font-body: "Aeonik Pro", "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "SFMono-Regular", "JetBrains Mono", Consolas, "Liberation Mono", Menlo, monospace;

  --container: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* Textura de ruído sutil sobre todo o site */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

main, .site-header, .site-footer { position: relative; z-index: 1; }

/* Brilho que acompanha o cursor — só em telas com mouse de verdade */
.cursor-glow {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
  background: radial-gradient(560px circle at var(--mx, 50%) var(--my, 50%), rgba(232, 80, 2, 0.07), transparent 70%);
}

.cursor-glow.is-active { opacity: 1; }

@media (prefers-reduced-motion: reduce), (hover: none) {
  .cursor-glow { display: none; }
}

/* Barra de progresso de leitura */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: var(--gradient);
  z-index: 1000;
  transition: width 0.1s linear;
}


img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  font-family: var(--font-body);
  font-weight: 700;
  margin: 0 0 0.4em;
  line-height: 1.08;
  letter-spacing: -0.01em;
}

p { color: var(--gray-light); margin: 0 0 1em; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.5em;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 1.05rem;
  color: var(--orange-2);
  font-family: var(--font-mono);
  font-weight: 500;
  margin-bottom: 1em;
}

.hero-content .eyebrow { justify-content: center; }

.hero-title { line-height: 1; }

.hero-title .gradient-text { line-height: 1; }

.gradient-text {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 400;
  font-style: italic;
  font-size: 1.35em;
  line-height: 1.6;
  margin-right: 0.1em;
  color: var(--orange-2);
  -webkit-text-stroke: 1.2px var(--orange-2);
}

/* Buttons -------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--gradient);
  color: var(--white);
  box-shadow: 0 8px 24px -8px rgba(232, 80, 2, 0.45);
}

.btn-primary:hover {
  box-shadow: 0 14px 32px -10px rgba(232, 80, 2, 0.6);
}

.btn-outline {
  border: 1px solid var(--gray-border);
  color: var(--white);
}

.btn-outline:hover {
  border-color: var(--orange-2);
  background: rgba(232, 80, 2, 0.08);
}

.btn::after {
  content: "→";
  margin-left: 10px;
  display: inline-block;
  transition: transform 0.25s ease;
}

.btn:hover::after { transform: translateX(4px); }

/* Header ----------------------------------------------------------------- */

/* O header é uma "pílula" flutuante que não ocupa a tela inteira — em telas
   largas sobra espaço nas laterais por onde o conteúdo de baixo aparece
   "espiando" quando a página rola. Essa faixa cobre toda a largura por trás
   da pílula pra isso nunca acontecer. */
.header-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 96px;
  background: linear-gradient(to bottom, var(--black) 70%, transparent);
  z-index: 40;
  pointer-events: none;
}

.site-header {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: min(960px, calc(100% - 32px));
  z-index: 50;
  background: rgba(10, 10, 10, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(249, 249, 249, 0.1);
  border-radius: 999px;
  box-shadow: 0 12px 32px -12px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(249, 249, 249, 0.06);
  transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.site-header.is-scrolled {
  background: rgba(8, 8, 8, 0.9);
  border-color: rgba(249, 249, 249, 0.16);
  box-shadow: 0 12px 32px -10px rgba(0, 0, 0, 0.75), inset 0 1px 0 rgba(249, 249, 249, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  /* o header é uma pílula com largura própria (não acompanha --container) —
     sem isso, em telas largas o cálculo de --container usa "100%" relativo
     à pílula (bem menor que a tela) e aperta o menu para o meio, deixando
     vão nas laterais dele. */
  max-width: none;
}

.logo {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 32px;
  width: auto;
  display: block;
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 1.02rem;
}

.nav a {
  position: relative;
  color: var(--gray-light);
  padding-bottom: 4px;
  transition: color 0.2s ease;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--orange-2);
  transition: right 0.25s ease;
}

.nav a:hover { color: var(--white); }
.nav a:hover::after { right: 0; }

.nav a.nav-cta {
  color: var(--white) !important;
  background: var(--gradient);
  padding: 10px 22px;
  border-radius: 999px;
  box-shadow: 0 6px 18px -8px rgba(232, 80, 2, 0.55);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-cta::after { display: none; }

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px -8px rgba(232, 80, 2, 0.7);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--white);
}

/* Hero --------------------------------------------------------------- */

.hero {
  position: relative;
  padding: 160px 0 120px;
  text-align: center;
  overflow: hidden;
  background-color: var(--black);
}

/* fundo de reserva em CSS puro — sempre visível por baixo do canvas 3D.
   Garante que o hero nunca fique vazio se o WebGL falhar (driver de
   vídeo, aceleração desligada, bloqueio de extensão etc.) */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    radial-gradient(ellipse 60% 55% at 28% 35%, rgba(232, 80, 2, 0.28), transparent 60%),
    radial-gradient(ellipse 55% 50% at 72% 65%, rgba(193, 8, 1, 0.22), transparent 65%),
    radial-gradient(ellipse 45% 40% at 50% 20%, rgba(241, 96, 1, 0.16), transparent 60%);
  background-size: 160% 160%;
  animation: hero-glow-drift 18s ease-in-out infinite alternate;
}

@keyframes hero-glow-drift {
  0% { background-position: 0% 0%; }
  100% { background-position: 100% 40%; }
}

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

.hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: block;
  -webkit-mask-image: linear-gradient(to bottom, black 0%, black 70%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 0%, black 70%, transparent 100%);
  filter: brightness(0.6) saturate(0.9);
  opacity: 0;
  transition: opacity 1s ease;
}

.hero-canvas.is-ready { opacity: 1; }

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-content::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -60px -80px;
  background: radial-gradient(ellipse 65% 60% at 50% 40%, rgba(0, 0, 0, 0.6), transparent 72%);
  pointer-events: none;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 auto 20px;
  padding: 8px 18px 8px 14px;
  border: 1px solid rgba(249, 249, 249, 0.25);
  border-radius: 999px;
  background: rgba(10, 10, 10, 0.55);
  backdrop-filter: blur(6px);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--white);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange-2);
  box-shadow: 0 0 0 0 rgba(241, 96, 1, 0.6);
  animation: status-pulse 2.4s ease-out infinite;
}

@keyframes status-pulse {
  0% { box-shadow: 0 0 0 0 rgba(241, 96, 1, 0.55); }
  70% { box-shadow: 0 0 0 8px rgba(241, 96, 1, 0); }
  100% { box-shadow: 0 0 0 0 rgba(241, 96, 1, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .status-dot { animation: none; }
}

.hero-title {
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.hero-sub {
  max-width: 560px;
  margin: 24px auto 40px;
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Section generic ------------------------------------------------------ */

.section { padding: 110px 0; border-top: 1px solid var(--gray-border); }

.section h2 {
  font-size: clamp(2rem, 4.2vw, 2.9rem);
  letter-spacing: -0.02em;
  max-width: 900px;
}

/* Sobre ------------------------------------------------------------------ */

.sobre {
  position: relative;
  overflow: hidden;
}

.sobre::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: -10%;
  right: -10%;
  width: 50%;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(232, 80, 2, 0.12), transparent 70%);
  pointer-events: none;
}

.sobre-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 64px;
  align-items: center;
}

.sobre-text p { font-size: 1.05rem; max-width: 480px; }

.sobre-text h2 .gradient-text { font-size: 1.15em; }

.sobre-quote {
  margin: 32px 0 0;
  padding-left: 24px;
  border-left: 2px solid var(--orange-2);
  font-family: var(--font-body);
  font-weight: 500;
  font-style: italic;
  font-size: 1.15rem;
  color: var(--white);
  max-width: 480px;
}

.photo-frame {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 18px;
  background: linear-gradient(160deg, var(--gray-dark), var(--black) 60%);
  border: 1px solid var(--gray-border);
  overflow: hidden;
}

.photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

/* Metodologia -------------------------------------------------------------- */

.metodologia-lista {
  list-style: none;
  margin: 48px 0 0;
  padding: 0;
  max-width: 720px;
}

.metodologia-item {
  position: relative;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 28px 0;
  border-top: 1px solid var(--gray-border);
  transition: padding-left 0.3s ease;
}

.metodologia-item:last-child {
  border-bottom: 1px solid var(--gray-border);
}

.metodologia-num {
  flex-shrink: 0;
  width: 2.2rem;
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 600;
  color: var(--orange-2);
}

.metodologia-item:hover {
  padding-left: 8px;
}

.metodologia-item h3 {
  font-size: 1.2rem;
  margin-bottom: 0.3em;
}

.metodologia-item p { margin: 0; }

.metodologia-lista .metodologia-item:nth-child(1) { transition-delay: 0s; }
.metodologia-lista .metodologia-item:nth-child(2) { transition-delay: 0.08s; }
.metodologia-lista .metodologia-item:nth-child(3) { transition-delay: 0.16s; }
.metodologia-lista .metodologia-item:nth-child(4) { transition-delay: 0.24s; }

/* Serviços — respiro claro no meio do site escuro -------------------------- */

.servicos {
  background: var(--white);
  color: var(--black);
}

.servicos h2,
.servico-card h3 { color: var(--black); }

/* texto claro sobre fundo escuro parece opticamente mais "grosso" que a
   mesma cor sobre fundo claro — compensa pra ficar com o mesmo peso visual
   do eyebrow em "Sobre mim" */
.servicos .eyebrow { -webkit-text-stroke: 0.3px currentColor; }

.servico-card p { color: #555; }

.servicos-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.servicos-grid--cinco { grid-template-columns: repeat(3, 1fr); }

.servico-card {
  position: relative;
  padding: 40px;
  border: 1px solid #e4e4e4;
  border-radius: 18px;
  overflow: hidden;
  background: #f6f6f6;
}

.servico-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.servico-card.reveal {
  transition: opacity 0.6s ease, transform 0.35s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.servico-card:hover {
  border-color: var(--orange-2);
  transform: translateY(-4px);
  box-shadow: 0 24px 48px -28px rgba(232, 80, 2, 0.4);
}

.servico-card:hover::before { transform: scaleX(1); }

.servicos-grid .servico-card:nth-child(1) { transition-delay: 0s; }
.servicos-grid .servico-card:nth-child(2) { transition-delay: 0.1s; }
.servicos-grid .servico-card:nth-child(3) { transition-delay: 0.2s; }
.servicos-grid .servico-card:nth-child(4) { transition-delay: 0.3s; }
.servicos-grid .servico-card:nth-child(5) { transition-delay: 0.4s; }

.servico-card h3 {
  font-size: 1.4rem;
  margin-top: 0;
}

/* Trabalhos ------------------------------------------------------------- */

.trabalhos-subhead {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--gray-light);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 56px 0 0;
}

.trabalhos-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 24px;
}

.trabalhos-grid--tres { grid-template-columns: repeat(3, 1fr); }

.trabalhos-carousel { position: relative; }

.carousel-arrow {
  display: none;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(249, 249, 249, 0.25);
  background: rgba(10, 10, 10, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: var(--white);
  font-size: 1.4rem;
  line-height: 1;
  z-index: 5;
  cursor: pointer;
  box-shadow: 0 8px 20px -8px rgba(0, 0, 0, 0.6);
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.carousel-arrow:active {
  transform: translateY(-50%) scale(0.9);
  background: rgba(232, 80, 2, 0.85);
  border-color: transparent;
}

.carousel-arrow--prev { left: -8px; }
.carousel-arrow--next { right: -8px; }

.trabalho-card {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  background: linear-gradient(150deg, var(--gray-dark), var(--black) 70%);
  border: 1px solid var(--gray-border);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 18px;
  overflow: hidden;
}

/* Especificidade maior que .reveal de propósito: evita que o shorthand
   `transition` de .reveal (opacity/transform) apague as transições de
   hover (border-color/box-shadow) declaradas aqui. */
.trabalho-card.reveal {
  transition: opacity 0.6s ease, transform 0.4s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.trabalho-img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

/* scrim permanente — garante legibilidade do número/label sobre a foto */
.trabalho-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.2) 35%, rgba(0, 0, 0, 0.88) 100%);
}

.trabalho-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: var(--gradient);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.trabalho-label {
  display: inline-block;
  width: fit-content;
  font-size: 0.95rem;
  color: var(--white);
  position: relative;
  z-index: 3;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: color 0.3s ease, background 0.3s ease;
}

.trabalho-arrow {
  position: absolute;
  z-index: 3;
  bottom: 18px;
  right: 18px;
  font-size: 1.1rem;
  color: var(--white);
  opacity: 0;
  transform: translate(-6px, 6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.trabalho-card:hover {
  transform: translateY(-6px);
  border-color: var(--orange-2);
  box-shadow: 0 20px 40px -20px rgba(232, 80, 2, 0.35);
}

.trabalho-card:hover .trabalho-img { transform: scale(1.05); }

.trabalho-card:hover::before { opacity: 0.12; }

.trabalho-card:hover .trabalho-label { color: var(--white); }

.trabalho-card:hover .trabalho-arrow {
  opacity: 1;
  transform: translate(0, 0);
}

.trabalhos-grid .trabalho-card:nth-child(1) { transition-delay: 0s; }
.trabalhos-grid .trabalho-card:nth-child(2) { transition-delay: 0.08s; }
.trabalhos-grid .trabalho-card:nth-child(3) { transition-delay: 0.16s; }
.trabalhos-grid .trabalho-card:nth-child(4) { transition-delay: 0.24s; }
.trabalhos-grid .trabalho-card:nth-child(5) { transition-delay: 0.32s; }

.trabalhos-nota {
  margin-top: 40px;
  font-size: 1.4rem;
  font-style: italic;
  color: var(--gray-light);
}

/* Contato ----------------------------------------------------------------- */

.contato {
  position: relative;
  overflow: hidden;
  text-align: center;
}

.contato::before {
  content: "";
  position: absolute;
  z-index: 0;
  bottom: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  aspect-ratio: 1;
  background: radial-gradient(ellipse, rgba(232, 80, 2, 0.14), transparent 65%);
  pointer-events: none;
}

.contato .container { position: relative; z-index: 1; }

.contato h2 { max-width: 720px; margin-left: auto; margin-right: auto; }

.contato-sub {
  margin: 20px auto 0;
  max-width: 480px;
  font-size: 1.05rem;
}

.contato-email {
  margin-top: 28px;
  font-size: 1.1rem;
  color: var(--gray-light);
}

.contato-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 36px;
}

/* Footer ------------------------------------------------------------------ */

.site-footer {
  border-top: 1px solid var(--gray-border);
  padding: 28px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--gray);
}

.footer-inner a:hover { color: var(--white); }

/* Reveal on scroll ---------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive ---------------------------------------------------------------- */

@media (max-width: 860px) {
  .sobre-grid { grid-template-columns: 1fr; }
  .sobre-photo { order: -1; max-width: 320px; margin: 0 auto; }
  .servicos-grid { grid-template-columns: 1fr; }
  .trabalhos-grid { grid-template-columns: repeat(2, 1fr); }
  .metodologia-item { flex-direction: column; gap: 8px; }

  .trabalhos-carousel [data-carousel-track] {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
    scrollbar-width: none;
    mask-image: linear-gradient(to right, transparent, black 16px, black calc(100% - 16px), transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 16px, black calc(100% - 16px), transparent);
  }

  .trabalhos-carousel [data-carousel-track]::-webkit-scrollbar { display: none; }

  .trabalhos-carousel [data-carousel-track] .trabalho-card {
    flex: 0 0 100%;
    scroll-snap-align: center;
  }

  .carousel-arrow {
    display: flex;
    width: 34px;
    height: 34px;
    top: 42%;
  }

  .carousel-arrow--prev { left: 4px; }
  .carousel-arrow--next { right: 4px; }

  .nav {
    position: fixed;
    inset: 96px 16px auto 16px;
    /* sólido de propósito (não rgba) — com transparência, o texto do Hero
       atrás "fantasmava" por trás dos links do menu aberto no mobile. */
    background: #0a0a0a;
    border: 1px solid var(--gray-border);
    border-radius: 24px;
    backdrop-filter: blur(14px);
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 32px 28px;
    gap: 22px;
    font-size: 1.2rem;
    transform: translateY(-16px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }

  .nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-toggle { display: flex; }

  .hero { padding: 120px 0 80px; }
  .section { padding: 80px 0; }
}

/* Monitores grandes (ex: 2453px de largura real, testado com o cliente) —
   só alarga o container, sem tocar em tamanho de fonte/linha (foi isso que
   quebrou o título em telas de notebook da última vez que mexemos nisso).
   Fica só nessa faixa de tela pra não mudar nada no resto das telas. */
@media (min-width: 2200px) {
  :root { --container: min(2400px, calc(100% - 120px)); }

  /* a lista da Metodologia tem largura fixa (720px) e não acompanha o
     container — com o container muito largo, sobrava um vazio enorme do
     lado direito que parecia um erro de layout. Mantém essa seção num
     container mais contido, só nessa faixa de tela. */
  .metodologia .container { max-width: 1500px; }
}

