/* =========================================================
   Versão B: editorial escuro e cinematográfico.
   Fundo preto quente, tipografia serifada grande (Instrument Serif),
   fotos que sobem em colunas no topo e trabalhos em lista numerada.
   ========================================================= */
:root {
  --ink: #0c0b0a;
  --surface: #151311;
  --ivory: #f3ede1;
  --dim: #a59d8f;
  --gold: #d3b57a;
  --gold-deep: #b8995f;
  --line: #f3ede122;
  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "Manrope", system-ui, sans-serif;
  --mono: "DM Mono", ui-monospace, monospace;
  --pad: clamp(20px, 5vw, 72px);
  --ease: cubic-bezier(.23, 1, .32, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--ink); color: var(--ivory); font-family: var(--sans); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: clip; min-width: 320px;
}
h1, h2, h3, p, ol, figure { margin: 0; padding: 0; }
ol { list-style: none; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
::selection { background: var(--gold); color: var(--ink); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.bg-deco, .shutter-flash { display: none !important; }
.icon { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- menu ---------- */
.b-nav {
  position: fixed; z-index: 50; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: calc(16px + env(safe-area-inset-top, 0px)) var(--pad) 16px; transition: background .35s var(--ease), border-color .35s var(--ease);
  border-bottom: 1px solid transparent;
}
.b-nav.solid { background: #0c0b0ad9; -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom-color: var(--line); }
.b-logo { font-family: var(--serif); font-size: 26px; line-height: 1; letter-spacing: -.01em; }
.b-menu { display: none; gap: 34px; margin-left: auto; font-size: 13px; letter-spacing: .04em; color: var(--dim); }
.b-menu a { transition: color .2s; }
.b-menu a:hover { color: var(--ivory); }
.b-pill {
  margin-left: auto; display: inline-flex; align-items: center; min-height: 42px; padding: 0 20px; border-radius: 999px;
  border: 1px solid var(--gold); color: var(--gold); font-size: 13px; font-weight: 600; letter-spacing: .03em; transition: background .2s, color .2s;
}
.b-pill:hover { background: var(--gold); color: var(--ink); }

/* ---------- topo: texto + colunas de fotos subindo ---------- */
.b-hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; }
.b-hero::after { /* escurece o fundo atrás do texto */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(0deg, var(--ink) 4%, #0c0b0acc 38%, #0c0b0a73 100%);
}
.b-cols {
  position: absolute; z-index: -2; inset: 0 0 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 0 10px;
  opacity: .62; -webkit-mask-image: linear-gradient(#0000, #000 16%, #000 80%, #0000); mask-image: linear-gradient(#0000, #000 16%, #000 80%, #0000);
}
.b-col { overflow: hidden; }
.b-col-in { display: grid; gap: 10px; padding-bottom: 10px; animation: b-sobe 90s linear infinite; will-change: transform; }
.b-col.c1 .b-col-in { animation-direction: reverse; animation-duration: 120s; }
.b-col.c2 .b-col-in { animation-duration: 75s; }
.b-col img { width: 100%; height: auto; border-radius: 3px; background: var(--surface); }
@keyframes b-sobe { to { transform: translateY(-50%); } }

.b-hero-copy { width: 100%; padding: 140px var(--pad) 64px; display: grid; gap: 22px; justify-items: start; }
.b-kicker {
  display: inline-flex; align-items: center; gap: 12px; font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold);
}
.b-kicker img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; border: 1px solid var(--gold-deep); }
.b-hero h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(50px, 14vw, 132px); line-height: .94; letter-spacing: -.02em; text-wrap: balance; max-width: 14ch; }
.b-hero h1 em, .b-contact h2 em { font-style: italic; color: var(--gold); }
.b-lead { color: var(--dim); font-size: clamp(15px, 1.5vw, 18px); line-height: 1.65; max-width: 44ch; }
.b-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-top: 6px; }
.b-btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px; border-radius: 999px;
  background: var(--ivory); color: var(--ink); font-size: 14px; font-weight: 700; transition: transform .2s var(--ease), background .2s;
}
.b-btn:hover { transform: translateY(-2px); background: #fff; }
.b-btn-gold { background: linear-gradient(135deg, #e2cc9c, #b8995f 60%, #9a7a48); color: #17130c; }
.b-link { font-size: 14px; font-weight: 600; border-bottom: 1px solid var(--gold); padding-bottom: 3px; color: var(--ivory); }
.b-link:hover { color: var(--gold); }

/* ---------- seções ---------- */
.b-sec { max-width: 1560px; margin: 0 auto; padding: clamp(80px, 11vw, 150px) var(--pad) 0; }
.b-sec-head { display: flex; align-items: baseline; gap: 18px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.b-sec-head h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(42px, 7vw, 96px); line-height: 1; letter-spacing: -.02em; }
.b-idx { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; color: var(--gold); }

/* lista de trabalhos */
.b-work a {
  display: grid; grid-template-columns: 1fr auto; grid-template-areas: "img img" "txt go"; gap: 18px 16px; align-items: center;
  padding: 22px 0 26px; border-bottom: 1px solid var(--line);
}
.b-work-n { display: none; font-family: var(--mono); font-size: 13px; color: var(--gold); }
.b-work-txt { grid-area: txt; display: grid; gap: 8px; }
.b-work-txt strong { font-family: var(--serif); font-weight: 400; font-size: clamp(38px, 9vw, 92px); line-height: .98; letter-spacing: -.02em; transition: transform .5s var(--ease), color .3s; }
.b-work-txt strong em { font-style: italic; color: var(--gold); }
.b-work-txt small { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.b-work-img { grid-area: img; display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 4px; background: var(--surface); }
.b-work-img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; transition: transform .9s var(--ease); }
.b-work-go {
  grid-area: go; width: 48px; height: 48px; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; font-size: 20px; color: var(--gold);
  transition: background .25s, color .25s, border-color .25s;
}
.b-work a:hover .b-work-img img { transform: scale(1.05); }
.b-work a:hover .b-work-go { background: var(--gold); color: var(--ink); border-color: var(--gold); }

/* vídeos */
.b-reel { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 28px 0 14px; scrollbar-width: none; }
.b-reel::-webkit-scrollbar { display: none; }
.b-reel-card {
  position: relative; flex: none; width: clamp(210px, 62vw, 300px); aspect-ratio: 9 / 16; overflow: hidden; border-radius: 4px; scroll-snap-align: start;
  background: var(--surface); isolation: isolate;
}
.b-reel-card.wide { width: clamp(300px, 86vw, 580px); aspect-ratio: 16 / 9; align-self: flex-end; }
.b-reel-card img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.b-reel-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(#0000 45%, #000000b8); }
.b-reel-card:hover img { transform: scale(1.04); }
.b-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center;
  background: #0c0b0a8c; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); border: 1px solid #f3ede166; font-size: 20px; transition: background .25s, color .25s;
}
.b-play .icon { fill: currentColor; stroke: none; margin-left: 3px; }
.b-reel-card:hover .b-play { background: var(--gold); color: var(--ink); }
.b-reel-meta { position: absolute; left: 16px; right: 16px; bottom: 16px; display: grid; gap: 2px; }
.b-reel-meta small { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.b-reel-meta strong { font-family: var(--serif); font-weight: 400; font-size: 28px; line-height: 1.05; }

/* o que eu faço */
.b-about-grid { display: grid; gap: 0; }
.b-about-grid article { padding: 28px 0; border-bottom: 1px solid var(--line); display: grid; gap: 10px; }
.b-about-grid h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(36px, 5vw, 56px); line-height: 1; }
.b-about-grid p { color: var(--dim); max-width: 40ch; }

/* contato */
.b-contact { max-width: 1560px; margin: 0 auto; padding: clamp(100px, 14vw, 200px) var(--pad) clamp(70px, 9vw, 120px); display: grid; gap: 26px; justify-items: start; }
.b-contact h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(54px, 12vw, 176px); line-height: .92; letter-spacing: -.03em; text-wrap: balance; }
.b-foot {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding: 26px var(--pad) calc(30px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line); color: var(--dim); font-size: 12px;
}
.b-foot a:hover { color: var(--gold); }

/* entrada suave */
.rev { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
.rev.in { opacity: 1; transform: none; }

/* ---------- computador ---------- */
@media (min-width: 900px) {
  .b-menu { display: flex; }
  .b-pill { margin-left: 0; }
  .b-cols { left: 46%; right: 0; padding: 0 var(--pad) 0 0; opacity: 1; gap: 12px; }
  .b-col-in { gap: 12px; padding-bottom: 12px; }
  .b-hero::after { background: linear-gradient(90deg, var(--ink) 38%, #0c0b0a8c 52%, #0c0b0a00 72%), linear-gradient(0deg, var(--ink) 0%, #0c0b0a00 22%); }
  .b-hero-copy { padding-bottom: 88px; }
  .b-hero h1 { font-size: clamp(58px, 6.4vw, 108px); max-width: 11ch; }

  .b-work a { grid-template-columns: 64px 1fr minmax(260px, 30%) 56px; grid-template-areas: "n txt img go"; gap: 36px; padding: 30px 0; }
  .b-work-n { display: block; }
  .b-work-txt strong { font-size: clamp(54px, 6.4vw, 104px); }
  .b-work a:hover .b-work-txt strong { transform: translateX(14px); }
  .b-work-img { aspect-ratio: 16 / 10; }
  .b-work-go { width: 56px; height: 56px; }

  .b-reel { padding-top: 36px; }
  .b-reel-card { width: clamp(230px, 20vw, 300px); }
  .b-reel-card.wide { width: clamp(420px, 38vw, 600px); }
  .b-about-grid { grid-template-columns: repeat(3, 1fr); gap: 56px; padding-top: 14px; }
  .b-about-grid article { border-bottom: 0; border-top: 1px solid var(--line); padding: 26px 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .b-col-in { animation: none; }
  .rev { opacity: 1; transform: none; transition: none; }
}
