/* ==========================================================
   Felipe Stephan — portfolio
   Visual baseado no site Framer (preto, Inter, acento #FF003D)
   ========================================================== */

:root {
  --bg: #000;
  --line: #262626;
  --line-2: #333;
  --text: #fff;
  --muted: #b0b0b0;
  --dim: #787878;
  --accent: #ff003d;
  --blue: #0099ff;
  --green: #0bde66;

  --radius: 16px;
  --radius-lg: 24px;
  --container: 1270px;
  --gutter: clamp(16px, 4vw, 40px);

  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}
main, .footer { position: relative; z-index: 1; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
strong { font-weight: 600; }
.muted { color: var(--dim); }
.mono { font-variant-numeric: tabular-nums; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 1px solid #fff; outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(72px, 10vw, 140px) 0 0; }

.display {
  margin: 0;
  font-weight: 400;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1;
  letter-spacing: -.03em;
  color: #fff;
}
.eyebrow { display: inline-block; margin-bottom: 14px; font-size: 12px; font-weight: 500; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }

.section__head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
  flex-wrap: wrap; margin-bottom: clamp(32px, 5vw, 56px);
}
.section__hint { font-size: 13px; color: var(--muted); }

/* ---------- Fundo: grid + meteoros ----------
   Igual ao Framer: 9 colunas na largura da tela, linhas a cada 705px,
   rgba(163,163,163,.05), rolando junto com a página. */
.bg-grid {
  position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
  --col: calc(100vw / 9);
  --row: 705px;
  background-image:
    linear-gradient(rgba(163,163,163,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(163,163,163,.05) 1px, transparent 1px);
  background-size: var(--col) var(--row);
}
.bg-grid__meteors { position: absolute; inset: 0; }
.meteor {
  position: absolute; width: 160px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.5));
  opacity: 0; will-change: transform, opacity;
}
.meteor::after {
  content: ""; position: absolute; right: -1px; top: -1px; width: 3px; height: 3px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 8px 1px rgba(255,255,255,.5);
}
.meteor--v { width: 1px; height: 160px; background: linear-gradient(180deg, transparent, rgba(255,255,255,.5)); }
.meteor--v::after { right: -1px; top: auto; bottom: -1px; }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background .4s var(--ease), backdrop-filter .4s;
}
.header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(0, 0, 0, .72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  opacity: 0; transition: opacity .4s var(--ease);
}
.header.is-scrolled::before { opacity: 1; }
.header .container { max-width: none; padding-inline: clamp(20px, 3.4vw, 64px); }
.header__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px; border-bottom: 1px solid rgba(255, 255, 255, .14);
}
.header__logo img { width: 56px; height: auto; }
.nav { display: flex; gap: clamp(24px, 6vw, 96px); }
.nav__item { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.25; }
.nav__item strong { font-size: 14px; font-weight: 500; }
.nav__item small { font-size: 11px; color: var(--muted); }
.arrow { font-style: normal; color: var(--accent); font-size: 12px; margin-left: 2px; display: inline-block; transition: transform .3s var(--ease); }
.nav__item:hover .arrow { transform: translate(2px, -2px); }

.header__toggle { display: none; width: 40px; height: 40px; position: relative; }
.header__toggle span { position: absolute; left: 10px; right: 10px; height: 1.5px; background: #fff; transition: transform .3s var(--ease); }
.header__toggle span:first-child { top: 16px; }
.header__toggle span:last-child { top: 23px; }
.menu-open .header__toggle span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-open .header__toggle span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* ---------- Hero (faixa) ---------- */
.hero { position: relative; overflow: hidden; }
.hero__bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  filter: blur(6px) saturate(1.1); transform: scale(1.08); opacity: .45;
}
.hero__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,.6) 0%, rgba(0,0,0,.3) 45%, #000 100%),
    radial-gradient(80% 60% at 20% 50%, rgba(0,0,0,.6), transparent 70%);
}
.hero__inner { position: relative; display: flex; align-items: center; gap: 48px; padding-top: clamp(180px, 16vw, 240px); padding-bottom: 72px; }
.hero__content { flex: 1; }

/* "Disponível para projetos" — igual ao Framer: sem caixa */
.status { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.status img { width: 40px; height: 40px; border-radius: 99px; object-fit: cover; }
.status span { font-size: 16px; font-weight: 300; line-height: 24px; color: #fff; }
.status__dot { position: relative; width: 6px; height: 6px; border-radius: 99px; background: var(--green); }
.status__dot::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--green);
  animation: ping 1.8s var(--ease) infinite;
}
@keyframes ping { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(3); opacity: 0; } }

.hero__title {
  margin: 0; font-weight: 400; letter-spacing: -.03em; line-height: 1;
  font-size: clamp(56px, 10vw, 120px);
}
.hero__line { display: block; }
.hero__for { font-weight: 200; color: rgba(255,255,255,.5); }

/* Palavra rolando: a atual sobe e a próxima já entra de baixo */
.rotator {
  position: relative; display: inline-block; vertical-align: top;
  height: 1.12em; overflow: hidden; margin-bottom: -.12em;
  transition: width .55s var(--ease);
}
.rotator__word {
  position: absolute; left: 0; top: 0; white-space: nowrap;
  transform: translateY(105%);
  transition: transform .55s var(--ease);
}
.rotator__word.is-current { transform: translateY(0); }
.rotator__word.no-anim { transition: none; }
.rotator__word.is-leaving { transform: translateY(-105%); }

