/* Layout: interface quase invisível — tipografia expandida em caixa-alta como cartela de filme,
   tudo preto, a imagem ocupa o espaço. Tema único escuro (escolha deliberada). */
:root {
  --black: #0B0B0B;
  --black-2: #171717;
  --white: #FFFFFF;
  --off: #F2F0EB;
  --grey: #8B8B8B;
  --line: rgba(242, 240, 235, .14);

  /* Fonte provisória: Archivo (eixo de largura) no lugar da Revel.
     Ao receber a Revel licenciada, trocar só estas duas variáveis + @font-face. */
  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-text: "Archivo", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(16px, 3.2vw, 48px);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--black); }
body {
  margin: 0;
  background: var(--black);
  color: var(--off);
  font-family: var(--font-text);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; text-transform: inherit; letter-spacing: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
img, video, iframe { display: block; max-width: 100%; }
:focus-visible { outline: 1px solid var(--off); outline-offset: 4px; }

/* Rótulo utilitário (caixa-alta pequena, espaçada) */
.label {
  font-family: var(--font-text);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.wordmark {
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ---------- Botão de idioma (glass) ---------- */
.lang {
  width: 40px; height: 40px; flex: none;
  display: grid; place-items: center;
  border-radius: 50%;
  font-size: 10px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--white);
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), inset 0 -1px 0 rgba(255, 255, 255, .04), 0 6px 18px rgba(0, 0, 0, .25);
  -webkit-backdrop-filter: blur(14px) saturate(1.5);
  backdrop-filter: blur(14px) saturate(1.5);
  transition: background .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease-out);
}
.lang:hover { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .4); }
.lang:active { transform: scale(.94); }
.home__bar--top { align-items: center; }
.header__right { display: flex; align-items: center; gap: 28px; }

/* ---------- Ações do topo: Contato + idioma ---------- */
.top-actions { display: flex; align-items: center; gap: 22px; }
.contact-btn { color: rgba(242,240,235,.8); padding: 10px 0; transition: color .3s var(--ease); }
.contact-btn:hover { color: var(--white); }
.header .contact-btn { color: var(--grey); }
.header .contact-btn:hover { color: var(--white); }

/* ---------- Ícones sociais (Instagram / Vimeo) ---------- */
.social { display: flex; align-items: center; gap: 22px; }
.social a { display: grid; place-items: center; padding: 6px 0; opacity: .7; transition: opacity .3s var(--ease), transform .4s var(--ease-out); }
.social a:hover { opacity: 1; transform: translateY(-1px); }
.social img { width: 18px; height: 18px; }

.footer .contact-btn { color: var(--grey); }
.footer .contact-btn:hover { color: var(--white); }

/* ---------- Box de contato (vidro, centralizado, diagramação editorial) ---------- */
.contact {
  position: fixed; inset: 0; z-index: 70;
  display: grid; place-items: center;
  padding: calc(16px + env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) calc(16px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
}
.contact__scrim { position: absolute; inset: 0; background: rgba(11,11,11,.45); opacity: 0; transition: opacity .45s var(--ease); }
.contact__box {
  position: relative;
  width: min(820px, 100%);
  min-height: min(640px, 100%);
  max-height: 100%;
  overflow: auto;
  display: grid; grid-template-rows: auto 1fr; gap: 48px;
  padding: clamp(24px, 3.4vw, 44px);
  border-radius: 22px;
  color: var(--off);
  background: rgba(30, 30, 30, .4);
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 40px 120px rgba(0,0,0,.5);
  -webkit-backdrop-filter: blur(30px) saturate(1.5);
  backdrop-filter: blur(30px) saturate(1.5);
  opacity: 0; transform: translateY(18px) scale(.97);
  transition: opacity .45s var(--ease), transform .7s cubic-bezier(.34, 1.3, .64, 1);
}
.contact.is-open .contact__scrim { opacity: 1; }
.contact.is-open .contact__box { opacity: 1; transform: none; }
.contact__close {
  position: absolute; z-index: 1;
  top: clamp(14px, 2.4vw, 30px); right: clamp(14px, 2.4vw, 30px);
  width: 44px; height: 44px; display: grid; place-items: center;
  color: rgba(242,240,235,.7);
  transition: color .3s var(--ease), transform .5s var(--ease-out);
}
.contact__close svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.2; stroke-linecap: round; }
.contact__close:hover { color: var(--white); transform: rotate(90deg); }

.contact__head { align-self: start; display: grid; gap: 20px; padding-right: 48px; }
.contact__name {
  margin: 0;
  font-size: clamp(34px, 6.4vw, 72px); line-height: .95;
  letter-spacing: .04em; white-space: normal;
  color: var(--white); text-wrap: balance;
  max-width: 9ch;
}
.contact__role { color: var(--grey); font-size: 13px; letter-spacing: .2em; }

