/* ==========================================================================
   Portfólio — Julionito Garllards
   Folha única, compartilhada por todas as páginas. Sem build, sem CDN.
   ========================================================================== */

:root {
  --bg: #f6f5f2;
  --panel: #ffffff;
  --line: #e2e1dc;
  --fg: #16181d;
  --muted: #5b606b;
  --accent: #1fa84f; /* padrão; cada coluna/case sobrescreve inline */
  --max: 860px;
  --r: 14px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  color-scheme: light;
}

/* Modo escuro: ativado pelo botão do topo (theme.js põe data-theme no <html>) */
:root[data-theme="dark"] {
  --bg: #0c0d10;
  --panel: #15171c;
  --line: #23262e;
  --fg: #f2f3f5;
  --muted: #9aa0ac;
  color-scheme: dark;
}

/* --accent pode ser uma cor de marca clara (amarelo, verde neon) que some no fundo claro.
   Para texto usamos --accent-ink, a mesma cor escurecida. Ela é recalculada em todo elemento
   que redefine --accent inline, senão herdaria o valor do :root. */
:root, [style*="--accent"] { --accent-ink: color-mix(in srgb, var(--accent) 55%, #101010); }
/* no escuro a cor da marca já é legível: usa ela mesma */
:root[data-theme="dark"], [data-theme="dark"] [style*="--accent"] { --accent-ink: var(--accent); }
:root { --on-accent: #fff; }
:root[data-theme="dark"] { --on-accent: var(--bg); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.65 -apple-system, "Inter", "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.1; }
:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 3px; }

/* Chips ------------------------------------------------------------------ */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chips li {
  padding: 4px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

/* Header ----------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 56px;
  padding: 0 24px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.brand { display: flex; align-items: center; gap: 10px; white-space: nowrap; text-decoration: none; }
.brand-name { font-weight: 600; color: var(--accent-ink); }
.home .brand-name { color: var(--fg); }
.brand-sep { color: var(--line); }
.brand-role { color: var(--muted); font-size: 13px; }
.nav { display: flex; align-items: center; gap: 20px; }
.nav-link { color: var(--muted); font-size: 14px; text-decoration: none; transition: color .2s; }
.nav-link:hover { color: var(--fg); }
.btn-cv {
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--fg);
  font-size: 14px;
  text-decoration: none;
  transition: border-color .2s, color .2s;
}
.btn-cv:hover { border-color: var(--accent-ink); color: var(--accent-ink); }

/* Botão de tema */
.theme-toggle {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--fg);
  cursor: pointer;
  transition: border-color .2s, background .2s;
}
.theme-toggle:hover { border-color: var(--muted); background: var(--panel); }
.theme-toggle .icon-sun,
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }

@media (max-width: 720px) { .nav-link { display: none; } }
@media (max-width: 560px) { .brand-sep, .brand-role { display: none; } }

/* ==========================================================================
   Home — colunas expansíveis
   --o: 0 (fechada) → 1 (aberta). Filhos derivam opacidade/posição dele.
   ========================================================================== */

body.home { display: flex; flex-direction: column; height: 100vh; height: 100dvh; overflow: hidden auto; }
/* altura mínima: em janelas baixas a home rola em vez de cortar o conteúdo das colunas */
.cols { display: flex; flex: 1 0 auto; min-height: 620px; }
/* largura útil da coluna aberta: 6 colunas com 48px de padding cada; a aberta leva 5/7,5 do espaço restante */
.cols { --open-w: calc((100vw - 288px) * .66); }

.col {
  --o: 0;
  position: relative;
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  justify-content: flex-end;
  min-width: 0;
  padding: 28px 24px;
  overflow: hidden;
  border-left: 1px solid var(--line);
  background: var(--panel);
  color: var(--fg);
  text-decoration: none;
  transition: flex-grow .5s var(--ease);
}
.col:first-child { border-left: 0; }
.col:focus-visible { outline-offset: -2px; }

.col::before,
.col::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  transition: opacity .5s var(--ease), filter .5s var(--ease);
}
.col::before {
  background: linear-gradient(180deg, transparent 35%, color-mix(in srgb, var(--accent) 22%, transparent));
  opacity: calc(.28 + .32 * var(--o));
  filter: grayscale(calc(.4 - .4 * var(--o)));
}
.col::after {
  z-index: 1;
  background: linear-gradient(180deg, color-mix(in srgb, var(--bg) 80%, transparent), transparent 60%);
  opacity: calc(.9 - .2 * var(--o));
}

/* Foto de fundo opcional da coluna: <span class="col-bg"> + style="--img:url(...)" */
.col-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--img, none) center / cover no-repeat;
  filter: grayscale(calc(1 - .7 * var(--o)));
  opacity: calc(.35 + .2 * var(--o));
  transition: opacity .5s var(--ease), filter .5s var(--ease);
}
/* escurece a base da foto para o texto da coluna aberta ficar legível */
.col-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, var(--bg) 8%, color-mix(in srgb, var(--bg) 70%, transparent) 45%, transparent 75%);
}

