/* The film stage is the entire home view. The other views retain the paper palette. */
body[data-view="inicio"] { background:#111; color:#fff; }
body[data-view="inicio"] #nav {
  position:fixed; inset:0 0 auto; border:0;
  background:linear-gradient(#080808bd, #08080800);
  padding-block:23px 34px;
}
#nav a[aria-current="page"] { text-decoration:underline; text-underline-offset:6px; }
body[data-view="inicio"] #hero { padding:0; }
#hero > .wrap {
  position:relative; isolation:isolate; max-width:none;
  min-height:100svh; width:100%; display:grid;
  grid-template-rows:auto 1fr; padding:90px var(--pad) clamp(24px,5vh,68px);
}
.film-stage {
  position:absolute; inset:0; z-index:-2; aspect-ratio:auto;
  container-type:size; overflow:hidden; background:#171613;
}
#hero > .wrap::after {
  position:absolute; inset:0; z-index:-1; content:"";
  background:linear-gradient(180deg,#0008,transparent 29%,transparent 49%,#0009 79%,#000d);
  pointer-events:none;
}
.film-video { position:absolute; inset:0; opacity:0; pointer-events:none; transition:opacity .48s ease-out; }
.film-video.is-playing { opacity:1; }
.film-video iframe {
  position:absolute; left:50%; top:50%;
  width:max(100cqw, 177.78cqh); height:max(100cqh, 56.25cqw);
  transform:translate(-50%, -50%); border:0;
}
#hero .film-identity { justify-content:flex-end; padding:0; }
#hero .film-identity h1 {
  position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap;
}
#hero .film-identity p { color:#fff; font-size:11px; letter-spacing:.09em; text-transform:uppercase; }
#hero .film-bottom {
  align-self:end; align-items:end; gap:20px; border:0; padding:0;
}
#hero .film-info { gap:8px; text-shadow:0 2px 18px #000; }
#hero .film-info h2 { font-size:clamp(36px,7vw,110px); line-height:.92; }
#hero .film-info p, #hero .film-count { color:#fff; }
#hero .film-actions { gap:18px; }
#hero .film-controls { gap:9px; }
#hero .film-controls button[data-step] { width:42px; height:42px; border-color:#fff8; }
#hero .film-controls button:hover { background:#fff2; }
#hero .film-controls[hidden] { display:none; }
#hero .film-open { padding-bottom:4px; }
#hero .hero-fallback { color:#fff; }
body:not([data-view="inicio"]) #trabajos { padding-top:clamp(40px,6vw,86px); }
@media(max-width:800px) {
  body[data-view="inicio"] #mobile-menu.open { background:#181817; top:56px; }
  #hero > .wrap { padding-top:80px; }
  #hero .film-bottom { align-items:stretch; }
  #hero .film-actions { justify-content:space-between; }
  #hero .film-controls button[data-step] { width:37px; height:37px; }
}
