/* =========================================================
   Lima Editor — style.css
   Tokens e regras conforme specs/design.md
   ========================================================= */

:root {
  /* Cores */
  --bg: #0A0A0B;
  --surface: #141416;
  --surface-2: #1B1B1E;
  --text: #F4F4F0;
  --text-muted: #9A9A97;
  --border: rgba(255, 255, 255, 0.10);
  --accent: #C8FF00;
  --accent-hover: #B4E600;
  --on-accent: #0A0A0B;

  /* Tipografia */
  --font-display: 'Clash Display', 'Sora', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Sora', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  /* Espaçamento (base 4px) */
  --s1: 4px;  --s2: 8px;   --s3: 12px;  --s4: 16px;
  --s6: 24px; --s8: 32px;  --s12: 48px; --s16: 64px;
  --s24: 96px; --s32: 128px;

  --section-y: clamp(4rem, 10vw, 9rem);
  --container: 1280px;
  --gutter: 24px;
  --radius: 8px;
  --radius-sm: 4px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------------- Reset ---------------- */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

/* Brilho fixo sutil — fundo de todo o site */
.site-gradient {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 55% 45% at 88% 92%, rgba(95,138,3,0.13) 0%, transparent 68%),
    radial-gradient(ellipse 40% 35% at 12% 88%, rgba(95,138,3,0.06) 0%, transparent 60%);
}

img { max-width: 100%; display: block; }
ul, ol { margin: 0; padding: 0; list-style: none; }
p { margin: 0 0 var(--s4); }

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

button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

.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; top: -100px; left: var(--s4); z-index: 200;
  background: var(--accent); color: var(--on-accent);
  padding: var(--s3) var(--s4); border-radius: var(--radius); font-weight: 600;
}
.skip-link:focus { top: var(--s4); }

/* ---------------- Layout ---------------- */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }

.section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--s6);
  margin-bottom: var(--s12);
  flex-wrap: wrap;
}

.section__note {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* ---------------- Tipografia ---------------- */

.kicker {
  margin: 0 0 var(--s4);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
}

h3 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.01em; }

.lead { font-size: clamp(1.0625rem, 1.6vw, 1.25rem); color: var(--text); }

.accent { color: var(--accent); }

/* ---------------- Botões ---------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s2);
  min-height: 44px;
  padding: 14px 26px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: 0.01em;
  transition: background-color 0.25s var(--ease), transform 0.25s var(--ease),
              border-color 0.25s var(--ease), color 0.25s var(--ease);
}

.btn--primary { background: var(--accent); color: var(--on-accent); }
.btn--primary:hover { background: var(--accent-hover); transform: translateY(-2px); }

.btn--ghost { border: 1px solid var(--border); color: var(--text); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

.btn--sm { min-height: 38px; padding: 9px 18px; font-size: 0.875rem; }
.btn--lg { padding: 18px 34px; font-size: 1rem; }

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

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  opacity: 0;
  transform: translateY(-12px);
  transition: border-color 0.3s var(--ease), opacity 0.4s var(--ease), transform 0.4s var(--ease);
  pointer-events: none;
}

.site-header.is-scrolled {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

/* O fundo/blur vive num pseudo-elemento: backdrop-filter no próprio header
   criaria containing block e prenderia o menu mobile (position: fixed) dentro dele. */
.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(10, 10, 11, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

.site-header.is-scrolled::before { opacity: 1; }
.site-header.is-scrolled { border-bottom-color: var(--border); }

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s6);
  min-height: 76px;
}

/* Logo */
.logo { display: inline-flex; align-items: center; gap: var(--s3); }

.logo__img {
  display: block;
  width: 36px;
  height: 36px;
  flex: none;
  object-fit: contain;
}

.logo__text {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
  color: var(--accent);
}
.logo__thin { color: var(--accent); font-weight: 500; margin-left: 5px; }

.nav { display: flex; gap: var(--s8); }