.contact__body {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 40px; align-items: end;
  align-self: end;
  padding-top: 28px; border-top: 1px solid rgba(255,255,255,.12);
}
.contact__bio { margin: 0; max-width: 38ch; font-size: 14px; line-height: 1.7; color: rgba(242,240,235,.82); text-wrap: pretty; }
.contact__side { display: grid; gap: 26px; justify-items: end; text-align: right; }
.contact__list { margin: 0; display: grid; gap: 16px; }
.contact__list div { display: grid; gap: 4px; }
.contact__list dt { color: var(--grey); }
.contact__list dd { margin: 0; font-size: 15px; color: var(--white); overflow-wrap: anywhere; }
.contact__list a:hover { opacity: .7; }

@media (max-width: 760px) {
  .contact__box { min-height: 0; gap: 32px; }
  .contact__body { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .contact__side { justify-items: start; text-align: left; }
}

/* ---------- Views (troca suave entre páginas) ---------- */
.view { display: none; }
.view.is-active { display: block; animation: viewIn .6s var(--ease) both; }
@keyframes viewIn { from { opacity: 0; } to { opacity: 1; } }

/* ==========================================================
   HOME
   ========================================================== */
#home.is-active { display: block; }
.home {
  position: fixed;
  inset: 0;
  overflow: hidden;
  background: var(--black);
}
.home__video, .home__poster {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
/* Vimeo de fundo: cobre a tela toda sem barra preta, como object-fit: cover */
.home { container-type: size; }
.home__vimeo {
  position: absolute; left: 50%; top: 50%;
  /* cobre a área real da home (no iPhone 100vh erra por causa das barras do Safari) */
  width: max(100vw, calc(100vh * var(--r)));
  height: max(100vh, calc(100vw / var(--r)));
  width: max(100cqw, calc(100cqh * var(--r)));
  height: max(100cqh, calc(100cqw / var(--r)));
  transform: translate(-50%, -50%);
  border: 0; pointer-events: none;
}
/* vídeos que esperam a vez ficam quase invisíveis (não 0: o iPhone não toca vídeo 100% invisível) */
.home__clip { opacity: .01; z-index: 0; }
.home__clip.is-on { opacity: 1; z-index: 1; }
.home__poster { z-index: 2; transition: opacity .8s var(--ease); }
.home__shade { z-index: 3; }
.home__bar, .home__nav { z-index: 4; }
.home__shade { position: absolute; inset: 0; background: rgba(11, 11, 11, .28); }

.home__bar {
  position: absolute; left: 0; right: 0;
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}
.home__bar--top { top: 0; padding-top: calc(var(--gutter) + env(safe-area-inset-top, 0px)); }
.home__bar--bottom { bottom: 0; padding-bottom: calc(var(--gutter) + env(safe-area-inset-bottom, 0px)); color: rgba(242,240,235,.7); }
.home__bar .wordmark { font-size: 12px; }
.home__sign { color: rgba(242,240,235,.7); }

.home__nav {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: clamp(4px, 1.2vw, 20px);
}
.home__nav { pointer-events: none; }
.home__link {
  pointer-events: auto;
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 500;
  font-size: clamp(30px, 5.2vw, 84px);
  letter-spacing: .06em;
  line-height: 1;
  text-transform: uppercase;
  color: var(--white);
  transition: opacity .5s var(--ease);
  padding: 12px 0;
}
.home__link:focus-visible { opacity: 1; }
@media (hover: hover) {
  .home__nav:hover .home__link { opacity: .32; }
  .home__nav .home__link:hover { opacity: 1; }
}

/* ==========================================================
   CAPA DE ENTRADA
   ========================================================== */
.intro {
  position: fixed; inset: 0; z-index: 50;
  display: grid; place-items: center;
  background: rgba(11, 11, 11, .62);
  -webkit-backdrop-filter: blur(18px) saturate(.85);
  backdrop-filter: blur(18px) saturate(.85);
  transition: opacity .9s var(--ease), backdrop-filter .9s var(--ease), -webkit-backdrop-filter .9s var(--ease);
}
.intro[hidden] { display: none !important; }
.intro__mark {
  display: grid; justify-items: center; gap: 18px;
  text-align: center;
  transition: transform .9s var(--ease-out), opacity .7s var(--ease);
}
/* O nome é a barra: camada base translúcida + camada branca revelada da esquerda p/ direita */
.intro__load { position: relative; display: block; --p: 0; }
.intro__name {
  display: block;
  font-size: clamp(22px, 4.4vw, 64px);
  letter-spacing: .16em; margin-right: -.16em;
  color: var(--white);
  transition: letter-spacing .9s var(--ease-out);
}
.intro__name--base { opacity: .18; }
.intro__name--fill {
  position: absolute; inset: 0;
  clip-path: inset(0 calc((1 - var(--p)) * 100%) 0 0);
}
.intro__sign { color: var(--grey); }
.intro__pct {
  position: absolute; left: 50%;
  bottom: calc(var(--gutter) + env(safe-area-inset-bottom, 0px) + 8px);
  transform: translateX(-50%);
  color: rgba(242,240,235,.5);
  font-variant-numeric: tabular-nums;
  transition: opacity .3s var(--ease);
}

.intro.is-leaving { opacity: 0; -webkit-backdrop-filter: blur(0) saturate(1); backdrop-filter: blur(0) saturate(1); }
.intro.is-leaving .intro__mark { transform: scale(1.1); opacity: 0; }
.intro.is-leaving .intro__name { letter-spacing: .22em; }
.intro.is-leaving .intro__pct { opacity: 0; }

/* Acessos da Home entram depois da capa */
body.is-intro .home__nav, body.is-intro .home__bar { opacity: 0; }
.home__nav, .home__bar { transition: opacity .8s var(--ease) .35s; }

/* ==========================================================
   PÁGINAS DE GALERIA (DOP / FOTOGRAFIA)
   ========================================================== */
.page {
  min-height: 100vh;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}
.header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding-block: 22px;
  margin-inline: calc(-1 * max(var(--gutter), env(safe-area-inset-left, 0px)));
  padding-inline: max(var(--gutter), env(safe-area-inset-left, 0px));
  background: rgba(11, 11, 11, .86);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  z-index: 30; background: var(--black);
}
.header .wordmark { font-size: 12px; }
.nav { display: flex; gap: 28px; }
.nav a { color: var(--grey); transition: color .3s var(--ease); padding: 6px 0; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--white); }

