/* =========================================================
   Minimalista, preto e branco, com muito respiro.
   A ÚNICA cor do site é o âmbar dos seus olhos, e ela só
   aparece quando alguém clica em "Entre em contato".
   ========================================================= */
:root {
  --paper: #ffffff;
  --ink: #111;
  --muted: #9a9a9a;
  --line: #e6e6e6;
  --amber: #e39b2e;   /* a cor dos seus olhos: só no botão e quando os olhos abrem */
  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "Inter", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --g: clamp(18px, 2.6vw, 40px);
  --ease: cubic-bezier(.7, 0, .2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--paper); }
body {
  background: var(--paper); color: var(--ink); font: 400 14px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased; overflow-x: hidden; cursor: none;
}
body.is-loading { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; }
::selection { background: var(--ink); color: var(--paper); }
@media (hover: none) { body { cursor: auto; } .cursor { display: none; } }

/* rótulo pequeno de seção */
.label { font: 400 11px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 56px; }

/* granulado de filme bem sutil */
.grain {
  position: fixed; inset: -50%; z-index: 80; pointer-events: none; opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(6) infinite;
}
@keyframes grain { 0%{transform:translate(0,0)} 25%{transform:translate(-3%,2%)} 50%{transform:translate(2%,-3%)} 75%{transform:translate(-2%,-1%)} 100%{transform:translate(1%,3%)} }