.nav a {
  position: relative;
  font-size: 0.9375rem;
  color: var(--text-muted);
  padding-block: var(--s2);
  transition: color 0.22s var(--ease);
}
.nav a::after {
  content: '';
  position: absolute; left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width 0.25s var(--ease);
}
.nav a:hover { color: var(--text); }
.nav a:hover::after { width: 100%; }

.header__actions { display: flex; align-items: center; gap: var(--s4); }

.lang { display: flex; align-items: center; gap: var(--s1); font-size: 0.8125rem; }
.lang__sep { color: var(--border); }
.lang__btn {
  padding: var(--s1) var(--s2);
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: color 0.2s var(--ease);
}
.lang__btn:hover { color: var(--text); }
.lang__btn.is-active { color: var(--accent); }

.burger {
  display: none;
  width: 44px; height: 44px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.burger span {
  display: block; width: 22px; height: 1.5px;
  background: var(--text);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.burger[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

/* ---------------- Hero: palco com zoom-out ---------------- */

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.stage { position: relative; height: 300vh; }

.stage__sticky {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: var(--bg);
}

.stage__scene {
  --reveal: 0;
  --scrim: 1;
  transform-origin: center center;
  will-change: transform;
  backface-visibility: hidden;
}

.mosaic {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(8px, 1.1vw, 14px);
  width: min(1280px, 94vw);
}

/* todas as células em 16:9, com a mesma linguagem de placeholder dos reels */
.mosaic__cell {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--border);
  border-radius: clamp(10px, 1.1vw, 18px);
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.045), transparent 60%),
    var(--surface);
  color: rgba(244, 244, 240, 0.2);
  opacity: var(--reveal);
}

.mosaic__cell svg { width: 26px; height: 26px; }

.mosaic__cell em {
  position: absolute;
  left: var(--s4); bottom: var(--s3);
  font-family: var(--font-display);
  font-style: normal;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
}

.mosaic__cell--media { color: transparent; }
.mosaic__cell--media img,
.mosaic__cell--media video { width: 100%; height: 100%; object-fit: cover; display: block; }

/* posições explícitas: o card central ocupa 2x2 no meio da malha */
/* desktop: 3×3 — auto-placement, todos os cards 16:9 do mesmo tamanho */

.mosaic__cell--center {
  opacity: 1;
  border-radius: clamp(12px, 1.3vw, 20px);
}
.mosaic__cell--center svg { width: 44px; height: 44px; }
.mosaic__cell--center em { font-size: 0.9375rem; left: var(--s6); bottom: var(--s4); }

/* escurecimento sobre o card central enquanto o texto do hero está por cima */
.mosaic__cell--center::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(10,10,11,0.65), rgba(10,10,11,0.90));
  opacity: var(--scrim);
}

.stage__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  pointer-events: none;
}
.stage__overlay a, .stage__overlay button { pointer-events: auto; }

.stage__copy { position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; }

.stage__foot {
  position: absolute;
  left: 0; right: 0; bottom: clamp(16px, 3vh, 34px);
  text-align: center;
}

.hero__lang {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s1);
  margin: 0 0 var(--s3);
  font-size: 0.8125rem;
}

.stage__arrow {
  display: block;
  width: 1px; height: 34px;
  margin: var(--s4) auto 0;
  background: linear-gradient(to bottom, transparent, var(--accent));
  animation: scrollPulse 2.4s var(--ease) infinite;
}

/* fallback sem movimento: mosaico já no tamanho final */
.stage--static { height: auto; }
.stage--static .stage__sticky { position: relative; height: auto; padding-block: 140px var(--s16); }
.stage--static .stage__scene { --reveal: 1; --scrim: 0; }
.stage--static .stage__overlay { position: static; margin-bottom: var(--s12); }
.stage--static .stage__foot { position: static; margin-top: var(--s8); }

.hero__line1 { display: block; }
.hero__line2 { display: block; }
.hero__line2:empty { display: none; }