.page__head {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px;
  padding-block: clamp(48px, 9vw, 120px) clamp(28px, 4vw, 48px);
}
.page__title {
  margin: 0;
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 500;
  font-size: clamp(40px, 8.4vw, 132px);
  line-height: .9;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--white);
}
.page__meta { color: var(--grey); text-align: right; padding-bottom: .6em; }

/* ---------- DOP grid ---------- */
.films {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(40px, 5vw, 72px) clamp(16px, 2vw, 28px);
}
.film--featured { grid-column: 1 / -1; }

/* Entrada com bounce leve ao rolar (só com JS ativo; desligado em movimento reduzido) */
.films.js-reveal .film { opacity: 0; transform: translateY(64px) scale(.97); }
.films.js-reveal .film.is-in {
  opacity: 1; transform: none;
  transition: transform 1.15s cubic-bezier(.34, 1.42, .64, 1) var(--d, 0ms), opacity .7s var(--ease) var(--d, 0ms);
}
.film { min-width: 0; }

.film__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  max-width: 100%;
  background: var(--black-2);
  overflow: hidden;
}
.film__poster {
  position: absolute; inset: 0; width: 100%; height: 100%;
  display: block;
  cursor: pointer;
}
.film__poster img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.2s var(--ease-out), opacity .6s var(--ease);
  opacity: 0;
}
.film__poster img.is-loaded { opacity: 1; }
.film__poster:hover img { transform: scale(1.025); }

.play {
  position: absolute; left: 50%; top: 50%;
  width: 76px; height: 76px; margin: -38px 0 0 -38px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.85);
  background: rgba(11,11,11,.18);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  display: grid; place-items: center;
  opacity: 0; transform: scale(.92);
  transition: opacity .4s var(--ease), transform .5s var(--ease-out);
}
.play svg { width: 18px; height: 18px; margin-left: 3px; fill: var(--white); }
.film--featured .play { width: 96px; height: 96px; margin: -48px 0 0 -48px; }
.film__poster:hover .play, .film__poster:focus-visible .play { opacity: 1; transform: scale(1); }
@media (hover: none) { .play { opacity: 1; transform: scale(1); width: 60px; height: 60px; margin: -30px 0 0 -30px; } }

.film__player { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.film__tag {
  position: absolute; left: 12px; top: 12px; z-index: 2;
  padding: 5px 8px; background: rgba(11,11,11,.7); color: var(--off);
  font-size: 10px; letter-spacing: .14em; text-transform: uppercase; pointer-events: none;
}

.film__info {
  display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: baseline;
  padding-top: 14px;
}
.film__index { color: var(--grey); font-variant-numeric: tabular-nums; }
.film__title { margin: 0; font-size: 13px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--white); min-width: 0; }
.film__cat { color: var(--grey); }

