/* ------------------------------------------------------------------ *
 * Kaio Gomes — portfólio 2026
 * Direção visual baseada no Behance "Video Editing & Motion Design
 * Portfolio 2026": hero em papel claro granulado com a palavra gigante
 * em degradê pontilhado (preto → vermelho) e recorte P&B na frente;
 * o resto em fundo escuro com poeira/riscos, vermelho como acento,
 * Montserrat nos textos. CSS mobile-first.
 * ------------------------------------------------------------------ */
:root {
  --bg: #1c1b1b;
  --bg-2: #161515;
  --paper: #efeeec;
  --ink: #151313;
  --red: #cf4b53;
  --red-deep: #8e2f35;
  --red-hot: #e2181e;
  --text: #f2f0ef;
  --muted: #a7a3a3;
  --dim: #6f6b6b;
  --line: rgba(255, 255, 255, 0.12);

  --display: "Bebas Neue", "Oswald", Impact, sans-serif;
  --sans: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --gutter: 20px;
  --max: 1180px;
}
@media (min-width: 768px) { :root { --gutter: 48px; } }

* { box-sizing: border-box; }
html { -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.is-loading,
body.is-locked { overflow: hidden; }
main { overflow-x: clip; }

::selection { background: var(--red); color: #fff; }
a { color: inherit; }
img, video { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

/* fundo escuro com poeira e riscos (textura gerada em assets/dust-dark.png) */
.dark,
.loader {
  background-color: var(--bg);
  background-image: url("assets/dust-dark.png"), radial-gradient(ellipse 60% 40% at 100% 0%, rgba(150, 40, 46, 0.35), transparent 70%);
  background-size: 640px 640px, 100% 100%;
}
.dark { position: relative; }

.is-red { color: var(--red); }

.btn-red {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  white-space: nowrap;
  color: #fff;
  background: linear-gradient(180deg, #d9545c, var(--red-deep));
  box-shadow: 0 12px 26px -12px rgba(142, 47, 53, 0.9);
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}
.btn-red:active { transform: scale(0.96); }
.btn-red--sm { min-height: 38px; padding: 0 16px; font-size: 13px; }

/* ================================================================== *
 * PRELOADER
 * ================================================================== */
.loader {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 24px;
  transition: translate 1s var(--ease), visibility 0s linear 1s;
}
.loader.is-done { translate: 0 -100%; visibility: hidden; pointer-events: none; }

.loader__labels { position: absolute; top: calc(22px + env(safe-area-inset-top)); left: var(--gutter); right: var(--gutter); display: flex; justify-content: space-between; font-size: 11px; font-weight: 300; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }

.loader__inner { position: relative; width: min(560px, 100%); text-align: center; }

/* ---------- ícones dos programas ---------- */
.apps { display: flex; justify-content: center; gap: clamp(12px, 3.6vw, 22px); margin-bottom: 38px; }
.app {
  --s: clamp(56px, 15vw, 78px);
  position: relative;
  display: grid;
  place-items: center;
  width: var(--s);
  height: var(--s);
  border-radius: 22%;
  border: 2px solid var(--edge);
  font-size: calc(var(--s) * 0.42);
  font-weight: 700;
  letter-spacing: -0.03em;
  box-shadow: 0 16px 30px -14px rgba(0, 0, 0, 0.9);
  opacity: 0;
  animation: appDrop 0.85s var(--spring) forwards;
  animation-delay: calc(0.15s + var(--i) * 0.13s);
  transition: translate 0.45s var(--spring), filter 0.35s, box-shadow 0.35s;
}
.app b { font-weight: 700; }
.app--pr,
.app--ae { background: #00005b; color: #9999ff; --edge: rgba(153, 153, 255, 0.55); }
.app--ps { background: #001e36; color: #31a8ff; --edge: rgba(49, 168, 255, 0.55); }
.app--dr { background: #1e1d1d; --edge: rgba(255, 255, 255, 0.2); }
@keyframes appDrop {
  0% { opacity: 0; transform: translateY(-70px) rotate(-16deg) scale(0.55); }
  55% { opacity: 1; }
  100% { opacity: 1; transform: none; }
}
/* destaque que pula de um programa para outro, como trocar de janela */
.apps.is-cycling .app { filter: brightness(0.55) saturate(0.7); }
.apps.is-cycling .app.is-active { filter: none; translate: 0 -10px; box-shadow: 0 0 0 2px var(--red), 0 22px 34px -12px rgba(207, 75, 83, 0.6); }

/* ---------- timeline de edição ---------- */
.tl {
  padding: 12px;
  border-radius: 14px;
  text-align: left;
  background: rgba(10, 10, 10, 0.6);
  border: 1px solid var(--line);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.9);
  opacity: 0;
  animation: rise 0.8s var(--ease) 0.75s forwards;
  translate: 0 24px;
}
.tl__bar { display: flex; justify-content: space-between; margin-bottom: 10px; font: 600 12px/1 ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; letter-spacing: 0.04em; }
.tl__tc { color: #f0c44c; font-variant-numeric: tabular-nums; }
.tl__pct { color: var(--muted); font-variant-numeric: tabular-nums; }
.tl__tracks { position: relative; display: grid; gap: 5px; }
.tl__track { display: grid; grid-template-columns: 26px 1fr; align-items: center; gap: 6px; }
.tl__track i { padding: 5px 0; border-radius: 4px; font: 600 10px/1 ui-monospace, Menlo, Consolas, monospace; font-style: normal; text-align: center; color: var(--dim); background: rgba(255, 255, 255, 0.05); }
.tl__lane { position: relative; height: 24px; border-radius: 4px; background: rgba(255, 255, 255, 0.04); overflow: hidden; }

.clip { position: absolute; top: 2px; bottom: 2px; left: var(--l); width: var(--w); border-radius: 3px; overflow: hidden; transform-origin: left; scale: 0 1; transition: scale 0.45s var(--ease); }
.clip.is-on { scale: 1 1; }
.clip--v2 { background: linear-gradient(180deg, #d9606a, #a33c44); }
/* V1 usa as thumbs dos vídeos, com a cor de clipe de vídeo do Premiere por cima */
.clip--v1 { background: #6c58b8 center / cover; box-shadow: inset 0 0 0 1px rgba(170, 150, 255, 0.6); }
.clip--v1::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(120, 98, 210, 0.55), rgba(80, 62, 160, 0.35)); }
.clip--a1 { background: linear-gradient(180deg, #3fae7d, #2a845d); }
.clip--a1::after {
  content: "";
  position: absolute;
  inset: 3px 2px;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.55) 0 1px, transparent 1px 3px);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 40%, #000 60%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 40%, #000 60%, transparent 100%);
}

.tl__playhead { position: absolute; top: -6px; bottom: -3px; left: calc(32px + (100% - 32px) * var(--p, 0)); width: 2px; margin-left: -1px; background: var(--red); box-shadow: 0 0 10px rgba(207, 75, 83, 0.9); }
.tl__playhead::before { content: ""; position: absolute; top: -2px; left: -5px; border: 6px solid transparent; border-top: 8px solid var(--red); border-bottom: 0; }

/* ---------- final: ícones se fundem, timeline sai e o nome aparece ---------- */
.loader__title { position: absolute; inset: 0; display: grid; place-content: center; margin: 0; font-size: clamp(40px, 12vw, 84px); font-weight: 600; line-height: 1; letter-spacing: -0.01em; text-transform: uppercase; pointer-events: none; }
.loader__title span { display: inline-block; opacity: 0; translate: 0 30px; }
.loader.is-finishing .apps { animation: appsOut 0.6s var(--ease) forwards; }
.loader.is-finishing .tl { animation: tlOut 0.5s var(--ease) forwards; }
.loader.is-finishing .loader__title span { animation: rise 0.8s var(--ease) 0.3s forwards; }
.loader.is-finishing .loader__title span + span { animation-delay: 0.42s; }
@keyframes appsOut { to { opacity: 0; scale: 0.25; gap: 0; filter: blur(8px); } }
@keyframes tlOut { from { opacity: 1; translate: 0 0; } to { opacity: 0; translate: 0 30px; } }
@keyframes rise { to { opacity: 1; translate: 0 0; } }


/* ================================================================== *
 * HEADER — claro sobre o hero, escuro no resto; some ao descer
 * ================================================================== */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: calc(12px + env(safe-area-inset-top)) var(--gutter) 12px;
  color: var(--text);
  background: rgba(28, 27, 27, 0.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: translate 0.45s var(--ease), background-color 0.45s, color 0.45s, border-color 0.45s;
}
.header.is-light { color: var(--ink); background: transparent; border-bottom-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.header.is-hidden { translate: 0 -100%; }

.logo { font-weight: 800; font-size: 20px; letter-spacing: -0.02em; text-decoration: none; }
.logo span { color: var(--red); }
.header__nav { display: none; gap: 30px; font-size: 13px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em; }
.header__nav a { text-decoration: none; opacity: 0.75; transition: opacity 0.3s, color 0.3s; }
.header__nav a:hover { opacity: 1; color: var(--red); }
@media (min-width: 900px) { .header__nav { display: flex; } }

/* ================================================================== *
 * 1. HERO — papel claro granulado
 * ================================================================== */
.hero {
  position: relative;
  height: 100svh;
  min-height: 600px;
  overflow: hidden;
  color: var(--ink);
  background-color: var(--paper);
  background-image: url("assets/dust-light.png"), radial-gradient(ellipse at 50% 40%, #f7f6f4 0%, #e6e4e1 100%);
  background-size: 640px 640px, 100% 100%;
}
.hero__stage { position: absolute; inset: 0; }

.hero__head {
  position: absolute;
  top: calc(84px + env(safe-area-inset-top));
  left: 50%;
  translate: -50% 0;
  width: max-content;
  will-change: transform;
}
.hero__labels { display: flex; justify-content: space-between; margin: 0 0.4em 6px; font-size: 12px; font-weight: 400; letter-spacing: 0.02em; text-transform: uppercase; color: #4a4848; opacity: 0; transition: opacity 0.8s var(--ease) 0.9s; }
.hero.is-in .hero__labels { opacity: 1; }

.hero__word {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: min(50vw, 29svh);
  line-height: 0.86;
  letter-spacing: 0.01em;
  text-align: center;
}
.hero__line { display: block; }
/* cada letra recebe o degradê pontilhado (preto em cima, vermelho embaixo) */
.hero__word .l {
  display: inline-block;
  /* área extra acima para o acento (Ó) também receber o degradê */
  padding-top: 0.14em;
  margin-top: -0.14em;
  color: transparent;
  background: url("assets/grain-red.png") center / 100% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  opacity: 0;
  translate: 0 35%;
  filter: blur(6px);
  transition: opacity 0.8s var(--ease), translate 1s var(--ease), filter 0.9s var(--ease);
  transition-delay: calc(var(--i) * 55ms + 0.15s);
}
.hero.is-in .hero__word .l { opacity: 1; translate: 0 0; filter: blur(0); }

.hero__cutout {
  position: absolute;
  left: 50%;
  bottom: 0;
  z-index: 2;
  width: min(112vw, 62svh);
  max-width: none;
  translate: -47% 0;
  filter: grayscale(1) contrast(1.08) brightness(1.02);
  -webkit-mask-image: linear-gradient(to bottom, #000 60%, transparent 96%);
  mask-image: linear-gradient(to bottom, #000 60%, transparent 96%);
  opacity: 0;
  transform: translateY(50px) scale(1.03);
  transition: opacity 1.1s var(--ease) 0.45s, transform 1.4s var(--ease) 0.45s;
}
.hero.is-in .hero__cutout { opacity: 1; transform: translateY(var(--py, 0px)); transition: opacity 1.1s var(--ease) 0.45s, transform 1.4s var(--ease) 0.45s; }
.hero.is-settled .hero__cutout { transition: opacity 0s, transform 0s; }

/* névoa branca na base (como no Behance) */
.hero__stage::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  height: 22%;
  background: linear-gradient(to top, rgba(239, 238, 236, 0.95), transparent);
  pointer-events: none;
}

.hero__role {
  position: absolute;
  left: var(--gutter);
  bottom: calc(26px + env(safe-area-inset-bottom));
  z-index: 4;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  font-size: clamp(20px, 6vw, 44px);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: #4d4b4b;
}
.hero__slash { font-style: italic; font-weight: 800; color: var(--red-hot); opacity: 0; translate: -20px 0; transition: opacity 0.6s var(--ease) 1.05s, translate 0.6s var(--ease) 1.05s; }
.hero__role-text { display: flex; flex-direction: column; }
.hero__role-text span { display: block; opacity: 0; translate: 0 16px; transition: opacity 0.6s var(--ease), translate 0.6s var(--ease); }
.hero__role-text span:nth-child(1) { transition-delay: 1.15s; }
.hero__role-text span:nth-child(2) { transition-delay: 1.25s; }
.hero.is-in .hero__slash,
.hero.is-in .hero__role-text span { opacity: 1; translate: 0 0; }

@media (min-width: 900px) {
  .hero__head { top: 20vh; }
  .hero__labels { font-size: clamp(14px, 1.4vw, 22px); }
  .hero__word { font-size: min(22vw, 46vh); }
  .hero__line { display: inline; }
  .hero__cutout { width: min(44vw, 80vh); translate: -50% 0; }
  .hero__role { left: 12vw; bottom: 9vh; font-size: min(2.9vw, 5.4vh); }
}

/* ================================================================== *
 * 2. SOBRE
 * ================================================================== */
.about,
.block,
.footer {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.about { display: grid; gap: 34px; padding-top: 80px; padding-bottom: 40px; }

/* foto: no celular ocupa a largura toda e dissolve no fundo; o nome sobe por cima */
.about__photo { position: relative; margin: 0 calc(-1 * var(--gutter)); overflow: hidden; isolation: isolate; }
.about__photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 30%;
  filter: grayscale(1) contrast(1.12) brightness(0.95);
  clip-path: inset(100% 0 0 0);
  scale: 1.12;
  transition: clip-path 1.2s var(--ease), scale 1.8s var(--ease);
}
.about__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(28, 27, 27, 0.35) 0%, transparent 22%, transparent 48%, var(--bg) 97%),
    radial-gradient(ellipse 70% 50% at 0% 100%, rgba(207, 75, 83, 0.45), transparent 70%);
}
.about__photo.is-in img { clip-path: inset(0 0 0 0); scale: 1; }


.about__body { position: relative; z-index: 2; margin-top: -120px; }

.about__name { margin: 0; font-weight: 500; line-height: 0.95; }
.about__hi { font-size: clamp(20px, 5vw, 32px); }
.about__first { font-size: clamp(54px, 15vw, 96px); font-weight: 500; letter-spacing: -0.02em; }
.about__last { display: block; font-size: clamp(54px, 15vw, 96px); font-weight: 500; letter-spacing: -0.02em; color: var(--red); }

.about__text { margin: 22px 0 0; max-width: 54ch; font-size: 15px; line-height: 1.8; color: var(--muted); }

.about__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 30px 0 0; padding: 0; list-style: none; }
.about__stats li { padding: 4px 10px 4px 12px; border-left: 3px solid var(--red); line-height: 1.25; }
.about__stats li:last-child { border-right: 3px solid var(--red); }
.about__stats li:nth-child(2) { --d: 0.1s; }
.about__stats li:nth-child(3) { --d: 0.2s; }
.about__stats strong { display: block; font-size: clamp(26px, 7.5vw, 40px); font-weight: 600; line-height: 1.05; color: var(--red); font-variant-numeric: tabular-nums; }
.about__stats li > span { display: block; margin-top: 4px; font-size: clamp(12px, 3.4vw, 20px); font-weight: 500; line-height: 1.25; color: var(--text); }

@media (min-width: 900px) {
  .about { grid-template-columns: 0.82fr 1fr; align-items: center; gap: 72px; padding-top: 140px; }
  .about__text { font-size: 17px; }
  /* desktop: foto com cantos arredondados e contorno vermelho deslocado atrás */
  .about__photo { margin: 0 18px 18px 0; overflow: visible; }
  .about__photo img { border-radius: 26px; }
  .about__photo::after { border-radius: 26px; background: linear-gradient(to bottom, transparent 55%, rgba(28, 27, 27, 0.75) 100%), radial-gradient(ellipse 70% 50% at 0% 100%, rgba(207, 75, 83, 0.4), transparent 70%); }
  .about__photo::before {
    content: "";
    position: absolute;
    inset: 18px -18px -18px 18px;
    z-index: -1;
    border: 1.5px solid var(--red);
    border-radius: 26px;
    opacity: 0;
    translate: -18px -18px;
    transition: opacity 0.8s var(--ease) 0.6s, translate 1s var(--ease) 0.6s;
  }
  .about__photo.is-in::before { opacity: 1; translate: 0 0; }
  .about__body { margin-top: 0; }
}

/* ================================================================== *
 * ESPECIALIDADES + FERRAMENTAS
 * ================================================================== */
.block { padding-top: 64px; padding-bottom: 16px; }
@media (min-width: 900px) { .block { padding-top: 96px; } }

.block__title { display: flex; align-items: center; gap: 12px; margin: 0 0 22px; font-size: clamp(26px, 7vw, 46px); font-weight: 700; line-height: 1.1; letter-spacing: 0.01em; }
.arrow { color: var(--red); font-weight: 800; }

.expertise { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 18px; margin: 0; padding: 0 0 0 4px; list-style: none; }
.expertise li { position: relative; padding-left: 18px; font-size: 15px; font-weight: 400; line-height: 1.35; color: var(--text); }
.expertise li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 7px; height: 7px; border-radius: 50%; background: var(--red); }
@media (min-width: 900px) { .expertise { grid-template-columns: repeat(3, 1fr); gap: 16px 40px; padding-left: 52px; } .expertise li { font-size: 21px; } }

.tools { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 22px; margin: 0; padding: 0 0 0 4px; list-style: none; }
.tool__head { display: flex; align-items: center; gap: 12px; }
.tool__icon { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 9px; font-size: 18px; font-weight: 700; letter-spacing: -0.02em; }
.tool__name { font-size: 15px; font-weight: 400; line-height: 1.15; color: var(--text); }
.tool__name small { display: block; font-size: inherit; }
.tool__bar { height: 6px; margin-top: 12px; border-radius: 6px; background: #6a6767; overflow: hidden; }
.tool__bar span { display: block; height: 100%; width: var(--v); border-radius: 6px; background: linear-gradient(90deg, #b8434a, var(--red)); transform-origin: left; scale: 0 1; transition: scale 1.3s var(--ease); transition-delay: calc(var(--i, 0) * 90ms + 0.2s); }
.tool.is-in .tool__bar span { scale: 1 1; }
@media (min-width: 900px) { .tools { grid-template-columns: repeat(4, 1fr); gap: 40px 56px; padding-left: 52px; } .tool__icon { width: 56px; height: 56px; font-size: 26px; border-radius: 10px; } .tool__name { font-size: 21px; } }

/* ================================================================== *
 * SUMÁRIO
 * ================================================================== */
.contents { padding-bottom: 72px; }
.contents__title { margin: 0 0 18px; font-size: clamp(40px, 11vw, 72px); font-weight: 700; line-height: 1; letter-spacing: 0.01em; text-transform: uppercase; }
.contents__box { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); counter-reset: none; }

.contents__item a {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 18px 4px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  isolation: isolate;
}
/* faixa vermelha que varre a linha no hover/toque */
.contents__item a::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(207, 75, 83, 0.22), rgba(207, 75, 83, 0) 75%);
  transform-origin: left;
  scale: 0 1;
  transition: scale 0.6s var(--ease);
}
.contents__item a:hover::before,
.contents__item a:focus-visible::before { scale: 1 1; }

.contents__num {
  min-width: 1.15em;
  font-family: var(--display);
  font-size: clamp(46px, 13vw, 92px);
  line-height: 0.85;
  color: transparent;
  -webkit-text-stroke: 1.2px var(--red);
  transition: color 0.4s var(--ease);
}
.contents__item a:hover .contents__num { color: var(--red); }

.contents__text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.contents__label { font-size: clamp(17px, 4.7vw, 34px); font-weight: 600; line-height: 1.1; letter-spacing: 0.01em; text-transform: uppercase; color: var(--text); }
.contents__count { font-size: 11px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--dim); }

.contents__thumbs { display: none; }
.contents__arrow { font-size: 24px; line-height: 1; color: var(--red); transition: translate 0.4s var(--ease), rotate 0.4s var(--ease); }
.contents__item a:hover .contents__arrow { translate: 4px 4px; rotate: -45deg; }

.contents__item { opacity: 0; translate: -30px 0; transition: opacity 0.7s var(--ease), translate 0.8s var(--ease); transition-delay: calc(var(--i, 0) * 110ms); }
.contents__item.is-in { opacity: 1; translate: 0 0; }

@media (min-width: 900px) {
  .contents__item a { grid-template-columns: 140px 1fr auto 48px; gap: 24px; padding: 26px 12px; }
  /* mini-thumbs empilhadas que se abrem no hover */
  .contents__thumbs { display: flex; padding-right: 12px; }
  .contents__thumbs img { width: 46px; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 6px; border: 2px solid var(--bg); margin-left: -16px; box-shadow: 0 10px 20px -10px rgba(0, 0, 0, 0.9); transition: margin 0.5s var(--ease), rotate 0.5s var(--ease); }
  .contents__thumbs img:nth-child(1) { rotate: -8deg; }
  .contents__thumbs img:nth-child(3) { rotate: 8deg; }
  .contents__item a:hover .contents__thumbs img { margin-left: 6px; rotate: 0deg; }
  .contents__arrow { font-size: 30px; }
}

/* ================================================================== *
 * DIVISÓRIA DE CATEGORIA + MÓDULO DE VÍDEOS
 * ================================================================== */
.divider { position: relative; display: grid; place-items: center; min-height: 78svh; padding: 80px var(--gutter); text-align: center; }
.divider__labels { position: absolute; top: 28px; left: var(--gutter); right: var(--gutter); display: flex; justify-content: space-between; gap: 12px; font-size: 11px; font-weight: 300; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
/* tamanho pela palavra mais longa (--chars, no app.js) para nunca encostar nas bordas */
.divider__title { margin: 0; font-size: min(110px, calc(86vw / (var(--chars, 10) * 0.72))); font-weight: 500; line-height: 0.98; text-transform: uppercase; }
.divider__title span { display: block; opacity: 0; letter-spacing: 0.25em; filter: blur(8px); transition: opacity 1s var(--ease), letter-spacing 1.2s var(--ease), filter 1s var(--ease); }
.divider__title span + span { color: var(--red); transition-delay: 0.15s; }
.divider.is-in .divider__title span { opacity: 1; letter-spacing: 0; filter: blur(0); }
.divider__count { position: absolute; bottom: 28px; left: 0; right: 0; font-size: 12px; font-weight: 500; letter-spacing: 0.25em; text-transform: uppercase; color: var(--dim); }
@media (min-width: 900px) { .divider { min-height: 100svh; } .divider__labels { top: 13%; left: 8%; right: 8%; font-size: 16px; } }

.vmodule { background: rgba(0, 0, 0, 0.28); padding: 36px 0 30px; border-block: 1px solid rgba(255, 255, 255, 0.05); }
.vrow {
  display: flex;
  gap: 16px;
  padding: 0 calc(50% - 34vw);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.vrow::-webkit-scrollbar { display: none; }
.vrow--single { justify-content: center; }
.vrow--wide { padding: 0 var(--gutter); }
.vrow + .vrow { margin-top: 36px; }

.vcard { flex: 0 0 68vw; max-width: 340px; scroll-snap-align: center; margin: 0; opacity: 0; translate: 0 40px; transition: opacity 0.7s var(--ease), translate 0.9s var(--spring); }
.vrow--wide .vcard { flex: 1 1 auto; max-width: 1080px; margin: 0 auto; }
.vcard.is-in { opacity: 1; translate: 0 0; }

.vcard__btn {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 24px;
  background: #2a2828;
  cursor: pointer;
  box-shadow: 0 30px 50px -28px rgba(0, 0, 0, 0.9);
  transition: transform 0.4s var(--ease);
}
.vrow--wide .vcard__btn { aspect-ratio: 16 / 9; border-radius: 18px; }
.vcard__btn:active { transform: scale(0.98); }

.vcard__lqip { position: absolute; inset: -20px; background-size: cover; background-position: center; filter: blur(18px); scale: 1.1; }
.vcard__thumb,
.vcard__preview { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vcard__thumb { opacity: 0; transition: opacity 0.7s var(--ease), scale 1.2s var(--ease); }
.vcard.is-thumb-loaded .vcard__thumb { opacity: 1; }
.vcard__preview { opacity: 0; transition: opacity 0.5s; }
.vcard.is-previewing .vcard__preview { opacity: 1; }
.vcard__shade { position: absolute; inset: auto 0 0; height: 40%; background: linear-gradient(to top, rgba(0, 0, 0, 0.55), transparent); pointer-events: none; }

.vcard__play { position: absolute; left: 14px; bottom: 14px; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(0, 0, 0, 0.55); border: 1px solid rgba(255, 255, 255, 0.25); transition: background-color 0.3s, scale 0.4s var(--spring), opacity 0.3s; }
.vcard__time { position: absolute; right: 14px; bottom: 22px; font-size: 12px; font-weight: 600; color: #fff; text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6); font-variant-numeric: tabular-nums; }
.vcard.is-previewing .vcard__play { opacity: 0; }

.vcard__cap { margin: 14px 4px 0; }
.vcard__title { margin: 0; font-size: 16px; font-weight: 600; line-height: 1.3; color: var(--text); }
.vcard__meta { margin: 3px 0 0; font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--red); }
.vcard__desc { margin: 6px 0 0; font-size: 13px; line-height: 1.5; color: var(--muted); }

.vrow__hint { margin: 14px 0 0; text-align: center; font-size: 11px; font-weight: 500; letter-spacing: 0.25em; text-transform: uppercase; color: var(--dim); }

@media (min-width: 900px) {
  .vmodule { padding: 64px 0 56px; }
  .vrow { display: grid; grid-template-columns: repeat(3, minmax(0, 300px)); justify-content: center; gap: 48px; padding: 0 var(--gutter); overflow: visible; }
  .vrow--single { grid-template-columns: minmax(0, 320px); }
  .vrow--wide { display: block; }
  .vcard { max-width: none; }
  .vrow__hint { display: none; }
  .vcard__btn:hover { transform: translateY(-6px); }
  .vcard__btn:hover .vcard__play { background: var(--red); scale: 1.1; }
  .vcard__btn:hover .vcard__thumb { scale: 1.04; }
}

/* ================================================================== *
 * OBRIGADO + CONTATO
 * ================================================================== */
.thanks { position: relative; overflow: hidden; padding: 120px var(--gutter) 90px; text-align: center; isolation: isolate; }
.thanks__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url("https://ik.imagekit.io/oi583d4cj/mk/IMG_1996.JPG.webp?tr=w-1200") center 30% / cover;
  filter: grayscale(1) blur(6px) brightness(0.45);
  opacity: 0.35;
  scale: 1.1;
}
.thanks::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse 50% 70% at 100% 60%, rgba(170, 40, 46, 0.45), transparent 70%), linear-gradient(to bottom, var(--bg), transparent 30%, transparent 70%, var(--bg)); }
.thanks__labels { position: absolute; top: 28px; left: var(--gutter); right: var(--gutter); display: flex; justify-content: space-between; font-size: 11px; font-weight: 300; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.thanks__title { margin: 0; font-size: clamp(46px, 13vw, 120px); font-weight: 500; line-height: 1; text-transform: uppercase; }
.thanks__text { max-width: 40ch; margin: 16px auto 0; font-size: 15px; color: var(--muted); }

.contact {
  display: grid;
  gap: 14px;
  max-width: 980px;
  margin: 40px auto 0;
  padding: 20px 22px;
  border-radius: 20px;
  text-align: left;
  background: linear-gradient(180deg, #c0525a, #93363c);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.contact__who strong { display: block; font-size: 24px; font-weight: 600; line-height: 1.1; }
.contact__who small { font-size: 12px; color: rgba(255, 255, 255, 0.8); }
.contact__item { display: block; padding-top: 12px; border-top: 1.5px solid rgba(255, 255, 255, 0.4); text-decoration: none; }
.contact__item small { display: block; font-size: 11px; color: rgba(255, 255, 255, 0.75); }
.contact__item span { font-size: clamp(18px, 5vw, 26px); font-weight: 500; line-height: 1.2; }
.contact__item:hover span { text-decoration: underline; text-underline-offset: 4px; }
@media (min-width: 900px) {
  .thanks { padding: 200px var(--gutter) 160px; }
  .thanks__labels { top: 13%; left: 8%; right: 8%; font-size: 16px; }
  .contact { grid-template-columns: auto auto auto; justify-content: space-between; align-items: center; gap: 0; padding: 22px 34px; }
  .contact__item { padding: 0 0 0 28px; border-top: 0; border-left: 2px solid rgba(255, 255, 255, 0.5); }
}

/* ---------- footer ---------- */
.footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding-top: 22px; padding-bottom: calc(32px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); font-size: 13px; color: var(--dim); }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--red); }
@media (min-width: 900px) { .footer { padding-bottom: 32px; } }


/* ================================================================== *
 * REVELAÇÕES GENÉRICAS
 * ================================================================== */
[data-anim="up"] { opacity: 0; translate: 0 30px; transition: opacity 0.8s var(--ease), translate 0.9s var(--ease); transition-delay: var(--d, 0s); }
[data-anim="item"] { opacity: 0; translate: 0 14px; transition: opacity 0.6s var(--ease), translate 0.6s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
[data-anim].is-in { opacity: 1; translate: 0 0; }
.tool { opacity: 0; translate: 0 18px; transition: opacity 0.6s var(--ease), translate 0.7s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
.tool.is-in { opacity: 1; translate: 0 0; }

/* ================================================================== *
 * LIGHTBOX
 * ================================================================== */
.lightbox { position: fixed; inset: 0; z-index: 50; display: grid; grid-template-columns: 1fr; align-items: center; padding: calc(64px + env(safe-area-inset-top)) 12px calc(12px + env(safe-area-inset-bottom)); background: rgba(12, 11, 11, 0.95); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); opacity: 0; transition: opacity 0.35s var(--ease); }
.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; }
.lightbox__stage { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; min-width: 0; }
.lightbox__frame { position: relative; overflow: hidden; border-radius: 18px; background: #000; aspect-ratio: 9 / 16; height: min(72vh, 72dvh); max-width: 100%; scale: 0.92; transition: scale 0.5s var(--spring); }
.lightbox.is-open .lightbox__frame { scale: 1; }
.lightbox__frame.is-wide { aspect-ratio: 16 / 9; height: auto; width: min(1100px, 100%); max-height: 80vh; }
.lightbox__poster,
.lightbox__frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.lightbox__frame video { opacity: 0; transition: opacity 0.4s; }
.lightbox__frame.is-ready video { opacity: 1; }
.lightbox__spinner { position: absolute; top: 50%; left: 50%; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.15); border-top-color: var(--red); animation: spin 0.9s linear infinite; }
.lightbox__frame.is-ready .lightbox__spinner { display: none; }
@keyframes spin { to { rotate: 360deg; } }
.lightbox__caption { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 17px; font-weight: 600; text-align: center; }
.lightbox__meta { font-size: 11px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.lightbox__close,
.lightbox__nav { display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, 0.25); border-radius: 50%; background: rgba(0, 0, 0, 0.35); color: #fff; cursor: pointer; transition: background-color 0.3s; }
.lightbox__close:hover,
.lightbox__nav:hover { background: var(--red); }
.lightbox__close { position: absolute; top: calc(14px + env(safe-area-inset-top)); right: 14px; z-index: 2; width: 44px; height: 44px; }
.lightbox__nav { position: absolute; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 2; width: 48px; height: 48px; font-size: 26px; line-height: 1; }
.lightbox__nav--prev { left: 16px; }
.lightbox__nav--next { right: 16px; }
@media (min-width: 768px) {
  .lightbox { grid-template-columns: auto 1fr auto; gap: 8px; padding: 16px; }
  .lightbox__nav { position: static; }
  .lightbox__frame { height: min(82vh, 82dvh); }
  .lightbox__caption { flex-direction: row; align-items: baseline; gap: 14px; }
}

/* ================================================================== *
 * MOVIMENTO REDUZIDO
 * ================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
}

/* ================================================================== *
 * VERSÃO AGENT — enquanto o swarm.js monta a página, as entradas próprias
 * do site ficam desligadas (os elementos já estão no estado final)
 * ================================================================== */
.swarm-mode [data-anim],
.swarm-mode .tool,
.swarm-mode .tool__bar span,
.swarm-mode .contents__item,
.swarm-mode .vcard,
.swarm-mode .divider__title span,
.swarm-mode .about__photo img,
.swarm-mode .hero__word .l,
.swarm-mode .hero__cutout,
.swarm-mode .hero__labels,
.swarm-mode .hero__slash,
.swarm-mode .hero__role-text span { transition: none !important; }