.hero__title {
  margin: 0 0 var(--s6);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--accent);
  max-width: 22ch;
  text-align: center;
}

.hero__sub {
  max-width: 44ch;
  margin-bottom: var(--s8);
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  color: var(--text);
  font-weight: 300;
  line-height: 1.35;
  text-align: center;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s4); }

@keyframes scrollPulse {
  0%, 100% { opacity: 0.25; transform: scaleY(0.6); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); transform-origin: top; }
}

/* ---------------- Clientes / marquee ---------------- */

.clients { padding-block: var(--s12) var(--s16); border-top: 1px solid var(--border); }

.clients__label {
  margin: 0 0 var(--s10);
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Grid estático de marcas */
.brands__grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2) var(--s4);
}

.brand__item {
  flex: 1 1 calc(10% - var(--s4));
  min-width: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--s3) var(--s2);
}

.brand__item img {
  width: 100%;
  max-width: 110px;
  height: 44px;
  object-fit: contain;
  filter: grayscale(1) brightness(0.65);
  transition: filter 0.3s var(--ease);
}

.brand__item:hover img {
  filter: brightness(0) saturate(100%) invert(95%) sepia(60%) saturate(800%) hue-rotate(30deg) brightness(105%);
}

@media (max-width: 640px) {
  .brand__item { flex: 1 1 calc(20% - var(--s4)); min-width: 70px; }
  .brand__item img { height: 32px; max-width: 80px; }
}

.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}

.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 22s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }

.marquee__item {
  flex: none;
  padding-inline: var(--s8);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.25rem, 2.6vw, 2rem);
  color: var(--text-muted);
  opacity: 0.55;
  white-space: nowrap;
  transition: opacity 0.25s var(--ease), color 0.25s var(--ease);
}
.marquee__item:hover { opacity: 1; color: var(--text); }

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.marquee--sm .marquee__item {
  font-size: clamp(0.9375rem, 1.6vw, 1.125rem);
  padding-inline: var(--s6);
  opacity: 0.42;
}

/* Logo images inside marquee */
.marquee__item--logo {
  padding-inline: var(--s8);
  opacity: 0.85;
}
.marquee__item--logo img {
  height: 48px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  vertical-align: middle;
  display: block;
}
.marquee__item--logo:hover {
  opacity: 1;
}
.marquee__item--logo:hover img {
  filter: brightness(0) saturate(100%) invert(95%) sepia(60%) saturate(800%) hue-rotate(30deg) brightness(105%);
}

/* ---------------- Números ---------------- */

.stats { padding-block: var(--s8); border-block: 1px solid var(--border); }

.stats__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--s8);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: var(--s2);
  padding-left: var(--s6);
  border-left: 1px solid var(--border);
}

.stat__num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.stat__label { font-size: 0.875rem; color: var(--text-muted); }

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

.section--about { padding-top: var(--s8); padding-bottom: var(--s8); }
#trabalhos { padding-top: var(--s8); }
.about {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(var(--s8), 5vw, var(--s16));
  align-items: center;
}

.about__figure { margin: 0; position: relative; }

.about__figure::before {
  content: '';
  position: absolute;
  inset: 8% 4% 4%;
  background: radial-gradient(circle, rgba(200, 255, 0, 0.13) 0%, transparent 68%);
  pointer-events: none;
}

.about__figure img {
  position: relative;
  width: 100%;
  height: auto;
}

.about__body p { color: var(--text-muted); }
.about__body .lead { color: var(--text); }

.about__cred {
  display: flex;
  flex-direction: column;
  gap: var(--s3);
  margin-top: var(--s8);
  padding-top: var(--s6);
  border-top: 1px solid var(--border);
}
.about__cred li {
  position: relative;
  padding-left: var(--s6);
  font-size: 0.9375rem;
  color: var(--text-muted);
}
.about__cred li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.62em;
  width: 8px; height: 1px;
  background: var(--accent);
}