.hero__cue {
  position: absolute; right: var(--gutter); bottom: 80px;
  font-size: 13px; color: var(--muted); display: flex; gap: 8px; align-items: center;
}
.hero__cue i { font-style: normal; color: var(--accent); animation: bob 2s infinite var(--ease); }
@keyframes bob { 50% { transform: translateY(4px); } }

/* ---------- Socials ---------- */
.socials { display: flex; gap: 10px; }
.socials--vertical { flex-direction: column; }
.socials a { width: 40px; height: 40px; margin-left: -8px; opacity: .8; transition: opacity .2s, transform .3s var(--ease); }
.socials a:hover { opacity: 1; transform: translateX(2px); }
svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
svg .fill { fill: currentColor; stroke: none; }
svg.hi { stroke-width: 1.5; }
.btn svg.hi { width: 20px; height: 20px; margin: -2px; }

/* ---------- Tags & botões (só traço, sem preenchimento) ---------- */
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.tag {
  font-size: 13px; font-weight: 600; padding: 3px 13px; border-radius: 999px;
  background: var(--accent); color: #fff;
}

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 999px; font-size: 14px; font-weight: 500;
  background: transparent; border: 1px solid var(--line-2);
  transition: border-color .2s, color .2s, transform .3s var(--ease);
}
.btn svg { width: 16px; height: 16px; }
.btn:hover { border-color: #fff; transform: translateY(-1px); }
.btn i { font-style: normal; color: var(--accent); }
.btn--spaced { margin-top: 32px; }

/* ---------- Logos de clientes (embaixo das fotos, sem traço) ---------- */
.marquee {
  overflow: hidden; margin-top: 36px; padding: 6px 0;
  mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
}
.marquee__track { display: flex; align-items: center; gap: 48px; width: max-content; animation: marquee 32s linear infinite; }
.marquee__track img { height: 30px; width: auto; opacity: .45; filter: grayscale(1) brightness(1.6); transition: opacity .3s; }
.marquee__track img:hover { opacity: 1; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-50% - 24px)); } }