/* ---------- FOTOGRAFIA ---------- */
.photos { columns: 3; column-gap: clamp(12px, 1.6vw, 24px); }
.photo {
  break-inside: avoid;
  display: block; width: 100%;
  margin-bottom: clamp(12px, 1.6vw, 24px);
  background: var(--black-2);
  position: relative; overflow: hidden;
  cursor: zoom-in;
}
.photo img { width: 100%; height: 100%; object-fit: cover; transition: opacity .5s var(--ease); }
.photo:hover img { opacity: .86; }
.ph {
  width: 100%; height: 100%;
  display: grid; place-items: center; align-content: center; gap: 6px;
  color: #4a4a4a; text-align: center;
  background: repeating-linear-gradient(135deg, #1b1b1b 0 1px, var(--black-2) 1px 14px);
  border: 1px solid #222;
}
.ph b { font-weight: 500; color: #5c5c5c; }

/* ---------- Rodapé das galerias ---------- */
.footer {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 32px;
  margin-top: clamp(80px, 10vw, 160px);
  padding-block: 28px calc(28px + env(safe-area-inset-bottom, 0px));
  color: var(--grey);
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 60;
  background: var(--black);
  display: grid; grid-template-rows: auto 1fr auto;
  padding: calc(16px + env(safe-area-inset-top, 0px)) max(var(--gutter), env(safe-area-inset-right, 0px)) calc(16px + env(safe-area-inset-bottom, 0px)) max(var(--gutter), env(safe-area-inset-left, 0px));
  opacity: 0; transition: opacity .35s var(--ease);
}
.lightbox.is-open { opacity: 1; }
.lightbox__top { display: flex; justify-content: space-between; align-items: center; color: var(--grey); }
.lightbox__close { padding: 10px 0 10px 20px; }
.lightbox__close:hover { color: var(--white); }
.lightbox__stage { position: relative; display: grid; place-items: center; min-height: 0; padding-block: 16px; touch-action: pan-y; }
.lightbox__media { position: absolute; inset: 16px 0; display: grid; place-items: center; }
.lightbox__media img { width: 100%; height: 100%; object-fit: contain; }
.lightbox__media .ph { width: min(100%, calc((100svh - 170px) * var(--r))); height: auto; aspect-ratio: var(--r); }
.lightbox__nav { display: flex; justify-content: space-between; color: var(--grey); }
.lightbox__nav button { padding: 10px 0; }
.lightbox__nav button:hover { color: var(--white); }
.lightbox__counter { font-variant-numeric: tabular-nums; }

/* ==========================================================
   MOBILE — composições próprias
   ========================================================== */
@media (max-width: 760px) {
  .home__nav { flex-direction: column; gap: 8px; }
  .home__link { font-size: clamp(20px, 6.6vw, 30px); padding: 10px 0; letter-spacing: .05em; }
  .home__bar--top .home__sign { display: none; }
  .home__bar--bottom { justify-content: center; }
  .home__bar--bottom .home__sign { display: none; }

  .header { padding-block: 16px; }
  .header .wordmark { font-size: 10px; letter-spacing: .12em; }
  .nav { gap: 18px; }
  .header__right { display: contents; }
  .header {
    display: grid; grid-template-columns: 1fr auto auto; align-items: center;
    column-gap: 16px; row-gap: 6px;
  }
  .header .wordmark { grid-column: 1; grid-row: 1; }
  .header .contact-btn { grid-column: 2; grid-row: 1; font-size: 10px; }
  .header .lang { grid-column: 3; grid-row: 1; }
  .header .nav { grid-column: 1 / -1; grid-row: 2; }
  .top-actions { gap: 16px; }
  .header .lang { width: 34px; height: 34px; font-size: 9px; }
  .nav .label { font-size: 10px; }

  .page__head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .page__meta { text-align: left; padding-bottom: 0; }

  .films { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .film__info { grid-template-columns: 1fr; gap: 4px; }

  .photos { columns: 1; }
}
@media (min-width: 761px) and (max-width: 1100px) { .photos { columns: 2; } }

/* ---------- Movimento reduzido ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .2s !important; transition-delay: 0s !important; }
  .intro.is-leaving .intro__mark { transform: none; }
  .film__poster:hover img { transform: none; }
}

/* ==========================================================
   NÚMERO DO FILME
   ========================================================== */
.film__n { color: var(--grey); font-variant-numeric: tabular-nums; margin-right: 1.4em; }

/* ==========================================================
   DOP: MODO DE OLHAR NO SCROLL
   O quadro abre como uma janela de cinema (letterbox) ao entrar,
   a imagem desliza mais devagar que a página (paralaxe),
   o título DOP se dissolve e o filme que sai de cena escurece.
   Só onde o navegador tem animação ligada ao scroll; fora isso fica o bounce antigo.
   ========================================================== */
@media (prefers-reduced-motion: no-preference) {
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    @keyframes ea-open   { from { clip-path: inset(16% 9% 16% 9%); } to { clip-path: inset(0 0 0 0); } }
    @keyframes ea-drift  { from { translate: 0 -7%; } to { translate: 0 7%; } }
    @keyframes ea-rise   { from { opacity: 0; translate: 0 28px; } }
    @keyframes ea-leave  { to { opacity: .18; scale: .965; } }
    @keyframes ea-title  { to { opacity: 0; scale: 1.18; filter: blur(8px); } }
    @keyframes ea-slide  { from { translate: 0 0; } to { translate: -33.333% 0; } }

    #dop .page__title {
      transform-origin: left bottom;
      animation: ea-title linear both;
      animation-timeline: scroll(root);
      animation-range: 0 55vh;
    }
    .film {
      animation: ea-leave linear both;
      animation-timeline: view();
      animation-range: exit 10% exit 90%;
    }
    .film__frame {
      view-timeline: --frame;
      animation: ea-open linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 42%;
    }
    .film__poster img {
      scale: 1.16;
      animation: ea-drift linear both;
      animation-timeline: --frame;
      transition: scale 1.2s var(--ease-out), opacity .6s var(--ease);
    }
    .film__poster:hover img { transform: none; scale: 1.2; }
    .film__info {
      animation: ea-rise linear both;
      animation-timeline: view();
      animation-range: entry 30% cover 30%;
    }

    /* About: bio sobe ao entrar, faixa de clientes anda com o scroll */
    .about__bio, .about__contact > div {
      animation: ea-rise linear both;
      animation-timeline: view();
      animation-range: entry 10% cover 30%;
    }
    .about__band { view-timeline: --band; }
    .about__track {
      animation: ea-slide linear both;
      animation-timeline: --band;
    }
  }
}

/* ==========================================================
   ABOUT
   ========================================================== */
.about__hero {
  padding-block: clamp(56px, 11vw, 160px) clamp(40px, 6vw, 88px);
  display: grid; gap: 22px;
}
.about__name {
  margin: 0;
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 500;
  font-size: clamp(44px, 11.5vw, 190px);
  line-height: .86;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--white);
}
.about__name span { display: block; }
.about__name span + span { padding-left: .9em; }
.about__role { color: var(--grey); }