.about__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s3);
  margin-top: var(--s8);
}
.about__tags li {
  padding: var(--s2) var(--s4);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* ---------------- Filtros ---------------- */

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
  margin-bottom: var(--s8);
}

.chip {
  min-height: 38px;
  padding: var(--s2) var(--s4);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color 0.22s var(--ease), border-color 0.22s var(--ease),
              background-color 0.22s var(--ease);
}
.chip:hover { color: var(--text); border-color: rgba(255, 255, 255, 0.25); }
.chip.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
}

/* ---------------- Grid de trabalhos (masonry) ---------------- */

.grid {
  column-count: 4;
  column-gap: var(--s4);
}

.card {
  display: block;
  width: 100%;
  padding: 0;
  margin-bottom: var(--s4);
  text-align: left;
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
}

.card__media {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.card--9x16 .card__media { aspect-ratio: 9 / 16; }
.card--16x9 .card__media { aspect-ratio: 16 / 9; }

.card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.55s var(--ease), opacity 0.4s var(--ease);
}

.card__media::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10, 10, 11, 0.75) 0%, transparent 45%);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}

.card:hover .card__media img { transform: scale(1.05); }
.card:hover .card__media::after { opacity: 1; }

.card__play {
  position: absolute;
  left: 50%; top: 50%;
  width: 54px; height: 54px;
  transform: translate(-50%, -50%) scale(0.85);
  border-radius: 50%;
  background: var(--accent);
  opacity: 0;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.card__play::before {
  content: '';
  position: absolute;
  left: 54%; top: 50%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 8px 0 8px 13px;
  border-color: transparent transparent transparent var(--on-accent);
}
.card:hover .card__play,
.card:focus-visible .card__play { opacity: 1; transform: translate(-50%, -50%) scale(1); }

.card__info { display: block; padding: var(--s3) var(--s1) 0; }

.card__title {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
  transition: color 0.22s var(--ease);
}
.card:hover .card__title { color: var(--accent); }

.card__meta {
  display: block;
  margin-top: var(--s1);
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ---------------- Cases (coverflow 3D) ---------------- */

.section--cases { background: var(--surface); border-block: 1px solid var(--border); }

.coverflow {
  position: relative;
  width: 100%;
  padding-block: var(--s8) var(--s4);
  overflow: hidden;
  touch-action: pan-y;
}
.coverflow:focus-visible { outline: 2px solid var(--accent); outline-offset: -4px; }

.coverflow__stage {
  position: relative;
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1400px;
}

.cfcard {
  position: absolute;
  width: min(330px, 74vw);
  height: 500px;
  border-radius: 18px;
  overflow: hidden;
  background: var(--surface-2);
  border: 1px solid var(--border);
  transform-origin: center center;
  transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1),
              opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1),
              filter 0.8s cubic-bezier(0.25, 1, 0.5, 1),
              box-shadow 0.8s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

.cfcard.is-side { cursor: pointer; }

.cfcard.is-center {
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.75), 0 0 34px rgba(200, 255, 0, 0.16);
}

/* placeholder de mídia, mesma linguagem do hero e dos reels */
.cfcard__media {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: var(--surface);
  color: rgba(244, 244, 240, 0.16);
  overflow: hidden;
}
.cfcard__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cfcard__media svg { width: 34px; height: 34px; }
.cfcard__media em {
  position: absolute;
  left: var(--s4); top: var(--s4);
  font-family: var(--font-display);
  font-style: normal;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
}

.cfcard__body {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  padding: var(--s6) var(--s6) var(--s8);
  background: linear-gradient(180deg,
    rgba(10, 10, 11, 0.35) 0%,
    rgba(10, 10, 11, 0.15) 24%,
    rgba(10, 10, 11, 0.82) 62%,
    rgba(10, 10, 11, 0.97) 100%);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
  pointer-events: none;
}
.cfcard.is-center .cfcard__body { opacity: 1; transform: none; pointer-events: auto; }

