:root {
  /* Identidade YKY */
  --bg: #141311;
  --bg-2: #1e1c19;
  --line: #2f2c27;
  --text: #ece5db;      /* creme da marca */
  --muted: #9b9488;
  --accent: #cc5a1b;   /* laranja: detalhes pequenos */
  --verde: #105132;    /* verde: preenchimentos grandes */
  --verde-escuro: #0b3a24;
  --radius: 14px;
  --fatface: "abril-fatface", Georgia, serif;
  --display: "abril-display", Georgia, serif;
  --body: "abril-text", Georgia, serif;
  --ui: "Inter", system-ui, sans-serif;
  --mono: "Courier Prime", "Courier New", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; display: block; }

/* Topo */
.topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 18px clamp(16px, 5vw, 64px);
  background: rgba(20,19,17,.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.logo { display: block; }
.logo img { height: 26px; width: auto; }
.topbar nav { display: flex; gap: clamp(12px, 3vw, 28px); align-items: center; font-size: .92rem; }
.topbar nav a { text-decoration: none; color: var(--muted); }
.topbar nav a:hover { color: var(--text); }
.topbar nav .btn-sm { color: var(--bg); background: var(--text); padding: 6px 14px; border-radius: 99px; font-weight: 600; }
.topbar nav .btn-sm:hover { background: #fff; }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  min-height: clamp(360px, 62vh, 760px);
  display: flex; align-items: flex-end;
  padding: clamp(48px, 9vw, 110px) clamp(16px, 5vw, 64px) clamp(40px, 7vw, 88px);
}
.hero.com-midia { min-height: 100svh; margin-top: -63px; padding-top: 120px; }
.hero-midia { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 47%; z-index: 0; }
.hero.com-midia::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top, var(--bg) 0%, rgba(20,19,17,.35) 45%, rgba(20,19,17,.15) 100%); }
.hero-texto { position: relative; z-index: 2; }
.eyebrow { color: var(--accent); font-weight: 600; text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; margin: 0 0 16px; }
.hero h1 {
  font-family: var(--fatface); font-weight: 400;
  font-size: clamp(3.4rem, 13vw, 11.5rem); line-height: .9; letter-spacing: -.02em;
  margin: 0;
}