.col-idx {
  position: absolute;
  top: 28px;
  left: 24px;
  z-index: 2;
  color: var(--accent-ink);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
}
.col-label {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  writing-mode: vertical-rl;
  transform: translate(-50%, -50%) rotate(180deg);
  font-size: clamp(18px, 1.6vw, 24px);
  font-weight: 600;
  letter-spacing: -.01em;
  white-space: nowrap;
  opacity: calc(1 - var(--o));
  transition: opacity .3s var(--ease);
}
.col-more {
  position: relative;
  z-index: 2;
  width: min(440px, var(--open-w)); /* largura fixa: evita reflow durante a expansão */
  opacity: var(--o);
  transform: translateY(calc(12px - 12px * var(--o)));
  transition: opacity .4s var(--ease), transform .4s var(--ease);
  transition-delay: calc(.1s * var(--o)); /* atraso só ao abrir */
}

.col-cat {
  display: block;
  margin-bottom: 12px;
  color: var(--accent-ink);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.col-more h2 { margin-bottom: 12px; font-size: clamp(28px, 3.2vw, 44px); letter-spacing: -.03em; }
.col-role { margin: -4px 0 12px; font-size: 15px; font-weight: 600; }
.col-lede { margin: 0 0 10px; color: var(--fg); font-size: 16px; font-weight: 500; }
.col-text { margin: 0 0 20px; color: var(--muted); font-size: 15px; }
.col-tag {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.col-more .chips { margin-bottom: 24px; }
.col-cta {
  display: inline-block;
  padding-bottom: 2px;
  border-bottom: 1px solid color-mix(in srgb, var(--accent-ink) 50%, transparent);
  color: var(--accent-ink);
  font-size: 14px;
  font-weight: 600;
}
.col-cta + .col-cta { margin-left: 20px; }
.col-foot { margin: 28px 0 0; color: var(--muted); font-size: 12px; }
/* Página Sobre */
.about-hero { display: flex; align-items: center; gap: 32px; }
.about-photo { flex: none; width: 160px; height: 160px; border-radius: 50%; object-fit: cover; object-position: center 20%; border: 1px solid var(--line); }
.about-hero h1 { margin-bottom: 8px; }
.about-hero .lede { margin: 0 0 6px; color: var(--fg); font-weight: 500; }
.about-loc { margin: 0; color: var(--muted); font-size: 14px; }
.about-intro { color: var(--fg) !important; font-size: 18px; }
@media (max-width: 560px) { .about-hero { flex-direction: column; align-items: flex-start; gap: 20px; } .about-photo { width: 120px; height: 120px; } }
.about-list { display: grid; gap: 6px; margin: 0 0 20px; padding: 0; list-style: none; }
.about-list li { position: relative; padding-left: 16px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.about-list li::before { content: ""; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* Foto (col 01) — estado fechado como base */
.col-photo {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 0;
  width: 100%;
  height: 50%;
  object-fit: cover;
  object-position: center top;
  filter: grayscale(.55);
  opacity: .6;
  -webkit-mask-image: linear-gradient(180deg, #000 40%, transparent);
  mask-image: linear-gradient(180deg, #000 40%, transparent);
  transition: width .5s var(--ease), height .5s var(--ease), opacity .5s, filter .5s;
}

/* Coluna de projetos: lista de cards dentro da coluna */
.col--projects .col-more { width: min(560px, var(--open-w)); }
.proj-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.proj-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 16px 10px 10px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  color: var(--fg);
  text-decoration: none;
  transition: border-color .2s, background .2s;
}
.proj-card:hover, .proj-card:focus-visible { border-color: var(--accent-ink); background: color-mix(in srgb, var(--accent) 14%, var(--panel)); }
.proj-card img { flex: none; width: 96px; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border-radius: 8px; }
.proj-info { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.proj-name { font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.proj-meta { color: var(--muted); font-size: 13px; }
.proj-arrow { color: var(--accent-ink); font-size: 18px; transition: transform .2s; }
.proj-card:hover .proj-arrow { transform: translateX(3px); }

/* Coluna iGaming (promocional): mural de peças no fundo, ancorado no topo (o texto fica embaixo) */
.col--promo .col-bg,
.col--social .col-bg { background-position: center top; }

/* Coluna mascotes: montagem com todos os personagens no fundo, ancorada no topo (o texto fica embaixo) */
.col--mascots .col-bg { background-position: center top; background-size: cover; }

/* Coluna de contato */
.col--form { justify-content: center; }
.col--form .col-more { width: min(760px, var(--open-w)); }
.contact-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  margin: 0 0 28px;
  color: var(--line);
}
.contact-line a { color: var(--accent-ink); font-size: 15px; font-weight: 600; text-decoration: none; }
.contact-line a:hover { text-decoration: underline; }
/* redes sociais: ícone + nome, em pílulas */
.social { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 28px; padding: 0; list-style: none; }
.social a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--fg);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: border-color .2s, color .2s, background .2s;
}
.social a:hover, .social a:focus-visible { border-color: var(--accent-ink); color: var(--accent-ink); background: color-mix(in srgb, var(--accent) 10%, transparent); }
.social svg { flex: none; }

.lead-form label {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.form-row { display: flex; align-items: flex-start; gap: 10px; }
.field {
  flex: 1;
  min-width: 0;
  height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  outline: none;
  background: transparent;
  color: var(--fg);
  font: inherit;
  font-size: 15px;
  transition: border-color .2s;
}
.field:focus { border-color: var(--accent-ink); }
textarea.field { height: auto; min-height: 92px; padding: 12px 18px; border-radius: 20px; resize: vertical; }
.btn {
  height: 44px;
  padding: 0 20px;
  border: 1px solid var(--accent-ink);
  border-radius: 999px;
  background: transparent;
  color: var(--accent-ink);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.btn:hover, .btn:focus-visible { background: var(--accent-ink); color: var(--on-accent); }
.step[hidden] { display: none; }
.step:focus { outline: none; }
.form-done { margin: 0; color: var(--accent-ink); font-size: 18px; font-weight: 600; }
.form-status { margin: 12px 0 0; color: var(--muted); font-size: 14px; }
.form-status a { color: var(--accent-ink); }
.btn:disabled { opacity: .6; cursor: progress; }

/* Estados — desktop (só CSS) --------------------------------------------- */
@media (min-width: 721px) {
  /* 01 aberta por padrão; hover nela não mexe nos vizinhos */
  .col.fixed { flex-grow: 5; --o: 1; }
  .col.fixed .col-photo {
    width: 56%;
    height: 100%;
    filter: none;
    opacity: .92;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 62%);
    mask-image: linear-gradient(90deg, transparent, #000 62%);
  }

  /* Outra coluna ativa (hover, ou foco sem hover na área) → todas encolhem */
  .cols:has(> .col:not(.fixed):hover) > .col,
  .cols:not(:hover):has(> .col:not(.fixed):focus-visible, > .col:not(.fixed) :focus-visible) > .col {
    flex-grow: .5;
    --o: 0;
  }
  .cols:has(> .col:not(.fixed):hover) .col-photo,
  .cols:not(:hover):has(> .col:not(.fixed):focus-visible, > .col:not(.fixed) :focus-visible) .col-photo {
    width: 100%;
    height: 50%;
    filter: grayscale(.55);
    opacity: .6;
    -webkit-mask-image: linear-gradient(180deg, #000 40%, transparent);
    mask-image: linear-gradient(180deg, #000 40%, transparent);
  }

  /* …e a ativa abre. Hover tem prioridade sobre foco: com a 01 em hover,
     o .col-more da 05 some mesmo com um input focado (guarda do form). */
  .cols:has(> .col:not(.fixed):hover) > .col:not(.fixed):hover,
  .cols:not(:hover):has(> .col:not(.fixed):focus-visible, > .col:not(.fixed) :focus-visible)
    > .col:not(.fixed):is(:focus-visible, :has(:focus-visible)) {
    flex-grow: 5;
    --o: 1;
  }
}

/* Mobile — acordeão ------------------------------------------------------ */
@media (max-width: 720px) {
  body.home { display: block; height: auto; overflow: visible; }
  .cols { flex-direction: column; min-height: 0; }

  .col {
    display: block;
    flex: none;
    padding: 22px 24px;
    border-top: 1px solid var(--line);
    border-left: 0;
    cursor: pointer;
    transition: none;
  }
  .col:first-child { border-top: 0; }
  .col.open { --o: 1; }

  .col-idx { position: relative; top: auto; left: auto; display: block; margin-bottom: 4px; }
  .col-label {
    position: relative;
    top: auto;
    left: auto;
    display: block;
    writing-mode: horizontal-tb;
    transform: none;
    font-size: 22px;
    opacity: 1;
  }
  .col-more {
    width: auto;
    max-height: 0;
    overflow: hidden;
    transform: none;
    transition: max-height .45s var(--ease), opacity .3s var(--ease);
  }
  .col.open .col-more { max-height: 1000px; }
  .col:not(.fixed) .col-more h2 { display: none; }
  .col:not(.fixed) .col-cat { margin-top: 16px; }

  /* 01 sempre aberta */
  .col.fixed {
    --o: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 620px;
    cursor: default;
  }
  .col.fixed::after { display: none; }
  .col.fixed .col-idx { position: absolute; top: 22px; left: 24px; }
  .col.fixed .col-label { display: none; }
  .col.fixed .col-more { max-height: none; }
  .col.fixed .col-photo {
    width: 100%;
    height: 54%;
    object-position: center 22%;
    filter: grayscale(.12);
    opacity: 1;
    -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent);
    mask-image: linear-gradient(180deg, #000 55%, transparent);
  }

  .col--form .col-more,
  .col--projects .col-more,
  .col--promo .col-more,
  .col--social .col-more,
  .col--mascots .col-more { width: auto; }
  .col--promo .col-more,
  .col--social .col-more { padding-top: 220px; }
  /* cena do estádio: abre espaço para os personagens (pés em ~64% da largura) ficarem acima do texto */
  .col--mascots .col-more { padding-top: calc(66vw - 108px); }
  .col--mascots .col-bg { background-size: 100% auto; }
  .proj-card img { width: 80px; }
  .form-row { flex-direction: column; align-items: stretch; }
  /* em coluna, o flex: 1 esmagava a altura do campo; 48px = área de toque recomendada, 16px evita o zoom do iOS */
  .field { flex: none; height: 48px; font-size: 16px; text-align: center; }
  textarea.field { height: auto; min-height: 120px; text-align: left; }
  .btn { width: 100%; height: 48px; font-size: 15px; }
}

/* ==========================================================================
   Páginas internas (cases)
   ========================================================================== */

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

.hero { padding: 88px 0 56px; border-bottom: 1px solid var(--line); }
.eyebrow {
  margin: 0 0 16px;
  color: var(--accent-ink);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.hero h1 { margin-bottom: 18px; font-size: clamp(32px, 6vw, 52px); letter-spacing: -.03em; }
.lede { margin: 0 0 28px; color: var(--muted); font-size: 20px; line-height: 1.5; }

.meta,
.fold-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  margin: 36px 0 0;
}
.meta dt,
.fold-info dt {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.meta dd,
.fold-info dd { margin: 0; font-size: 15px; }

.section { padding: 56px 0; border-bottom: 1px solid var(--line); }
.section:last-of-type { border-bottom: 0; }
.section h2 { margin-bottom: 18px; font-size: clamp(24px, 3.4vw, 32px); letter-spacing: -.02em; }
.section h3 { margin: 28px 0 8px; font-size: 18px; }
.section p { margin: 0 0 16px; color: var(--muted); }
.section p a { color: var(--accent-ink); }
.role-list { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.role-list li { padding-left: 18px; border-left: 2px solid var(--accent); color: var(--muted); }
.role-list strong { display: block; margin-bottom: 2px; color: var(--fg); font-weight: 600; }

figure { margin: 28px 0; }
figure img { width: 100%; border: 1px solid var(--line); border-radius: var(--r); }
figcaption { margin-top: 10px; color: var(--muted); font-size: 13px; }

.site-footer {
  padding: 40px 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

/* Dobra cheia — imagem via --img (não --bg, que é token de cor) */
.fold {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: calc(100vh - 56px);
  min-height: calc(100svh - 56px);
  padding: 0 24px 72px;
  border-bottom: 1px solid var(--line);
  background-color: var(--panel);
  background-image: var(--img, none);
  background-position: center;
  background-size: cover;
}
.fold::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, color-mix(in srgb, var(--bg) 35%, transparent), color-mix(in srgb, var(--bg) 88%, transparent) 60%, var(--bg) 96%);
}
.fold-inner { position: relative; width: 100%; max-width: calc(var(--max) - 48px); margin: 0 auto; } /* alinha com .wrap */
.fold h1 { margin-bottom: 18px; font-size: clamp(40px, 9vw, 96px); line-height: .95; letter-spacing: -.04em; }
/* título como logotipo: o PNG vira máscara, a cor vem do tema (branco no escuro, escuro no claro) */
.fold h1.fold-logo {
  width: min(320px, 50%);
  aspect-ratio: var(--logo-ratio);
  background: var(--fg);
  -webkit-mask: var(--logo) left center / contain no-repeat;
  mask: var(--logo) left center / contain no-repeat;
}
[data-theme="dark"] .fold h1.fold-logo { background: #fff; }
/* logotipo com as cores originais (imagem normal, sem máscara); mesma largura do .fold-logo */
.fold h1.fold-logo-img { line-height: 0; }
.fold h1.fold-logo-img img { display: block; width: min(320px, 50%); height: auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.fold-sub {
  max-width: 620px;
  margin: 0 0 12px;
  color: var(--accent-ink);
  font-size: clamp(18px, 2.2vw, 22px);
  font-weight: 500;
  line-height: 1.4;
}
.fold-info { padding-top: 24px; border-top: 1px solid var(--line); }
/* mockups têm o celular à esquerda: no mobile, enquadra o celular e parte do notebook */
@media (max-width: 720px) { .fold { background-position: 18% center; } }

/* Componentes ------------------------------------------------------------ */

/* .demo — moldura de navegador com iframe */
.demo { margin: 28px 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); }
.demo-bar { display: flex; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.demo-bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.demo iframe { display: block; width: 100%; height: 480px; border: 0; background: var(--bg); }

/* .ba — antes/depois */
.ba {
  --split: 50%;
  position: relative;
  aspect-ratio: 16 / 10;
  margin: 28px 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--panel);
}
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba .ba-after { clip-path: inset(0 0 0 var(--split)); }
.ba::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--split);
  width: 2px;
  margin-left: -1px;
  background: var(--accent);
  pointer-events: none;
}
.ba-tag {
  position: absolute;
  top: 12px;
  z-index: 1;
  padding: 2px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  pointer-events: none;
}
.ba-tag--before { left: 12px; }
.ba-tag--after { right: 12px; }
.ba input { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }

/* .video-embed — 16:9 com play estilo YouTube */
.video-embed {
  position: relative;
  aspect-ratio: 16 / 9;
  margin: 28px 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: #000 center / cover no-repeat;
}
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-play {
  position: absolute;
  inset: 0;
  width: 68px;
  height: 48px;
  margin: auto;
  border: 0;
  border-radius: 12px;
  background: #f00;
  cursor: pointer;
  transition: transform .2s var(--ease);
}
.video-play:hover { transform: scale(1.08); }
.video-play::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-40%, -50%);
  border-style: solid;
  border-width: 10px 0 10px 17px;
  border-color: transparent transparent transparent #fff;
}

/* Mural (página iGaming) --------------------------------------------- */
.wrap--wide { max-width: 1200px; }
.mural-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
/* segundo grupo de filtros (segmento/tema) logo abaixo do de formato */
.mural-filters + .mural-filters { margin-top: -14px; }
.mural-filter {
  padding: 6px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  transition: border-color .2s, color .2s, background .2s;
}
.mural-filter:hover { border-color: var(--muted); color: var(--fg); }
.mural-filter[aria-pressed="true"] { border-color: var(--accent-ink); background: var(--accent-ink); color: var(--on-accent); }
/* mosaico em colunas: cada peça mantém a proporção original (banner, feed, story) */
/* mural misto: grade de 4 colunas, linhas de 4px; o JS define quantas linhas cada peça ocupa */
.mural { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 4px; grid-auto-flow: dense; gap: 0 14px; align-items: start; }
.mural-item { margin: 0 0 14px; }
.mural-item[data-type="banner"] { grid-column: span 2; }
@media (max-width: 900px) { .mural { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .mural { grid-template-columns: repeat(2, 1fr); gap: 0 10px; } .mural-item { margin-bottom: 10px; } }
.mural-item[hidden] { display: none; }
/* aviso quando o mural ainda não tem peças (ou o filtro não encontra nenhuma) */
.mural-empty { margin: 8px 0 0; padding: 48px 24px; border: 1px dashed var(--line); border-radius: var(--r); color: var(--muted); text-align: center; }
.mural-open {
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  cursor: zoom-in;
}
.mural-open img { width: 100%; height: auto; transition: transform .4s var(--ease); }
.mural-open:hover img { transform: scale(1.02); }
.mural-item.is-placeholder img { aspect-ratio: var(--ratio); object-fit: cover; }
.mural-item figcaption { margin-top: 6px; color: var(--muted); font-size: 12px; }

.lightbox { max-width: min(92vw, 1100px); max-height: 92vh; padding: 0; overflow: visible; border: 0; background: transparent; }
.lightbox::backdrop { background: color-mix(in srgb, #000 82%, transparent); }
.lightbox img { max-width: 100%; max-height: 84vh; margin: 0 auto; border-radius: 10px; }
.lightbox-cap { margin: 10px 0 0; color: #fff; font-size: 14px; text-align: center; }
.lightbox-close {
  position: absolute;
  top: -44px;
  right: 0;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #111;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

/* Mascotes: por marca → cenas + turnaround de cada personagem --------- */
.brand-nav { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 28px; }
.brand-nav a { padding: 6px 16px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 14px; text-decoration: none; }
.brand-nav a:hover { border-color: var(--muted); color: var(--fg); }
.brand-group { scroll-margin-top: 64px; }
.brand-head { max-width: 680px; margin-bottom: 24px; }
.brand-head h2 { margin: 6px 0 10px; }
.mascot-brand { color: var(--accent-ink); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.scene-grid { display: grid; grid-template-columns: repeat(var(--cols), 1fr); gap: 12px; align-items: start; margin-bottom: 36px; }
.scene-grid[style*="--cols:1"] { max-width: 760px; }
.scene { margin: 0; }
.scene button, .turn-tile { display: block; width: 100%; padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); cursor: zoom-in; }
.scene img, .turn-tile img { width: 100%; height: auto; transition: transform .4s var(--ease); }
.scene button:hover img, .turn-tile:hover img { transform: scale(1.03); }
.scene figcaption, .turn figcaption { margin-top: 6px; color: var(--muted); font-size: 13px; }
.mascot-block + .mascot-block { margin-top: 36px; }
.mascot-head { max-width: 640px; margin-bottom: 16px; }
.mascot-head h3 { margin: 0 0 6px; font-size: 20px; }
.mascot-head p { margin: 0; }
.turnaround { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; align-items: start; }
.turn { margin: 0; }
@media (max-width: 720px) {
  .scene-grid { grid-template-columns: 1fr; }
  .scene-grid[style*="--cols:4"] { grid-template-columns: repeat(2, 1fr); }
  .turnaround { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}

/* .gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin: 28px 0; }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border: 1px solid var(--line); border-radius: 10px; }
@media (max-width: 720px) { .gallery img { aspect-ratio: 16 / 9; } }

/* .screens — telas inteiras empilhadas, sem corte: mockup no topo, depois a mobile (centralizada) e a desktop */
.screens-mockup { margin: 28px 0 0; }
.screens-mockup img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 10px; }
.screens-mockup figcaption { margin-top: 8px; font-size: 13px; color: var(--muted); }
.screens { display: grid; grid-template-columns: 1fr; gap: 28px; margin: 28px 0; }
.screens figure { margin: 0; }
.screens img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 10px; }
.screens figcaption { margin-top: 8px; font-size: 13px; color: var(--muted); }
.screens .screen-mobile { justify-self: center; width: min(360px, 100%); }
.screens .screen-mobile figcaption { text-align: center; }

/* .carousel — scroll-snap nativo */
.carousel {
  display: flex;
  gap: 14px;
  margin: 28px -24px;
  padding: 0 24px 12px;
  overflow-x: auto;
  scroll-padding: 0 24px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}
.carousel > * { flex: 0 0 min(80%, 560px); margin: 0; scroll-snap-align: start; }
.carousel img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border: 1px solid var(--line); border-radius: var(--r); }

/* .brands-strip + .marquee */
.brands-strip { padding: 40px 0; border-bottom: 1px solid var(--line); }
.brands-strip .eyebrow { color: var(--muted); text-align: center; }
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-group { display: flex; align-items: center; gap: 56px; padding-right: 56px; }
.marquee img { width: auto; height: 28px; filter: grayscale(1) brightness(0); opacity: .6; }
[data-theme="dark"] .marquee img { filter: grayscale(1) invert(1) brightness(1.15); opacity: .7; }
.wordmark { color: var(--fg); font-size: 20px; font-weight: 700; letter-spacing: -.02em; white-space: nowrap; opacity: .7; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* .grid / .card */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; margin: 28px 0; }
.card {
  display: block;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--panel);
  text-decoration: none;
  transition: transform .2s var(--ease), border-color .2s;
}
.card:hover { transform: translateY(-2px); border-color: var(--accent); }
.card .eyebrow { margin-bottom: 10px; font-size: 11px; }
.card h3 { margin-bottom: 8px; font-size: 20px; letter-spacing: -.01em; }
.card p { margin: 0; color: var(--muted); font-size: 14px; }

/* Movimento reduzido ----------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; transition-delay: 0s !important; }
  .marquee-track { animation: none; }
}

/* .pieces — peças de social media num case, sem corte (feed e story na proporção original), clicáveis */
.pieces { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: start; margin: 16px 0 32px; }
.pieces figure { margin: 0; }
.pieces figcaption { margin-top: 6px; color: var(--muted); font-size: 12px; }
@media (max-width: 720px) { .pieces { grid-template-columns: repeat(2, 1fr); gap: 10px; } }