.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  gap: clamp(40px, 7vw, 120px);
  padding-block: clamp(24px, 4vw, 56px) clamp(72px, 10vw, 150px);
  border-top: 1px solid var(--line);
}
.about__bio {
  margin: 0;
  max-width: 30ch;
  font-size: clamp(22px, 2.6vw, 40px);
  line-height: 1.22;
  font-weight: 400;
  color: var(--off);
  text-wrap: balance;
}
.about__contact { margin: 0; display: grid; gap: 26px; align-content: start; }
.about__contact div { display: grid; gap: 6px; }
.about__contact dt { color: var(--grey); }
.about__contact dd { margin: 0; font-size: 15px; overflow-wrap: anywhere; }
.about__contact a { transition: color .3s var(--ease); }
.about__contact a:hover { color: var(--white); }

.about__band {
  overflow: clip;
  margin-inline: calc(-1 * max(var(--gutter), env(safe-area-inset-left, 0px)));
  border-block: 1px solid var(--line);
  padding-block: clamp(18px, 2.4vw, 34px);
  margin-bottom: clamp(48px, 7vw, 100px);
}
.about__track { display: flex; width: max-content; }
.about__track span {
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 500;
  font-size: clamp(28px, 5vw, 76px);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(242, 240, 235, .55);
  padding-right: .9em;
  white-space: nowrap;
}
.about__track span:nth-child(3n + 1) { color: var(--off); -webkit-text-stroke: 0; }

@media (max-width: 760px) {
  .about__grid { grid-template-columns: minmax(0, 1fr); }
  .about__name span + span { padding-left: .5em; }
}

/* ==========================================================
   FOTOGRAFIA: "DEVELOPING." (sala escura, luz vermelha de segurança)
   ========================================================== */
.soon {
  min-height: 62vh;
  display: grid; justify-items: center; align-content: center;
  gap: 18px; text-align: center;
  padding-block: 40px clamp(80px, 12vw, 160px);
}
.soon__mark { position: relative; width: clamp(120px, 14vw, 180px); aspect-ratio: 1; margin-bottom: 18px; }
.soon__glow {
  position: absolute; inset: -60%;
  background: radial-gradient(closest-side, rgba(196, 24, 18, .34), rgba(196, 24, 18, 0));
  animation: ea-safelight 7s ease-in-out infinite;
}
@keyframes ea-safelight { 50% { opacity: .35; } }
.soon__iris { position: relative; width: 100%; height: 100%; overflow: visible; animation: ea-turn 28s linear infinite; }
@keyframes ea-turn { to { rotate: 360deg; } }
.soon__ring, .soon__blades path { fill: none; stroke: var(--off); stroke-width: 1; vector-effect: non-scaling-stroke; }
.soon__title {
  margin: 0;
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 500;
  font-size: clamp(30px, 4.6vw, 68px);
  line-height: 1;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--white);
}
.soon__text { margin: 0; color: var(--grey); font-size: 14px; max-width: 52ch; text-wrap: balance; }
@media (prefers-reduced-motion: reduce) {
  .soon__iris, .soon__glow { animation: none; }
}

/* ==========================================================
   AJUSTES: idioma discreto e play só com o símbolo
   ========================================================== */
.lang, .header .lang {
  width: auto; height: auto; padding: 6px 0;
  border: 0; border-radius: 0; background: none; box-shadow: none;
  -webkit-backdrop-filter: none; backdrop-filter: none;
  font-size: 10px; font-weight: 500; letter-spacing: .16em;
  color: rgba(242, 240, 235, .42);
}
.lang:hover { background: none; color: var(--white); }
.play, .film--featured .play {
  width: 64px; height: 64px; margin: -32px 0 0 -32px;
  border: 0; border-radius: 0; background: none;
  -webkit-backdrop-filter: none; backdrop-filter: none;
}
.play svg { width: 26px; height: 26px; margin-left: 0; filter: drop-shadow(0 1px 8px rgba(0, 0, 0, .45)); }
@media (hover: none) {
  .play, .film--featured .play { width: 56px; height: 56px; margin: -28px 0 0 -28px; }
  .play svg { width: 22px; height: 22px; }
}