.cfcard__tag {
  align-self: flex-end;
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.cfcard__foot { display: flex; flex-direction: column; margin-top: auto; }

.cfcard__big {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 2.75rem;
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: var(--s2);
}

.cfcard__title {
  margin: 0;
  font-size: 1.0625rem;
  line-height: 1.22;
}

.cfcard__rule {
  width: 34px; height: 2px;
  margin-block: var(--s3) var(--s3);
  background: var(--accent);
  border-radius: 2px;
}

.cfcard__desc {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.cfcard__logos {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s3);
  margin-top: var(--s3);
}
.cfcard__logos li {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.cfcard__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s2);
  align-self: flex-start;
  min-height: 40px;
  margin-top: var(--s4);
  padding: 9px 18px;
  border-radius: 100px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background-color 0.22s var(--ease), transform 0.22s var(--ease);
}
.cfcard__cta:hover { background: var(--accent-hover); transform: translateY(-2px); }

.cf__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 40;
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(10, 10, 11, 0.62);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--text);
  transition: color 0.22s var(--ease), border-color 0.22s var(--ease),
              background-color 0.22s var(--ease);
}
.cf__nav:hover { color: var(--accent); border-color: var(--accent); }
.cf__nav--prev { left: clamp(8px, 3vw, 40px); }
.cf__nav--next { right: clamp(8px, 3vw, 40px); }

.cf__dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s2);
  margin-top: var(--s8);
}

.cf__dot {
  width: 8px; height: 8px;
  padding: 0;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.25);
  transition: width 0.3s var(--ease), background-color 0.3s var(--ease);
}
.cf__dot.is-active { width: 28px; background: var(--accent); }

/* ---------------- Skills ---------------- */

.skills {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--s4);
}

.skillcard {
  padding: var(--s8);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.skillcard:hover { border-color: rgba(255, 255, 255, 0.2); transform: translateY(-3px); }

.skillcard h3 { margin: 0 0 var(--s4); font-size: 1.0625rem; color: var(--accent); }

.skillcard ul { display: flex; flex-direction: column; gap: var(--s3); }

.skillcard li {
  display: flex;
  align-items: flex-start;
  gap: var(--s3);
  font-size: 0.9375rem;
  color: var(--text-muted);
}
.skillcard li svg {
  flex: none;
  width: 18px; height: 18px;
  margin-top: 2px;
  color: var(--accent);
  opacity: 0.85;
}
.skill-icon {
  flex: none;
  width: 18px; height: 18px;
  margin-top: 2px;
  filter: brightness(0) saturate(100%) invert(95%) sepia(60%) saturate(800%) hue-rotate(30deg) brightness(105%);
  opacity: 0.85;
  object-fit: contain;
}

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

.contact {
  position: relative;
  padding-block: var(--section-y);
  border-top: 1px solid var(--border);
  overflow: hidden;
}
.contact::before {
  content: '';
  position: absolute;
  bottom: -55%; left: 25%;
  width: min(820px, 120vw);
  aspect-ratio: 1;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(200, 255, 0, 0.09) 0%, transparent 62%);
  pointer-events: none;
}

/* gradiente WebGL: canvas atrás do conteúdo, com fade nas bordas.
   Se o WebGL falhar, o ::before acima segue como fundo estático. */