/* ---------- Destaque (cinemático 21:9) ---------- */
.grid > .feature { grid-column: 1 / -1; margin-block: 24px; }
.feature {
  position: relative; overflow: hidden; border-radius: var(--radius-lg);
  aspect-ratio: 21 / 9; min-height: 420px; cursor: pointer;
}
.feature__bg {
  position: absolute; inset: -40px; background-size: cover; background-position: center;
  filter: blur(40px) saturate(1.3) brightness(.45); transform: scale(1.1);
}
.feature::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(0,0,0,.85) 0%, rgba(0,0,0,.55) 45%, rgba(0,0,0,0) 70%);
}
.feature__art {
  position: absolute; right: 0; top: 0; height: 100%; width: auto; max-width: 55%; object-fit: cover;
  mask-image: linear-gradient(90deg, transparent 0%, #000 22%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 22%);
  transition: transform 1.2s var(--ease);
}
.feature:hover .feature__art { transform: scale(1.04); }
.feature__text {
  position: relative; z-index: 2; height: 100%; max-width: 520px;
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(28px, 5vw, 64px);
}
.feature__title { margin: 0 0 18px; font-weight: 300; font-size: clamp(40px, 5.4vw, 72px); line-height: .98; letter-spacing: -.035em; }
.feature__text p { margin: 0 0 32px; color: var(--muted); font-size: 16px; max-width: 400px; }
.feature__text strong { color: #fff; font-weight: 500; }
.feature__logo { position: absolute; z-index: 2; left: clamp(28px, 5vw, 64px); bottom: 28px; width: 110px; opacity: .45; }

.play { display: inline-flex; align-items: center; gap: 14px; font-size: 14px; font-weight: 500; align-self: flex-start; }
.play__icon {
  width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(255,255,255,.6);
  display: grid; place-items: center; transition: border-color .3s, transform .4s var(--ease);
}
.play__icon svg { width: 18px; height: 18px; fill: #fff; stroke: none; margin-left: 3px; }
.feature:hover .play__icon { border-color: var(--accent); transform: scale(1.08); }

/* ---------- Vídeos ---------- */
.yt {
  position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden;
  cursor: pointer;
}
.yt img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), filter .4s; }
.yt:hover img { transform: scale(1.04); filter: brightness(.7); }
.yt__play {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%;
  width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.8); transition: transform .3s var(--ease), border-color .3s;
}
.yt__play svg { width: 18px; height: 18px; fill: #fff; stroke: none; margin-left: 3px; }
.yt:hover .yt__play { transform: scale(1.08); border-color: var(--accent); }
.yt__label { position: absolute; left: 16px; bottom: 14px; font-size: 13px; font-weight: 500; text-shadow: 0 1px 8px rgba(0,0,0,.8); }
.videos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

/* ---------- Trabalhos (logo abaixo do hero) ---------- */
.works { position: relative; padding-top: 8px; }

/* ---------- Grid de trabalhos: só imagem, texto no hover ---------- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  position: relative; display: block; overflow: hidden; border-radius: var(--radius);
  aspect-ratio: 4 / 5; background: #111;
}
.card > img, .card > video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform 1s var(--ease), filter .5s var(--ease);
}
.card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(0,0,0,.85));
  opacity: 0; transition: opacity .5s var(--ease);
}
.card__meta {
  position: absolute; left: 20px; right: 20px; bottom: 18px; z-index: 1;
  display: flex; flex-direction: column; line-height: 1.3;
  opacity: 0; transform: translateY(12px); transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.card__meta span { font-size: 11px; color: rgba(255,255,255,.7); text-transform: uppercase; letter-spacing: .06em; }
.card__meta strong { font-size: 16px; font-weight: 500; }
.card__tools { display: flex; gap: 6px; margin-top: 10px; }
.tool-ico { width: 22px; height: 22px; display: block; }
.card:hover > img, .card:hover > video, .card:focus-visible > img { transform: scale(1.05); }
.card:hover::after, .card:focus-visible::after { opacity: 1; }
.card:hover .card__meta, .card:focus-visible .card__meta { opacity: 1; transform: none; }

/* ---------- Sobre ---------- */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.about__left { position: sticky; top: 100px; min-width: 0; }
.about__photos { display: grid; grid-template-columns: 1.15fr 1fr; grid-template-rows: auto auto; gap: 24px; }
.photo {
  position: relative; margin: 0; overflow: hidden; border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.08);
}
.photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.photo:hover img { transform: scale(1.04); }
.photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.75)); pointer-events: none; }
.photo figcaption {
  position: absolute; left: 14px; bottom: 12px; z-index: 1;
  display: flex; align-items: center; gap: 6px; font-size: 12px; color: rgba(255,255,255,.75);
}
.photo figcaption svg { width: 14px; height: 14px; }
.about__p1 { grid-row: span 2; aspect-ratio: 4 / 5.6; }
.about__p2, .about__p3 { aspect-ratio: 5 / 3.8; }
.about__text { padding-top: 40px; }
.about__text p { color: #fff; font-size: 14px; line-height: 1.45; margin: 0 0 16px; }

/* Experiência — igual ao Framer */
.xp__title { margin: 32px 0 16px; font-size: 14px; font-weight: 500; }
.xp__title span { font-weight: 400; color: var(--dim); margin-left: 4px; }
.xp { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; row-gap: 16px; }
.xp__item {
  flex: 0 0 auto; min-width: 150px;
  display: flex; flex-direction: column; gap: 4px; padding: 4px 18px 4px 8px;
  border-left: 1px solid rgba(255,255,255,.12);
}
.xp__name { display: flex; align-items: center; justify-content: space-between; gap: 14px; font-size: 14px; font-weight: 500; line-height: 19px; white-space: nowrap; }
.xp__name > span { overflow: hidden; text-overflow: ellipsis; }
.xp__name i { font-style: normal; }
.xp__arrow { width: 15px; height: 15px; flex: none; color: var(--dim); transition: color .2s, transform .3s var(--ease); }
.xp__item:hover .xp__arrow { color: var(--accent); transform: translate(1px, -1px); }
.xp__role { display: flex; align-items: center; gap: 8px; }
.xp__role strong { font-size: 10px; font-weight: 600; white-space: nowrap; }
.xp__role em { font-style: normal; font-size: 8px; font-weight: 600; padding: 2px 5px; border-radius: 9px; background: rgba(54,54,54,.8); }
.xp__time { display: flex; align-items: center; gap: 8px; font-size: 10px; color: var(--dim); }
.flag { width: 14px; height: 10px; flex: none; border-radius: 1.5px; object-fit: cover; }

/* ---------- Contato (sem preenchimento) ---------- */
.contact {
  display: grid; grid-template-columns: auto 1fr 1.4fr; gap: clamp(24px, 4vw, 56px); align-items: center;
  padding: clamp(28px, 4vw, 48px); border-radius: var(--radius-lg);
  border: 1px solid var(--line); background: transparent;
}
.contact__id { display: flex; gap: 12px; align-items: center; margin-bottom: 24px; }
.contact__id img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.contact__id strong { display: block; font-size: 17px; font-weight: 500; }
.contact__id small { color: var(--muted); font-size: 12px; }
.contact__mail { display: block; font-size: clamp(17px, 1.8vw, 22px); word-break: break-all; transition: color .2s; }
.contact__mail:hover { color: var(--accent); }
.contact__cta h2 { margin: 0 0 24px; font-weight: 400; font-size: clamp(28px, 3.2vw, 40px); line-height: 1.1; letter-spacing: -.02em; }
.contact__btns { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Footer ---------- */
.footer { padding: clamp(56px, 8vw, 96px) 0 40px; font-size: 12px; background: transparent; }
.footer__inner { display: flex; justify-content: space-between; gap: 24px; }
.footer p { margin: 0; line-height: 1.7; }
.footer__right { text-align: right; }
.heart { color: var(--accent); }

/* ---------- Case viewer ("relatório digital") ---------- */
.case {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  gap: clamp(32px, 4vw, 64px);
  padding: 88px clamp(72px, 7vw, 120px) 48px;
  background: rgba(0, 0, 0, .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  animation: fade .35s var(--ease);
}
.case[hidden] { display: none; }
@keyframes fade { from { opacity: 0; } }
.case__top { position: absolute; top: 20px; left: clamp(20px, 3vw, 40px); right: clamp(20px, 3vw, 40px); display: flex; justify-content: space-between; align-items: center; height: 48px; }
.case__idx { font-size: 12px; color: var(--dim); letter-spacing: .12em; }
.case__close { width: 40px; height: 40px; padding: 10px; border-radius: 50%; border: 1px solid var(--line-2); transition: border-color .2s, transform .3s var(--ease); }
.case__close:hover { border-color: #fff; transform: rotate(90deg); }

.case__media { margin: 0; min-width: 0; flex: 0 1 auto; display: flex; align-items: center; justify-content: center; }
.case__media img, .case__media video {
  max-width: 100%; max-height: calc(100svh - 150px); width: auto; height: auto;
  object-fit: contain; border-radius: 12px;
  animation: media-in .6s var(--ease);
}
@keyframes media-in { from { opacity: 0; transform: translateY(16px) scale(.985); } }

.case__info { flex: 0 0 clamp(280px, 24vw, 360px); align-self: center; }
.case__cat { display: block; font-size: 11px; color: var(--accent); text-transform: uppercase; letter-spacing: .12em; margin-bottom: 14px; }
.case__title { margin: 0 0 20px; font-size: clamp(24px, 2.4vw, 32px); font-weight: 400; letter-spacing: -.02em; line-height: 1.15; }
.case__desc {
  margin: 0 0 32px; font-size: 14px; line-height: 1.7; color: var(--muted);
  padding-top: 18px; border-top: 1px solid var(--line);
}
.case__desc strong { color: #fff; font-weight: 500; }
.case__desc .w {
  display: inline-block; white-space: pre;
  opacity: 0; filter: blur(6px); transform: translateY(6px);
  animation: word-in .9s var(--ease) forwards;
  animation-delay: calc(var(--i) * 45ms + 150ms);
}
@keyframes word-in { to { opacity: 1; filter: blur(0); transform: none; } }

.case__tools {
  display: flex; flex-wrap: wrap; gap: 8px; margin: -12px 0 28px;
  opacity: 0; transform: translateY(8px); transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.case__tools { gap: 18px; }
.case__tools span { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.case__tools .tool-ico { width: 22px; height: 22px; }
.case.is-typed .case__tools { opacity: 1; transform: none; }
.case__btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 11px 20px; border: 1px solid rgba(255,255,255,.35); border-radius: 999px;
  font-size: 13px; letter-spacing: .02em; background: transparent;
  opacity: 0; transform: translateY(8px); transition: opacity .5s var(--ease), transform .5s var(--ease), border-color .2s;
}
.case__btn svg { width: 15px; height: 15px; }
.case__btn:hover { border-color: #fff; }
.case.is-typed .case__btn { opacity: 1; transform: none; transition-delay: .15s; }
.case__lock { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); animation: media-in .5s var(--ease); }
.case__lock[hidden], .case__btn[hidden] { display: none; }
.case__lock p { margin: 0 0 16px; font-size: 14px; line-height: 1.6; color: #fff; }
.case__lock-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.case__lock .btn { padding: 8px 16px; font-size: 13px; }

.case__nav {
  position: absolute; top: 50%; translate: 0 -50%;
  width: 44px; height: 44px; padding: 11px; border-radius: 50%;
  border: 1px solid var(--line-2); transition: border-color .2s;
}
.case__nav:hover { border-color: #fff; }
.case__prev { left: clamp(12px, 2vw, 32px); }
.case__next { right: clamp(12px, 2vw, 32px); }

/* ---------- Popup de vídeo ---------- */
.vmodal {
  position: fixed; inset: 0; z-index: 110; display: grid; place-items: center; padding: 72px 24px 40px;
  background: rgba(0,0,0,.9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  animation: fade .35s var(--ease);
}
.vmodal[hidden] { display: none; }
.vmodal__frame {
  width: min(1100px, 100%, calc((100svh - 140px) * 16 / 9)); aspect-ratio: 16 / 9;
  border-radius: 12px; overflow: hidden; background: #000;
  animation: media-in .5s var(--ease);
}
.vmodal__frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.vmodal__close { position: absolute; top: 20px; right: 20px; }

/* ---------- Animações de revelar ---------- */

/* Títulos: cada palavra sobe de dentro de uma máscara */
.split .m { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.split .m > span { display: inline-block; transform: translateY(105%); transition: transform 1s var(--ease); transition-delay: calc(var(--i) * 60ms); }
.split.is-visible .m > span { transform: none; }
.split.reveal { opacity: 1; transform: none; }

/* Cards e fotos: surgem do fundo com fade + zoom sutil */
.card.reveal, .photo.reveal {
  opacity: 0; transform: scale(.96);
  transition: opacity .8s var(--ease), transform 1.1s var(--ease);
}
.card.is-visible, .photo.is-visible { opacity: 1; transform: none; }

/* Experiência: nome sobe, cargo desce, período é digitado */
.xp__name > span, .xp__role { display: inline-flex; }
.xp__mask { overflow: hidden; display: block; }
.xp.anim .xp__name .xp__mask > span { transform: translateY(110%); transition: transform .9s var(--ease); }
.xp.anim .xp__role { transform: translateY(-110%); opacity: 0; transition: transform .9s var(--ease), opacity .9s var(--ease); }
.xp.anim .xp__arrow, .xp.anim .flag { opacity: 0; transition: opacity .6s var(--ease); }
.xp.anim .xp__item { border-left-color: transparent; transition: border-color .8s var(--ease); }
.xp.anim .is-in .xp__name .xp__mask > span { transform: none; }
.xp.anim .is-in .xp__role { transform: none; opacity: 1; transition-delay: .25s; }
.xp.anim .is-in .xp__arrow, .xp.anim .is-in .flag { opacity: 1; transition-delay: .5s; }
.xp.anim .is-in { border-left-color: rgba(255,255,255,.12); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* Em telas de toque não há hover: mostra o nome discretamente */
@media (hover: none) {
  .card::after { opacity: .8; }
  .card__meta { opacity: 1; transform: none; }
}

/* ---------- Responsivo ---------- */
@media (max-width: 1024px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .contact { grid-template-columns: 1fr 1.3fr; }
  .contact .socials--card { display: none; }
  .case { grid-template-columns: minmax(0, 1fr) 300px; padding-inline: 64px; }
}

@media (max-width: 820px) {
  .bg-grid { --col: calc(100vw / 4); }
  .header__toggle { display: block; }
  .nav {
    position: fixed; top: 92px; right: 16px; z-index: 60;
    flex-direction: column; align-items: flex-end; gap: 10px;
    pointer-events: none;
  }
  .menu-open .nav { pointer-events: auto; }
  .nav__item {
    width: max-content; padding: 12px 16px; border-radius: 12px;
    align-items: flex-end; text-align: right; white-space: nowrap;
    background: rgba(0,0,0,.45); border: 0; box-shadow: none;
    backdrop-filter: blur(32px) saturate(1.4); -webkit-backdrop-filter: blur(32px) saturate(1.4);
    transform: translateX(calc(100% + 24px)); opacity: 0;
    transition: transform .7s var(--ease), opacity .5s var(--ease);
    transition-delay: calc((3 - var(--i)) * 50ms);
  }
  .menu-open .nav__item { transform: none; opacity: 1; transition-delay: calc(var(--i) * 70ms); }
  .nav__item strong { font-size: 16px; font-weight: 600; }
  .nav__item small { font-size: 12px; }

  .hero__inner { flex-direction: column-reverse; align-items: flex-start; gap: 28px; padding-top: 120px; padding-bottom: 88px; }
  .hero .socials--vertical { flex-direction: row; }
  .hero__cue { bottom: 32px; }

  .feature { aspect-ratio: auto; min-height: 0; display: flex; flex-direction: column; }
  .feature::before { background: linear-gradient(0deg, rgba(0,0,0,.9) 35%, rgba(0,0,0,0) 70%); }
  .feature__art { position: relative; max-width: 100%; width: 100%; height: auto; mask-image: linear-gradient(0deg, transparent 0%, #000 35%); -webkit-mask-image: linear-gradient(0deg, transparent 0%, #000 35%); }
  .feature__art { mask-image: linear-gradient(0deg, transparent 0%, #000 20%); -webkit-mask-image: linear-gradient(0deg, transparent 0%, #000 20%); }
  .feature__text { margin-top: -24px; padding-top: 0; }
  .case__info { padding-bottom: 64px; }

  .about { grid-template-columns: 1fr; }
  .about__left { position: static; }
  .about__text { padding-top: 0; }
  .videos { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; }
  .section__head { align-items: flex-start; flex-direction: column; }

  /* Case no celular: imagem em cima, texto embaixo, rolagem */
  .case { display: block; overflow-y: auto; padding: 16px 16px 40px; }
  .case__top { position: static; margin-bottom: 8px; }
  .case__media { justify-content: center; }
  .case__media img, .case__media video { max-height: 62svh; }
  .case__info { padding-top: 24px; }
  .case__desc { min-height: 0; }
  .case__stage { align-items: stretch; }
  .case__slides { justify-content: center; }
  .case__media:not(.is-loaded) { min-width: 100%; min-height: 50svh; }
  .case__embed { width: 100%; }
  .case__navs { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; padding-top: 24px; border-top: 1px solid var(--line); }
  .case__nav { position: static; translate: none; width: auto; height: 44px; padding: 0 16px; border-radius: 999px; display: inline-flex; align-items: center; gap: 8px; font-size: 13px; }
  .case__nav svg { width: 18px; height: 18px; }
  .case__nav span { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
}

@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr; gap: 16px; }
  .card { border-radius: 12px; }

  .footer__inner { flex-direction: column; }
  .footer__right { text-align: left; }
  .marquee__track img { height: 24px; }
}

/* ==========================================================
   Página de case (/projeto/nome/) — "relatório digital"
   ========================================================== */
.cs { padding-top: 120px; }
.cs__head { display: flex; flex-direction: column; gap: 28px; }
.cs__back { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); align-self: flex-start; transition: color .2s; }
.cs__back svg { width: 16px; height: 16px; }
.cs__back:hover { color: #fff; }
.cs__idx { font-size: 12px; color: var(--dim); letter-spacing: .12em; }
.cs__intro { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: end; padding-bottom: 8px; }
.cs__title { margin: 8px 0 0; font-weight: 400; font-size: clamp(44px, 6.5vw, 96px); line-height: 1; letter-spacing: -.035em; }
.cs__meta p { margin: 0 0 24px; color: var(--muted); font-size: 16px; line-height: 1.65; }
.cs__meta p strong { color: #fff; font-weight: 500; }
.cs__tools { opacity: 1; transform: none; margin: 0; }

.cs__cover { margin-top: clamp(40px, 6vw, 72px); }
.cs__cover img, .cs__cover video { width: 100%; max-height: 86svh; object-fit: contain; border-radius: var(--radius-lg); background: #0a0a0a; }

.cs__step {
  display: grid; grid-template-columns: minmax(180px, 1fr) 2.4fr; gap: clamp(24px, 5vw, 80px);
  padding-top: clamp(72px, 9vw, 128px);
}
.cs__step-head { position: sticky; top: 110px; align-self: start; }
.cs__num { display: block; font-size: 12px; color: var(--accent); letter-spacing: .12em; margin-bottom: 12px; }
.cs__step-head h2 { margin: 0; font-weight: 400; font-size: clamp(24px, 2.4vw, 32px); line-height: 1.15; letter-spacing: -.02em; }
.cs__step-body > p { margin: 0 0 32px; max-width: 640px; color: var(--muted); font-size: 16px; line-height: 1.7; }
.cs__step-body > p strong { color: #fff; font-weight: 500; }
.cs__gallery { display: grid; gap: 20px; }
.cs__gallery--2 { grid-template-columns: 1fr 1fr; }
.cs__gallery figure { margin: 0; }
.cs__gallery img, .cs__gallery video { width: 100%; height: auto; border-radius: var(--radius); background: #0a0a0a; }

.cs__next {
  display: flex; flex-direction: column; gap: 10px; align-items: flex-start;
  padding-top: clamp(96px, 12vw, 160px);
}
.cs__next .mono { font-size: 12px; color: var(--dim); letter-spacing: .12em; text-transform: uppercase; }
.cs__next a { font-size: clamp(32px, 4.6vw, 64px); font-weight: 400; letter-spacing: -.03em; line-height: 1.05; transition: color .2s; }
.cs__next a i { font-style: normal; color: var(--accent); font-size: .6em; vertical-align: top; }
.cs__next a:hover { color: var(--accent); }

@media (max-width: 820px) {
  .cs { padding-top: 100px; }
  .cs__intro, .cs__step { grid-template-columns: 1fr; }
  .cs__step-head { position: static; }
  .cs__gallery--2 { grid-template-columns: 1fr; }
}


/* ==========================================================
   v2 — carrossel, vídeos, skeleton de carregamento
   ========================================================== */

/* Skeleton: brilho suave passando até a imagem carregar */
@keyframes shimmer { to { background-position: -200% 0; } }
.card, .photo, .feature { background-color: #0d0d0d; }
.card:not(.is-loaded)::before, .photo:not(.is-loaded)::before, .case__media:not(.is-loaded)::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(100deg, rgba(255,255,255,0) 30%, rgba(255,255,255,.055) 50%, rgba(255,255,255,0) 70%) #0d0d0d;
  background-size: 200% 100%; animation: shimmer 1.4s linear infinite;
}
.card > img, .card > video, .photo img { opacity: 0; transition: opacity .6s var(--ease), transform 1s var(--ease); }
.card.is-loaded > img, .card.is-loaded > video, .photo.is-loaded img { opacity: 1; }

/* Selo discreto: projeto com vídeo ou com mais imagens (aparece no hover) */
.card__badge {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 10px; border-radius: 99px;
  font-size: 12px; font-weight: 500; color: #fff;
  background: rgba(0,0,0,.45); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  opacity: 0; transform: translateY(-4px); transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.card__badge svg { width: 13px; height: 13px; }
.card__badge svg path[d^="M8 5"] { fill: #fff; stroke: none; }
.card:hover .card__badge, .card:focus-visible .card__badge { opacity: 1; transform: none; }
@media (hover: none) { .card__badge { opacity: 1; transform: none; } }

/* Visualizador: palco (mídia + controles do carrossel) */
.case__stage { position: relative; min-width: 0; flex: 0 1 auto; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.case__media { position: relative; border-radius: 12px; }
.case__media:not(.is-loaded) { min-width: min(56vw, 880px); min-height: 62svh; overflow: hidden; }
.case__media img, .case__media video { position: relative; z-index: 1; opacity: 0; transition: opacity .5s var(--ease); }
.case__media.is-loaded img, .case__media.is-loaded video { opacity: 1; }
.case__stage:has(.case__slides:not([hidden])) .case__media img,
.case__stage:has(.case__slides:not([hidden])) .case__media video { max-height: calc(100svh - 216px); }

.case__slides { display: flex; align-items: center; gap: 14px; }
.case__slides[hidden] { display: none; }
.case__arrow {
  width: 44px; height: 44px; padding: 11px; border-radius: 50%;
  border: 1px solid var(--line-2); transition: border-color .2s, transform .3s var(--ease);
}
.case__arrow:hover { border-color: #fff; }
.case__arrow:active { transform: scale(.94); }
.case__count { min-width: 64px; text-align: center; font-size: 12px; color: var(--muted); letter-spacing: .12em; }

/* Play do vídeo (YouTube/Vimeo) sobre a capa */
.case__play {
  position: absolute; z-index: 2; left: 50%; top: 50%; translate: -50% -50%;
  width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.8); background: rgba(0,0,0,.35);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: transform .3s var(--ease), border-color .2s;
}
.case__play svg { width: 22px; height: 22px; fill: #fff; stroke: none; margin-left: 4px; }
.case__play:hover { transform: scale(1.06); border-color: var(--accent); }
.case__embed { width: min(62vw, 1000px); aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #000; position: relative; z-index: 1; }
.case__embed iframe { width: 100%; height: 100%; border: 0; display: block; }

/* Setas de projeto: nas laterais no computador (texto só para leitores de tela) */
.case__navs { display: contents; }
.case__nav span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

@media (max-width: 820px) {
  .case__stage { align-items: stretch; }
  .case__slides { justify-content: center; }
  .case__media:not(.is-loaded) { min-width: 100%; min-height: 50svh; }
  .case__stage:has(.case__slides:not([hidden])) .case__media img,
  .case__stage:has(.case__slides:not([hidden])) .case__media video { max-height: 56svh; }
  .case__embed { width: 100%; }
  /* setas de projeto no fim da página, sem cobrir as ferramentas */
  .case__navs { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; padding-top: 24px; border-top: 1px solid var(--line); }
  .case__nav { position: static; translate: none; width: auto; height: 44px; padding: 0 18px 0 14px; border-radius: 999px; display: inline-flex; align-items: center; gap: 8px; font-size: 13px; }
  .case__next { padding: 0 14px 0 18px; }
  .case__nav svg { width: 18px; height: 18px; }
  .case__nav span { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
  .case__info { padding-bottom: 8px; }
}

/* Botão de som dos vídeos no projeto aberto */
.case__sound {
  position: absolute; z-index: 2; right: 14px; bottom: 14px;
  width: 44px; height: 44px; padding: 11px; border-radius: 50%;
  color: #fff; border: 1px solid rgba(255,255,255,.35); background: rgba(0,0,0,.4);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: border-color .2s, transform .3s var(--ease);
}
.case__sound:hover { border-color: #fff; }
.case__sound:active { transform: scale(.94); }
.case__sound.is-on { border-color: #fff; }

/* ==========================================================
   v3 — selos de premiação e mini player
   ========================================================== */

/* Selo: ramos de louro + texto no centro */
.awards { display: flex; flex-wrap: wrap; gap: 4px 10px; }
.award {
  --tone: #d9b45a;
  position: relative; width: 150px; aspect-ratio: 184 / 124; flex: none; color: var(--tone);
}
.award--silver { --tone: #c9ced6; }
.award--bronze { --tone: #c7895b; }
.award--white { --tone: rgba(255,255,255,.85); }
.award__laurel { position: absolute; inset: 0; width: 100%; height: 100%; filter: drop-shadow(0 0 10px color-mix(in srgb, var(--tone) 25%, transparent)); }
.award__txt {
  position: absolute; inset: 12% 19% 16%; display: grid; place-content: center; justify-items: center;
  text-align: center; gap: 2px; line-height: 1.1; color: #fff;
}
.award__txt small { font-size: 6.4px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--tone); }
.award__txt strong { font-size: 14px; font-weight: 600; letter-spacing: -.01em; }
.award__txt span { font-size: 8.2px; color: rgba(255,255,255,.62); }

/* No banner de destaque: os selos entram com um leve atraso, um depois do outro */
.feature--awards { aspect-ratio: auto; min-height: clamp(460px, 40vw, 560px); }
.awards--feature { margin: -8px 0 26px -6px; }
.feature .award { opacity: 0; transform: translateY(10px) scale(.96); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(.35s + var(--i) * .12s); }
.feature.is-visible .award { opacity: 1; transform: none; }

/* No projeto aberto */
.case__awards { margin: -6px 0 18px -6px; }
.case__awards:empty { display: none; }
.case__awards .award { width: 132px; }
.case__awards .award__txt strong { font-size: 12.5px; }
.case__awards .award__txt small { font-size: 5.8px; }
.case__awards .award__txt span { font-size: 7.4px; }

/* ---------- Mini player (estilo Apple): aparece ao passar o mouse ---------- */
.vp {
  position: absolute; z-index: 3; left: 50%; bottom: 14px; translate: -50% 0;
  width: min(420px, calc(100% - 28px)); height: 40px; padding: 0 6px;
  display: flex; align-items: center; gap: 4px;
  border-radius: 999px; color: #fff;
  background: rgba(22,22,22,.55); backdrop-filter: blur(22px) saturate(1.4); -webkit-backdrop-filter: blur(22px) saturate(1.4);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
  opacity: 0; transform: translateY(6px); transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.case__media.vp-show .vp, .case__media.is-paused .vp, .vp:focus-within { opacity: 1; transform: none; }
.vp__btn { width: 30px; height: 30px; flex: none; display: grid; place-items: center; border-radius: 50%; transition: background .2s; }
.vp__btn:hover { background: rgba(255,255,255,.12); }
.vp__btn svg { width: 16px; height: 16px; }
.vp__btn .solid { fill: currentColor; stroke: none; }
.vp__time { flex: none; min-width: 34px; font-size: 11px; font-variant-numeric: tabular-nums; color: rgba(255,255,255,.75); text-align: center; }
.vp__track { position: relative; flex: 1; height: 20px; cursor: pointer; touch-action: none; }
.vp__track::before, .vp__buf, .vp__fill { content: ""; position: absolute; left: 0; top: 50%; height: 3px; translate: 0 -50%; border-radius: 3px; transition: height .2s var(--ease); }
.vp__track::before { right: 0; background: rgba(255,255,255,.18); }
.vp__buf { background: rgba(255,255,255,.28); width: 0; }
.vp__fill { background: #fff; width: 0; }
.vp__knob { position: absolute; top: 50%; left: 0; width: 11px; height: 11px; border-radius: 50%; background: #fff; translate: -50% -50%; transform: scale(0); transition: transform .2s var(--ease); }
.vp__track:hover::before, .vp__track:hover .vp__buf, .vp__track:hover .vp__fill, .vp__track.is-drag .vp__fill { height: 5px; }
.vp__track:hover .vp__knob, .vp__track.is-drag .vp__knob { transform: scale(1); }
.vp__track:focus-visible { outline: none; }
.vp__track:focus-visible .vp__knob { transform: scale(1); box-shadow: 0 0 0 3px rgba(255,255,255,.35); }

/* play grande no centro quando pausado */
.vp__center {
  position: absolute; z-index: 2; left: 50%; top: 50%; translate: -50% -50%;
  width: 68px; height: 68px; border-radius: 50%; display: grid; place-items: center; color: #fff;
  background: rgba(22,22,22,.5); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.12);
  opacity: 0; transform: scale(.9); pointer-events: none; transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.vp__center svg { width: 22px; height: 22px; fill: #fff; stroke: none; margin-left: 3px; }
.case__media.is-paused .vp__center { opacity: 1; transform: none; pointer-events: auto; }
.case__media video { cursor: pointer; }
.case__media:fullscreen video, .case__media:-webkit-full-screen video { max-height: 100vh; max-width: 100vw; border-radius: 0; }

@media (max-width: 820px) {
  .award { width: 128px; }
  .awards--feature { margin: -6px 0 22px -4px; }
  .vp { bottom: 10px; }
}

/* v4 — louro só nas laterais (mais delicado) */
.award { aspect-ratio: 184 / 110; width: 156px; }
.award__laurel { filter: none; }
.award__txt { inset: 10% 17%; gap: 3px; }
.award__txt small { font-size: 6.6px; }
.award__txt strong { font-size: 14.5px; }
.case__awards .award { width: 138px; }

/* Selo "Feito com IA" */
.card__ai {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 9px 0 7px; border-radius: 99px;
  font-size: 11px; font-weight: 600; letter-spacing: .04em; color: #fff;
  background: rgba(0,0,0,.42); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.14);
  opacity: 0; transform: translateY(-4px); transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.card__ai svg, .ai-chip svg { width: 12px; height: 12px; fill: #d6c8ff; stroke: none; }
.card:hover .card__ai, .card:focus-visible .card__ai { opacity: 1; transform: none; }
@media (hover: none) { .card__ai { opacity: 1; transform: none; } }
.ai-chip {
  display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 11px 0 9px; border-radius: 99px;
  font-size: 12px; color: #fff; background: linear-gradient(90deg, rgba(160,130,255,.18), rgba(255,0,61,.14));
  box-shadow: inset 0 0 0 1px rgba(214,200,255,.25);
}


/* Selos no card: o mesmo selo do destaque, em miniatura, fixo no topo */
.awards--card {
  position: absolute; top: 8px; left: 8px; right: 8px; z-index: 2; gap: 0 2px; pointer-events: none;
}
.card:has(.awards--card)::after { opacity: 1; background: linear-gradient(180deg, rgba(0,0,0,.55) 0%, transparent 26%, transparent 45%, rgba(0,0,0,.85)); }
.card:has(.awards--card):not(:hover)::after { background: linear-gradient(180deg, rgba(0,0,0,.55) 0%, transparent 26%); }
.awards--card .award { width: 112px; }
.awards--card .award__txt { text-shadow: 0 1px 8px rgba(0,0,0,.7); }
.awards--card .award__txt small { font-size: 4.9px; letter-spacing: .14em; }
.awards--card .award__txt strong { font-size: 10.5px; }
.awards--card .award__txt span { font-size: 6.2px; color: rgba(255,255,255,.75); }
@media (max-width: 560px) { .awards--card .award { width: 120px; } }

/* Selos abaixo do player de vídeo */
.vmodal { grid-template-rows: auto auto; align-content: center; gap: 18px; }
.vmodal__awards { display: flex; justify-content: center; }
.vmodal__awards:empty { display: none; }
.vmodal__awards .award { width: 150px; }
@media (max-width: 560px) { .card__award { top: 10px; left: 10px; height: 28px; } }

/* Cor do selo escolhida no painel (Personalizada): vem por style="--tone:#..." */
.award--custom { color: var(--tone); }