/* DOP no celular: filme de ponta a ponta, título discreto sobre a imagem */
@media (max-width: 760px) {
  .films { margin-inline: calc(-1 * max(var(--gutter), env(safe-area-inset-left, 0px))); gap: 6px; }
  .film { position: relative; }
  .film__info {
    position: absolute; left: 14px; right: 14px; bottom: 12px;
    padding: 0; display: block; pointer-events: none;
  }
  .film__title { font-size: 10px; letter-spacing: .16em; text-shadow: 0 1px 10px rgba(0, 0, 0, .6); }
  .film__cat { display: none; }
  .film__poster::after {
    content: ""; position: absolute; inset: auto 0 0 0; height: 40%;
    background: linear-gradient(to top, rgba(0, 0, 0, .45), rgba(0, 0, 0, 0));
    pointer-events: none;
  }
}

/* ==========================================================
   ABOUT CLARO: página branca, texto preto, foto em destaque
   ========================================================== */
html.is-light, html.is-light body { background: #FFFFFF; }
html.is-light body::before { background: #FFFFFF; }
#about { background: #FFFFFF; color: #0B0B0B; --line: rgba(11, 11, 11, .14); }
#about .header { background: rgba(255, 255, 255, .88); }
#about .wordmark, #about .nav a[aria-current="page"], #about .nav a:hover, #about .lang:hover { color: #0B0B0B; }
#about .nav a, #about .lang { color: rgba(11, 11, 11, .45); }
#about .about__name { color: #0B0B0B; }
#about .about__role, #about .about__contact dt, #about .footer { color: rgba(11, 11, 11, .5); }
#about .about__bio { color: #0B0B0B; }
#about .about__contact a:hover { color: #0B0B0B; opacity: .6; }
#about .social img { filter: invert(1); }
#about .about__track span { -webkit-text-stroke-color: rgba(11, 11, 11, .55); }
#about .about__track span:nth-child(3n + 1) { color: #0B0B0B; }
#about :focus-visible { outline-color: #0B0B0B; }

#about .about__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; }
.about__photo { margin: 0; overflow: clip; aspect-ratio: 4 / 5; background: #EDEDED; }
.about__photo img { width: 100%; height: 100%; object-fit: cover; }
.about__text { display: grid; gap: clamp(40px, 5vw, 72px); }
@media (max-width: 760px) { #about .about__grid { grid-template-columns: minmax(0, 1fr); } }

/* ==========================================================
   FOTOGRAFIA: ÍNDICE (linha central) + PÁGINA DO PROJETO
   ========================================================== */
.pindex { position: relative; padding-bottom: 30vh; }
.pindex__views { display: flex; gap: 8px; align-items: baseline; color: var(--grey); margin-bottom: clamp(24px, 4vw, 48px); }
.pindex__views button { color: var(--grey); padding: 4px 2px; transition: color .3s var(--ease); }
.pindex__views button[aria-pressed="true"] { color: var(--white); text-decoration: underline; text-underline-offset: 5px; }

.pindex__list { list-style: none; margin: 0; padding: 18vh 0 0; position: relative; }
.pindex__list::before {
  content: ""; position: absolute; left: 50%; top: 0; bottom: 0;
  border-left: 1px dashed rgba(242, 240, 235, .28);
}
.pentry { display: flex; padding-block: clamp(36px, 7vh, 80px); }
.pentry a { display: grid; gap: 4px; max-width: min(42vw, 520px); }
.pentry--l { justify-content: flex-end; padding-right: calc(50% + 22px); }
.pentry--l a { text-align: right; justify-items: end; }
.pentry--r { padding-left: calc(50% + 22px); }
.pentry__client {
  font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--grey); transition: color .5s var(--ease);
}
.pentry__title {
  font-family: var(--font-display); font-stretch: 112%; font-weight: 300;
  font-size: clamp(24px, 3.1vw, 48px); line-height: 1; text-transform: uppercase; letter-spacing: .02em;
  color: rgba(242, 240, 235, .38); transition: color .5s var(--ease);
}
.pentry.is-on .pentry__client { color: var(--off); }
.pentry.is-on .pentry__title, .pentry a:hover .pentry__title { color: var(--white); }
.pentry__img { display: none; }

/* capa que aparece no canto do lado do projeto aceso */
.pindex__peek {
  position: fixed; z-index: 5; width: min(26vw, 380px); aspect-ratio: 16 / 10;
  overflow: clip; pointer-events: none;
  opacity: 0; transform: scale(.96);
  transition: opacity .6s var(--ease), transform .9s var(--ease-out);
}
.pindex__peek img { width: 100%; height: 100%; object-fit: cover; }
.pindex__peek.is-in { opacity: 1; transform: none; }
.pindex__peek--l { left: max(var(--gutter), env(safe-area-inset-left, 0px)); bottom: var(--gutter); }
.pindex__peek--r { right: max(var(--gutter), env(safe-area-inset-right, 0px)); top: 96px; }
.pindex.is-grid .pindex__peek, #fotografia:not(.is-active) .pindex__peek { display: none; }

/* View 02: imagens grandes */
.pindex__grid { display: grid; gap: clamp(48px, 7vw, 110px); }
.prow { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: clamp(16px, 2.4vw, 36px); align-items: start; }
.prow__img { display: block; aspect-ratio: 16 / 9; overflow: clip; background: var(--black-2); }
.prow__img img { width: 100%; height: 100%; object-fit: cover; transition: scale 1.2s var(--ease-out); }
.prow:hover .prow__img img { scale: 1.03; }
.prow__txt { display: grid; gap: 6px; }
.prow:hover .pentry__title { color: var(--white); }

/* Página do projeto */
.project { padding-bottom: clamp(60px, 8vw, 120px); }
.project__title {
  margin: 0; display: grid; justify-items: center; text-align: center; gap: 2px;
  padding-block: clamp(70px, 14vh, 160px) clamp(56px, 10vh, 120px);
}
.project__client {
  font-family: var(--font-display); font-stretch: 125%; font-weight: 600;
  font-size: clamp(30px, 5.4vw, 88px); line-height: .95; letter-spacing: .02em; text-transform: uppercase; color: var(--white);
}
.project__name {
  font-family: var(--font-display); font-stretch: 100%; font-weight: 200;
  font-size: clamp(30px, 5.4vw, 88px); line-height: .95; letter-spacing: .01em; text-transform: uppercase; color: var(--off);
}
.project__flow { display: grid; gap: clamp(28px, 6vw, 96px); }
.pfig { margin: 0; overflow: clip; }
.pfig button { display: block; width: 100%; cursor: zoom-in; aspect-ratio: var(--r); overflow: clip; background: var(--black-2); }
.pfig img { width: 100%; height: 100%; object-fit: cover; }
.pfig--full { margin-inline: calc(-1 * max(var(--gutter), env(safe-area-inset-left, 0px))); }
.pfig--inset { width: 72%; justify-self: center; }
.pfig--side { width: 46%; }
.pfig--l { justify-self: start; }
.pfig--r { justify-self: end; }
.ppair { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(12px, 2vw, 28px); align-items: end; }
.ppair .pfig:last-child { margin-bottom: 12vh; }

.project__end {
  display: grid; justify-items: center; gap: 22px; text-align: center;
  padding-block: clamp(90px, 16vh, 200px) 20px;
}
.project__next { display: grid; gap: 10px; color: var(--grey); }
.project__next b {
  font-family: var(--font-display); font-stretch: 125%; font-weight: 500;
  font-size: clamp(26px, 4.4vw, 70px); line-height: 1; text-transform: uppercase; color: var(--white);
  transition: opacity .4s var(--ease);
}
.project__next:hover b { opacity: .6; }
.project__back { color: var(--grey); }
.project__back:hover { color: var(--white); }

@media (max-width: 760px) {
  .pindex__list { padding-top: 4vh; }
  .pindex__list::before { left: 0; }
  .pentry, .pentry--l, .pentry--r { justify-content: flex-start; padding: 0 0 48px 18px; }
  .pentry--l a { text-align: left; justify-items: start; }
  .pentry a { max-width: none; width: 100%; }
  .pentry__img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; margin-top: 14px; }
  .pentry__title { color: var(--off); }
  .pindex__peek { display: none; }
  .prow { grid-template-columns: minmax(0, 1fr); }
  .pfig--inset, .pfig--side { width: 100%; }
  .ppair { grid-template-columns: minmax(0, 1fr); }
  .ppair .pfig:last-child { margin-bottom: 0; }
}

/* Scroll: fotos do projeto abrem como quadro e deslizam; nomes do índice sobem */
@media (prefers-reduced-motion: no-preference) {
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    .pfig button { view-timeline: --ph; animation: ea-open linear both; animation-timeline: view(); animation-range: entry 0% cover 40%; }
    .pfig img { scale: 1.12; animation: ea-drift linear both; animation-timeline: --ph; }
    .pentry a, .prow { animation: ea-rise linear both; animation-timeline: view(); animation-range: entry 0% cover 25%; }
    .project__title { transform-origin: center bottom; animation: ea-title linear both; animation-timeline: scroll(root); animation-range: 0 60vh; }
    .about__photo { animation: ea-open linear both; animation-timeline: view(); animation-range: entry 0% cover 45%; }
    .about__photo img { scale: 1.12; animation: ea-drift linear both; animation-timeline: view(); }
  }
}

/* índice: títulos nunca passam por baixo das capas dos cantos */
@media (min-width: 761px) {
  .pentry a { max-width: min(27vw, 440px); }
  .pindex__peek { width: min(19vw, 300px); }
  .pindex__peek--l { bottom: 64px; }
}
.page { overflow-x: clip; }

/* Abertura: enquanto o Vimeo carrega, a imagem do Santander respira (zoom lento) em vez de ficar parada */
@media (prefers-reduced-motion: no-preference) {
  .home__poster { animation: ea-breathe 9s cubic-bezier(.2, .6, .3, 1) both; }
  @keyframes ea-breathe { from { scale: 1.1; } to { scale: 1; } }
}

/* Fotografia no celular: View 02, título menor e centralizado, imagens de ponta a ponta */
@media (max-width: 760px) {
  .pindex__views { display: none; }
  #fotografia .page__head { justify-content: center; align-items: center; text-align: center; padding-block: 44px 28px; }
  #fotografia .page__title { font-size: clamp(20px, 6.2vw, 28px); letter-spacing: .08em; }
  .pindex__grid { gap: 36px; }
  .prow { gap: 12px; }
  .prow__img, .pfig, .ppair {
    margin-inline: calc(-1 * max(var(--gutter), env(safe-area-inset-left, 0px)));
  }
  .ppair .pfig { margin-inline: 0; }
  .pfig--inset, .pfig--side { width: auto; justify-self: stretch; }
  .project__flow { gap: 6px; }
  .ppair { gap: 6px; }
  .prow__txt { padding-inline: 2px; }
}

/* Menu de cima no celular: sólido e estável (sem vidro, que no iPhone tremia e mostrava o conteúdo por trás) */
@media (max-width: 760px) {
  .header {
    background: var(--black);
    -webkit-backdrop-filter: none; backdrop-filter: none;
    transform: translateZ(0);
    border-bottom: 1px solid rgba(242, 240, 235, .08);
  }
  #about .header { background: #FFFFFF; border-bottom-color: rgba(11, 11, 11, .08); }
}

/* No celular: sem o escurecer ao sair da tela e sem o título se dissolvendo (lia como defeito junto do menu) */
@media (max-width: 760px) {
  .film, #dop .page__title, .project__title { animation: none !important; opacity: 1; scale: none; filter: none; }
}

/* O vídeo da home precisa passar da largura da tela para cobrir o celular em pé (a regra geral limitava a 100%) */
.home__vimeo { max-width: none; max-height: none; }

/* Menu no celular: fixo no topo (o "grudar ao rolar" pulava e piscava no Safari do iPhone) */
@media (max-width: 760px) {
  .header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 40;
    margin-inline: 0;
    padding-top: calc(16px + env(safe-area-inset-top, 0px));
    padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
    padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
    transform: none;
  }
  .page { padding-top: calc(var(--hh, 84px) + env(safe-area-inset-top, 0px)); }
  body::before { display: none; }
}