.contact__gradient {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1.2s var(--ease);
  /* concentra o brilho à direita/baixo (atrás dos reels) e mantém a coluna
     de texto sobre preto puro, preservando o contraste AA */
  -webkit-mask-image: radial-gradient(85% 78% at 82% 88%, #000 8%, transparent 68%);
  mask-image: radial-gradient(85% 78% at 82% 88%, #000 8%, transparent 68%);
}
.contact__gradient.is-ready { opacity: 0.7; }
.contact__gradient canvas { display: block; width: 100%; height: 100%; }

/* com o canvas ativo o brilho estático vira redundante */
.contact:has(.contact__gradient.is-ready)::before { opacity: 0; }

.contact__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  gap: var(--s16);
  align-items: center;
}

.contact__title {
  margin: 0 0 var(--s6);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.25rem, 5.5vw, 4rem);
  line-height: 1;
  letter-spacing: -0.03em;
}
.contact__label {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5.5vw, 4rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--text);
  margin-bottom: 0;
}
.contact__carousel {
  display: block;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: color 200ms var(--ease);
}
.contact__carousel:hover {
  color: var(--accent);
}
.contact__phrase {
  position: absolute;
  top: 0; left: 0;
  display: block;
  width: 100%;
  will-change: transform;
}
.contact__sizer {
  display: block;
  visibility: hidden;
  pointer-events: none;
  user-select: none;
}

.contact__sub {
  max-width: 42ch;
  margin: 0 0 var(--s12);
  color: var(--text-muted);
  font-size: clamp(1rem, 1.5vw, 1.125rem);
}

.contact__actions { display: flex; flex-wrap: wrap; gap: var(--s4); margin-bottom: var(--s8); }

.contact__mail { margin: 0; font-size: 0.9375rem; color: var(--text-muted); }
.contact__mail a { border-bottom: 1px solid var(--border); padding-bottom: 2px; transition: color 0.22s var(--ease), border-color 0.22s var(--ease); }
.contact__mail a:hover { color: var(--accent); border-color: var(--accent); }

/* colunas de vídeos futuros rolando em sentidos opostos */
.contact__reels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s4);
  height: clamp(420px, 62vh, 620px);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 14%, #000 86%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 14%, #000 86%, transparent);
}

.vcol { overflow: hidden; }

.vcol__track {
  display: flex;
  flex-direction: column;
  gap: var(--s4);
  animation: vscroll 34s linear infinite;
}
.vcol--rev .vcol__track { animation-direction: reverse; }
.contact__reels:hover .vcol__track { animation-play-state: paused; }

@keyframes vscroll {
  from { transform: translateY(0); }
  to { transform: translateY(-50%); }
}

.vcard {
  flex: none;
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 9 / 16;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    linear-gradient(150deg, rgba(255,255,255,0.045), transparent 60%),
    var(--surface);
  color: rgba(244, 244, 240, 0.22);
  overflow: hidden;
}
.vcard svg { width: 28px; height: 28px; }
.vcard em {
  position: absolute;
  left: var(--s4); bottom: var(--s3);
  font-family: var(--font-display);
  font-style: normal;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
}
.vcard--media { color: transparent; }
.vcard--media img,
.vcard--media video { width: 100%; height: 100%; object-fit: cover; display: block; }

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

.footer { padding-block: var(--s12); border-top: 1px solid var(--border); }

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s8);
}

.footer__brand { display: flex; align-items: center; gap: var(--s4); }
.footer__name { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 1rem; }
.footer__role { margin: 0; font-size: 0.8125rem; color: var(--text-muted); }

.footer__links { display: flex; flex-wrap: wrap; gap: var(--s6); }
.footer__links a { font-size: 0.9375rem; color: var(--text-muted); transition: color 0.22s var(--ease); }
.footer__links a:hover { color: var(--accent); }

.footer__meta { text-align: right; }
.footer__meta p { margin: 0; font-size: 0.8125rem; color: var(--text-muted); }

/* ---------------- Lightbox ---------------- */

.lb {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: var(--s6);
}
.lb[hidden] { display: none; }

.lb__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 5, 6, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.lb__panel {
  position: relative;
  width: min(1100px, 100%);
  animation: lbIn 0.32s var(--ease);
}

.lb__panel--9x16 { width: min(420px, 100%); }