/* Filtros */
.trabalhos { padding: 0 clamp(16px, 5vw, 64px) 80px; scroll-margin-top: 80px; }
.filtros {
  display: flex; gap: 8px; flex-wrap: wrap; align-items: center;
  padding: 20px 0 28px; border-top: 1px solid var(--line);
}
.filtros .grupo { color: var(--muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; margin: 0 4px 0 12px; }
.filtros .grupo:first-of-type { margin-left: 4px; }
.chip {
  font: inherit; font-size: .88rem; cursor: pointer;
  background: transparent; color: var(--text);
  border: 1px solid var(--line); border-radius: 99px; padding: 7px 15px;
  transition: border-color .15s, background .15s;
}
.chip:hover { border-color: var(--muted); }
.chip[aria-selected="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.chip .n { opacity: .55; margin-left: 4px; font-size: .8em; }

/* Grid */
.grid { display: grid; grid-auto-flow: dense; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: clamp(16px, 2.5vw, 28px); }
.card { text-decoration: none; display: block; cursor: pointer; }
.card.destaque { grid-column: span 2; }
@media (max-width: 720px) { .card.destaque { grid-column: auto; } }
.thumb {
  position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden;
  background: var(--bg-2);
}
.card.destaque .thumb { aspect-ratio: 16 / 9; }
@media (max-width: 720px) { .card.destaque .thumb { aspect-ratio: 4 / 3; } }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .thumb img, .card:hover .placeholder { transform: scale(1.04); }
.placeholder {
  width: 100%; height: 100%; display: grid; place-items: center; padding: 24px; text-align: center;
  font-family: var(--display); font-size: 1.4rem; line-height: 1.15; color: var(--text);
  transition: transform .5s ease;
}
.play {
  position: absolute; right: 14px; bottom: 14px; width: 42px; height: 42px; border-radius: 50%;
  background: var(--accent); display: grid; place-items: center;
}
.play::after { content: ""; border-left: 12px solid #fff; border-top: 8px solid transparent; border-bottom: 8px solid transparent; margin-left: 3px; }
.card-info { display: flex; justify-content: space-between; gap: 12px; padding: 14px 2px 0; }
.card h3 { font-family: var(--display); font-size: 1.12rem; font-weight: 400; margin: 0; letter-spacing: -.01em; }
.card p { margin: 2px 0 0; color: var(--muted); font-size: .9rem; }
.card .cat { color: var(--accent); font-size: .8rem; white-space: nowrap; padding-top: 3px; }
.vazio { color: var(--muted); }

/* Sobre */
.sobre, .contato { padding: clamp(56px, 9vw, 110px) clamp(16px, 5vw, 64px); border-top: 1px solid var(--line); scroll-margin-top: 60px; }
.sobre h2, .contato h2 { font-family: var(--display); font-size: clamp(1.8rem, 4.5vw, 3rem); letter-spacing: -.02em; line-height: 1.05; margin: 0 0 20px; }
.sobre-texto > p { max-width: 62ch; font-size: 1.1rem; color: #cfccc4; white-space: pre-line; }
.areas { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; margin-top: 40px; }
.areas h3 { font-family: var(--display); margin: 0 0 8px; color: var(--text); }
.areas h3::after { content: "."; color: var(--accent); }
.areas ul { margin: 0; padding: 0; list-style: none; color: var(--muted); }

/* Contato */
.contato-links { display: flex; flex-wrap: wrap; gap: 12px; }
.contato-links a {
  text-decoration: none; border: 1px solid var(--line); border-radius: 99px; padding: 12px 22px; font-weight: 500;
}
.contato-links a:hover { border-color: var(--accent); color: var(--accent); }
.contato-links a.principal { background: var(--text); border-color: var(--text); color: var(--bg); }
.contato-links a.principal:hover { background: #fff; color: var(--bg); }
.rodape { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; padding: 48px clamp(16px, 5vw, 64px); color: var(--muted); font-size: .85rem; border-top: 1px solid var(--line); }

/* Página do projeto */
dialog.projeto {
  width: min(1100px, 100vw); max-width: 100vw; max-height: 100dvh; height: 100dvh;
  margin: 0 auto; padding: 0; border: 0; background: var(--bg); color: var(--text);
}
@media (min-width: 900px) { dialog.projeto { height: calc(100dvh - 48px); margin-top: 24px; border-radius: var(--radius); border: 1px solid var(--line); } }
dialog.projeto::backdrop { background: rgba(0,0,0,.8); backdrop-filter: blur(4px); }
.fechar {
  position: sticky; top: 14px; float: right; margin: 14px 14px 0 0; z-index: 2;
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--bg-2); color: var(--text); font-size: 1rem; cursor: pointer;
}
.fechar:hover { border-color: var(--text); }
.projeto-conteudo { padding: clamp(24px, 5vw, 56px); }
.projeto-conteudo .eyebrow { margin-bottom: 10px; }
.projeto-conteudo h2 { font-family: var(--display); font-size: clamp(1.8rem, 5vw, 3.2rem); letter-spacing: -.02em; line-height: 1.05; margin: 0 0 16px; padding-right: 40px; }
.meta { display: flex; gap: 28px; flex-wrap: wrap; color: var(--muted); font-size: .9rem; margin-bottom: 24px; }
.meta strong { display: block; color: var(--text); font-weight: 500; }
.descricao { max-width: 68ch; color: #cfccc4; white-space: pre-line; margin-bottom: 36px; }
.midia { display: grid; gap: 16px; }
.midia img { width: 100%; border-radius: 10px; }
.video { position: relative; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-link { color: var(--accent); }
.proj-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }
.proj-nav button { font: inherit; background: none; border: 0; color: var(--muted); cursor: pointer; padding: 0; text-align: left; }
.proj-nav button:last-child { text-align: right; }
.proj-nav button:hover { color: var(--text); }
.proj-nav small { display: block; font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; }

@media (max-width: 520px) {
  .topbar nav a:not(.btn-sm):not(.nav-crafted) { display: none; }
  .logo { white-space: nowrap; }
}
.rodape-selo { width: min(220px, 55vw); opacity: .85; transform: rotate(-4deg); }
.sobre h2, .contato h2, .projeto-conteudo h2 { font-weight: 400; }
.areas h3 { font-weight: 400; }

/* Elementos de interface em sans-serif */
.topbar nav, .eyebrow, .chip, .filtros .grupo, .card .cat, .meta, .contato-links, .rodape, .proj-nav, .areas ul, .video-link { font-family: var(--ui); }
.card p { font-style: italic; }

/* Cores da identidade */
::selection { background: var(--accent); color: var(--text); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.hero h1 .ponto { color: var(--accent); }
.chip .n { color: var(--accent); opacity: 1; }
.chip[aria-selected="true"] .n { color: var(--accent); }
.topbar nav a:not(.btn-sm):hover, .proj-nav button:hover, .video-link:hover { color: var(--accent); }
.fechar:hover { border-color: var(--accent); color: var(--accent); }

/* Bloco final em verde */
.contato, .rodape { background: var(--verde); border-top-color: transparent; }
.contato { padding-bottom: clamp(40px, 6vw, 72px); }
.rodape { border-top: 1px solid rgba(236,229,219,.15); color: rgba(236,229,219,.7); }
.contato-links a { border-color: rgba(236,229,219,.35); }
.contato-links a:hover { border-color: var(--text); color: var(--text); background: rgba(236,229,219,.08); }
.contato-links a.principal:hover { background: #fff; }

/* Reels / Shorts em moldura de celular */
.celulares { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(20px, 4vw, 48px); padding: clamp(24px, 4vw, 48px) 0; }
.celular {
  margin: 0; width: min(300px, 100%);
  background: #0a0a0a; border: 1px solid var(--line); border-radius: 34px;
  padding: 12px; box-shadow: 0 30px 60px -30px rgba(0,0,0,.8);
}
.celular-topo { display: flex; align-items: center; gap: 10px; padding: 4px 6px 12px; font-family: var(--ui); font-size: .85rem; font-weight: 600; }
.avatar {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: var(--verde); color: var(--text); font-size: .8rem;
  box-shadow: 0 0 0 2px #0a0a0a, 0 0 0 3.5px var(--accent);
}
.video-vertical { position: relative; aspect-ratio: 9 / 16; border-radius: 22px; overflow: hidden; background: #000; }
.video-vertical iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.celular figcaption { font-family: var(--ui); font-size: .82rem; line-height: 1.45; color: #cfccc4; padding: 12px 6px 4px; }
.celular figcaption strong { color: var(--text); font-weight: 600; }

/* ---------- Analógico ---------- */

/* Grão de filme */
body::after, dialog.projeto::after, dialog.produto::after {
  content: ""; position: fixed; inset: -50%; z-index: 999; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='g'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  1.4 0 0 0 -.62'/></filter><rect width='100%' height='100%' filter='url(%23g)'/></svg>");
  opacity: .16;
  animation: grao .9s steps(6) infinite;
}
@keyframes grao {
  0%   { transform: translate(0, 0); }
  20%  { transform: translate(-6%, 4%); }
  40%  { transform: translate(5%, -7%); }
  60%  { transform: translate(-3%, -5%); }
  80%  { transform: translate(7%, 6%); }
  100% { transform: translate(0, 0); }
}
@media (prefers-reduced-motion: reduce) { body::after, dialog.projeto::after, dialog.produto::after { animation: none; } }

/* Claquete */
.claquete { border: 1.5px solid var(--text); border-radius: 6px; overflow: hidden; margin: 8px 0 32px; max-width: 760px; }
.claquete-listras {
  height: 30px; border-bottom: 1.5px solid var(--text);
  background: repeating-linear-gradient(-55deg, var(--text) 0 22px, var(--bg) 22px 44px);
}
.claquete-campos { display: grid; grid-template-columns: 1fr 2fr 1fr; gap: 1px; background: var(--line); margin: 0; }
.claquete-campos > div { padding: 10px 14px 12px; background: var(--bg); min-width: 0; }
.claquete-campos > div.inteiro { grid-column: 1 / -1; }
.claquete dt { font-family: var(--mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .12em; color: var(--accent); }
.claquete dd { margin: 2px 0 0; font-family: var(--display); font-size: clamp(1rem, 2.2vw, 1.3rem); line-height: 1.2; overflow-wrap: anywhere; }
@media (max-width: 560px) { .claquete-campos { grid-template-columns: 1fr 1fr; } }

/* Folha de contato */
.imagem-unica { width: 100%; border-radius: 10px; }
.folha-contato {
  position: relative; background: #0b0a09; border-radius: 4px;
  padding: 34px clamp(12px, 2.5vw, 24px) 34px;
}
.folha-contato::before, .folha-contato::after {
  content: ""; position: absolute; left: 0; right: 0; height: 10px;
  background: repeating-linear-gradient(90deg, transparent 0 8px, rgba(236,229,219,.16) 8px 20px, transparent 20px 28px);
}
.folha-contato::before { top: 10px; }
.folha-contato::after { bottom: 10px; }
.folha-borda {
  display: flex; justify-content: space-between; gap: 12px; margin-bottom: 12px;
  font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent);
}
.folha-borda span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Fileiras alinhadas que respeitam o formato de cada foto (vertical ou horizontal) */
.folha-quadros { display: flex; flex-wrap: wrap; gap: 18px 12px; }
.folha-quadros::after { content: ""; flex: 999 1 0; }
.folha-quadros { justify-content: flex-start; }
.quadro { --r: 1.5; flex: var(--r) 1 calc(var(--r) * 140px); min-width: 0; position: relative; padding: 0; border: 0; background: none; cursor: zoom-in; text-align: left; color: inherit; }
.quadro img { width: 100%; aspect-ratio: var(--r); object-fit: cover; display: block; filter: saturate(.92); transition: filter .2s; }
.quadro:hover img { filter: saturate(1.05) brightness(1.05); }
.quadro .num { display: block; margin-top: 5px; font-family: var(--mono); font-size: .68rem; color: var(--accent); letter-spacing: .08em; }
/* Marcação de lápis dermatográfico */
.quadro::after {
  content: ""; position: absolute; inset: -6px -6px 14px -6px; pointer-events: none;
  border: 2.5px solid var(--accent); border-radius: 42% 30% 46% 34% / 30% 44% 36% 42%;
  transform: rotate(-1.2deg); opacity: 0; transition: opacity .15s;
}
.quadro.marcado::after { opacity: .95; }
.quadro:hover::after, .quadro:focus-visible::after { opacity: .6; }
.quadro.marcado:hover::after { opacity: 1; }
.quadro:focus-visible { outline: none; }

/* Lupa (imagem ampliada) */
.lupa {
  position: fixed; inset: 0; z-index: 50; background: rgba(11,10,9,.985);
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; padding: 16px;
}
.lupa[hidden] { display: none; }
.lupa figure { margin: 0; display: grid; justify-items: center; gap: 10px; min-width: 0; }
.lupa img { max-width: 100%; max-height: 82vh; object-fit: contain; }
.lupa figcaption { font-family: var(--mono); font-size: .78rem; color: var(--accent); letter-spacing: .08em; white-space: pre; }
.lupa button {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--bg-2); color: var(--text); font-size: 1rem; cursor: pointer;
}
.lupa button:hover { border-color: var(--accent); color: var(--accent); }
.lupa .lupa-fechar { position: absolute; top: 16px; right: 16px; }
@media (max-width: 560px) {
  .lupa { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr auto; }
  .lupa figure { grid-column: 1 / -1; grid-row: 1; }
  .lupa .lupa-ant { justify-self: end; } .lupa .lupa-prox { justify-self: start; }
}

/* Sobre: retrato com marcações de lápis */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.retrato { position: relative; margin: 0 0 clamp(36px, 6vw, 64px); container-type: inline-size; border-radius: 6px; overflow: hidden; }
.retrato > img { width: 100%; height: auto; display: block; }
.retrato::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to top right, rgba(20,19,17,.7) 0%, rgba(20,19,17,.25) 35%, transparent 60%);
}
.marcacoes { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; }
.traco { fill: none; stroke: var(--accent); stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }
.anotacao { font-family: "Caveat", cursive; font-weight: 700; font-size: 74px; fill: var(--accent); }
.quadro-num { font-family: var(--mono); font-size: 34px; letter-spacing: 3px; fill: var(--accent); }
.retrato-nome { position: absolute; left: 5cqw; bottom: 5.5cqw; z-index: 3; margin: 0; }
.retrato-funcao { display: block; margin-bottom: 1.2cqw; font-family: var(--mono); font-size: max(10px, 1.25cqw); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.nome { display: block; font-family: var(--fatface); font-size: 8.5cqw; line-height: .88; color: var(--text); }
.nome-risco { display: block; width: 23cqw; height: 2.2cqw; margin-top: .8cqw; overflow: visible; }
.nome-risco .traco { stroke-width: 3.5; }

/* Traços desenhados quando a seção aparece */
.retrato .traco { stroke-dasharray: 1; stroke-dashoffset: 1; }
.retrato .anotacao, .retrato .quadro-num { opacity: 0; transition: opacity .4s ease .9s; }
.retrato.visivel .traco { stroke-dashoffset: 0; transition: stroke-dashoffset .7s cubic-bezier(.6,.1,.3,1); }
.retrato.visivel .marcacoes .traco:nth-of-type(1) { transition-delay: .2s; }
.retrato.visivel .marcacoes .traco:nth-of-type(2) { transition-delay: .85s; transition-duration: .3s; }
.retrato.visivel .marcacoes .traco:nth-of-type(3) { transition-delay: 1.2s; transition-duration: .45s; }
.retrato.visivel .marcacoes .traco:nth-of-type(4) { transition-delay: 1.6s; transition-duration: .25s; }
.retrato.visivel .nome-risco .traco { transition-delay: .5s; }
.retrato.visivel .anotacao, .retrato.visivel .quadro-num { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .retrato .traco { stroke-dashoffset: 0; }
  .retrato .anotacao, .retrato .quadro-num { opacity: 1; }
}

/* Card com reels */
.thumb-reels {
  width: 100%; height: 100%; display: flex; justify-content: center; align-items: center; gap: 4%;
  padding: 6% 8%; background: linear-gradient(135deg, var(--verde), var(--verde-escuro));
  transition: transform .5s ease;
}
.card:hover .thumb-reels { transform: scale(1.04); }
.thumb-reels img {
  height: 100%; width: auto; aspect-ratio: 9 / 16; object-fit: cover; flex: 0 1 auto; min-width: 0;
  border-radius: 10px; border: 3px solid #0a0a0a; box-shadow: 0 16px 30px -12px rgba(0,0,0,.7);
  background: #0a0a0a;
}
.thumb-reels img:nth-child(odd) { transform: rotate(-2deg); }
.thumb-reels img:nth-child(even) { transform: rotate(2deg) translateY(3%); }

/* Capa clicável dos vídeos do YouTube */
.fachada { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: #000; cursor: pointer; }
.fachada img { width: 100%; height: 100%; object-fit: cover; display: block; transition: filter .2s; }
.fachada:hover img { filter: brightness(1.08); }
.fachada .play { right: auto; bottom: auto; left: 50%; top: 50%; translate: -50% -50%; width: 58px; height: 58px; transition: transform .2s; }
.fachada .play::after { border-left-width: 16px; border-top-width: 10px; border-bottom-width: 10px; margin-left: 4px; }
.fachada:hover .play { transform: scale(1.08); }
.post-original { display: inline-block; margin: 10px 6px 2px; font-family: var(--mono); font-size: .78rem; letter-spacing: .06em; color: var(--accent); text-decoration: none; }
.post-original:hover { text-decoration: underline; }

/* Poucos projetos: duas colunas iguais */
.grid.poucos { grid-template-columns: repeat(auto-fill, minmax(min(100%, 440px), 1fr)); }
.grid.poucos .card.destaque { grid-column: auto; }
.grid.poucos .thumb { aspect-ratio: 16 / 10; }

/* Slogan como assinatura do Sobre */
.sobre-texto > .sobre-assinatura {
  font-family: var(--fatface); font-size: clamp(2.2rem, 6vw, 4.2rem); line-height: 1; letter-spacing: -.01em;
  margin: clamp(28px, 4vw, 44px) 0 0; color: var(--text); max-width: none; white-space: normal;
}
.sobre-texto .sobre-assinatura .ponto { color: var(--accent); }

/* Etiqueta de projeto autoral */
.selo-autoral {
  position: absolute; top: 14px; left: 14px; z-index: 1;
  font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--text); background: var(--accent); padding: 4px 10px 3px; border-radius: 3px;
  transform: rotate(-2deg);
}

/* Miniatura hqdefault do YouTube tem faixas pretas: amplia para escondê-las */
img.barras { scale: 1.34; }
.fachada { overflow: hidden; }

/* Boas-vindas: botão estilo story */
.story {
  position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 14px;
  margin-top: 28px; padding: 0; border: 0; background: none; color: var(--text); cursor: pointer; text-align: left;
}
@media (min-width: 760px) {
  .story { position: absolute; right: clamp(16px, 5vw, 64px); bottom: clamp(40px, 7vw, 88px); margin: 0; }
}
.story-bolha {
  width: 76px; height: 76px; border-radius: 50%; padding: 3px; flex: none;
  background: conic-gradient(var(--accent), #e8894f, var(--accent));
  box-shadow: 0 10px 30px -10px rgba(0,0,0,.8);
  transition: transform .25s;
}
.story-bolha img {
  width: 100%; height: 100%; border-radius: 50%; object-fit: cover; object-position: 37% 52%;
  border: 3px solid var(--bg); display: block; background: var(--verde);
}
.story:hover .story-bolha { transform: scale(1.06) rotate(-3deg); }
.story-texto strong { display: block; font-family: var(--display); font-weight: 400; font-size: 1.25rem; line-height: 1.1; }
.story-texto small { font-family: var(--mono); font-size: .75rem; letter-spacing: .08em; color: var(--accent); }

/* Boas-vindas: player vertical */
dialog.boas-vindas {
  padding: 0; border: 0; background: transparent; color: var(--text);
  max-width: 100vw; max-height: 100dvh; overflow: visible;
}
dialog.boas-vindas::backdrop { background: rgba(11,10,9,.92); backdrop-filter: blur(6px); }
dialog.boas-vindas figure { margin: 0; display: grid; justify-items: center; gap: 12px; position: relative; }
dialog.boas-vindas video {
  height: min(82dvh, 760px); max-width: 92vw; aspect-ratio: 9 / 16; object-fit: cover;
  border-radius: 18px; background: #000; display: block;
}
dialog.boas-vindas figcaption { font-family: var(--mono); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
dialog.boas-vindas .fechar { position: fixed; top: 16px; right: 16px; float: none; margin: 0; }
.ver-trabalhos {
  position: absolute; left: 50%; top: 45%; translate: -50% -50%; box-shadow: 0 10px 30px -8px rgba(0,0,0,.7);
  font: 600 .95rem var(--ui); padding: 12px 22px; border-radius: 99px; border: 0;
  background: var(--text); color: var(--bg); cursor: pointer;
}
.ver-trabalhos:hover { background: #fff; }

/* Vídeos hospedados no site */
.video video, .video-vertical video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; }

/* ---------- Palco (telão de LED) ---------- */
.palco { margin: 0; }
.palco-cena {
  position: relative; overflow: hidden; border-radius: 10px;
  aspect-ratio: 16 / 10;
  background: radial-gradient(120% 80% at 50% 30%, #1a1714 0%, #0a0908 60%, #050404 100%);
  isolation: isolate;
}
@media (max-width: 560px) { .palco-cena { aspect-ratio: 4 / 3.4; } }
/* Luz do telão espalhada pelo ambiente */
.palco-luz {
  position: absolute; left: 0; top: -8%; width: 100%; height: 80%; z-index: 0;
  filter: blur(46px) saturate(1.5); opacity: .55; image-rendering: auto;
}
.palco-feixes {
  position: absolute; inset: 0; z-index: 1; pointer-events: none; mix-blend-mode: screen; opacity: .16;
  background:
    linear-gradient(115deg, transparent 38%, rgba(255,240,215,.9) 40%, transparent 47%),
    linear-gradient(245deg, transparent 38%, rgba(255,240,215,.9) 40%, transparent 47%);
  mask-image: linear-gradient(to bottom, #000 0%, transparent 75%);
}
.palco-trelica {
  position: absolute; left: 6%; right: 6%; top: 4%; height: 3.2%; z-index: 2;
  background:
    repeating-linear-gradient(45deg, transparent 0 6px, rgba(236,229,219,.18) 6px 7px),
    repeating-linear-gradient(-45deg, transparent 0 6px, rgba(236,229,219,.18) 6px 7px);
  border-top: 1px solid rgba(236,229,219,.25); border-bottom: 1px solid rgba(236,229,219,.25);
}
.palco-tela {
  position: absolute; left: 50%; top: 11%; width: 72%; aspect-ratio: 2 / 1; translate: -50% 0; z-index: 2;
  background: #000; box-shadow: 0 0 0 3px #0a0908, 0 0 0 4px rgba(236,229,219,.12), 0 20px 60px -10px rgba(0,0,0,.9);
  transition: width .5s ease, top .5s ease;
}
@media (max-width: 560px) { .palco-tela { width: 88%; top: 13%; } }
.palco-tela video { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Grade de pixels do LED */
.led-grade {
  position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(circle, transparent 0 42%, rgba(0,0,0,.6) 72%);
  background-size: 4px 4px; mix-blend-mode: multiply; opacity: .75;
}
/* Reflexo no chão do palco */
.palco-reflexo {
  position: absolute; left: 50%; top: calc(11% + 36%); width: 72%; height: 26%; translate: -50% 0; z-index: 1;
  transform: scaleY(-1); filter: blur(6px) saturate(1.2); opacity: .32;
  mask-image: linear-gradient(to top, #000 0%, transparent 85%);
}
@media (max-width: 560px) { .palco-reflexo { width: 88%; top: calc(13% + 44%); } }
.palco-publico { position: absolute; left: 0; bottom: 0; width: 100%; height: 34%; z-index: 3; pointer-events: none; }
.palco figcaption {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 2px 0;
  font-family: var(--mono); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent);
}
.palco-alternar {
  font: inherit; letter-spacing: .06em; color: var(--text); background: none; cursor: pointer;
  border: 1px solid var(--line); border-radius: 99px; padding: 5px 12px; white-space: nowrap;
}
.palco-alternar:hover { border-color: var(--accent); color: var(--accent); }
/* Sem efeito: só o vídeo */
.palco.limpo .palco-cena { aspect-ratio: 2 / 1; background: #000; }
.palco.limpo .palco-tela { top: 0; width: 100%; box-shadow: none; }
.palco.limpo .palco-luz, .palco.limpo .palco-feixes, .palco.limpo .palco-trelica,
.palco.limpo .palco-reflexo, .palco.limpo .palco-publico, .palco.limpo .led-grade { display: none; }

/* 4 ou mais reels: grade de celulares menores */
.celulares.muitos { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(12px, 2vw, 24px); }
.celulares.muitos .celular { width: 100%; padding: 8px; border-radius: 26px; }
.celulares.muitos .video-vertical { border-radius: 18px; }
.celulares.muitos .celular-topo { font-size: .75rem; padding: 2px 4px 8px; }
@media (max-width: 760px) { .celulares.muitos { grid-template-columns: repeat(2, 1fr); } }

/* Posts do Instagram incorporados */
.celulares.instagram { display: grid; grid-template-columns: repeat(auto-fit, minmax(326px, 1fr)); gap: 20px; justify-items: center; }
.post-ig { width: 100%; max-width: 400px; }
.post-ig .instagram-media {
  margin: 0 !important; min-width: 0 !important; width: 100% !important; max-width: 400px !important;
  background: #fff; border-radius: 12px !important; border: 0 !important; overflow: hidden;
}
.post-ig blockquote:not(iframe) { padding: 24px; font-family: var(--ui); }
.post-ig blockquote a { color: #111; }
@media (max-width: 400px) { .celulares.instagram { grid-template-columns: 1fr; } }

/* ---------- Rascunho (só aparece na prévia local) ---------- */
.selo-rascunho {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  font-family: var(--mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--bg); background: var(--text); padding: 3px 9px 2px; border-radius: 3px;
  outline: 1.5px dashed var(--bg); outline-offset: -4px;
}

/* ---------- Loja ---------- */
.loja { padding: clamp(56px, 9vw, 110px) clamp(16px, 5vw, 64px); border-top: 1px solid var(--line); scroll-margin-top: 60px; }
.loja[hidden] { display: none; }
.loja-topo h2 { font-family: var(--display); font-weight: 400; font-size: clamp(2.2rem, 6vw, 4rem); line-height: 1; letter-spacing: -.02em; margin: 0 0 12px; }
.loja-chamada { color: #cfccc4; font-size: 1.1rem; max-width: 52ch; margin: 0 0 28px; }
.loja-filtros { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.loja-filtros:empty { display: none; }
.loja-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: clamp(16px, 2.5vw, 28px); }

.produto-card { text-decoration: none; display: block; }
.produto-foto { position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: var(--bg-2); }
.produto-foto img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.produto-card:hover .produto-foto img, .produto-card:hover .produto-sem-foto { transform: scale(1.04); }
.produto-sem-foto {
  width: 100%; height: 100%; display: grid; place-items: center; transition: transform .5s ease;
  background: linear-gradient(135deg, var(--verde), var(--verde-escuro));
  font-family: var(--fatface); font-size: 1.6rem; color: var(--text); text-align: center; padding: 20px;
}
/* Etiqueta de preço pendurada */
.etiqueta-preco {
  position: absolute; left: 14px; bottom: 16px; z-index: 1;
  font-family: var(--mono); font-weight: 700; font-size: .9rem; color: var(--bg);
  background: var(--text); padding: 6px 12px 5px 22px; border-radius: 3px 8px 8px 3px;
  transform: rotate(-4deg); box-shadow: 0 6px 14px -6px rgba(0,0,0,.7);
}
.etiqueta-preco::before {
  content: ""; position: absolute; left: 8px; top: 50%; width: 6px; height: 6px; margin-top: -3px;
  border-radius: 50%; background: var(--bg-2); box-shadow: inset 0 0 0 1px rgba(0,0,0,.3);
}
.selo-status {
  position: absolute; top: 14px; left: 14px; z-index: 1;
  font-family: var(--mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--text); background: var(--accent); padding: 4px 10px 3px; border-radius: 3px;
}
/* Carimbo de esgotado */
.produto-card.esgotado .produto-foto img, .produto-card.esgotado .produto-sem-foto { filter: grayscale(1) brightness(.6); }
.carimbo {
  position: absolute; left: 50%; top: 42%; translate: -50% -50%; rotate: -14deg; z-index: 1;
  font-family: var(--mono); font-weight: 700; font-size: 1.3rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); border: 3px solid var(--accent); padding: 4px 14px; border-radius: 6px;
  mix-blend-mode: screen; opacity: .95;
}
.produto-info { display: flex; justify-content: space-between; gap: 12px; padding: 12px 2px 0; }
.produto-info h3 { font-family: var(--display); font-weight: 400; font-size: 1.1rem; margin: 0; }
.produto-info .cat { color: var(--accent); font-size: .8rem; white-space: nowrap; padding-top: 3px; font-family: var(--ui); }

.loja-info { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 24px 48px; margin-top: clamp(40px, 6vw, 64px); padding-top: 28px; border-top: 1px solid var(--line); }
.loja-como h3 { font-family: var(--display); font-weight: 400; font-size: 1.3rem; margin: 0 0 12px; }
.loja-passos { margin: 0; padding: 0; list-style: none; counter-reset: passo; display: grid; gap: 10px; }
.loja-passos li { counter-increment: passo; display: grid; grid-template-columns: 34px 1fr; color: #cfccc4; }
.loja-passos li::before { content: counter(passo, decimal-leading-zero); font-family: var(--mono); color: var(--accent); padding-top: 2px; }
.loja-politica summary { cursor: pointer; font-family: var(--display); font-size: 1.3rem; list-style: none; }
.loja-politica summary::-webkit-details-marker { display: none; }
.loja-politica summary::after { content: " +"; color: var(--accent); }
.loja-politica[open] summary::after { content: " −"; }
.loja-politica-texto { white-space: pre-line; color: #cfccc4; font-size: .95rem; margin-top: 12px; }

/* Página do produto */
dialog.produto {
  width: min(1000px, 100vw); max-width: 100vw; max-height: 100dvh; height: 100dvh;
  margin: 0 auto; padding: 0; border: 0; background: var(--bg); color: var(--text);
}
@media (min-width: 900px) { dialog.produto { height: auto; max-height: calc(100dvh - 48px); margin-top: 24px; border-radius: var(--radius); border: 1px solid var(--line); } }
dialog.produto::backdrop { background: rgba(0,0,0,.8); backdrop-filter: blur(4px); }
.produto-conteudo { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 48px); padding: clamp(20px, 4vw, 48px); }
@media (max-width: 760px) { .produto-conteudo { grid-template-columns: 1fr; } }
.produto-principal { aspect-ratio: 4 / 5; border-radius: 10px; overflow: hidden; background: var(--bg-2); }
.produto-principal img, .produto-principal .produto-sem-foto { width: 100%; height: 100%; object-fit: cover; }
.produto-miniaturas { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.produto-miniaturas button { width: 64px; aspect-ratio: 1; padding: 0; border: 2px solid transparent; border-radius: 6px; overflow: hidden; cursor: pointer; background: none; }
.produto-miniaturas button[aria-current="true"] { border-color: var(--accent); }
.produto-miniaturas img { width: 100%; height: 100%; object-fit: cover; }
.produto-detalhes h2 { font-family: var(--display); font-weight: 400; font-size: clamp(1.7rem, 4vw, 2.6rem); line-height: 1.05; margin: 0 0 10px; padding-right: 40px; }
.produto-preco { font-family: var(--mono); font-weight: 700; font-size: 1.3rem; margin: 0 0 18px; }
.produto-descricao { color: #cfccc4; white-space: pre-line; margin-bottom: 22px; }
.variacao { border: 0; padding: 0; margin: 0 0 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.variacao legend { font-family: var(--mono); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; padding: 0; }
.opcao {
  font: 500 .9rem var(--ui); min-width: 48px; padding: 9px 14px; cursor: pointer;
  border: 1px solid var(--line); border-radius: 8px; background: transparent; color: var(--text);
}
.opcao:hover { border-color: var(--muted); }
.opcao[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.quantidade { display: flex; align-items: center; gap: 10px; margin: 4px 0 22px; font-family: var(--ui); }
.quantidade span { font-family: var(--mono); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-right: 6px; }
.quantidade button { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: none; color: var(--text); font-size: 1.1rem; cursor: pointer; }
.quantidade output { min-width: 24px; text-align: center; font-family: var(--mono); font-size: 1.1rem; }
.botao-pedido {
  display: flex; justify-content: center; align-items: baseline; gap: 8px; text-decoration: none;
  font: 600 1.05rem var(--ui); padding: 15px 22px; border-radius: 99px;
  background: var(--text); color: var(--bg); transition: background .15s;
}
.botao-pedido small { font-weight: 400; font-size: .8rem; opacity: .7; }
.botao-pedido:hover { background: #fff; }
.botao-pedido.inativo { opacity: .45; cursor: not-allowed; }
.produto-aviso { color: var(--accent); font-family: var(--ui); font-size: .9rem; margin: 0 0 10px; }
.produto-nota { color: var(--muted); font-size: .85rem; font-family: var(--ui); margin: 12px 0 0; }

/* Faixa de marcas */
.marcas { padding: clamp(48px, 7vw, 88px) clamp(16px, 5vw, 64px); border-top: 1px solid var(--line); }
.marcas[hidden] { display: none; }
.marcas .eyebrow { font-family: var(--mono); }
.marcas-lista {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; align-items: baseline; gap: .2em .55em;
  font-family: var(--display); font-size: clamp(1.8rem, 4.6vw, 3.6rem); line-height: 1.1; letter-spacing: -.01em;
}
.marcas-lista li { display: inline-flex; align-items: baseline; gap: .55em; }
.marcas-lista li:not(:last-child)::after { content: "·"; color: var(--accent); }
.marcas-nota { margin: 18px 0 0; color: var(--muted); font-style: italic; max-width: 60ch; }

/* Marcas como logos monocromáticos (creme) */
.marcas-lista.logos { gap: clamp(28px, 5vw, 64px); align-items: center; margin-top: 8px; }
.marcas-lista.logos li::after { content: none; }
.marcas-lista .com-logo img {
  display: block; height: clamp(26px, 3.2vw, 40px); width: auto; max-width: 200px; object-fit: contain;
  filter: brightness(0) invert(.92) sepia(.18); opacity: .88; transition: opacity .2s;
}
.marcas-lista .com-logo img:hover { opacity: 1; }

/* Produtoras parceiras */
.parceiros { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin-top: clamp(28px, 4vw, 40px); padding-top: 20px; border-top: 1px dashed var(--line); }
.parceiros[hidden] { display: none; }
.parceiros-titulo { margin: 0; font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.parceiros-lista { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 28px; }
.parceiros-lista li { font-family: var(--display); font-size: 1.25rem; }
.parceiros-lista .com-logo img { display: block; height: clamp(20px, 2.2vw, 28px); width: auto; max-width: 150px; filter: brightness(0) invert(.92) sepia(.18); opacity: .75; }
/* Sala 320: o arquivo tem margem interna grande, então aparece maior para equilibrar */
.parceiros-lista img[src*="sala320"] { height: clamp(52px, 5.4vw, 70px); margin: -16px 0; max-width: 240px; }

/* "crafted goods." — lettering da YKY como botão da loja */
.crafted-logo {
  display: block; aspect-ratio: 624 / 315;
  background: var(--accent);
  -webkit-mask: url(assets/marca/lettering-crafted-goods.png) center / contain no-repeat;
          mask: url(assets/marca/lettering-crafted-goods.png) center / contain no-repeat;
}
.topbar nav a.nav-crafted { display: block; padding: 2px 4px; transform: rotate(-4deg); transition: transform .2s; }
.topbar nav a.nav-crafted[hidden] { display: none; }
.nav-crafted .crafted-logo { width: 78px; transition: background-color .2s; }
.topbar nav a.nav-crafted:hover { transform: rotate(-7deg) scale(1.06); }
.nav-crafted:hover .crafted-logo { background: var(--text); }
@media (max-width: 520px) { .nav-crafted .crafted-logo { width: 62px; } }
.loja-titulo { margin: 4px 0 18px; }
.loja-titulo .crafted-logo { width: clamp(220px, 34vw, 420px); transform: rotate(-3deg); transform-origin: left center; }
/* Celular: o botão de boas-vindas vai para baixo do slogan, sem espremê-lo */
@media (max-width: 759px) {
  .hero { flex-wrap: wrap; align-content: flex-end; }
  .hero-texto { width: 100%; }
}

/* Produtora parceira no card e na claquete */
.card-parceria { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-family: var(--mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.card-parceria-logo { height: 14px; width: auto; filter: brightness(0) invert(.92) sepia(.18); opacity: .7; }
.card-parceria-logo[src*="sala320"] { height: 24px; margin: -5px 0; }
.card-parceria-logo-texto { font-family: var(--display); text-transform: none; letter-spacing: 0; font-size: .9rem; color: var(--text); }
.claquete-parceria-logo { display: block; height: 22px; width: auto; margin-top: 4px; filter: brightness(0) invert(.92) sepia(.18); }
.claquete-parceria-logo[src*="sala320"] { height: 38px; margin: -4px 0 -6px; }
/* Vanish: palavra inclinada ocupa uma área quase quadrada — precisa de mais altura */
.marcas-lista .com-logo img[src*="vanish"] { height: clamp(48px, 5.6vw, 72px); margin: -12px 0; }