/* About: ao entrar, "Ernesto" e depois "Andrade" giram no próprio eixo e assentam com um quique */
@media (prefers-reduced-motion: no-preference) {
  #about .about__name { perspective: 1100px; }
  #about .about__name span { transform-origin: 50% 70%; backface-visibility: hidden; }
  #about.is-active .about__name span {
    animation: ea-flip 1.25s cubic-bezier(.2, .7, .2, 1) both;
  }
  #about.is-active .about__name span + span { animation-delay: .16s; }
  @keyframes ea-flip {
    0%   { transform: rotateX(-100deg) translateY(18%); opacity: 0; }
    45%  { transform: rotateX(16deg)  translateY(-4%); opacity: 1; }
    65%  { transform: rotateX(-8deg)  translateY(1%); }
    82%  { transform: rotateX(3deg); }
    100% { transform: none; opacity: 1; }
  }
}

/* Títulos DOP e Photography: mesmo giro com quique do nome no About, toda vez que a página entra */
@keyframes ea-flipp {
  0%   { transform: perspective(1100px) rotateX(-100deg) translateY(18%); opacity: 0; }
  45%  { transform: perspective(1100px) rotateX(16deg)  translateY(-4%); opacity: 1; }
  65%  { transform: perspective(1100px) rotateX(-8deg)  translateY(1%); }
  82%  { transform: perspective(1100px) rotateX(3deg); }
  100% { transform: perspective(1100px) rotateX(0deg); opacity: 1; }
}
@media (prefers-reduced-motion: no-preference) {
  #fotografia.is-active .page__title { transform-origin: 50% 70%; animation: ea-flipp 1.25s cubic-bezier(.2, .7, .2, 1) backwards; }
  #dop.is-active .page__title { animation: ea-flipp 1.25s cubic-bezier(.2, .7, .2, 1) backwards; }
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    /* no computador o DOP também se dissolve ao rolar: o giro vem por último e só vale durante a entrada */
    #dop.is-active .page__title {
      transform-origin: left bottom;
      animation: ea-title linear both, ea-flipp 1.25s cubic-bezier(.2, .7, .2, 1) backwards;
      animation-timeline: scroll(root), auto;
      animation-range: 0 55vh, normal;
    }
  }
}
@media (prefers-reduced-motion: no-preference) and (max-width: 760px) {
  #dop.is-active .page__title { animation: ea-flipp 1.25s cubic-bezier(.2, .7, .2, 1) backwards !important; transform-origin: 50% 70%; }
}