@keyframes lbIn {
  from { opacity: 0; transform: translateY(14px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

.lb__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.lb__panel--9x16 .lb__frame { aspect-ratio: 9 / 16; }

.lb__frame iframe { width: 100%; height: 100%; border: 0; display: block; }

.lb__close {
  position: absolute;
  top: -46px; right: 0;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  font-size: 1.75rem;
  line-height: 1;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: color 0.22s var(--ease), border-color 0.22s var(--ease);
}
.lb__close:hover { color: var(--accent); border-color: var(--accent); }

.lb__info { padding-top: var(--s4); }
.lb__info h3 { margin: 0 0 var(--s1); font-size: 1.0625rem; }
.lb__info p { margin: 0; font-size: 0.8125rem; color: var(--text-muted); }

/* ---------------- Reveal ---------------- */

/* O estado oculto só existe com JS ativo — sem JS a página aparece inteira. */
.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

.stats__grid .reveal:nth-child(2) { transition-delay: 0.08s; }
.stats__grid .reveal:nth-child(3) { transition-delay: 0.16s; }
.stats__grid .reveal:nth-child(4) { transition-delay: 0.24s; }

/* =========================================================
   Responsivo
   ========================================================= */

@media (max-width: 1180px) {
  .grid { column-count: 3; }
  .about, .contact__inner { gap: var(--s12); }
}

@media (max-width: 980px) {
  .nav {
    position: fixed;
    inset: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--s8);
    background: var(--bg);
    transform: translateX(100%);
    transition: transform 0.35s var(--ease);
    z-index: 90;
  }
  .nav.is-open { transform: none; }
  .nav a { font-family: var(--font-display); font-size: 1.75rem; color: var(--text); }

  .burger { display: flex; position: relative; z-index: 95; }
  .header__cta { display: none; }
  .lang { position: relative; z-index: 95; }

  .about { grid-template-columns: 1fr; gap: var(--s8); justify-items: center; }
  .about__figure { max-width: 320px; }

  .contact__inner { grid-template-columns: 1fr; gap: var(--s12); }
  .contact__reels { height: clamp(320px, 46vh, 440px); }
  .contact__gradient {
    -webkit-mask-image: radial-gradient(120% 55% at 50% 100%, #000 5%, transparent 72%);
    mask-image: radial-gradient(120% 55% at 50% 100%, #000 5%, transparent 72%);
  }

  .footer__inner { flex-direction: column; align-items: flex-start; }
  .footer__meta { text-align: left; }
}

@media (max-width: 720px) {
  :root { --gutter: 16px; }

  .grid { column-count: 2; column-gap: var(--s3); }
  .card { margin-bottom: var(--s3); }
  .card__title { font-size: 0.8125rem; }
  .card__meta { font-size: 0.6875rem; }

  .hero__title { max-width: none; }

  /* mosaico mobile: 1 coluna, 1 acima, centro, 1 abaixo */
  .stage { height: 260vh; }
  .mosaic { grid-template-columns: 1fr; width: 86vw; }
  .mosaic__cell:nth-child(2),
  .mosaic__cell:nth-child(3),
  .mosaic__cell:nth-child(4),
  .mosaic__cell:nth-child(7),
  .mosaic__cell:nth-child(8),
  .mosaic__cell:nth-child(9) { display: none; }
  .mosaic__cell--center svg { width: 34px; height: 34px; }

  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: var(--s6); }

  .skillcard { padding: var(--s6); }
  .coverflow__stage, .cfcard { height: 440px; }
  .cfcard__body { padding: var(--s4) var(--s4) var(--s6); }
  .cfcard__big { font-size: 2.25rem; }
  .cf__nav { width: 42px; height: 42px; }

  .lb { padding: var(--s4); }
  .lb__close { top: auto; bottom: -48px; right: 50%; transform: translateX(50%); }
  .lb__info { display: none; }
}

@media (max-width: 400px) {
  .grid { column-count: 1; }
}

/* ---------------- Movimento reduzido ---------------- */

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

  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .reveal { opacity: 1; transform: none; }
  .marquee__track, .vcol__track { animation: none; }
  .contact__gradient { transition: none; }
  .stage__arrow { animation: none; opacity: 0.5; }
}