.rec { display: inline-flex; align-items: center; gap: 6px; }
.rec i { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ============ CURSOR ============ */
.cursor {
  position: fixed; top: 0; left: 0; z-index: 100; pointer-events: none;
  width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%;
  background: #fff; mix-blend-mode: difference; display: grid; place-items: center;
}
.cursor__label { font: italic 400 15px var(--serif); color: #000; opacity: 0; }

/* ============ LOADER ============ */
.loader { position: fixed; inset: 0; z-index: 90; pointer-events: none; }
.loader__bar { position: absolute; left: 0; right: 0; height: 50.5%; background: var(--ink); }
.loader__bar--top { top: 0; } .loader__bar--bottom { bottom: 0; }
.loader__tc { position: absolute; inset: 0; display: grid; place-content: center; color: var(--paper); font: 400 12px var(--mono); letter-spacing: .12em; font-variant-numeric: tabular-nums; }

/* ============ HUD 4 CANTOS ============ */
.hud { position: fixed; inset: 0; z-index: 60; pointer-events: none; font: 400 12px/1.35 var(--sans); mix-blend-mode: difference; color: #fff; }
.hud > * { position: absolute; pointer-events: auto; }
.hud__tl { top: var(--g); left: var(--g); font-weight: 500; }
.hud__tr { top: var(--g); right: var(--g); display: flex; gap: 26px; }
.hud__tr a { position: relative; }
.hud__tr a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.hud__tr a:hover::after { transform: scaleX(1); transform-origin: left; }
.hud__bl { bottom: var(--g); left: var(--g); }
.hud__bc { bottom: var(--g); left: 50%; transform: translateX(-50%); }
.hud__br { bottom: var(--g); right: var(--g); display: flex; align-items: center; gap: 8px; font: 400 11px var(--mono); letter-spacing: .06em; font-variant-numeric: tabular-nums; }
@media (max-width: 700px) {
  .hud { font-size: 11px; }
  .hud__tr { gap: 14px; }
  .hud__tr a:not([data-open-eyes]) { display: none; }
}

/* ============ BOTÃO ÂMBAR (canto superior direito) ============ */
.cta {
  position: fixed; top: calc(var(--g) - 10px); right: var(--g); z-index: 70;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 11px 20px 11px 16px; border-radius: 99px;
  background: var(--amber); color: #111; font: 500 13px/1 var(--sans); letter-spacing: -.01em;
  box-shadow: 0 0 0 0 rgba(227, 155, 46, .55); animation: ctaPulse 2.8s ease-out infinite;
  transition: transform .5s var(--ease), background .3s;
}
.cta:hover { transform: scale(1.05); background: #f0a83a; }
.cta__dot { width: 7px; height: 7px; border-radius: 50%; background: #111; animation: blink 1.2s steps(1) infinite; }
.cta__short { display: none; }
@keyframes ctaPulse { 0% { box-shadow: 0 0 0 0 rgba(227,155,46,.5); } 70%, 100% { box-shadow: 0 0 0 16px rgba(227,155,46,0); } }
@media (max-width: 700px) { .cta__full { display: none; } .cta__short { display: inline; } }

/* ============ PORTAS LATERAIS (surgem com o cursor) ============ */
.side {
  position: absolute; top: 50%; z-index: 4; display: flex; flex-direction: column; gap: 12px;
  color: var(--ink); opacity: 0; will-change: opacity, filter, transform;
}
.side--l { left: clamp(20px, 8vw, 150px); align-items: flex-start; }
.side--r { right: clamp(20px, 8vw, 150px); align-items: flex-end; text-align: right; }
.side em { font-size: clamp(30px, 3.4vw, 56px); line-height: 1; white-space: nowrap; transition: letter-spacing .6s var(--ease); }
.side__n { font: 400 11px var(--mono); letter-spacing: .06em; color: var(--muted); }
.side:hover em { letter-spacing: .02em; }
.side.is-on { opacity: 1; transform: translateY(-50%); }
@media (hover: none), (max-width: 700px) {
  .side { opacity: 1; top: 25svh; transform: none !important; filter: none !important; }
  .side em { font-size: 26px; }
  .side--l { left: var(--g); } .side--r { right: var(--g); }
}

/* ============ HERO ============ */
.hero { position: relative; height: 100svh; min-height: 520px; overflow: hidden; }
.hero__figure {
  position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  height: 82svh; aspect-ratio: 2400 / 1340;
}
.hero__float { position: absolute; inset: 0; will-change: transform; }
.hero__figure img { position: absolute; top: 0; left: 0; width: 100%; height: auto; pointer-events: none; will-change: transform, opacity; }
.ghost { filter: url(#motionblur); opacity: 0; }
.hero__caption {
  position: absolute; left: 50%; top: 13svh; transform: translateX(-50%);
  font-size: clamp(18px, 1.6vw, 24px); color: var(--muted); white-space: nowrap;
}
@media (max-width: 700px) { .hero__figure { height: auto; width: 250vw; } .hero__caption { top: 14svh; } }

/* ============ MINHA HISTÓRIA ============ */
.story { padding: 26svh var(--g) 24svh; max-width: 1400px; margin: 0 auto; }
.story .label { margin-bottom: 40px; }
.story__lead {
  font: 400 clamp(28px, 3.6vw, 56px)/1.12 var(--sans); letter-spacing: -.03em;
  max-width: 19em; margin-bottom: 18svh;
}
.story__lead em, .story__close em { font-size: 1.1em; letter-spacing: 0; }
.story__lead .w, .story__close .w { display: inline-block; }
.story__chapters { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 72px); border-top: 1px solid var(--line); padding-top: 32px; }
.chapter p { font: 400 15px/1.65 var(--sans); color: #444; margin-bottom: 14px; max-width: 34em; }
.chapter strong { font-weight: 500; color: var(--ink); }
.chapter em { font-size: 1.12em; color: var(--ink); }
.chapter .chapter__n { font: 400 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 22px; }
.story__close { margin-top: 18svh; font: 400 clamp(22px, 2.4vw, 36px)/1.2 var(--sans); letter-spacing: -.02em; max-width: 24em; margin-left: auto; text-align: right; }
@media (max-width: 900px) {
  .story__chapters { grid-template-columns: 1fr; gap: 40px; }
  .story__close { text-align: left; margin-left: 0; }
}

/* ============ REALTIME ============ */
.realtime { height: 280svh; }
.realtime__pin { position: sticky; top: 0; height: 100svh; overflow: hidden; display: grid; place-items: center; }
.realtime__frame { position: relative; width: 22vw; aspect-ratio: 16/9; overflow: hidden; background: var(--ink); }
.realtime__frame img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.3); }
@media (max-width: 700px) { .realtime__frame { width: 60vw; } }
.viewfinder { position: absolute; inset: 0; color: #fff; font: 400 clamp(9px, .8vw, 12px) var(--mono); letter-spacing: .08em; mix-blend-mode: difference; }
.viewfinder > i { position: absolute; width: 18px; height: 18px; border: 0 solid #fff; }
.viewfinder > i:nth-child(1) { top: 14px; left: 14px; border-width: 1px 0 0 1px; }
.viewfinder > i:nth-child(2) { top: 14px; right: 14px; border-width: 1px 1px 0 0; }
.viewfinder > i:nth-child(3) { bottom: 14px; left: 14px; border-width: 0 0 1px 1px; }
.viewfinder > i:nth-child(4) { bottom: 14px; right: 14px; border-width: 0 1px 1px 0; }
.viewfinder > span { position: absolute; }
.vf__tl { top: 40px; left: 40px; } .vf__tr { top: 40px; right: 40px; }
.vf__br { bottom: 40px; right: 40px; font-variant-numeric: tabular-nums; }
/* palavras no canto superior esquerdo, onde o fundo da foto é branco → preto legível */
.realtime__words { position: absolute; inset: 0; display: grid; place-items: start; align-content: start; padding: 17svh 0 0 calc(var(--g) + 44px); pointer-events: none; }
.realtime__words span { grid-area: 1/1; font-size: clamp(44px, 5.6vw, 96px); line-height: 1; color: var(--ink); opacity: 0; transform-origin: left center; }
@media (max-width: 700px) { .realtime__words { padding: 22svh 0 0 var(--g); } }

/* ============ TRABALHOS ============ */
.works { padding: 26svh var(--g) 20svh; }
.works__list { list-style: none; border-top: 1px solid var(--line); }
.work {
  display: grid; grid-template-columns: 1fr 6fr 4fr 1fr; align-items: baseline; gap: var(--g);
  padding: 22px 0; border-bottom: 1px solid var(--line); cursor: none; transition: opacity .4s;
}
.work__n, .work__y { font: 400 11px var(--mono); color: var(--muted); letter-spacing: .06em; }
.work h3 { font: 400 clamp(26px, 2.6vw, 40px)/1.1 var(--serif); transition: transform .6s var(--ease); }
.work__meta { color: var(--muted); }
.work__y { text-align: right; }
.work:hover h3 { transform: translateX(14px); font-style: italic; }
.works__list:hover .work:not(:hover) { opacity: .3; }
@media (max-width: 800px) {
  .work { grid-template-columns: 32px 1fr; row-gap: 4px; }
  .work__meta, .work__y { grid-column: 2; text-align: left; }
}
.preview { position: fixed; top: 0; left: 0; z-index: 50; width: 22vw; aspect-ratio: 4/5; pointer-events: none; overflow: hidden; clip-path: inset(50% 50% 50% 50%); }
.preview__inner, .preview__inner > * { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); }
@media (hover: none) { .preview { display: none; } }

/* ============ MARCAS: logos P&B passando (ref: Butter) ============ */
.brands { padding: 10svh 0 26svh; }
.brands .label { padding: 0 var(--g); text-align: center; margin-bottom: 48px; }
.logos {
  overflow: hidden; white-space: nowrap;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
}
.logos .marquee__track { display: inline-flex; align-items: center; }
.logo { flex: none; display: grid; place-items: center; height: 72px; padding: 0 clamp(28px, 3.6vw, 56px); }
.logo img {
  height: var(--h, 34px); width: auto; max-width: 160px; object-fit: contain;
  filter: grayscale(1) contrast(1.15); mix-blend-mode: multiply; opacity: .55; transition: opacity .4s;
}
.wordmark { font: 600 20px/1 var(--sans); letter-spacing: -.02em; text-transform: uppercase; color: var(--ink); opacity: .55; transition: opacity .4s; }
.logo:hover img, .logo:hover .wordmark { opacity: 1; }
@media (max-width: 700px) { .logo { height: 56px; } .logo img { height: calc(var(--h, 34px) * .78); } }

/* ============ CONTATO (branco, como as fotos) ============ */
.contact { position: relative; min-height: 100svh; overflow: hidden; background: var(--paper); color: var(--ink); display: grid; }
.contact__face { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); height: 82svh; aspect-ratio: 2400 / 1340; }
.contact__face img { position: absolute; top: 0; left: 0; width: 100%; height: auto; }
.eyes--amber { opacity: 0; }
.contact__info { position: relative; z-index: 2; align-self: start; justify-self: center; text-align: center; padding-top: 15svh; }
.contact__title { font-size: clamp(34px, 4vw, 64px); line-height: 1; margin-bottom: 22px; }
.contact__title .w { display: inline-block; }
.wa-btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 26px; border-radius: 99px;
  background: var(--ink); color: var(--paper); font: 500 14px var(--sans); letter-spacing: -.01em;
  transition: transform .5s var(--ease), background .3s;
}
.wa-btn svg { width: 18px; height: 18px; }
.wa-btn:hover { transform: scale(1.05); background: #000; }
.contact__mail { font-size: clamp(15px, 1.2vw, 18px); border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.contact__links { display: flex; justify-content: center; gap: 24px; margin-top: 18px; font-size: 12px; color: var(--muted); }
.contact__links a:hover, .contact__mail:hover { color: var(--ink); opacity: .6; }
.contact__foot { position: absolute; z-index: 2; left: 50%; transform: translateX(-50%); white-space: nowrap; bottom: var(--g); font: 400 11px var(--mono); color: var(--muted); letter-spacing: .04em; mix-blend-mode: difference; color: #fff; }
.contact__foot span { font: italic 400 14px var(--serif); }
@media (max-width: 700px) { .contact__face { height: auto; width: 250vw; } }

/* ============ "ABRIR OS OLHOS" ============ */
.wake { position: fixed; inset: 0; z-index: 85; background: var(--paper); visibility: hidden; opacity: 0; overflow: hidden; }
.wake img { position: absolute; left: 50%; top: 50%; width: max(140vw, 250svh); max-width: none; transform: translate(-50%, -38%); }
.wake__amber { opacity: 0; }

/* ============ PLAYER ============ */
.player { position: fixed; inset: 0; z-index: 95; background: rgba(17,17,17,.97); display: grid; place-items: center; opacity: 0; visibility: hidden; }
.player__frame { width: min(88vw, 150svh); aspect-ratio: 16/9; color: #888; display: grid; place-items: center; font: 400 12px var(--mono); }
.player__frame iframe, .player__frame video { width: 100%; height: 100%; border: 0; }
.player__close { position: absolute; top: var(--g); right: var(--g); background: none; border: 0; color: #fff; font: italic 400 18px var(--serif); cursor: pointer; }

@media (prefers-reduced-motion: reduce) { .grain, .rec i { animation: none; } }

/* contato no celular: os dois links um embaixo do outro */
@media (hover: none), (max-width: 700px) {
  .contact .side--l { top: 20svh; }
  .contact .side--r { top: 31svh; }
}

/* ============ MUNDO (globo) ============ */
.world { display: grid; grid-template-columns: 1fr 1.2fr; align-items: center; gap: var(--g); padding: 16svh var(--g); min-height: 100svh; }
.world__title { font-size: clamp(34px, 4vw, 64px); line-height: 1.02; margin-bottom: 48px; }
.world__list { list-style: none; border-top: 1px solid var(--line); max-width: 460px; }
.world__list li { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; padding: 14px 0; border-bottom: 1px solid var(--line); font: 400 15px var(--sans); }
.world__list small { font: 400 11px var(--mono); color: var(--muted); letter-spacing: .04em; margin-left: auto; }
.world__legend { display: flex; align-items: center; gap: 8px; margin-top: 22px; font: 400 11px var(--mono); color: var(--muted); letter-spacing: .04em; }
.world__legend .dot--ring { margin-left: 14px; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex: none; transform: translateY(-1px); }
.dot--full { background: var(--ink); }
.dot--ring { border: 1.5px solid var(--ink); width: 7px; height: 7px; }
.world__globe { position: relative; width: 100%; max-width: 720px; aspect-ratio: 1; justify-self: center; }
.world__globe canvas { width: 100%; height: 100%; display: block; filter: invert(1); }
@media (max-width: 900px) {
  .world { grid-template-columns: 1fr; padding: 14svh var(--g); }
  .world__globe { order: -1; max-width: 92vw; }
}

/* ============ CURSOR "REC" (enquanto flutua no topo) ============ */
.cursor__rec { display: none; align-items: center; gap: 6px; font: 500 10px/1 var(--mono); letter-spacing: .1em; color: #111; white-space: nowrap; }
.cursor__rec i { width: 6px; height: 6px; border-radius: 50%; background: #111; animation: blink 1s steps(1) infinite; }
.cursor.is-rec {
  width: auto !important; height: 22px !important; margin: -11px 0 0 -26px !important;
  padding: 0 10px; border-radius: 99px; background: var(--amber); mix-blend-mode: normal;
}
.cursor.is-rec .cursor__rec { display: inline-flex; }
.cursor.is-rec .cursor__label { display: none; }

/* ============ CONTATO: rótulo numerado ============ */
.contact__label { position: absolute; top: 14svh; left: 50%; transform: translateX(-50%); z-index: 3; white-space: nowrap; }
@media (hover: none), (max-width: 700px) { .contact__label { top: 12svh; } }

/* ============ ENCERRAMENTO ============ */
.end {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: var(--g);
  padding: 12svh var(--g) calc(var(--g) * 3.2); border-top: 1px solid var(--line);
  font: 400 11px var(--mono); letter-spacing: .06em; color: var(--muted); text-transform: uppercase;
}
.end__motto { font-size: clamp(28px, 3vw, 44px); color: var(--ink); text-transform: none; letter-spacing: 0; }
.end__top { justify-self: end; transition: color .3s; }
.end__top:hover { color: var(--ink); }
@media (max-width: 700px) {
  .end { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .end__top { justify-self: center; }
}

/* ============ PLAYER PRÓPRIO ============ */
.player { background: #0a0a0a; }
.player__title { position: absolute; top: var(--g); left: var(--g); color: #fff; font: italic 400 clamp(20px, 2vw, 30px) var(--serif); }
.player__frame { transition: width .4s var(--ease); max-height: 82svh; }
.vp { position: relative; width: 100%; height: 100%; background: #000; }
.vp video { width: 100%; height: 100%; object-fit: contain; display: block; cursor: pointer; }
.vp__bar {
  position: absolute; left: 0; right: 0; bottom: -44px; height: 32px;
  display: flex; align-items: center; gap: 18px; color: #fff;
  font: 400 11px var(--mono); letter-spacing: .06em; text-transform: uppercase;
}
.vp__bar button { background: none; border: 0; color: #fff; font: inherit; letter-spacing: inherit; text-transform: inherit; cursor: pointer; padding: 0; opacity: .75; transition: opacity .3s; }
.vp__bar button:hover { opacity: 1; }
.vp__time { font-variant-numeric: tabular-nums; opacity: .75; white-space: nowrap; }
.vp__track { flex: 1; height: 14px; display: flex; align-items: center; cursor: pointer; }
.vp__track::before { content: ""; position: absolute; }
.vp__track i { display: block; width: 100%; height: 1px; background: #fff; transform-origin: left; transform: scaleX(0); box-shadow: 0 0 0 .5px rgba(255,255,255,.15); }
.vp__track { background: linear-gradient(rgba(255,255,255,.22), rgba(255,255,255,.22)) center / 100% 1px no-repeat; }
@media (max-width: 700px) { .vp__bar { gap: 12px; font-size: 10px; } .vp__fs { display: none; } }
